conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Return array instead of null because return value is evaluated in foreach\n" }, { "from": "human", "value": "<?php\nclass Susy_Kwc_TextImage_Layout extends Susy_Layout\n{\n protected function _isSupportedContext($context)\n {\n if ($context['spans'] < 3...
php
chosen
[ { "from": "system", "value": "Add apiErrorResponse to caught errors during login\n\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Api\\Controllers\\Auth;\n\nuse Validator;\nuse Illuminate\\Http\\Request;\nuse App\\Api\\Controllers\\ApiController;\n\nclass LoginController extends Ap...
php
chosen
[ { "from": "system", "value": "Set name explicitly in the command itself, too\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\AssetsBundle\\Command;\n\n\nuse Becklyn\\AssetsBundle\\Cache\\CacheWarmer;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Cons...
php
chosen
[ { "from": "system", "value": "Replace depricated array helper method\n" }, { "from": "human", "value": "<?php\n\nnamespace SocialiteProviders\\Manager;\n\nuse SocialiteProviders\\Manager\\Contracts\\ConfigInterface;\n\ntrait ConfigTrait\n{\n /**\n * @var array\n */\n protected $con...
php
chosen
[ { "from": "system", "value": "Update plugin link in details comments" }, { "from": "human", "value": "<?php\n/**\n * @package CRC_Contact_Fields\n * @version 0.9\n */\n\n/**\n * Plugin Name: CRC Contact Fields\n * Plugin URI: https://github.com/robo-crc/wp-crc-contact-fields\n * Description: Add...
php
chosen
[ { "from": "system", "value": "Use composer's autoloader instead of mine\n" }, { "from": "human", "value": "<?php\n/*\n * Use this file to add ability to get your test to use your application code\n */\n\n# require __DIR__ . '/vendor/autoload.php';\n\nrequire_once \"MultiLoader.php\";\n\n/**\n * ...
php
chosen
[ { "from": "system", "value": "Add type attachments like gif\n" }, { "from": "human", "value": "<?php\n\nnamespace SSilence\\ImapClient;\n\n\nclass TypeAttachments\n{\n public $types;\n\n public function __construct()\n {\n $this->types = ['JPEG', 'PNG', 'PDF', 'X-MPEG', 'MSWORD',...
php
chosen
[ { "from": "system", "value": "Add tests for number casting and float comparison.\n" }, { "from": "human", "value": "<?php\n\n/*\n* (c) Andreas Fischer <bantu@owncloud.com>\n*\n* For the full copyright and license information, please view the LICENSE\n* file that was distributed with this source ...
php
chosen
[ { "from": "system", "value": "Fix name of test so it doesn't conflict with PHPUnit.\n" }, { "from": "human", "value": "<?php\nnamespace Nubs\\RandomNameGenerator;\n\nuse PHPUnit_Framework_TestCase;\n\n/**\n * @coversDefaultClass \\Nubs\\RandomNameGenerator\\Vgng\n * @covers ::<protected>\n */\nc...
php
chosen
[ { "from": "system", "value": "SAML2: Support metadata overrides of SingleLogoutService for IdP initiated SLO.\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@1457 44740490-163a-0410-bde0-09ae8108e29a\n" }, { "from": "human", "value": "<?php\n\nrequire_once('../../../www/_include.php');\n...
php
chosen
[ { "from": "system", "value": "Fix broken default config file\n" }, { "from": "human", "value": "<?php namespace Jigsaw\\Jigsaw\\Console;\n\nuse Illuminate\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nus...
php
chosen
[ { "from": "system", "value": "Fix get authentication type failed\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Authentication;\n\nuse Concrete\\Core\\Logging\\Channels;\nuse Concrete\\Core\\Logging\\LoggerAwareInterface;\nuse Concrete\\Core\\Logging\\LoggerAwareTrait;\nus...
php
chosen
[ { "from": "system", "value": "Add PHP Benelux to other organisations\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'production' => true,\n 'twitter' => '@laravelbrussels',\n 'meetup_url' => '//meetup.com/Laravel-Brussels',\n 'other_organisations' => [\n 'PHP Antwerp' ...
php
chosen
[ { "from": "system", "value": "Remove declare strict to be consistent with rest of code base\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n/*\n * This file is part of the php-code-coverage package.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full c...
php
chosen
[ { "from": "system", "value": "Update email address confirmation subject\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Handlers\\Events;\n\nuse Illuminate\\Mail\\Mailer;\nuse Flarum\\Core\\Events\\UserWasRegistered;\nuse Flarum\\Core\\Events\\EmailWasChanged;\nuse Config;\nuse ...
php
chosen
[ { "from": "system", "value": "fix(backend): Fix for observing game by guest.\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: stas\n * Date: 12.02.16\n * Time: 21:13\n */\n\nnamespace CoreBundle\\Model\\Request\\Game;\n\nuse CoreBundle\\Model\\Request\\SecurityReq...
php
chosen
[ { "from": "system", "value": "Remove config from extension. It is included in container\n" }, { "from": "human", "value": "<?php\n\nnamespace MageTest\\PHPSpec2\\MagentoExtension;\n\nuse PHPSpec2\\Extension\\ExtensionInterface,\n PHPSpec2\\Console\\ExtendableApplicationInterface as Applicatio...
php
chosen
[ { "from": "system", "value": "Add test for description scraper with genres\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Scraper_DescriptionTest extends CMTest_TestCase {\n\n\tpublic function testGetDescriptionAndGenres() {\n\t\t$description = new Denkmal_Scraper_Description('foo bar...
php
chosen
[ { "from": "system", "value": "Fix duplicate Require Dose/Freq for systemic meds setting\n" }, { "from": "human", "value": "<?php\n\nclass m170831_100900_add_system_setting_disable_correspondence_notes_copy extends CDbMigration\n{\n public function up()\n {\n $this->insert('setting_m...
php
chosen
[ { "from": "system", "value": "[WIP] Introduce Console rendering strategies and more incremental changes.\n\n- Console\\Response now supports setting and getting errorLevel (stored as metadata).\n- Console\\Response now properly supports send()ing, including exiting the application with an error level.\n- Ad...
php
chosen
[ { "from": "system", "value": "Set instance config null by default\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n 'table' => '',\n\n 'instance' => 'Algorit\\Synchronizer\\Storage\\SyncInterface',\n\n 'create' => function($system, $resource, $entity, $type)\n {\n ...
php
chosen
[ { "from": "system", "value": "Remove unused statement for setting fennecIds in service\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\API\\Details;\n\nuse AppBundle\\Entity\\FennecUser;\nuse AppBundle\\Service\\DBVersion;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\n...
php
chosen
[ { "from": "system", "value": "Use 127.0.0.1 instead of localhost in test DB connection\n\nUsing localhost prevents from running tests in WSL\n" }, { "from": "human", "value": "<?php\n/**\n * Test database configuration.\n */\nreturn [\n 'default-connection' => 'travis',\n 'connections' => ...
php
chosen
[ { "from": "system", "value": "Add publishing feature to ServiceProvider\n" }, { "from": "human", "value": "<?php\n\nnamespace Busayo\\Mention;\n\nuse Busayo\\Mention\\Factory\\MentionBuilder;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MentionServiceProvider extends ServiceProvider\n{\n ...
php
chosen
[ { "from": "system", "value": "Update placeholder values to encourage HTTPS usage" }, { "from": "human", "value": "<?php\n\ndefine('MYSQL_HOST', 'localhost');\ndefine('MYSQL_USER', 'user');\ndefine('MYSQL_PASSWORD', 'password');\ndefine('MYSQL_DATABASE', 'database');\ndefine('TWITTER_USERNAME', '...
php
chosen
[ { "from": "system", "value": "Fix condition, make sure not to include non-pivot relations\n" }, { "from": "human", "value": "<?php\n\nclass EloquentBuilder extends \\Illuminate\\Database\\Eloquent\\Builder\n{\n /**\n * Eager load pivot relations.\n *\n * @param array $models\n ...
php
chosen
[ { "from": "system", "value": "Add error_reporting(E_ALL | E_STRICT) in test\n" }, { "from": "human", "value": "<?php\n/**\n * bootstrap.php\n *\n * @package Teto\\SQL\n * @author USAMI Kenta <tadsan@zonu.me>\n * @copyright 2016 USAMI Kenta\n * @license https://github.com/BaguettePHP/TetoS...
php
chosen
[ { "from": "system", "value": "Fix typo in command description\n" }, { "from": "human", "value": "<?php\nnamespace Command\\Zray;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nus...
php
chosen
[ { "from": "system", "value": "Set default Innomatic legacy directory" }, { "from": "human", "value": "<?php\n\nnamespace Innomatic\\Composer;\n\nuse Composer\\Composer;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Installer\\LibraryInstaller;\nuse Composer\\Package\\PackageInterface;\n\nabstra...
php
chosen
[ { "from": "system", "value": "Add HuradPlugin::loadAll() and use HuradPlugin Lib" }, { "from": "human", "value": "<?php\n\nApp::import('Lib', 'HuradHook');\n$HuradHook = new HuradHook();\nConfigure::write('HuradHook.obj', $HuradHook);\nrequire APPLIBS . 'filters.php';\n\nApp::uses('Functions', '...
php
chosen
[ { "from": "system", "value": "Fix composer for inplace in dev mode\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/deployer/recipe/yii-configure.php';\nrequire_once __DIR__ . '/deployer/recipe/yii2-app-basic.php';\nrequire_once __DIR__ . '/deployer/recipe/in-place.php';\n\nif ...
php
chosen
[ { "from": "system", "value": "Add \"ably\" in comment as a broadcast connection\n\nhttps://github.com/laravel/laravel/pull/5531\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Broadcast...
php
chosen
[ { "from": "system", "value": "Return the command array in createCommand\n" }, { "from": "human", "value": "<?php\nnamespace BryanCrowe;\n\nclass Growl\n{\n public function __construct() {}\n\n public function growl($message = null, $options = []) {}\n\n public function createCommand()\n...
php
chosen
[ { "from": "system", "value": "Fix the doc-explorer-back button overflow.\n" }, { "from": "human", "value": "<style>\n #content.pw-content{\n padding: 0px;\n }\n #content .pw-container, #content .container{\n width: 100%;\n max-width: none;\n }\n #graphiql {\n height: 100vh;\n }...
php
chosen
[ { "from": "system", "value": "Change the phpdoc return type to the correct one\n\nHi! \r\n\r\nI believe an error did sneak into the code here - correct me if I'm wrong.\r\n\r\nI'm not sure whether this would require a major bump..." }, { "from": "human", "value": "<?php\n\nnamespace WyriHaximus\...
php
chosen
[ { "from": "system", "value": "Return types in repositories & dataset\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n *\n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n *\n * For the full copyr...
php
chosen
[ { "from": "system", "value": "Make tab spacing on render optional\n\nAdded a very simple optional variable when using `render()` to allow alternate line indentations (or none)." }, { "from": "human", "value": "<?php\n/**\n * @package Opengraph\n * @author Axel Etcheverry <axel@etcheverr...
php
chosen
[ { "from": "system", "value": "fix: Add missing semicolon in crawler controller\n" }, { "from": "human", "value": "<?php\n\nnamespace Mini\\Model\\TypeCrawler;\n\nuse \\Mini\\Model\\TypeCrawler\\Storage\\StorageFactory;\n\n//TODO disable crawlers if the type is disabled in the DB.\nclass TypeCraw...
php
chosen
[ { "from": "system", "value": "Use new shortcuts for migrations\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribut...
php
chosen
[ { "from": "system", "value": "Update GET /me to return only logged in users details\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Api\\Controllers\\User;\n\nuse App\\Api\\Controllers\\ApiController;\n\nclass UserDetailsController extends ApiController\n{\n /**\n * Retrieve ...
php
chosen
[ { "from": "system", "value": "Move config HTML generation to separate helper function.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * Contains linclark\\MicrodataPhpTest\n */\n\nnamespace linclark\\MicrodataPHP;\n\n/**\n * Tests the MicrodataPHP functionality.\n */\nclass Microdat...
php
chosen
[ { "from": "system", "value": "Change variable name to another more desriptive\n" }, { "from": "human", "value": "<?php\n\nnamespace MartiAdrogue\\SqlBuilder;\n\nuse MartiAdrogue\\SqlBuilder\\Exception\\InvalidSqlSyntaxException;\n\n/**\n *\n */\nclass SelectBuilder\n{\n private $sql;\n\n p...
php
chosen
[ { "from": "system", "value": "Fix bug with user logout\n" }, { "from": "human", "value": "<?php\n\nnamespace mrssoft\\engine\\controllers;\n\nuse mrssoft\\engine\\models\\LoginForm;\nuse yii;\nuse yii\\base\\UserException;\nuse yii\\web\\MethodNotAllowedHttpException;\n\nclass AuthController ext...
php
chosen
[ { "from": "system", "value": "Add field 'data' in Response\n" }, { "from": "human", "value": "<?php\n\n\n\n$app['controllers']['project/getall'] = function ($app, $request){\n \n $projects = $app['foler']->getAllProjects();\n Response::responseWithSuccess($projects);\n \n};" }, {...
php
chosen
[ { "from": "system", "value": "Fix CSV generator sometimes printing empty entries\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nclass SlugRegen_RegenerateEntrySlugsTask extends BaseTask\n{\n private $settings;\n\n private $entries;\n\n private $_totalSteps = null;\n\n public f...
php
chosen
[ { "from": "system", "value": "Add one more component test\n" }, { "from": "human", "value": "<?php\n\nnamespace Xu\\Tests\\Foundation;\n\nuse Xu\\Foundation\\Foundation;\n\nclass Foundation_Test extends \\WP_UnitTestCase {\n\n public function test_component() {\n $this->assertTrue( xu(...
php
chosen
[ { "from": "system", "value": "Change expectation of test and it fails\n" }, { "from": "human", "value": "<?php\n\nnamespace fennecweb;\n\nclass ProjectDetailsTest extends \\PHPUnit_Framework_TestCase\n{\n const NICKNAME = 'listingProjectsTestUser';\n const USERID = 'listingProjectsTestUser...
php
chosen
[ { "from": "system", "value": "Refactor code to fix coverage\n" }, { "from": "human", "value": "<?php\n\nnamespace Cs278\\BankModulus;\n\nuse Cs278\\BankModulus\\BankAccountNormalizer\\CoOperativeBankNormalizer;\nuse Cs278\\BankModulus\\BankAccountNormalizer\\NatWestNormalizer;\nuse Cs278\\BankMo...
php
chosen
[ { "from": "system", "value": "Return the mail function result.\n\nhttp://php.net/manual/en/function.mail.php\r\n\r\n> Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise." }, { "from": "human", "value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\...
php
chosen
[ { "from": "system", "value": "Add method to load database schema, remove unnecessary calls from constructor.\n\n" }, { "from": "human", "value": "<?php\n/*\n * Created on Aug 19, 2009\n *\n * SVN INFORMATION:::\n * -------------------\n * Last Author::::::::: $Author$ \n * Current Revision:::: ...
php
chosen
[ { "from": "system", "value": "Replace with a saner example\n" }, { "from": "human", "value": "<?php\n\n$iterator = new \\CodeIgniter\\Debug\\Iterator();\n\n// Add a new task\n$iterator->add('single_concat', static function () {\n $str = 'Some basiclittlestring concatenation test.';\n});\n\n//...
php
chosen
[ { "from": "system", "value": "WKS-250: Change check on finished and started\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n * Template for the calendar add or view buttons.\n * Leave the wrapper div class + print classes + data-eventid, as it is used for javascript.\n */\n?>\n\n<div cl...
php
chosen
[ { "from": "system", "value": "Remove last reference to OneOf Generator\n" }, { "from": "human", "value": "<?php\nuse Eris\\TestTrait;\nuse Eris\\Generator;\n\nclass ElementsTest extends \\PHPUnit_Framework_TestCase\n{\n use TestTrait;\n\n public function testElementsOnlyProducesElementsFro...
php
chosen
[ { "from": "system", "value": "Migrate database before running dusk test\n" }, { "from": "human", "value": "<?php\n\nnamespace Collejo\\App\\Modules\\Auth\\Tests\\Browser;\n\nuse Collejo\\Foundation\\Testing\\DuskTestCase;\nuse Laravel\\Dusk\\Browser;\n\nclass AuthModuleTest extends DuskTestCase\...
php
chosen
[ { "from": "system", "value": "Add date fields to TeamSpeak ban model\n" }, { "from": "human", "value": "<?php\n\nnamespace Models\\Teamspeak;\n\nuse Illuminate\\Database\\Eloquent\\SoftDeletingTrait;\n\nclass Ban extends \\Models\\aModel {\n\n protected $table = 'teamspeak_ban';\n protecte...
php
chosen
[ { "from": "system", "value": "Fix git log format test\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\GitAnalytics\\Command\\Git;\n\nuse GitAnalytics\\Command\\GitCommand;\n\nfinal class GitLogCommandTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @var \\GitAnalytics\\...
php
chosen
[ { "from": "system", "value": "CC-5781: Upgrade script for new storage quota implementation\n" }, { "from": "human", "value": "<?php\n\n// Define path to application directory\ndefined('APPLICATION_PATH')\n || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../../install_minimal/....
php
chosen
[ { "from": "system", "value": "Update broken run command function name\n" }, { "from": "human", "value": "<?php\nnamespace Creode\\Environment\\Docker\\System;\n\nuse Creode\\System\\Command;\n\nclass Docker extends Command\n{\n const COMMAND = 'docker';\n \n public function cleanup($pat...
php
chosen
[ { "from": "system", "value": "Add period after receipt link\n\nCo-authored-by: Evan Strat <2a8e137765a2b4608119edc225e2aa2abb62ab92@users.noreply.github.com>" }, { "from": "human", "value": "Hi {{ $payment->payable->user->preferred_first_name }},\n\n@if($payment->method === \"square\")\nWe recei...
php
chosen
[ { "from": "system", "value": "Change hexadecimal number in a string issue level to warning\n" }, { "from": "human", "value": "<?php\n\nnamespace Sstalle\\php7cc\\NodeVisitor;\n\nuse PhpParser\\Node;\nuse Sstalle\\php7cc\\CompatibilityViolation\\Message;\n\nclass HexadecimalNumberStringVisitor ex...
php
chosen
[ { "from": "system", "value": "Check expected type after JSON decode instead of checking what is not expected.\n\nThis will also allow \"true\" and \"false\" as filenames instead of only \"null\".\n" }, { "from": "human", "value": "<?php\n\n/**\n* ownCloud - ajax frontend\n*\n* @author Robin Appe...
php
chosen
[ { "from": "system", "value": "Fix silent crash when checking permissions" }, { "from": "human", "value": "<?php\nclass User extends ActiveRecord implements ILinkable {\n\n protected $hasMany = array('Post' => array('thisKey' => 'user_id'),\n 'Comment' => array('thisKey' => 'user_id'),\n );\...
php
chosen
[ { "from": "system", "value": "Use a constant instead of variable\n" }, { "from": "human", "value": "<?php\n\n$dir = __DIR__ . '/../src/App/Resources/routes/';\n\nrequire $dir . 'app.php';\nrequire $dir . 'auth.php';\n" }, { "from": "gpt", "value": "<?php\n\nconst ROUTES_DIR = __DIR__...
php
chosen
[ { "from": "system", "value": "Change comment on the config binding\n" }, { "from": "human", "value": "<?php\n\n/*\n|-----------------------------------------------------------\n| Create the Theme\n|-----------------------------------------------------------\n|\n| Create a new Theme instance whic...
php
chosen
[ { "from": "system", "value": "Add getAlias for CMS routes\n" }, { "from": "human", "value": "<?php\nnamespace AddressixAPI\\App\\Cms;\n\nuse AddressixAPI\\App\\Resource;\n\nclass Article extends Resource\n{\n protected $resource_uri = '/cms';\n \n public function __construct($app)\n {\n p...
php
chosen
[ { "from": "system", "value": "ContentApi: Add forgotten show-more-link-text value -.-'\n" }, { "from": "human", "value": "<?php\nclass Kwc_List_Gallery_ApiContent extends Kwc_Abstract_List_ApiContent\n{\n public function getContent(Kwf_Component_Data $data)\n {\n $row = $data->getCo...
php
chosen
[ { "from": "system", "value": "Add method for auto-registering the correct ProfilingStatement class\n" }, { "from": "human", "value": "<?php\n\nnamespace BjyProfiler\\Db\\Adapter;\n\nuse BjyProfiler\\Db\\Profiler\\Profiler;\nuse Zend\\Db\\Adapter\\Adapter;\n\nclass ProfilingAdapter extends Adapte...
php
chosen
[ { "from": "system", "value": "Fix a featured image size\n" }, { "from": "human", "value": "<?php\n the_post_thumbnail('large', array('class' => 'img-responsive'));\n?>\n<time class=\"updated\" datetime=\"<?php echo get_the_time('c'); ?>\"><?php echo get_the_date(); ?></time>\n<div class=\"addth...
php
chosen
[ { "from": "system", "value": "Change legacy to use Symfony session and set username to session\n" }, { "from": "human", "value": "<?php\n\nfunction StartSession($name) {\n global $user_id;\n $user_id = 1;\n\n session_name($name);\n session_start();\n}\n\nfunction get_body($path) {\n ...
php
chosen
[ { "from": "system", "value": "Use array_key_exists() instead of isset()\n\nSo that it works when modifying the field value to null, too.\n" }, { "from": "human", "value": "<?php\n/**\n Tatoeba Project, free collaborative creation of languages corpuses project\n Copyright (C) 2014 Gilles B...
php
chosen
[ { "from": "system", "value": "Update use composer install of twitterOaUth" }, { "from": "human", "value": "<?php\n\nrequire_once('twitteroauth-master/twitteroauth/twitteroauth.php');\nrequire_once('twitterbotclass.php');\n\nset_time_limit(0);\nignore_user_abort();\n\nfunction run($tweets){\n ...
php
chosen
[ { "from": "system", "value": "Comment out broken subscriber for now\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of Bootstrap CMS by Graham Campbell.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero Gen...
php
chosen
[ { "from": "system", "value": "Add missing return types to tests/internal/final methods\n\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Symfony\\Component\\Config\\Tests\\Fixtures\\Configuration;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\n\nclass CustomNode...
php
chosen
[ { "from": "system", "value": "Stop mixing extension configuration and context options\n" }, { "from": "human", "value": "<?php\n\nnamespace sablonier\\carousel;\n\nuse Bolt\\Extension\\SimpleExtension;\n\nclass CarouselExtension extends SimpleExtension\n{\n\n /**\n * {@inheritdoc}\n *...
php
chosen
[ { "from": "system", "value": "Make commande in default route\n" }, { "from": "human", "value": "<?php\n\nnamespace Jb\\TestBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass DefaultController extends Controller\n{\n public function indexAction($name)...
php
chosen
[ { "from": "system", "value": "Allow telegram bot name to be configured\n\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party Services\n |---------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix type hint of connection interface\n" }, { "from": "human", "value": "<?php\n\nnamespace BinSoul\\Net\\Mqtt;\n\n/**\n * Represents the connection of a MQTT client.\n */\ninterface Connection\n{\n /**\n * @return int\n */\n public function getProtoco...
php
chosen
[ { "from": "system", "value": "Add debug to $app config\n" }, { "from": "human", "value": "<?php\n\nerror_reporting(E_ALL);\nini_set('display_errors', 1);\n\n$app = array();\n\n$app['config'] = array(\n 'db' => array(\n 'dsn' => 'mysql:dbname=foler;host=localhost',\n 'user' ...
php
chosen
[ { "from": "system", "value": "Add fieldset to config form\n" }, { "from": "human", "value": "<?= $this->form->label(t('Email domain restriction for sign up'), 'registration_email_domain') ?>\n<?= $this->form->text('registration_email_domain', $values, $errors, array('placeholder=\"domain1.tld, d...
php
chosen
[ { "from": "system", "value": "Add link to facebook apps page\n\n\nFormer-commit-id: d8534d74ff9aad12672b552410eb6bb7864e87aa" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die('Access denied.'); ?>\n<br>\n<div class='control-group'>\n <?=$form->label('apikey', t('Api Key'))?>...
php
chosen
[ { "from": "system", "value": "Modify sample command - add process lock\n" }, { "from": "human", "value": "<?php\n\nnamespace Application\\MainBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Sym...
php
chosen
[ { "from": "system", "value": "Add migrations.migrations table for tracking DB updates\n" }, { "from": "human", "value": "<?php\n\nnamespace Hodor\\Database\\Phpmig;\n\nuse Phpmig\\Adapter\\AdapterInterface;\nuse Phpmig\\Migration\\Migration;\n\nclass PgsqlPhpmigAdapter implements AdapterInterfac...
php
chosen
[ { "from": "system", "value": "Add test field password with required rule\n" }, { "from": "human", "value": "<?php\n\nnamespace Styde\\Html\\Tests;\n\nuse Styde\\Html\\FormModel\\Field;\nuse Styde\\Html\\FormModel\\FieldCollection;\n\nclass FieldCollectionTest extends TestCase\n{\n /** @test *...
php
chosen
[ { "from": "system", "value": "Fix namespacing of User class" }, { "from": "human", "value": "<?php\n\nnamespace DrawMyAttention\\ExpAuth;\n\nuse Illuminate\\Contracts\\Auth\\Authenticatable as UserContract;\nuse Illuminate\\Auth\\EloquentUserProvider;\nuse Illuminate\\Contracts\\Hashing\\Hasher ...
php
chosen
[ { "from": "system", "value": "Use INTL_IDNA_VARIANT_UTS46 instead of INTL_IDNA_VARIANT_2003\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author AIZAWA Hina <hina@fetus.jp>\n * @copyright 2015-2019 by AIZAWA Hina <hina@fetus.jp>\n * @license https://github.com/fetus-hina/yii2-extra-valida...
php
chosen
[ { "from": "system", "value": "Use correct auth failure message\n\nSigned-off-by: snipe <e9c017fc53f27c86a4fb6d4f0de7d332b596a185@snipe.net>\n" }, { "from": "human", "value": "<?php\nnamespace App\\Http\\Livewire;\n\nuse Livewire\\Component;\n\nclass LoginForm extends Component\n{\n public $us...
php
chosen
[ { "from": "system", "value": "Test against all javascript compressors, and the return compressor for reference\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of HtmlCompress.\n *\n ** (c) 2014 Cees-Jan Kiewiet\n *\n * For the full copyright and license information, please v...
php
chosen
[ { "from": "system", "value": "Update to stop it falling too far behind\n" }, { "from": "human", "value": "<?PHP //$Id$\n// This file defines the current version of the\n// Moodle code that is being used. This can be\n// compared against the values stored in the \n// database to determine wheth...
php
chosen
[ { "from": "system", "value": "Add purchase functionality in back-end.\n" }, { "from": "human", "value": "<?php namespace App\\Services;\n\nclass Purchase\n{\n /**\n *\n * Purchase book function\n *\n * @param $book \\App\\Book\n * @param $bookPurchaseQty integer\n * @r...
php
chosen
[ { "from": "system", "value": "Correct wrong constructor in test\n" }, { "from": "human", "value": "<?php\n\nnamespace spec\\Swarrot\\Processor\\Stack;\n\nuse Swarrot\\Processor\\InitializableInterface;\nuse Swarrot\\Processor\\TerminableInterface;\nuse Swarrot\\Processor\\ProcessorInterface;\nus...
php
chosen
[ { "from": "system", "value": "BB-6143: Add code property for attribute group\n- fix translation key\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EntityConfigBundle\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\nclass AttributeFamilyGroups exte...
php
chosen
[ { "from": "system", "value": "Fix default configuration for consentAdmin & consentSimpleAdmin.\n\nThanks to François Kooman for providing this patch!\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@3237 44740490-163a-0410-bde0-09ae8108e29a\n" }, { "from": "human", "value": "<?php\n\n\n$c...
php
chosen
[ { "from": "system", "value": "Clean up this test a bit; it's a proper example\n\n\nr3683\n" }, { "from": "human", "value": "<?php\r\n\r\n// To run this test, You need to install PHPUnit and Selenium RC Server\r\n// Selenium RC Server is available the following website.\r\n// http://openqa.org/se...
php
chosen
[ { "from": "system", "value": "Disable tab stop on password show/hide links\n" }, { "from": "human", "value": "<style type=\"text/css\">\n a.show-password{\n color: #2196f3;\n font-size: 0.9em;\n margin-top: 10px;\n position: absolute;\n right: 0;\n to...
php
chosen
[ { "from": "system", "value": "Fix shop-payment by enforcing order reload.\n" }, { "from": "human", "value": "<?php\n\nuse SilverStripe\\Omnipay\\Service\\ServiceResponse;\n\n/**\n * Customisations to {@link Payment} specifically for the shop module.\n *\n * @package shop\n */\nclass ShopPayment ...
php
chosen
[ { "from": "system", "value": "Add ability to publish error views\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Foundation\\Providers;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\URL;\nuse Illuminate\\Support\\AggregateServiceProvider;\n\nclass Foundat...
php
chosen
[ { "from": "system", "value": "Make config protected so it's accessable.\n" }, { "from": "human", "value": "<?php\n\nnamespace wcatron\\CommonDBFramework;\n\nabstract class DB {\n /**\n * @var array Contains configuration data dependant on parent database type.\n */\n private $confi...
php
chosen
[ { "from": "system", "value": "Allow using lambdas with runtime functions\n\nExample:\n\n $scope[require] = new Lisphp_Runtime_PHPFunction(function ($file) {\n require $file;\n });\n" }, { "from": "human", "value": "<?php\nrequire_once 'Lisphp/Runtime/Function.php';\n\nfinal class Li...
php
chosen
[ { "from": "system", "value": "Work around phpcs fail while unpacking $msg for debug purposes\n" }, { "from": "human", "value": "<?php\n\n/**\n * Consumes RabbitMQ messages and dumps them.\n */\n\nnamespace Graviton\\MessageBundle\\Service;\n\nuse OldSound\\RabbitMqBundle\\RabbitMq\\ConsumerInter...
php
chosen
[ { "from": "system", "value": "[router] Change IP address to listen on\n" }, { "from": "human", "value": "<?php\n\nnamespace MonsieurBiz\\CoffeeShop\\Router;\n\nuse Thruway\\Peer\\Router as BaseRouter;\nuse Thruway\\Transport\\RatchetTransportProvider;\n\nclass Router extends BaseRouter\n{\n p...
php
chosen