conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add const for configurator method name.\n" }, { "from": "human", "value": "<?php namespace Limoncello\\Contracts\\Application;\n\n/**\n * Copyright 2015-2017 info@neomerx.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not u...
php
chosen
[ { "from": "system", "value": "Move hash algorithm to class constant\n\nThis change makes the tests a bit more readable.\n" }, { "from": "human", "value": "<?php\n\nnamespace UoMCS\\OpenBadges\\Backend;\n\nclass UtilityTest extends \\PHPUnit_Framework_TestCase\n{\n public function testIdentityHa...
php
chosen
[ { "from": "system", "value": "Set release version to 0.8.0\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n * @author Ma...
php
chosen
[ { "from": "system", "value": "Add final assertion to make sure invalid forms still post success" }, { "from": "human", "value": "<?php\nnamespace Matthew\\WallPostBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\Respo...
php
chosen
[ { "from": "system", "value": "CRM-4904: Refactor email body sync\n - Refactor migration\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Migrations\\Schema\\v1_20;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\\Migration;\nus...
php
chosen
[ { "from": "system", "value": "Add correct response code for error\n\n404 not 200 c:\n" }, { "from": "human", "value": "<?php\n\n require $_SERVER['DOCUMENT_ROOT'] . '/../backend/outputObject.php';\n require $_SERVER['DOCUMENT_ROOT'] . '/../backend/databaseOptions.php';\n\n \n $id = $...
php
chosen
[ { "from": "system", "value": "Allow anonymous on loadpage service\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: d.baudry\n * Date: 12/10/2017\n * Time: 16:12\n */\n\nnamespace GameScoreBundle\\Service;\n\nuse UserBundle\\Entity\\User;\n\nclass LoadPageLogWriter...
php
chosen
[ { "from": "system", "value": "Use more generic event class.\n" }, { "from": "human", "value": "<?php\n\nnamespace actsmart\\actsmart\\Stores;\n\nuse actsmart\\actsmart\\Conversations\\Conversation;\nuse actsmart\\actsmart\\Sensors\\UtteranceEvent;\nuse actsmart\\actsmart\\Interpreters\\Intent;\n...
php
chosen
[ { "from": "system", "value": "Fix typo of Weasel type.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Jonathan Oddy <jonathan@moo.com>\n * @copyright Copyright (c) 2012, Moo Print Ltd.\n * @license ISC\n */\nnamespace Weasel\\JsonMarshaller\\Config\\Serialization;\nuse Weasel\\JsonMar...
php
chosen
[ { "from": "system", "value": "Remove the old scrape checker code that didn't even work in the first place\n" }, { "from": "human", "value": "<?php\n// Cheatsheet: https://andreiabohner.files.wordpress.com/2014/06/slim.pdf\nif(in_array($app->request->getContentType(), array(\"application/json\", ...
php
chosen
[ { "from": "system", "value": "Handle posts with malformed email addresses\n" }, { "from": "human", "value": "<?php\n\nnamespace duncan3dc\\Twitter\\Posts;\n\nuse duncan3dc\\DomParser\\HtmlParser;\n\nclass Php extends AbstractPost\n{\n public $hostname = \"http://news.php.net\";\n public $a...
php
chosen
[ { "from": "system", "value": "Stop from using wrong auto loader\n" }, { "from": "human", "value": "<?php\nrequire 'vendor/autoload.php';\n\n// Replace the path to *this* PHP file with the alias because the usage summary\n// relies on this.\nif ($argc > 0) {\n $argv[0] = \"ff\";\n}\n\n$client ...
php
chosen
[ { "from": "system", "value": "Trim output of each line\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Concerns;\n\nuse PHPUnit\\Framework\\Assert;\n\nclass ArtisanResult\n{\n private $output;\n private $status;\n private $parameters;\n\n public function __construct($par...
php
chosen
[ { "from": "system", "value": "Change flow to workflow in visits table migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddLinkEnumToVisitsTable ...
php
chosen
[ { "from": "system", "value": "Make sure php is in git repo.\n" }, { "from": "human", "value": "<html>\n<head>\n <title>dit</title>\n</head>\n<body>\n<pre>\n <?php\n # We do not background the call since we need it to finish before building.\n shell_exec('git pull >> ../build.log 2>&1...
php
chosen
[ { "from": "system", "value": "Remove the missing script tag resource\n" }, { "from": "human", "value": "<?php\nreturn array(\n\t\n\t/*\n |--------------------------------------------------------------------------\n | Service Name\n |------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add generic types to traversable implementations\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the ...
php
chosen
[ { "from": "system", "value": "Remove author attr in reivew table(useless)\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateReviewsTable extends Migration {\n\n /**\n * Run the migratio...
php
chosen
[ { "from": "system", "value": "Add a stupid test about function calling\n" }, { "from": "human", "value": "<?php\r\n\r\nclass FunctionTest extends PHPUnit_Framework_TestCase\r\n{\r\n public function testReturnVoid()\r\n {\r\n $this->assertNull($this->returnNothing());\r\n }\r\n\r\...
php
chosen
[ { "from": "system", "value": "Set default storage value otherwise getNamespaces() fails if nothing is set\n" }, { "from": "human", "value": "<?php\n/**\n * (c) Mantas Varatiejus <var.mantas@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w...
php
chosen
[ { "from": "system", "value": " Fix console app components ignore settings.\n" }, { "from": "human", "value": "<?php\n\n\tnamespace vps\\tools\\console;\n\n\t/**\n\t * @author Anna Manaenkova <witzawitz@gmail.com>\n\t * @copyright Copyright (c) 2017\n\t * @date 2017-10-20\n\t */\n\tclass ...
php
chosen
[ { "from": "system", "value": "Fix grid styling to be contained in content block\n" }, { "from": "human", "value": "@extends('adminlte::layouts.app')\n\n@section('htmlheader_title')\n\t{{ trans('adminlte_lang::message.home') }}\n@endsection\n\n\n@section('main-content')\n\t<div class=\"container ...
php
chosen
[ { "from": "system", "value": "Add test case for arrays with null values\n" }, { "from": "human", "value": "<?php\n\nclass Stripe_ApiRequestorTest extends UnitTestCase\n{\n public function testEncode()\n {\n $a = array('my' => 'value', 'that' => array('your' => 'example'), 'bar' => 1, 'baz' ...
php
chosen
[ { "from": "system", "value": "Fix single media group type not working in the view\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\MediaLibrary\\Domain\\MediaGroup;\n\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsReso...
php
chosen
[ { "from": "system", "value": "Fix issue with recursive arrays on exact matching domains, also added function to dump entire config\n" }, { "from": "human", "value": "<?php\nnamespace ET;\n\nclass Config\n{\n private $config;\n\n public function __construct($configFile, $visitDomain)\n {...
php
chosen
[ { "from": "system", "value": "Support for prefixing of cache keys\n" }, { "from": "human", "value": "<?php namespace Clean\\Repository\\CacheAdapter;\n\nuse Clean\\Repository\\CacheAdapterInterface;\nuse Metaphore\\Cache;\n\nclass Metaphore implements CacheAdapterInterface\n{\n /**\n * @v...
php
chosen
[ { "from": "system", "value": "Fix issue where hex titles were not automatically generated.\n" }, { "from": "human", "value": "<?php namespace Anomaly\\ColorpickerFieldType\\Handler;\n\nuse Anomaly\\ColorpickerFieldType\\ColorpickerFieldType;\nuse Anomaly\\ColorpickerFieldType\\Command\\ParseColo...
php
chosen
[ { "from": "system", "value": "Add test for note creation\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Browser;\n\nuse Tests\\DuskTestCase;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\n\nclass MicropubClientTest extends DuskTestCase\n{\n /**\n * Test the clien...
php
chosen
[ { "from": "system", "value": "Fix for scalable option bug, pointed out by Jason Smith.\n\n\ngit-svn-id: 27e0aca8c7a52a9ae65dfba2e16879604119af8c@465 93a4e39c-3214-0410-bb16-828d8e3bcd0f\n" }, { "from": "human", "value": "<?php\n# $Id$\n# Retrieves and parses the XML output from gmond. Results st...
php
chosen
[ { "from": "system", "value": "Hide this for the time being\n" }, { "from": "human", "value": "<?\nif (!defined(\"POUET_API\")) exit();\n\n$prod = $_GET[\"id\"] ? PouetProd::Spawn((int)$_GET[\"id\"]) : null;\nif($prod)\n{\n $a = array(&$prod);\n PouetCollectPlatforms( $a );\n PouetCollectAward...
php
chosen
[ { "from": "system", "value": "Fix , added type to id\n" }, { "from": "human", "value": "<?php\n\nnamespace PureBilling\\Bundle\\SDKBundle\\Store\\V1\\Customer;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse PureMachine\\Bundle\\SDKBundle\\Store\\Annotation as Store;\nuse PureM...
php
chosen
[ { "from": "system", "value": "Move dependencies from removed 'jquery.ui.…' modules to 'jquery.ui'\n\nThis increases the extension's MediaWiki dependency to version 1.34.\n\nBug: T219604\nChange-Id: Ic0bbb86ec93fff32731d84a7919f4951a9111d5f\n" }, { "from": "human", "value": "<?php\n/*\nQuickRespo...
php
chosen
[ { "from": "system", "value": "Add code coveerage ignores for setup when is failed\n" }, { "from": "human", "value": "<?php\n\nclass oxTiramizoo_Events\n{\n\tpublic static function onActivate() \n\t{\n\t\ttry\n\t\t{\n \t$oTiramizooSetup = oxRegistry::get('oxTiramizoo_Setup');\n\t\t\t$oTira...
php
chosen
[ { "from": "system", "value": " Index: Fix pathing in the first include of dependencies.\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__.'/../vendor/autoload.php'; // Auto loads the dependencies, e.g. the whole of silex\n\n// Instantiate the app\n$app = new Silex\\Application();\n...
php
chosen
[ { "from": "system", "value": "Update user migration file with facebook_id column\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the migr...
php
chosen
[ { "from": "system", "value": "Fix multiple appearances when ids are off\n" }, { "from": "human", "value": "<?php\nrequire_once 'config.php';\ninclude 'checklogin.php';\n\ninclude \"connect.php\";\n\n$mysql_table = MYSQL_TABLE;\n$qry=\"SELECT * FROM `$mysql_table` WHERE `id`>\".mysqli_real_escape...
php
chosen
[ { "from": "system", "value": "Change umask value for dev env\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com/doc/current/boo...
php
chosen
[ { "from": "system", "value": "Update the service provider to publish the migrations\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Feed;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass FeedServiceProvider extends ServiceProvider\n{\n /**\n * @inheritdoc\n ...
php
chosen
[ { "from": "system", "value": "Remove unused if statement for error handling\n\nProducer was trying to catch an error that could not been tested so this\nline was removed to avoid dead code.\n" }, { "from": "human", "value": "<?php\n\nnamespace MicroQueue;\n\nclass Producer\n{\n private $queue...
php
chosen
[ { "from": "system", "value": "Add service to room request\n" }, { "from": "human", "value": "<?php\n\nnamespace MssPhp\\Schema\\Request;\n\nuse JMS\\Serializer\\Annotation\\Type;\nuse JMS\\Serializer\\Annotation\\XmlList;\n\nclass Room {\n /**\n * @Type(\"integer\")\n */\n public $...
php
chosen
[ { "from": "system", "value": "Include the uuid with the user attributes\n" }, { "from": "human", "value": "<?php\nnamespace Sil\\SilAuth\\saml;\n\nclass User\n{\n public static function convertToSamlFieldNames(\n string $employeeId,\n string $firstName,\n string $lastName...
php
chosen
[ { "from": "system", "value": "Fix translation name for french\n" }, { "from": "human", "value": "<?php\n\n\techo '\n\t<div class=\"header\">\n\t\t<p><a href=\"http://thebookofshaders.com/\">The Book of Shaders</a> by <a href=\"http://patriciogonzalezvivo.com\">Patricio Gonzalez Vivo</a> </p>\n\t...
php
chosen
[ { "from": "system", "value": "Swap the arguments being passed to trigger_error().\n\nFixes issue #247\nhttp://symphony-cms.com/discuss/issues/view/247/\n" }, { "from": "human", "value": "<?php\n\n\tClass DateTimeObj{\n\n\t\tpublic static function setDefaultTimezone($timezone){\n\t\t\tif(!@date_d...
php
chosen
[ { "from": "system", "value": "Modify the search to only fetch the selected company" }, { "from": "human", "value": "<?php\n\nnamespace common\\models\\search;\n\nuse Yii;\nuse yii\\base\\Model;\nuse yii\\data\\ActiveDataProvider;\nuse common\\models\\Remark;\nuse common\\commands\\CompanyAccess;...
php
chosen
[ { "from": "system", "value": "Add 'Commands' directory scan for artisan commands" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKerne...
php
chosen
[ { "from": "system", "value": "Add test for create money\n" }, { "from": "human", "value": "<?php\nnamespace tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse SD\\Currency\\Repository;\nuse SD\\Currency\\Store\\FileStore;\n\nclass RepositoryTest extends TestCase {\n public function testGetOptio...
php
chosen
[ { "from": "system", "value": "Add stack trace to exceptions in detailed mode\n" }, { "from": "human", "value": "<?php\nnamespace Light\\ObjectService\\Formats\\Json\\Serializers;\n\nuse Light\\ObjectService\\Service\\Protocol\\ExceptionSerializer;\n\nclass DefaultExceptionSerializer extends Base...
php
chosen
[ { "from": "system", "value": "UPDATE - Forgot password . . . again\n" }, { "from": "human", "value": "<?php\n\nglobal $project;\n$project = 'mysite';\n\nglobal $databaseConfig;\n$databaseConfig = array(\n\t\"type\" => 'MySQLDatabase',\n\t\"server\" => 'localhost', \n\t\"username\" => 'root', \n\...
php
chosen
[ { "from": "system", "value": "Disable seccomp in docker to use EasySandbox.😵\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright 2017 Liming Jin\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License....
php
chosen
[ { "from": "system", "value": "Complete coverage on the method disabler visitor\n" }, { "from": "human", "value": "<?php\n\nnamespace GeneratedHydratorTest\\CodeGenerator\\Visitor;\n\nuse GeneratedHydrator\\CodeGenerator\\Visitor\\MethodDisablerVisitor;\nuse PHPParser_Node_Name;\nuse PHPParser_No...
php
chosen
[ { "from": "system", "value": "Add support for MX validation in sfValidatorEmail\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the symfony package.\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Remove the resque queue naming from the resque task runner, and also remove verbose\n" }, { "from": "human", "value": "<?php\n\nnamespace ProjectRena\\Task;\n\nuse Cilex\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Compon...
php
chosen
[ { "from": "system", "value": "Implement option 1 from T3210\n\nSummary: Fixes T3210\n\nTest Plan: Run the conduit call via the UI and ensure it no longer breaks. Check I get an error returned if no params are set\n\nReviewers: epriestley\n\nReviewed By: epriestley\n\nCC: aran, Korvin\n\nManiphest Tasks: T32...
php
chosen
[ { "from": "system", "value": "Remove warning about lizmap_search\nQuick fix FTW!\n" }, { "from": "human", "value": "<?php\n/**\n * Lizmap FTS searcher.\n *\n * @author 3liz\n * @copyright 2017 3liz\n *\n * @see http://3liz.com\n *\n * @license Mozilla Public License : http://www.mozil...
php
chosen
[ { "from": "system", "value": "Add a default dataset option.\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'big' => [\n 'auth_file' => env('BIG_AUTH_FILE'),\n 'project_id' => env('BIG_PROJECT_ID'),\n ],\n];\n" }, { "from": "gpt", "value": "<?php\n\nreturn ...
php
chosen
[ { "from": "system", "value": "Update French Translation for Media modules\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'title' => [\n 'media' => 'Média',\n 'edit media' => 'Edition de média',\n ],\n 'breadcrumb' => [\n 'media' => 'Média',\n ],\n 'tab...
php
chosen
[ { "from": "system", "value": "Fix error in site alias files conditional if\n" }, { "from": "human", "value": "<?php\n// Grab the \"Global\" settings from drupdates\n$result = json_decode(exec('python ~/.drush/settings.py'), true);\n$path = $result['workingDir']['value'];\n$driver = $result['data...
php
chosen
[ { "from": "system", "value": "Fix console script to mirror git repos even if it has never been done before\n" }, { "from": "human", "value": "<?php\n\nnamespace REBELinBLUE\\Deployer\\Console\\Commands;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Foundation\\Bus\\D...
php
chosen
[ { "from": "system", "value": "Set response code as 403\n" }, { "from": "human", "value": "<?php\n\nnamespace TypiCMS\\Modules\\Users\\Http\\Controllers;\n\nuse Illuminate\\Http\\JsonResponse;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Pagination\\LengthAwarePaginator;\nuse Spatie\\QueryBui...
php
chosen
[ { "from": "system", "value": "Allow local statisticians to view the ReportToken link links\n" }, { "from": "human", "value": "<?php\n\nnamespace TmlpStats\\Policies;\n\nuse TmlpStats\\User;\n\nclass ReportTokenPolicy extends Policy\n{\n /**\n * Create a new policy instance.\n *\n ...
php
chosen
[ { "from": "system", "value": "Replace form type names with FQCN.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and licens...
php
chosen
[ { "from": "system", "value": "Fix possible null error when isAvailable is called without a quote" }, { "from": "human", "value": "<?php\n/**\n * ChannelEngine Payment Method\n */\nclass Tritac_ChannelEngine_Model_Payment_Method_Channelengine extends Mage_Payment_Model_Method_Abstract {\n\n /*...
php
chosen
[ { "from": "system", "value": "Use file sync sub type as is\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@50513 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n" }, { "from": "human", "value": "<?php\r\nclass KalturaAuditTrailFileSyncCreateInfo extends KalturaAuditTrailInfo\r\n{\r\n\t/**\r\n\t * ...
php
chosen
[ { "from": "system", "value": "Fix Toml config parsing adapter\n" }, { "from": "human", "value": "<?php\n\nnamespace Misantron\\Silex\\Provider\\Adapter;\n\nuse Exception;\nuse Misantron\\Silex\\Provider\\ConfigAdapter;\nuse Misantron\\Silex\\Provider\\Exception\\ComponentNotInstalledException;\n...
php
chosen
[ { "from": "system", "value": "[ENH] Allow admin to set exact match checkbox to be unchecked by default.\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36158 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2011 by authors of the Tiki W...
php
chosen
[ { "from": "system", "value": "Fix meetup date in builder" }, { "from": "human", "value": "<?php\n\nnamespace Techlancaster\\Bundle\\WebBundle\\Menu;\n\nuse Knp\\Menu\\FactoryInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerAware;\n\nclass Builder extends ContainerAware\n{\n p...
php
chosen
[ { "from": "system", "value": "Check if array element is present before access\n\nSigned-off-by: Daniel Kesselberg <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@danielkesselberg.de>\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n/**\n * @copyright Copyright (c) 2017 Joas Schillin...
php
chosen
[ { "from": "system", "value": "Set labelInValues for site ff\n" }, { "from": "human", "value": "<?php\n\nclass CM_FormField_Site extends CM_FormField_Set_Select {\n\n /**\n * @param int $userInput\n * @param CM_Response_Abstract $response\n * @return CM_Site_Abstra...
php
chosen
[ { "from": "system", "value": "Make sent_by a foreign key\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends M...
php
chosen
[ { "from": "system", "value": "Make ds bound column nullable\n" }, { "from": "human", "value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass DirectoryServiceAddBoundColumn ext...
php
chosen
[ { "from": "system", "value": "Remove unnecessary implementation of interface method in abstract class\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the ful...
php
chosen
[ { "from": "system", "value": "Insert custom commands through the getCommands() function.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Languages\n * @copyright Copyright (C) 2011 Timble CVBA and Contribut...
php
chosen
[ { "from": "system", "value": "Enable customization from multiple configuration files\n" }, { "from": "human", "value": "<?php\n\nnamespace Gregwar\\ImageBundle\\DependencyInjection;\n\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension;\nuse Symfony\\Component\\DependencyInjectio...
php
chosen
[ { "from": "system", "value": "Add test for PageBundle when requesting an invalid page\n" }, { "from": "human", "value": "<?php\n\n/**\n * ProTalk\n *\n * Copyright (c) 2012-2013, ProTalk\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed...
php
chosen
[ { "from": "system", "value": "Correct paths to Codeception etc.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Define Robo commands for building and testing Drupal User Registry Codeception module.\n *\n * @see http://robo.li/\n */\nclass RoboFile extends \\Robo\\Tasks\n{\n /**\n * @...
php
chosen
[ { "from": "system", "value": "Fix currency get name when it has no code\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 information, please view the LICENSE\n * file that was dis...
php
chosen
[ { "from": "system", "value": "Use the UuidTrait for models\n" }, { "from": "human", "value": "<?php namespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass BaseModel extends Model\n{\n public $incrementing = false;\n\n public static function getTableName()\n {\n ...
php
chosen
[ { "from": "system", "value": "Change credential text to use the same identifiers as the commandline tools\n\nThis allows a single simple cut/paste into a config file.\n" }, { "from": "human", "value": "<h4>Details for your app: <em><?php $this->utility->safe($name); ?></em></h4>\n<div class=\"ro...
php
chosen
[ { "from": "system", "value": "Create Database driver with configured Table name" }, { "from": "human", "value": "<?php\nnamespace IonutMilica\\LaravelSettings;\n\nuse IonutMilica\\LaravelSettings\\Drivers\\Database;\nuse IonutMilica\\LaravelSettings\\Drivers\\Json;\nuse IonutMilica\\LaravelSetti...
php
chosen
[ { "from": "system", "value": "Index routing changed return null.\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| He...
php
chosen
[ { "from": "system", "value": "Return boolean instead of if statement.\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 20...
php
chosen
[ { "from": "system", "value": "Add functionality to close a connection\n\nAllows to close a connection directly via the Mode instance.\nThis improves the testability of label print code, as the printer\nand its dependencies can be replaced with mocks in unit/integration tests.\n\nThe original direct fclose()...
php
chosen
[ { "from": "system", "value": "Fix the order currency listener spec\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 information, please view the LICENSE\n * file that was distribu...
php
chosen
[ { "from": "system", "value": "Check empty image + missing alt attribute.\n" }, { "from": "human", "value": "<li class=\"object-list-item\">\n <a class=\"object-list-item-link\" href=\"{{ $object->uri() }}\" title=\"{{ $object->title }}\">\n <span class=\"object-list-item-title\">{{ $ob...
php
chosen
[ { "from": "system", "value": "system: Remove constructor/destructor from static L10nFactory\n" }, { "from": "human", "value": "<?php\n\n/**\n * Factory class for providing Localization implementations\n * @author M2Mobi, Heinz Wiesinger\n */\nclass L10nFactory\n{\n\n /**\n * Instance of t...
php
chosen
[ { "from": "system", "value": "Use Process(array) instead of Process(string)\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Marein\\Nchan\\Tests\\TestServer;\n\nuse PHPUnit\\Framework\\TestListener;\nuse PHPUnit\\Framework\\TestListenerDefaultImplementation;\nuse ...
php
chosen
[ { "from": "system", "value": "Check address slug for candidate first step\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\n...
php
chosen
[ { "from": "system", "value": "Add route to hit notification controller\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Http\\Request;\n\n/*\n|--------------------------------------------------------------------------\n| API Routes\n|---------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Introduce Some Abstractions Around Hooks\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the wp-magnify/core package.\n *\n * (c) Christopher Davis <http://christopherdavis.me>\n *\n * For the full copyright and license information, please view...
php
chosen
[ { "from": "system", "value": "Add DebugServiceProvider, change profiler mount point.\n" }, { "from": "human", "value": "<?php\n\nuse Silex\\Provider\\MonologServiceProvider;\nuse Silex\\Provider\\WebProfilerServiceProvider;\n\n// include the prod configuration\nrequire __DIR__.'/prod.php';\n\n//...
php
chosen
[ { "from": "system", "value": "Update placeholders in ownpad configuration template\n" }, { "from": "human", "value": "<?php\n/** @var OC_L10N $l */\n/** @var array $_ */\n?>\n<div class=\"section\">\n <form id=\"ownpad_settings\">\n\n <h2><?php p($l->t('Collaborative documents'));?></h2>\n\n...
php
chosen
[ { "from": "system", "value": "Enhance Business show user page\n" }, { "from": "human", "value": "@extends('app')\n\n@section('content')\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<div class=\"col-md-10 col-md-offset-1\">\n\t\t\t<div class=\"panel panel-default\">\n\n\t\t\t\t<div clas...
php
chosen
[ { "from": "system", "value": "Add feature by feature title route\n\nRefactored the code slightly to share the directory variable in $app.\nRemoved the default / route, this can be replaced with an overview page\nof some kind.\n" }, { "from": "human", "value": "<?php\nuse GherkinViewer\\services\...
php
chosen
[ { "from": "system", "value": "Add Net client-server connect tests.\n" }, { "from": "human", "value": "<?php\n/*\n * Copyright 2013 the original author or authors.\n *\n * Licensed under the MIT License (the \"License\"); you may not use this\n * file except in compliance with the License. You ma...
php
chosen
[ { "from": "system", "value": "Allow notifications to be send async\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n\nnamespace Cmnty\\Push;\n\nuse Cmnty\\Push\\Crypto\\Cryptograph;\nuse GuzzleHttp\\Client as HttpClient;\nuse Psr\\Http\\Message\\ResponseInterface;\n\nclass Cl...
php
chosen
[ { "from": "system", "value": "Make method static as it is called statically\n" }, { "from": "human", "value": "<?php\nclass Kwf_Component_Partial_Abstract\n{\n protected $_params;\n\n public function __construct($params)\n {\n $this->_params = $params;\n }\n\n public functi...
php
chosen
[ { "from": "system", "value": "Add dynamic example and HTML to demo\n" }, { "from": "human", "value": "<?php\n\nrequire_once '../lib/Encaminar.php';\n\nclass FrontController\n{\n /** @Route(\"GET /\") */\n public function index()\n {\n return \"Home\";\n }\n /** @Route(\"GET...
php
chosen
[ { "from": "system", "value": "Fix - call function on null in activity api\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Repositories;\n\nuse App\\Models\\Activity;\nuse Illuminate\\Database\\Eloquent\\Collection;\n\nclass ActivityRepository\n{\n /**\n * @var mixed\n */\n ...
php
chosen
[ { "from": "system", "value": "fix(identify): Make setUp method compatible with PHPUnit TestCase\n" }, { "from": "human", "value": "<?php\n\nnamespace Unicodeveloper\\Identify\\Test;\n\nuse Mockery as m;\nuse PHPUnit\\Framework\\TestCase;\nuse Unicodeveloper\\Identify\\{ Identify, IdentifyService...
php
chosen
[ { "from": "system", "value": "[FIX] Fix on website list when site is not localized\n" }, { "from": "human", "value": "<?php\n/**\n * notification_InitializeSiteNotifPanelAction\n * @package modules.notification.actions\n */\nclass notification_InitializeSiteNotifPanelAction extends f_action_Base...
php
chosen