conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Apply PHP CS Fixer changes\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Telegram\\Bot\\Tests\\Unit\\Objects;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Telegram\\Bot\\Objects\\Chat;\nuse Telegram\\Bot\\Objects\\Update;\n\n/** @covers... | php | chosen |
[
{
"from": "system",
"value": "Add testCanJsonSerialize test to datetime helper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZpgRtf\\Tests\\Helpers;\n\nuse PHPUnit\\Framework\\TestCase;\nuse ZpgRtf\\Helpers\\DateTimeHelper;\n\nclass DateTimeHelperTest extends TestCase\n{\n public func... | php | chosen |
[
{
"from": "system",
"value": "Fix warning in pager, that's annoying me.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\EventListener;\n\nuse Bolt\\Pager\\PagerManager;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpKernel\\Event\\Get... | php | chosen |
[
{
"from": "system",
"value": "Use config helper & update config key\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateRoleUserTable extends Migration {\n\n /**\n * Run the migrations.\n... | php | chosen |
[
{
"from": "system",
"value": "Change 2 col with video template.\n"
},
{
"from": "human",
"value": "<?php\n/*\nTemplate Name: 2 Spalten: Text und Video\n*/\n?>\n\n<div class=\"clearfix\">\n <div class=\"column1\">\n <?php get_template_part('templates/page', 'header'); ?>\n <div class=\"key... | php | chosen |
[
{
"from": "system",
"value": "Add recently-created model method to mock model.\n"
},
{
"from": "human",
"value": "<?php if ( ! defined('EXT')) exit('Invalid file request.');\n\n/**\n * Mock SuperSticky model.\n *\n * @author Stephen Lewis (http://github.com/experience/)\n * @copyright ... | php | chosen |
[
{
"from": "system",
"value": "Add DocBlock to DeserializationFilter in Fixtures\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fixtures;\n\nuse DateTime;\nuse Scato\\Serializer\\Core\\Type;\nuse Scato\\Serializer\\Navigation\\DeserializationFilterInterface;\nuse Scato\\Serializer\\Navigat... | php | chosen |
[
{
"from": "system",
"value": "[IMPROVED] Debug logging for purgeArchive calls\n"
},
{
"from": "human",
"value": "#!/usr/bin/php\n<?php\n\n/*\n\nCopyright:: 2013, Sebastian Grewe\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance w... | php | chosen |
[
{
"from": "system",
"value": "Add error page to test exceptions\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../vendor/autoload.php';\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n$container = Yolo\\Factory::createConta... | php | chosen |
[
{
"from": "system",
"value": "Add edge to view data\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * LICENSE: This source code is subject to the license that is available\n * in the LICENSE file distributed along with this package.\n *\n * @package Penelope\n * @author Matthew Caruana ... | php | chosen |
[
{
"from": "system",
"value": "Fix broken spec, add new for CoreBundle state machine callbacks\nSome additional CS fixes\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license informatio... | php | chosen |
[
{
"from": "system",
"value": "Set the default identifier to null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BinSoul\\Net\\Mqtt\\Packet;\n\n/**\n * Provides methods for packets with an identifier.\n */\ntrait IdentifiablePacket\n{\n /** @var int */\n private static $nextIdentifie... | php | chosen |
[
{
"from": "system",
"value": "Add FontAwesome icons to the tool registration.\n"
},
{
"from": "human",
"value": "<?php\n\n$REGISTER_LTI2 = array(\n\"name\" => \"Peer-Graded Dropbox\",\n\"short_name\" => \"Peer Grader\",\n\"description\" => \"This tool provides a structured dropbox that can take ... | php | chosen |
[
{
"from": "system",
"value": "Add perma-link to each scheduled maintenance\n\nPR #2912 adds scheduled maintenance ID to overview HTML.\nThis patch introduces permanent link and icon image by the ID.\n"
},
{
"from": "human",
"value": "<div class=\"timeline schedule\">\n <div class=\"panel pane... | php | chosen |
[
{
"from": "system",
"value": "Implement bitbucket OAuth support (implemented in composer 1.2)\n\nIn composer 1.2 support for OAuth authentication for bitbucket.org has been expanded.\nThis fix brings the same support to the composer asset plugin.\n\nIt's completely backwards compatible with composer version... | php | chosen |
[
{
"from": "system",
"value": "Fix attempt to unset static property\n"
},
{
"from": "human",
"value": "<?php\nnamespace Aedart\\Scaffold\\Cache;\n\nuse Aedart\\Scaffold\\Containers\\IoC;\nuse Aedart\\Scaffold\\Contracts\\Builders\\IndexBuilder;\nuse Illuminate\\Contracts\\Cache\\Repository;\n\n/*... | php | chosen |
[
{
"from": "system",
"value": "Chore: Update for compatability with Laravel 5.2\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Optimus\\Castle\\Integration\\Laravel;\n\nuse Illuminate\\Support\\ServiceProvider as BaseProvider;\nuse Optimus\\Castle\\Castle;\n\nclass ServiceProvider extends ... | php | chosen |
[
{
"from": "system",
"value": "Add aria label to the search form to assist in accessibility\n\n- Pass accessibility audits\n- Aid in assistive technologies\n\nhttps://github.com/olefredrik/FoundationPress/issues/1307\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The template for displaying se... | php | chosen |
[
{
"from": "system",
"value": "Allow file mods in prod\n\n"
},
{
"from": "human",
"value": "<?php\n/** Production */\nini_set('display_errors', 0);\ndefine('WP_DEBUG_DISPLAY', false);\ndefine('SCRIPT_DEBUG', false);\n/** Disable all file modifications including updates and update notifications */... | php | chosen |
[
{
"from": "system",
"value": "Remove middleware from Affiliation index\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\n\nclass AffiliationController extends Contr... | php | chosen |
[
{
"from": "system",
"value": "Change parameters of updateProjects service\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Edit;\n\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\AppBundle;\nuse AppBundle\\Entity\\FennecUser;\nuse AppBundle\\Entity\\WebuserData;\nuse AppB... | php | chosen |
[
{
"from": "system",
"value": "Test Growl set and escape methods\n"
},
{
"from": "human",
"value": "<?php\nuse BryanCrowe\\Growl\\Growl;\nuse BryanCrowe\\Growl\\Builder\\GrowlNotifyBuilder;\nuse \\PHPUnit_Framework_TestCase;\n\nclass GrowlTest extends PHPUnit_Framework_TestCase\n{\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Configure php-vcr to allow replays with different form post data\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nrequire_once __DIR__.'/../vendor/autoload.php';\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\... | php | chosen |
[
{
"from": "system",
"value": "Add Login Link to menu at installation\n"
},
{
"from": "human",
"value": "<?php\n\n\nuse App\\Menu;\nuse Illuminate\\Database\\Seeder;\n\nclass MenuTableSeeder extends Seeder\n{\n public function run()\n {\n Menu::truncate();\n\n Menu::create([\n... | php | chosen |
[
{
"from": "system",
"value": "Fix correct capitalisation of interface\n"
},
{
"from": "human",
"value": "<?php namespace Phaza\\NorwegianAddressData\\Parser;\n\nuse Closure;\nuse Phaza\\NorwegianAddressData\\Objects\\Address;\n\nclass SOSIParser implements SosiParserInterface {\n\t/**\n\t * @var... | php | chosen |
[
{
"from": "system",
"value": "Add better examples on object ref and non-ref (zval ref)\n"
},
{
"from": "human",
"value": "<?php\n\nclass MyClassA {\n}\n\nclass MyClassB {\n public $otherObject;\n public $otherObject2;\n}\n\nclass MyClassC {\n}\n\n$objectA = new MyClassA();\n$objectAref2 =&... | php | chosen |
[
{
"from": "system",
"value": "Make email validation more permissive\n\nIn order to support new gTLDs and non-ASCII characters in email\naddresses, we make the email validation more permissive.\n"
},
{
"from": "human",
"value": "<?php\nclass EmailValidator {\n\tprivate $model;\n\n\tpublic functio... | php | chosen |
[
{
"from": "system",
"value": "Send 'monitor:checkreport' message in response to 'nagios:check' messages\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Devophp\\Component\\Agent\\Plugin;\n\nuse Devophp\\Component\\Nagios\\Checker;\nuse Monolog\\Logger;\n\nclass NagiosPlugin extends BasePlu... | php | chosen |
[
{
"from": "system",
"value": "Fix layout on save config page.\n"
},
{
"from": "human",
"value": "<?php\n$this->extend('setup/layout.html');\n?>\n\n<?php echo $Form->form(); ?>\n\n<p><?php echo tr('%1 could not save the configuration to the following file:', $app['name']); ?></p>\n<p><code><?php ... | php | chosen |
[
{
"from": "system",
"value": "Fix white spaces causing header issues\n"
},
{
"from": "human",
"value": " <?php\nclass MySQL {\n\n private $conn;\n\n public function __construct($HOST, $USER, $PASS, $DB) {\n global $conn;\n $conn = new mysqli($HOST, $USER, $PASS, $DB);\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix error due to path not found\n\nWhen the project does not have the /bin directory in the root this error appears:\n [PhpGitHooks\\Module\\JsonLint\\Contract\\Exception\\JsonLintViolationsException]\n Could not open input file: bin/jsonlint\n\nBut it does exist in /vendor/b... | php | chosen |
[
{
"from": "system",
"value": "Fix stability option in config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Che\\BuildGuild;\n\nuse Che\\BuildGuild\\Installer\\GuildInstaller;\nuse Che\\BuildGuild\\Installer\\ScriptRunner;\nuse Che\\BuildGuild\\Util\\Environment;\nuse Composer\\Config;\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with spaces inside emphasis tags\n\nIf value starts or ends with a space, remove space and re-add it outside\nmarkdown tags"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\HTMLToMarkdown\\Converter;\n\nuse League\\HTMLToMarkdown\\Configuration;... | php | chosen |
[
{
"from": "system",
"value": "Allow error_reporting config to contain constants\n"
},
{
"from": "human",
"value": "<?php\n /**\n * A base implementation for exceptions thrown by the framework.\n *\n * @author Jorgen Evens <jorgen@wlab.be>\n * @package WebLab\n * @subpackag... | php | chosen |
[
{
"from": "system",
"value": "Add user factory to auth handler\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Colorium\\Stateful;\n\nabstract class Auth\n{\n\n /** @var Provider */\n protected static $provider;\n\n /** @var string */\n protected static $root = '__AUTH__';\n\n\... | php | chosen |
[
{
"from": "system",
"value": "[Stream] Return destination stream from pipe() instead of source stream\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Http;\n\nuse Evenement\\EventEmitter;\nuse React\\Stream\\ReadableStream;\nuse React\\Stream\\WritableStream;\nuse React\\Stream\\Uti... | php | chosen |
[
{
"from": "system",
"value": "Fix calling nonexistent config value\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aviator\\Helpdesk\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Pool extends Model\n{\n protected $guarded = [];\n\n /**\n * Set the table name fro... | php | chosen |
[
{
"from": "system",
"value": "Remove route ignore adding if not enabled\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gregoriohc\\Preview;\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\ServiceProvider as LaravelServiceProvider;\n\nclass PreviewServiceProvider exte... | php | chosen |
[
{
"from": "system",
"value": "Drop trailing slashes from routing paths\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL);\nini_set('display_errors', 1);\n\n/*\n * Establish our routing table.\n */\n$router = array();\n$router['registrars'] = 'registrars/';\n$router['validator'] ... | php | chosen |
[
{
"from": "system",
"value": "Remove featured image from the ”Teman” loop"
},
{
"from": "human",
"value": "<?php if (have_posts()): while (have_posts()) : the_post(); ?>\n <article id=\"post-<?php the_ID(); ?>\" <?php post_class('loop-item loop-item--tema'); ?>>\n <?php if ( has_post_thumbna... | php | chosen |
[
{
"from": "system",
"value": "Use more widely the new Check class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Isbn;\n\nclass Validation {\n\n public static function isbn($isbn)\n {\n if (strlen($isbn) == 13)\n return Validation::isbn13($isbn);\n if (strle... | php | chosen |
[
{
"from": "system",
"value": "feat: Allow changing password of any user from command line\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands\\Admin;\n\nuse App\\Console\\Commands\\Traits\\AskForPassword;\nuse App\\Models\\User;\nuse Illuminate\\Console\\Command;\nuse Il... | php | chosen |
[
{
"from": "system",
"value": "Fix Trl Form_Dynamic: add missing parent call to getTemplateVars\n\ncssClass was missing\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Form_Dynamic_Trl_Component extends Kwc_Abstract_Composite_Trl_Component\n{\n public static function getSettings($masterCom... | php | chosen |
[
{
"from": "system",
"value": "Fix controller call for static methods\n"
},
{
"from": "human",
"value": "<?php\nnamespace MicroFW\\Routing;\n\nuse MicroFW\\Http\\Response;\nuse MicroFW\\Http\\IResponse;\nuse MicroFW\\Core\\Exceptions\\NotValidResponseException;\n\nclass Router\n{\n /** @var ar... | php | chosen |
[
{
"from": "system",
"value": "Remove limit as constant and add it as parameter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Details;\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\Entity\\FennecUser;\nuse AppBundle\\Entity\\Organism;\nuse AppBundle\\Service\\DBVersio... | php | chosen |
[
{
"from": "system",
"value": "Set better description to superhelio:reload\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Superhelio\\Commands\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass Reload extends Command\n{\n /**\n * The name and signature of the console command.\... | php | chosen |
[
{
"from": "system",
"value": "Add stubs to the store contract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Feed\\Contracts;\n\ninterface Store\n{\n\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Michaeljennings\\Feed\\Contracts;\n\ninterface Store\n{\n... | php | chosen |
[
{
"from": "system",
"value": "Change title from mwSnapshots to Snapshots"
},
{
"from": "human",
"value": "<?php\n\n// BaseTool & Localization\nrequire_once( __DIR__ . '/lib/basetool/InitTool.php' );\nrequire_once( KR_TSINT_START_INC );\n\n// Class for this tool\nrequire_once( __DIR__ . '/class.p... | php | chosen |
[
{
"from": "system",
"value": "Rephrase sentence at bottom of weekly report for changing e-mail preferences\n"
},
{
"from": "human",
"value": "@extends('emails.template')\n\n@section('content')\n Here's your weekly report for {{ $space->name }}.\n\n This week (#{{ $week }}) you've\n <ul>... | php | chosen |
[
{
"from": "system",
"value": "Fix a demo mode bug\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Controller\\Page;\n\nclass PrivatePage extends \\Controller\\AbstractPageController\n{\n\n public function get()\n {\n if (PUBLIC_PAGE) {\n $this->response->redirect('/... | php | chosen |
[
{
"from": "system",
"value": "Check if its Laravel, avoid publishing the configuration file if its Lumen\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace NicolasMahe\\SlackOutput;\n\nuse Illuminate\\Support\\ServiceProvider as ServiceProviderParent;\n\nclass ServiceProvider extends ServiceP... | php | chosen |
[
{
"from": "system",
"value": "Implement get poll API action\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace app\\modules\\rest\\versions\\v1\\controllers;\n\nuse Yii;\nuse app\\models\\Poll;\nuse app\\models\\Code;\nuse app\\components\\controllers\\VotingRestController;\nuse yii\\helpers\... | php | chosen |
[
{
"from": "system",
"value": "Use exception renderable instead of uses of instanceof\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Exceptions;\n\nuse App\\Exceptions\\SolverException;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\nuse Illuminate\\Routing\\Exc... | php | chosen |
[
{
"from": "system",
"value": "Drop the \"var layout =\"\n"
},
{
"from": "human",
"value": "<?php\n\trequire_once(dirname(__FILE__) . '/config.php');\n\trequire_once(dirname(__FILE__) . '/functions.php');\n\n\t$id = 0;\n\tif (!empty($_REQUEST['id'])) {\n\t\t$id = $_REQUEST['id'];\n\t} else if (!e... | php | chosen |
[
{
"from": "system",
"value": "Add: Select separator by SO (backend)\n"
},
{
"from": "human",
"value": "<?php\n\nrequire('./vendor/Slim/Slim/Slim.php');\n\n\\Slim\\Slim::registerAutoloader();\n\n$app = new \\Slim\\Slim();\n\n$app->get('/list-files', function () {\n \n $it = new Recursiv... | php | chosen |
[
{
"from": "system",
"value": "Change messages and exceptions throws in dispatch method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPLegends\\Routes;\nuse PHPLegends\\Routes\\Exceptions\\RouteException;\n\nclass Dispatcher extends AbstractDispatcher\n{\n\tpublic function __construct($... | php | chosen |
[
{
"from": "system",
"value": "Add basic logic the package controller when getting admin areas\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Galahad\\LaravelAddressing;\n\nuse Illuminate\\Http\\Request;\n\nclass Controller extends \\Illuminate\\Routing\\Controller\n{\n\tpublic function ge... | php | chosen |
[
{
"from": "system",
"value": "Update bin scripts to function when installed through composer as well.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Sample script for launching Wind as a REST server.\n * \n * This script launches a sample Wind server and stores all log request\n *... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Custom $config_directories break beta9\"\n\nThis reverts commit 56f8bdccb46b3b9a6ffe768235fece0341a63568.\n\nPending answer to core issue: https://www.drupal.org/node/2461341\n"
},
{
"from": "human",
"value": "<?php\n\n// Database configuration.\n$databases... | php | chosen |
[
{
"from": "system",
"value": "Use data from controller instead of querying in the view; Lowercase team name for detail page\n"
},
{
"from": "human",
"value": "@extends('layouts/app')\n\n@section('title')\n Teams | {{ config('app.name') }}\n@endsection\n\n@section('content')\n @component('la... | php | chosen |
[
{
"from": "system",
"value": "Use initialize method instead of constructor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Layer\\Blog\\BlogPlugin;\nuse Layer\\Pages\\PagesPlugin;\n\nclass Application extends \\Layer\\Application {\n\n\tpublic function __construct() {\n\n\t\tpa... | php | chosen |
[
{
"from": "system",
"value": "Add appointment finishTime and statusLabel attributes\n"
},
{
"from": "human",
"value": "<?php namespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Appointment extends Model {\n\n\tprotected $fillable = ['contact_id', 'business_id', 'date', 'time', ... | php | chosen |
[
{
"from": "system",
"value": "Fix segmentation fault on PHP 5.6 on Travis CI\n\nSegmentation fault started occuring after adding test case related to issue #51\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n// PHPUnit >= 6.0 compatibility\nif (!c... | php | chosen |
[
{
"from": "system",
"value": "Fix getDatabaseHandle() when running inside a resque job without our\nregular environment.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Redports\\Master;\n\n/**\n * Configuration class to store various static settings.\n *\n * @author Bernhard Froehlich... | php | chosen |
[
{
"from": "system",
"value": "Update for current version of ZF2 tutorial.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'controllers' => array(\n 'invokables' => array(\n 'Album\\Controller\\Album' => 'Album\\Controller\\AlbumController',\n ),\n ... | php | chosen |
[
{
"from": "system",
"value": "CHANGE remove deprecated function in new code\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SecucardConnect\\Product\\Payment;\n\nuse SecucardConnect\\Product\\Payment\\Service\\PaymentService;\n\n/**\n * Operations for the payment.secupaycreditcard resource... | php | chosen |
[
{
"from": "system",
"value": "Add support for built-in php server\n\nNow allow to run with success rewrite: php -S 127.0.0.1:8000 index.php\n"
},
{
"from": "human",
"value": "<?php\n// define available loader list\n$loaderList = ['Front', 'Admin', 'Api', 'Install'];\n\n// set error level\nerror_... | php | chosen |
[
{
"from": "system",
"value": "Check if event exists and is open\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'Slim/Slim.php';\n\n\\Slim\\Slim::registerAutoloader();\n\n$app = new \\Slim\\Slim();\n\n$app->get('/', function(){\n echo \"<html><body><h1>We're counting...</h1></body></html>... | php | chosen |
[
{
"from": "system",
"value": "Use controller_name static config instead of method for better inheritance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverStripe\\UserForms\\Model;\n\nuse Page;\n\nuse SilverStripe\\UserForms\\UserForm;\nuse SilverStripe\\UserForms\\Control\\UserDefined... | php | chosen |
[
{
"from": "system",
"value": "Fix name and value name\n"
},
{
"from": "human",
"value": "<?\n\t/*\n\t\tUplodius\n\t\tMultiple image file upload using PHP\n\t\thttps://github.com/RDmitriev/Uplodius\n\t*/\n\t\n\tinclude 'lib/uplodius.php';\n\t\n\tif(isset($_POST['images_add']))\n\t{\n\t\t$Uplodius... | php | chosen |
[
{
"from": "system",
"value": "Add a space between function keyword and '()'\n"
},
{
"from": "human",
"value": "<?php\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nrequire 'vendor/autoload.php';\n\n$app = new Silex\\Application();\n\n$app->get('/', function() {\n... | php | chosen |
[
{
"from": "system",
"value": "Add LAN constant for email 'Hello'\n"
},
{
"from": "human",
"value": "<?php\ndefine('LAN_MENTIONS_TAG_CHATBOX', 'chatbox');\ndefine('LAN_MENTIONS_TAG_COMMENT', 'comment');\ndefine('LAN_MENTIONS_TAG_FORUM', 'forum');\n\ndefine('LAN_MENTIONS_EMAIL_VERSE_CHATBOX', '[us... | php | chosen |
[
{
"from": "system",
"value": "docs(backend): Add api doc to saving pgn.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: stas\n * Date: 13.01.16\n * Time: 23:55\n */\n\nnamespace ApiBundle\\Controller;\n\nuse CoreBundle\\Model\\Request\\Game\\GameGetListRequest;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix the redirect via origin so we don't get a //\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@2482 46e82423-29d8-e211-989e-002590a4cdd4\n"
},
{
"from": "human",
"value": "<?\n\t# $Id: logout.php,v 1.1.2.12 2003-07-04 14:59:16 dan Exp $\n\t#\n\t# Copyrig... | php | chosen |
[
{
"from": "system",
"value": "Expand the error message to recommend updating REDCap versions\n"
},
{
"from": "human",
"value": "<?php\nnamespace Vanderbilt\\EmailTriggerExternalModule;\n\nuse ExternalModules\\AbstractExternalModule;\nuse ExternalModules\\ExternalModules;\n\nrequire_once 'EmailTr... | php | chosen |
[
{
"from": "system",
"value": "Fix tests: filter preserves indexes.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for clean Mimic library function.\n *\n * @since 0.1.0\n */\nclass CleanFuncT... | php | chosen |
[
{
"from": "system",
"value": "Test Sami with empty config\n"
},
{
"from": "human",
"value": "<?php\nnamespace PhakeBuilder\\Tests;\n\nclass SamiTest extends \\PHPUnit_Framework_TestCase\n{\n\n /**\n * @expectedException \\InvalidArgumentException\n */\n public function testUpdateEx... | php | chosen |
[
{
"from": "system",
"value": "III-473: Remove useless, wrong class description\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Contains CultuurNet\\UDB3\\Event\\Events\\OrganizerUpdated.\n */\n\nnamespace CultuurNet\\UDB3\\Event\\Events;\n\nuse CultuurNet\\UDB3\\Event\\EventEvent;\... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong default behaviour for analytics opt out\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin to remove component which uses cookie when user has chosen to opt-out from cookies\n *\n * Needs to used in conjunction with Kwc_Statistics_CookieBeforePlugin\... | php | chosen |
[
{
"from": "system",
"value": "Save user role when signing up\n"
},
{
"from": "human",
"value": "<?php\nnamespace app\\models;\n\nuse yii\\base\\Model;\n\n/**\n * Signup form\n */\nclass SignupForm extends Model\n{\n public $email;\n public $signup_token;\n public $password;\n\n\n /**... | php | chosen |
[
{
"from": "system",
"value": "Move the App's Routes config file inclusion right before Router's dispatching; this way, the Routes defined by Modules taking precedence\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Bootstrap handler - perform the Nova Framework's bootstrap stage.\n *\n * @auth... | php | chosen |
[
{
"from": "system",
"value": "[FormBundle] Use the root method on the configuration class is deprecated\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\FormBundle\\Tests\\DependencyInjection;\n\nuse Kunstmaan\\FormBundle\\DependencyInjection\\Configuration;\nuse PHPUnit\\Framewo... | php | chosen |
[
{
"from": "system",
"value": "Check if constants are defined before."
},
{
"from": "human",
"value": "<?php\n\n/**\n * Setup global configuration variable.\n */\n$config = require 'config.php';\n\n/**\n * Register the Composer autoloader.\n */\nrequire WP_CONTENT_DIR.'/../vendor/autoload.php';\n... | php | chosen |
[
{
"from": "system",
"value": "Add public getProfile method to base controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace base;\n\nclass Controller{\n\t\n\tprivate $_views = array();\n\tprivate $_res = null;\n\tprivate $_req = null;\n\tpublic $currentPath = null;\n\t\n\tprotected funct... | php | chosen |
[
{
"from": "system",
"value": "Fix for bug when using APC in version 3.1.4\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Cache;\n\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\nclass ApcCache implements CacheInterface\n{\n priva... | php | chosen |
[
{
"from": "system",
"value": "Maintain laravel database path for sqlite.\n"
},
{
"from": "human",
"value": "<?php namespace Mitch\\LaravelDoctrine\\Configuration;\n\nclass SqliteMapper implements Mapper\n{\n\t/**\n\t * Map the L4 configuration array to a sqlite-friendly doctrine configuration.\n... | php | chosen |
[
{
"from": "system",
"value": "Call getUser from sentinel instead of Controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controller;\n\nuse Chadicus\\Slim\\OAuth2\\Http\\RequestBridge;\nuse Chadicus\\Slim\\OAuth2\\Http\\ResponseBridge;\nuse Slim\\Http\\Request;\nuse Slim\\Http\\... | php | chosen |
[
{
"from": "system",
"value": "Update code to use new classes\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Plugin;\n\nuse Grav\\Common\\Plugin;\nuse Grav\\Common\\Grav;\nuse Grav\\Common\\Page\\Page;\nuse Grav\\Common\\Page\\Pages;\nuse Grav\\Component\\EventDispatcher\\Event;\n\ncla... | php | chosen |
[
{
"from": "system",
"value": "Discard other messages when multiple are added\n\nNot sure whether this can also happen when multiple messages are\nactually sent\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Room11\\Jeeves\\Chat\\Message;\n\nclass Factory\n{\n p... | php | chosen |
[
{
"from": "system",
"value": "Throw exception for VARBINARY columns without length\n\nClose #3827\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\system\\database\\table\\column;\n\n/**\n * Represents a `varbinary` database table column.\n * \n * @author\tMatthias Schmidt\n * @copyright... | php | chosen |
[
{
"from": "system",
"value": "Make deferred the Cache Service Provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cache;\n\nuse Cache\\CacheManager;\nuse Support\\ServiceProvider;\n\n\nclass CacheServiceProvider extends ServiceProvider\n{\n /**\n * Register the Service Provider... | php | chosen |
[
{
"from": "system",
"value": "Add timezone to remove the warning for time zone"
},
{
"from": "human",
"value": "<?php\n// ==========================================\n// Ideamart : PHP SMS API Logger Class\n// ==========================================\n// Author : Pasindu De Silva\n// Licence : ... | php | chosen |
[
{
"from": "system",
"value": "Update parser interface to fetch version from inflator & deflator binary\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Zippy.\n *\n * (c) Alchemy <info@alchemy.fr>\n *\n * For the full copyright and license information, please view the LICE... | php | chosen |
[
{
"from": "system",
"value": "Set default sales tax rates\n"
},
{
"from": "human",
"value": "<?php\nnamespace Freeagent\\Invoice;\n\n/**\n * Class InvoiceItem\n *\n * @package Freeagent\\Invoice\n */\nclass InvoiceItem\n{\n /**\n * @var string\n */\n public $item_type;\n\n /**\n... | php | chosen |
[
{
"from": "system",
"value": "Add kit functions for database mongo\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Ilex\\Base\\Model\\db;\n\nuse Ilex\\Core\\Loader;\n\n\n/**\n * Class Base\n * @package Ilex\\Base\\Model\\db\n *\n * @property string $collectionName\n * @property \\MongoCo... | php | chosen |
[
{
"from": "system",
"value": "FIX handleFieldArrayList only handling first ArrayListField\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace zauberfisch\\SerializedDataObject\\Form;\n\nclass FormExtension extends \\Extension {\n\tprivate static $allowed_actions = [\n... | php | chosen |
[
{
"from": "system",
"value": "Remove use statement for deleted class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Tactician;\n\nuse League\\Tactician\\Exception\\CommandWasNotHandledException;\nuse Closure;\n\n/**\n * Receives a command and modifies or dispatches it to a handler... | php | chosen |
[
{
"from": "system",
"value": "Fix case in repo urls"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nset_time_limit(0);\n\n$vendorDir = __DIR__;\n$deps = array(\n array('symfony', 'http://github.com/symfony/symfony', isset($_SERVER['SYMFONY_VERSION']) ? $_SERVER['SYMFONY_VERSION'... | php | chosen |
[
{
"from": "system",
"value": "Add email to temp purchase page.\n"
},
{
"from": "human",
"value": "<h1><?php echo $title; ?></h1>\n<h4>Page under construction</h4>"
},
{
"from": "gpt",
"value": "<h1><?= $title; ?></h1>\n<h4>Online purchase functionality is under construction</h4>\n<p>... | php | chosen |
[
{
"from": "system",
"value": "Fix: Allow setting a shared workspace as a favourite\n"
},
{
"from": "human",
"value": "<?php\nnamespace Chamilo\\Core\\Repository\\Workspace\\Table\\Workspace\\Shared;\n\nuse Chamilo\\Core\\Repository\\Workspace\\Table\\Workspace\\WorkspaceTableCellRenderer;\n\n/**... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.