conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add icalendar stragegy to service manager" }, { "from": "human", "value": "<?php\n/**\n * \n * Spork Zend Framework 2 Library\n * \n * @author Chris Schreiber <chris@sporkcode.com>\n */\nreturn array(\n 'service_manager' => array(\n 'abstract_factories' =>...
php
chosen
[ { "from": "system", "value": "Update to the latest issue (36)\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Issue number\n |--------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix plugin link is not displayed\n" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Plugin\\Budget;\n\nuse Kanboard\\Core\\Translator;\nuse Kanboard\\Core\\Plugin\\Base;\n\nclass Plugin extends Base\n{\n public function initialize()\n {\n $...
php
chosen
[ { "from": "system", "value": "Add form type check to suggestion field\n" }, { "from": "human", "value": "<?php\n/**\n * Field which gets suggestions from google search\n */\nclass GoogleSuggestField extends FormField\n{\n \n public function Field($properties = array())\n {\n Requ...
php
chosen
[ { "from": "system", "value": "Change classname in auth adapter listener\n" }, { "from": "human", "value": "<?php\n\nnamespace EdpGithub;\n\nuse Zend\\Module\\Manager,\n Zend\\Module\\Consumer\\AutoloaderProvider,\n Zend\\EventManager\\StaticEventManager;\n\nclass Module implements Autoload...
php
chosen
[ { "from": "system", "value": "Load module hooks in global scope.\n\n" }, { "from": "human", "value": "<?php\n\nif (Config::item('hooks.enable')) {\n Event::add('system.routing', 'arag_module_hooks');\n}\n\nfunction arag_module_hooks()\n{\n // All of the hooks are enabled, so we use list_fi...
php
chosen
[ { "from": "system", "value": "FIX: Remove empty field, hangover from access keys module\n" }, { "from": "human", "value": "<?php\n \nclass FacebookMetadataSiteConfig extends DataExtension {\n\n static $db = array(\n 'SkipToMainContentAccessKey' => 'VarChar(1)'\n );\n\n static $h...
php
chosen
[ { "from": "system", "value": "[Order][Cart] Change events in order item controller\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is a 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...
php
chosen
[ { "from": "system", "value": "Remove status enable filter on multiselect source\n" }, { "from": "human", "value": "<?php\n/**\n * Studioforty9 Gallery\n *\n * @category Studioforty9\n * @package Studioforty9_Gallery\n * @author StudioForty9 <info@studioforty9.com>\n * @copyright 2015 Studi...
php
chosen
[ { "from": "system", "value": "Fix redirection loop when validation fails\n" }, { "from": "human", "value": "<?php\n\n/*\n * NOTICE OF LICENSE\n *\n * Part of the Rinvex Fort Package.\n *\n * This source file is subject to The MIT License (MIT)\n * that is bundled with this package in the LICENSE...
php
chosen
[ { "from": "system", "value": "Fix to Select View Template for rendering Models selected from dropdown\n" }, { "from": "human", "value": "<dl class=\"dl-horizontal\">\n <dt>\n {{ $attributeTitle }}\n </dt>\n <dd>\n @if ($value)\n @if (is_scalar($value))\n ...
php
chosen
[ { "from": "system", "value": "Fix to spelling of \"Withdrawal\" on its view.\n" }, { "from": "human", "value": "<?php\n\nuse yii\\helpers\\Html;\n\n\n/* @var $this yii\\web\\View */\n/* @var $model app\\models\\Log */\n\n$this->title = 'Make a Widthdrawal';\n$this->params['breadcrumbs'][] = ['la...
php
chosen
[ { "from": "system", "value": "Fix typo in route template security\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symf...
php
chosen
[ { "from": "system", "value": "Add is_active virtual attribute, available_for_purchase local scope, active local scope\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass DuesPackage extends Model\n{\n /**\n * The attributes tha...
php
chosen
[ { "from": "system", "value": "Remove logo from Laravel forms\n" }, { "from": "human", "value": "<div class=\"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100\">\n <div>\n {{ $logo }}\n </div>\n\n <div class=\"w-full sm:max-w-md mt-6 px-6 py-4 bg-...
php
chosen
[ { "from": "system", "value": "Revert \"Popular expression: \"A ver se pinta\".\"\n\nThis reverts commit ef47b8f8d174fcf8ded4be9d8f431cc4e54b5d3f.\n" }, { "from": "human", "value": "<?php\n\ninclude_once('../../config/init.php');\ninclude_once($BASE_DIR . 'database/models.php');\n\nfunction getCo...
php
chosen
[ { "from": "system", "value": "Fix wrong phone validation rule\n" }, { "from": "human", "value": "<?php\n\n/*\n * NOTICE OF LICENSE\n *\n * Part of the Rinvex Fort Package.\n *\n * This source file is subject to The MIT License (MIT)\n * that is bundled with this package in the LICENSE file.\n *\...
php
chosen
[ { "from": "system", "value": "Throw an uncaught exception if all docs failed\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Exception;\n\nuse ScoutEngines\\Elasticsearch\\ElasticsearchEngine as BaseEngine;\n\nclass ElasticsearchEngine extends BaseEngine\n{\n\n /**\n * U...
php
chosen
[ { "from": "system", "value": "Fix method prototype to be compatible with new API\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the FOSRestBundle package.\n *\n * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>\n *\n * For the full copyright and license inform...
php
chosen
[ { "from": "system", "value": "Clean input field after url generation\n" }, { "from": "human", "value": "$('.form-group-url').removeClass('has-error')\n .find('.alert')\n .fadeOut();\n$('#input-url').val('{{ $shortUrl }}').select();\n\n{{--$('#btn-copy-url').focus();--}}\n{{--$('#input-orig...
php
chosen
[ { "from": "system", "value": "Fix Config loading in DownloadCsv\n" }, { "from": "human", "value": "<?php\n\nnamespace NemC\\IP2LocLite\\Commands;\n\nuse Illuminate\\Console\\Config,\n Illuminate\\Console\\Command,\n NemC\\IP2LocLite\\Services\\IP2LocLiteService,\n NemC\\IP2LocLite\\Exce...
php
chosen
[ { "from": "system", "value": "Fix namespace in result test\n" }, { "from": "human", "value": "<?php\nnamespace Saft\\Sparql\\Test\\Result;\n\nclass ResultUnitTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * Contains an instance of the class to test.\n *\n * @var mixed\n ...
php
chosen
[ { "from": "system", "value": "Make more clean what needs to be tweaked.\n" }, { "from": "human", "value": "<?\r\n$DBUSER = '';\r\n$DBPASSWORD = '';\r\n$DBNAME = '';\r\n$DBHOST = 'localhost';\r\n$DBTABLEPREFIX = '';\r\n$CONTACTTO = \"pixel@copei.de\";\r\n$CONTACTSUBJECT = \"Ihre Nachricht an Shop...
php
chosen
[ { "from": "system", "value": "Fix routing problem when running in PHP web server.\n\nBefore: http://localhost/index.php/themes/default/css/global.css\r\nAfter: http://localhost/themes/default/css/global.css" }, { "from": "human", "value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transition...
php
chosen
[ { "from": "system", "value": "[Admin] Add custom events for order and customer show menu builders\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 LIC...
php
chosen
[ { "from": "system", "value": "Allow middleware to also be non-function callables\n" }, { "from": "human", "value": "<?php\n\nnamespace Lstr\\Sprintf;\n\nclass ParsedExpression\n{\n /**\n * @var string\n */\n private $parsed_format;\n\n /**\n * @var array\n */\n privat...
php
chosen
[ { "from": "system", "value": "Add news testes to choice field testes\n" }, { "from": "human", "value": "<?php\n\nnamespace Alazjj\\SimpleBootstrapBundle\\Tests\\Form\\Extension;\n\nuse Alazjj\\SimpleBootstrapBundle\\Form\\Extension\\AljjazExtension;\nuse Symfony\\Component\\Form\\Tests\\Extensio...
php
chosen
[ { "from": "system", "value": "Exclude more urls from token check\n\nCallback url and registrations.\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository roo...
php
chosen
[ { "from": "system", "value": "Remove constants and internal value of status types\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace CultuurNet\\UDB3\\Event\\ValueObjects;\n\nuse InvalidArgumentException;\n\nfinal class StatusType\n{\n private const SCHEDULED = ...
php
chosen
[ { "from": "system", "value": "Add class_machine_name var to paramaters array\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n * Containt Drupal\\AppConsole\\Generator\\ControllerGenerator.\n */\n\nnamespace Drupal\\AppConsole\\Generator;\n\nclass ControllerGenerator extends Generator\n{...
php
chosen
[ { "from": "system", "value": "Update user base class path following deprecation warning\n" }, { "from": "human", "value": "<?php\n// src/Acme/UserBundle/Entity/User.php\n\nnamespace MarkMx\\UserBundle\\Entity;\n\nuse FOS\\UserBundle\\Entity\\User as BaseUser;\nuse Doctrine\\ORM\\Mapping as ORM;\...
php
chosen
[ { "from": "system", "value": "Add relationship from realm to dominion\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Models;\n\nclass Realm extends AbstractModel\n{\n public function dominions()\n {\n // todo: hasMany\n }\n\n public function monarch()\n ...
php
chosen
[ { "from": "system", "value": "Add error message if directory can't be read\n" }, { "from": "human", "value": "<?php require_once 'config.php';\n\nfunction print_files($url, $dir)\n{\n $hide = \".\";\n\n $myDirectory = opendir($dir);\n\n while ($entryName = readdir($myDirectory))\n {\n $di...
php
chosen
[ { "from": "system", "value": "Add removed posts as an API attribute\n" }, { "from": "human", "value": "<?php namespace Flarum\\Api\\Serializers;\n\nclass DiscussionBasicSerializer extends BaseSerializer\n{\n /**\n * The resource type.\n *\n * @var string\n */\n protected $t...
php
chosen
[ { "from": "system", "value": "Remove duplicated lines in test" }, { "from": "human", "value": "<?php\nnamespace Relay;\n\nuse ArrayObject;\nuse InvalidArgumentException;\nuse Traversable;\n\nclass RelayBuilderTest extends \\PHPUnit\\Framework\\TestCase\n{\n protected $relayBuilder;\n\n pro...
php
chosen
[ { "from": "system", "value": "Allow testing if institution is listed\n\nThis check is used to select the preferred institution for the\nauthenticating RA(A).\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the ...
php
chosen
[ { "from": "system", "value": "Fix for tests running on PHP 7.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Class ConnectionTest.\n */\nclass ConnectionTest extends PHPUnit_Framework_TestCase\n{\n public function testExceptionIfNoServerFound()\n {\n $this->expectException('\\S...
php
chosen
[ { "from": "system", "value": "Fix composer for inplace in dev mode\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/deployer/recipe/yii2-app-advanced.php';\nrequire_once __DIR__ . '/deployer/recipe/yii-configure.php';\nrequire_once __DIR__ . '/deployer/recipe/in-place.php';\n\n...
php
chosen
[ { "from": "system", "value": "Read from MemoryStream as output for console" }, { "from": "human", "value": "<?php\nnamespace Generics\\Logger;\n\nuse Psr\\Log\\LogLevel;\n\n/**\n * This class is a standard reference implementation of the PSR LoggerInterface.\n *\n * It logs everything to console...
php
chosen
[ { "from": "system", "value": "Make twig options an input param\n" }, { "from": "human", "value": "<?php\nnamespace SlaxWeb\\View;\n\nclass View\n{\n public $view = \"\";\n public $viewData = [];\n protected $_loader = null;\n protected $_twig = null;\n protected $_rendered = false...
php
chosen
[ { "from": "system", "value": "Fix requires: another require fix.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @package plugins.captionSearch\n * @subpackage Scheduler.Debug\n */\n\n// /opt/kaltura/app/batch\nchdir(dirname( __FILE__ ) . \"/../../../../../batch\");\n\nrequire_once(__DIR__ ....
php
chosen
[ { "from": "system", "value": "Support custom backgrounds in PNG or JPG format.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Assets;\n\nuse App\\Environment;\nuse Intervention\\Image\\Constraint;\nuse Intervention\\Image\\Image;\n\nfinal class BackgroundC...
php
chosen
[ { "from": "system", "value": "Use PageObject pattern to reuse helper function\n" }, { "from": "human", "value": "<?php\n\nuse Laracasts\\Integrated\\Extensions\\Selenium as IntegrationTest;\n# use Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass UserRegistrationProcessTest extends...
php
chosen
[ { "from": "system", "value": "Resolve an unassigned variable error.\n" }, { "from": "human", "value": "<?php\n\tif(!Utility::isBot()) {\n\t\tif(!$sidebar) {\n\t\t\t$sidebar = false;\n\t\t}\n\n\t\tif($article) {\n\t\t\t$advert = \\FelixOnline\\Core\\Advert::randomPick('articles', $sidebar, $artic...
php
chosen
[ { "from": "system", "value": "Remove use line for SendSignupReceivedEmailCommand.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Handler\\Email;\n\nuse App\\Command\\Email\\AbstractSendEmailCommand;\nuse App\\Command\\Email\\SendSignupReceivedEmailCommand;\n\nclass SendSignupReceived...
php
chosen
[ { "from": "system", "value": "BB-11805: Fix ProductPrice dependency on ApiBundle\n - changed class name to string\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ApiBundle\\Tests\\Functional\\Environment\\Entity;\n\nuse Oro\\Bundle\\PricingBundle\\Entity\\ProductPrice;\n\nclas...
php
chosen
[ { "from": "system", "value": "Check that the session authentication isset before loading the page\n" }, { "from": "human", "value": "<?php\n\nsession_start();\nif(!isset($_SESSION['user']) && !isset($_SESSION['userId'])) {\n\tdie(header('Location: login.php'));\n}\n\n?>\n<!DOCTYPE html>\n<html>\...
php
chosen
[ { "from": "system", "value": "Add comment to describe adding the '\\n'\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<?php\nforeach (glob(\"$root/core/*.php\") as $item) {\n require_once($item);\n}\ninclude_once \"$root/includes/meta.php\";\n?>\n <body>\n <?php\n echo $cont...
php
chosen
[ { "from": "system", "value": "Add covers annotiations to tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Clippings\\ParsedownProvider\\Test;\n\nuse Pimple\\Container;\nuse Clippings\\ParsedownProvider\\ParsedownServiceProvider;\n\nclass ParsedownServiceProviderTest extends \\PHPUnit_...
php
chosen
[ { "from": "system", "value": "Remove lines deprecated by config file.\n" }, { "from": "human", "value": "<?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nini_set('error_reporting', E_ALL);\n\n$generator = \\KayakDocs\\Generator\\Generator::create(__DIR__ . '/tmp', __DIR__ . '/docs');\n$gene...
php
chosen
[ { "from": "system", "value": "Use a define() for const values if possible\n" }, { "from": "human", "value": "<?php if (is_numeric($cvalue)): ?>\n\tzend_declare_class_constant_long(php_phongo_<?=strtolower($class)?>_ce, ZEND_STRL(\"<?=$cname?>\"), 0x<?=sprintf(\"%02s\", dechex($cvalue))?> TSRMLS_...
php
chosen
[ { "from": "system", "value": "Add SolrObject and V8Js to list of classes with dynamic properties\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\nnamespace Phan\\Language\\Internal;\n\n/**\n * A list of classes that support dynamic properties. These have\n * been manually enter...
php
chosen
[ { "from": "system", "value": "Fix crashing error caused when network_console isn't accessible.\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Dan\\Core;\n\nuse Dan\\Events\\Event;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ExceptionServiceProvider extends ServiceProvider\n{\n ...
php
chosen
[ { "from": "system", "value": "Add missing message response codes\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace DaveRandom\\LibDNS\\Messages;\n\nuse DaveRandom\\Enum\\Enum;\n\nfinal class MessageResponseCodes extends Enum\n{\n const NO_ERROR = 0;\n const FOR...
php
chosen
[ { "from": "system", "value": "Add test login error case\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Te...
php
chosen
[ { "from": "system", "value": "ZimForm: Fix mutliple anlage select in create\n\nNow its possible to add multiple anlagen to a zim\nwhen create/edit.\nIt still gives an error when a anlage which was\npart of a zim is not selected (remove anlage from zim)\n" }, { "from": "human", "value": "<?php\n\...
php
chosen
[ { "from": "system", "value": "Add missing newline at end of file\n" }, { "from": "human", "value": "<?php\n\nnamespace Eris;\n\nclass SampleTest extends \\PHPUnit_Framework_TestCase\n{\n use TestTrait;\n \n public function testWithGeneratorSize()\n {\n $times = 100;\n ...
php
chosen
[ { "from": "system", "value": "Update User with its namespace\n" }, { "from": "human", "value": "<?php\n\nclass UserTableSeeder extends Seeder\n{\n\n\tpublic function run()\n\t{\n\t\tDB::table('users')->delete();\n\t\tUser::create(array(\n\t\t\t'email' => 'chawkinsuf@gmail.com',\n\t\t\t'passwo...
php
chosen
[ { "from": "system", "value": "Improve new line replace algo" }, { "from": "human", "value": "<?php\n\nnamespace Aztech\\Sniffs\\Formatting;\n\nuse Aztech\\Sniffs\\TokenIterator;\n\n/**\n * Sniff to detect that there are no consecutive blank lines in code.\n *\n * @author thibaud\n */\nclass NoCo...
php
chosen
[ { "from": "system", "value": "Fix phpdoc and coding standards\n\nThis removes the unused use statements which were not catched by\nPHP-CS-Fixer because of string occurences. It also fixes some invalid\nphpdoc (scalar is not recognized as a valid type for instance).\n" }, { "from": "human", "valu...
php
chosen
[ { "from": "system", "value": "Convert some old left-over tabs to spaces\n" }, { "from": "human", "value": "<?php\n\nnamespace Lc5\\Toolbox;\n\n/**\n * Class Timer\n *\n * @author Łukasz Krzyszczak <lukasz.krzyszczak@gmail.com>\n */\nclass Timer\n{\n\n /**\n * @var float\n */\n priv...
php
chosen
[ { "from": "system", "value": "Change accoring to PR comments. moving code inside if block\n" }, { "from": "human", "value": "<?php\nnamespace Omise\\Payment\\Block\\Checkout\\Onepage\\Success;\n\nclass PaynowAdditionalInformation extends \\Magento\\Framework\\View\\Element\\Template\n{\n /**\...
php
chosen
[ { "from": "system", "value": "Allow null configs in docblock\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\Flysystem;\n\n/**\n * @internal\n */\ntrait ConfigAwareTrait\n{\n /**\n * @var Config\n */\n protected $config;\n\n /**\n * Set the config.\n *\n ...
php
chosen
[ { "from": "system", "value": "[QuoteBundle] Fix incorrect class for declined status label\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the CSBill package.\n *\n * (c) Pierre du Plessis <info@customscripts.co.za>\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Mark items viewed within a feed as read\n" }, { "from": "human", "value": "<?php\nnamespace FluxCtrl\\App\\Controller\\Feed;\n\nuse Cake\\Event\\Event;\nuse FluxCtrl\\App\\Controller\\CrudController;\n\nclass ItemsController extends CrudController\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Revert \"[Form] Remove \"value\" attribute on empty_value option\"\n\nThis reverts commit 9e849eb78bcc668a2b8aad39cb47e2ad32c73a47.\n\nReasons for the revert:\n\n* https://github.com/symfony/symfony/issues/8478\n* https://github.com/symfony/symfony/issues/8526\n" }, { "...
php
chosen
[ { "from": "system", "value": "[Cache] Fix wrong classname in deprecation message\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 th...
php
chosen
[ { "from": "system", "value": "CRM-2136: Convert Marketing List connection from workflow to controllers\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\FormBundle\\Form\\Handler;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\n\nuse Symfony\\Component\\Form\\FormInterface...
php
chosen
[ { "from": "system", "value": "Create backward-compatible helper that uses new endpoint\n" }, { "from": "human", "value": "<?php\n\nnamespace Stripe;\n\nclass ApplicationFee extends ApiResource\n{\n /**\n * This is a special case because the application fee endpoint has an\n * under...
php
chosen
[ { "from": "system", "value": "Store K so it can be returned again later\n" }, { "from": "human", "value": "<?php\n\nnamespace Bitcoin\\Signature\\K;\n\nuse Bitcoin\\Util\\Buffer;\nuse Bitcoin\\Crypto\\Hash;\nuse Bitcoin\\Crypto\\DRBG\\HMACDRBG;\nuse Bitcoin\\Crypto\\DRBG\\RFC6979;\nuse Bitcoin\\...
php
chosen
[ { "from": "system", "value": "Correct function call to no longer pass one parameter to many\n" }, { "from": "human", "value": "<?php namespace Picqer\\Financials\\Exact\\Query;\n\nclass Resultset\n{\n protected $connection;\n\n protected $url;\n\n protected $class;\n\n protected $par...
php
chosen
[ { "from": "system", "value": "Change C++ message to bar crawl message\n" }, { "from": "human", "value": "<?php\n// use this to display a message across the whole site; should be used sparingly.\n?>\n\n<div class=\"alert alert-info text-center\">\n<strong>LATEST NEWS:</strong><br>\nWe're running ...
php
chosen
[ { "from": "system", "value": "Hide exceptions if elasticsearch is not running. This needs some fixing and cleaning up by someone smarter than myself.\n" }, { "from": "human", "value": "<?php\n\nnamespace FOQ\\ElasticaBundle;\n\nuse Elastica_Client;\nuse FOQ\\ElasticaBundle\\Logger\\ElasticaLogge...
php
chosen
[ { "from": "system", "value": "Fix Caisse Iaaza Bug - Date : 07/11/2016\n" }, { "from": "human", "value": "<?php\n$pdo = new PDO('mysql:host=mysql.hostinger.co.uk;dbname=u897984522_immo', 'u897984522_asdev', 'RevoK2016I');" }, { "from": "gpt", "value": "<?php\n$pdo = new PDO('mysql:ho...
php
chosen
[ { "from": "system", "value": "Fix bug in postgres processor.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Database\\Query\\Processors;\n\nuse Illuminate\\Database\\Query\\Builder;\n\nclass PostgresProcessor extends Processor {\n\n\t/**\n\t * Process an \"insert get ID\" query.\...
php
chosen
[ { "from": "system", "value": "Fix missing prop declaration in test fixture." }, { "from": "human", "value": "<?php\n\nnamespace Ruler\\Test\\Fixtures;\n\nclass Fact\n{\n public function __construct($value = null)\n {\n if ($value !== null) {\n $this->value = $value;\n ...
php
chosen
[ { "from": "system", "value": "Add some more tests for Entity\\Category\n" }, { "from": "human", "value": "<?php\n\nnamespace Genj\\FaqBundle\\Entity;\n\n/**\n * Class CategoryTest\n *\n * @package Genj\\FaqBundle\\Entity\n */\nclass CategoryTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n...
php
chosen
[ { "from": "system", "value": "Add capbility to render value as return on standard js render signature.\nFix cs and doc blocks.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\Datatables\\Html;\n\nuse Illuminate\\Support\\Fluent;\n\n/**\n * Class Column\n *\n * @package Yajra\\Datata...
php
chosen
[ { "from": "system", "value": "Add valid parameters array and the validate parameters method to the base transformer.\n" }, { "from": "human", "value": "<?php\n\nnamespace NavJobs\\LaravelApi;\n\nuse League\\Fractal\\TransformerAbstract;\n\nclass Transformer extends TransformerAbstract\n{\n /*...
php
chosen
[ { "from": "system", "value": "Remove the comma on the end of method" }, { "from": "human", "value": "<?php\n/**\n *\n * This file is part of Aura for PHP.\n *\n * @license http://opensource.org/licenses/bsd-license.php BSD\n *\n */\nnamespace Aura\\View;\n\n/**\n *\n * Factory to create View obj...
php
chosen
[ { "from": "system", "value": "Docblocks: Update return values, explain what generateSecret() does\n" }, { "from": "human", "value": "<?php\n\nnamespace eien\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse ParagonIE\\ConstantTime\\Base32;\nuse PragmaRX\\Google2FA\\Vendor\\Laravel\\Faca...
php
chosen
[ { "from": "system", "value": "Add the rules to ensure the notes params conform to some custom rules.\n" }, { "from": "human", "value": "<?php namespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\n\nclass WriteNoteRequest extends Request {\n\n\t/**\n\t * Determine if the user is au...
php
chosen
[ { "from": "system", "value": "Add classification to base instance object\n" }, { "from": "human", "value": "<?php\n\n/**\n * Class definition for DTS_Instance.\n * \n * @package DTS\n * @author Eric Bollens\n * @copyright Copyright (c) 2012 UC Regents\n * @license BSD\n * @version...
php
chosen
[ { "from": "system", "value": "Use the normal way of extending a form type from symfony\n" }, { "from": "human", "value": "<?php\n\nnamespace Common\\Form;\n\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass TitleTy...
php
chosen
[ { "from": "system", "value": "Fix empty ID and EMAIL attributes of org:people:list result\n" }, { "from": "human", "value": "<?php\n\nnamespace Pantheon\\Terminus\\Friends;\n\nuse Pantheon\\Terminus\\Models\\User;\n\n/**\n * Class UserJoinTrait\n * @package Pantheon\\Terminus\\Friends\n */\ntrai...
php
chosen
[ { "from": "system", "value": "Update column if it exists, create new column if not\n" }, { "from": "human", "value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass ReorganizeTranslationTable extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on thi...
php
chosen
[ { "from": "system", "value": "Set mode for IE to IE10\n" }, { "from": "human", "value": "\t<meta http-equiv=\"Content-Type\" content=\"text/html; CHARSET=utf-8\" />\n\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=9\" />\n\t<meta name=\"description\" content=\"<?php print Settings::get('meta...
php
chosen
[ { "from": "system", "value": "Add character encoding meta tag\n\nSigned-off-by: Eddie Ringle <bacc1c505cb1756c59242c0a8ee25cd990a210e9@eringle.net>\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n<title>Layout Test</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"<?...
php
chosen
[ { "from": "system", "value": "Add keypair services to provider\n" }, { "from": "human", "value": "<?php\n\nnamespace Chromabits\\Illuminated\\Auth;\n\nuse Chromabits\\Illuminated\\Auth\\Models\\KeyPair;\nuse Chromabits\\Illuminated\\Support\\ServiceProvider;\n\n/**\n * Class KeyPairServiceProvid...
php
chosen
[ { "from": "system", "value": "Add comment to explain query/insert in migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePostTagTable extends Migration\n{\n /**\n * Run the migr...
php
chosen
[ { "from": "system", "value": "Save a transaction entity to the database\n" }, { "from": "human", "value": "<?php\n\nnamespace PerFi\\PerFiBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse PerFi\\Domain\\Transaction\\Transaction;\nuse PerFi\\Domain\\Transaction\\TransactionReposito...
php
chosen
[ { "from": "system", "value": "Fix where clause in getPublishedPost\n" }, { "from": "human", "value": "<?php\n\nnamespace SymfonyDay\\Bundle\\BlogBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * PostRepository\n *\n * This class was generated by the Doctrine ORM. Add your own cu...
php
chosen
[ { "from": "system", "value": "Fix compatibility with Phalcon 2 in Catalog module\n" }, { "from": "human", "value": "<?php\n/**\n * @author Patsura Dmitry https://github.com/ovr <talk@dmtry.me>\n */\n\nnamespace Catalog;\n\nclass Module implements \\Phalcon\\Mvc\\ModuleDefinitionInterface\n{\n ...
php
chosen
[ { "from": "system", "value": "Add DB_CONNECTOR constant & comments\n" }, { "from": "human", "value": "<?php\ndefine('DB_HOST', 'db-server');\ndefine('DB_NAME', 'db-name');\ndefine('DB_USER', 'db-user');\ndefine('DB_PASSWORD', 'db-password');\n\ndefine( 'APP_PATH', realpath('..') . '/app' );\n\n/...
php
chosen
[ { "from": "system", "value": "Test: Write TestCase for pagination with parameter 'offset' or 'limit'4\n" }, { "from": "human", "value": "\n<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testi...
php
chosen
[ { "from": "system", "value": "Correct duration when no commands is logged\n" }, { "from": "human", "value": "<?php\n\nnamespace Blablacar\\MemcachedBundle\\DataCollector;\n\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse S...
php
chosen
[ { "from": "system", "value": "[Taxonomy] Move configuration to Bundle Extension.\n" }, { "from": "human", "value": "<?php\n\nnamespace Clastic\\TaxonomyBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Config\\FileLocator;\nus...
php
chosen
[ { "from": "system", "value": "Fix drip interval from 5e3 to 3e5\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCaffeine\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Routing\\Middleware;\n\nclass LaravelCaffeineDripMiddleware implements Middleware\n{\n /...
php
chosen
[ { "from": "system", "value": "Create unknown targets with require\n" }, { "from": "human", "value": "<?php\n\nnamespace Mockery\\Generator\\StringManipulation\\Pass;\n\nuse Mockery\\Generator\\MockConfiguration;\n\nclass ClassPass implements Pass\n{\n public function apply($code, MockConfigur...
php
chosen
[ { "from": "system", "value": "Revert \"removed unnecessary code, tks @fabiorphp\"\n\nThis reverts commit c85ca25a06f6b3073e2e7cfaecb42f9d81a2d774.\n" }, { "from": "human", "value": "<?php\n\nnamespace Dafiti\\Log;\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\NewRelicHandler;\nuse Monolog\\Hand...
php
chosen