conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Remove the variadic operator which it's not necessary\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\Acl\\Middleware;\n\nuse Closure;\n\nclass CanAtLeastMiddleware\n{\n /**\n * Handle an incoming request.\n *\n * @param \\Illuminate\\Ht...
php
chosen
[ { "from": "system", "value": "Support yield alias of block" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\Lexer\\Scanner;\n\nuse Phug\\Lexer\\ScannerInterface;\nuse Phug\\Lexer\\State;\nuse Phug\\Lexer\\Token\\BlockToken;\n\nclass BlockScanner implements ScannerInterface\n{\n publi...
php
chosen
[ { "from": "system", "value": ":hammer: Rename nonceGenerator() method to getNonceGenerator().\n" }, { "from": "human", "value": "<?php\n\nnamespace Risan\\OAuth1\\Request;\n\ninterface RequestBuilderInterface\n{\n /**\n * Get the ConfigInterface instance.\n *\n * @return \\Risan\\...
php
chosen
[ { "from": "system", "value": "Add extra whitespace in front of text node..\n" }, { "from": "human", "value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for mo...
php
chosen
[ { "from": "system", "value": "Fix application path detection, happens on image update\n" }, { "from": "human", "value": "<?php\r\n\r\n// Try to find the application root directory.\r\n// Env Variable 'ApplicationPath' is set by the add_environment_variables.ps1\r\n// script. The others are \"def...
php
chosen
[ { "from": "system", "value": "Use request instead of Input to make it more consistent\n" }, { "from": "human", "value": "<?php\nnamespace Rap2hpoutre\\LaravelLogViewer;\n\nuse Illuminate\\Routing\\Controller;\nuse Illuminate\\Support\\Facades\\File;\nuse Illuminate\\Support\\Facades\\View;\nuse ...
php
chosen
[ { "from": "system", "value": "Remove first attempt at non-cake setup\n" }, { "from": "human", "value": "<?php\n\n/* \n * Copyright 2015 Origami Structures\n */\n\n/**\n * Define the constants below when using this plug-in in a non-cakephp environment\n * \n * The DS constant should be the platfo...
php
chosen
[ { "from": "system", "value": "Update Test according sad reality" }, { "from": "human", "value": "<?php\n\nclass GiphyTest extends TestCaseBase\n{\n public function testOne()\n {\n $this->assertEmbed(\n 'http://giphy.com/gifs/puppies-cute-animals-asdfghjkl-6UZFwMYqCeXi8',\...
php
chosen
[ { "from": "system", "value": "Fix object creation 5.3 compatible\n" }, { "from": "human", "value": "<?php\n\n/**\n * Class MagicTest\n */\nclass MagicTest extends PHPUnit_Framework_TestCase\n{\n /**\n *\n */\n public function testAssertIsInvokable()\n {\n $this->assertIns...
php
chosen
[ { "from": "system", "value": "Fix issue with annotation loading on HHVM\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the reva2/jsonapi.\n *\n * (c) Sergey Revenko <dedsemen@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * fil...
php
chosen
[ { "from": "system", "value": "Add description to Poste in PostFixtures\n" }, { "from": "human", "value": "<?php\n\n/*\n Alexandre Couedelo @ 2015-02-17 20:15:24\n Importé depuis Emagine/incipio\n */\n\nnamespace mgate\\PersonneBundle\\DataFixtures\\ORM;\n\nuse Doctrine\\Common\\DataFixtures...
php
chosen
[ { "from": "system", "value": "Use a FutureResponse object in the run command\n\nFixes running centipede. `PHP Catchable fatal error: Argument 2 passed to Centipede\\Console\\Command\\Run::Centipede\\Console\\Command\\{closure}() must be an instance of Symfony\\Component\\BrowserKit\\Response, instance of G...
php
chosen
[ { "from": "system", "value": "Simplify and make it a bit easier to read output\n" }, { "from": "human", "value": "<?php\n/* All code covered by the BSD license located at http://silverstripe.org/bsd-license/ */\n\nnamespace Marketo\\CliTools;\n\nuse Composer\\Script\\Event;\n\n/**\n * Task for a...
php
chosen
[ { "from": "system", "value": "Add top & footer navigation\n" }, { "from": "human", "value": "<?php\n \nuse Dedato\\SoluForce\\Setup;\n\n/* ==========================================================================\n Timber Setup\n ============================================================...
php
chosen
[ { "from": "system", "value": "Add not-enabled as condition for finding unconfirmed users\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Juvem package.\n *\n * (c) Erik Theoboldt <erik@theoboldt.eu>\n *\n * For the full copyright and license information, please view th...
php
chosen
[ { "from": "system", "value": "Set a default value of false\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMenusTable extends Migration\n{\n\n /**\n * Run the migrations.\n *\n ...
php
chosen
[ { "from": "system", "value": "Support code+message in exception pages\n" }, { "from": "human", "value": "<?php\n\nnamespace Radvance\\WhoopsHandler;\n\nuse Silex\\Application;\nuse Whoops\\Handler\\Handler;\n\nclass UserWhoopsHandler extends Handler\n{\n private $application;\n\n public fu...
php
chosen
[ { "from": "system", "value": "Add red warning at top to stop people who don't read.\n" }, { "from": "human", "value": "<div class=\"navbar navbar-default\">\n\t<div class=\"navbar-header\">\n\t\t<a class=\"navbar-brand\" href=\"#\"><?php echo $core->framework->settings->get('company_name'); ?></...
php
chosen
[ { "from": "system", "value": "Fix template loading in Windows\n" }, { "from": "human", "value": "<?php\n\nuse Sabre\\HTTP;\n\nif (!function_exists('dd')) {\n\tfunction dd()\n\t{\n\t\tvar_dump(func_get_args());\n\t\tdie();\n\t}\n}\n\nif (!function_exists('send_response')) {\n\tfunction send_respo...
php
chosen
[ { "from": "system", "value": "Make site title a link to the homepage\n" }, { "from": "human", "value": "<header class='jumbotron'><h1 class='main_title'>Movie List</h1>\n\t<nav>\n\t\t<ul class='nav nav-pills'>\n\t\t\t<?= $page_controller->get_nav_items(); ?>\n\t\t</ul>\n\t</nav>\n</header>" },...
php
chosen
[ { "from": "system", "value": "Update subject value (Use app.name)" }, { "from": "human", "value": "<?php\n\nnamespace Webup\\LaravelHelium\\Contact\\Mail;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse Illuminate\\Mail\\Mailable;\nuse Illuminate\\Queue\\S...
php
chosen
[ { "from": "system", "value": "Update cookie-based login process event\n\nエラーログによると、クッキーベースのログインをしたとき、\nログイン履歴を保存するためのフック関数において\nhttps://github.com/fetus-hina/stat.ink/blob/ec679de7b6402be34edbff51a4b54b8cd6046a87/config/web/user.php#L38\nの identity プロパティが見つからない時があるらしい。\n\nこの identity は \\yii\\web\\User によって...
php
chosen
[ { "from": "system", "value": "Use traits in new entity\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of By Night.\n * (c) 2013-2020 Guillaume Sainthillier <guillaume.sainthillier@gmail.com>\n *\n * This source file is subject to the MIT license that is bundled\n * with thi...
php
chosen
[ { "from": "system", "value": "Remove unneeded variable from sample config file\n" }, { "from": "human", "value": "<?php\n\n// Edit the lines below to add your Flickr API Key and Secret\n// You can get these from http://www.flickr.com/services/apps/create/apply/\n\n$flickrApiKey = 'PUT_YOUR_FLICK...
php
chosen
[ { "from": "system", "value": "Add correct renderer to Laravel config\n" }, { "from": "human", "value": "<?php return [\n\n\t/**\n\t * The crumb implementation\n\t */\n\t'crumb' => 'Coreplex\\Crumbs\\Components\\Crumb',\n\n\t/**\n\t * The renderer implementation\n\t */\n\t'renderer' => 'Coreplex\...
php
chosen
[ { "from": "system", "value": "Enhance Appointment search results view by adding links" }, { "from": "human", "value": "<li class=\"list-group-item\">\n{!! Button::normal($appointment->widget()->code(4))->withIcon(Icon::calendar())->asLinkTo(route('manager.business.agenda.index', $appointment->bu...
php
chosen
[ { "from": "system", "value": "[Attribute] Remove form type from attribute type\n\nNow it's autogenerated based on attributeType type\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 licen...
php
chosen
[ { "from": "system", "value": "Use tc instead of t to apply a translation context\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file contains calls to t(), tc() and t2() functions to let the translation system know about strings to be translated.\n * It is never loaded or executed.\n */...
php
chosen
[ { "from": "system", "value": "Fix concstructor visiblity in risk assessment block class\n" }, { "from": "human", "value": "<?php\n\nclass Scompany_Sign2pay_Block_RiskAssessment extends Mage_Core_Block_Template\n{\n protected $_order;\n\n protected function __construct()\n {\n par...
php
chosen
[ { "from": "system", "value": "Make implementation compatible with PHP 5.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Eluceo\\iCal\\Property;\n\nclass ArrayValue implements ValueInterface\n{\n /**\n * The value.\n *\n * @var array\n */\n protected $values;\n\n ...
php
chosen
[ { "from": "system", "value": "Add \"email an invoice\" method\n\n| Q | A\n| ------------- | ---\n| Branch | master\n| Bug fix? | no\n| New feature? | yes\n| BC breaks? | no\n| Deprecations? | no\n| Tests pass? | yes\n| Fixed tickets | n/a\n| License | MIT\n| Doc PR ...
php
chosen
[ { "from": "system", "value": "Disable reordering when add is disabled\n" }, { "from": "human", "value": "<div class=\"portlet portlet-sortable light bordered\" :id=\"guid\">\n <div class=\"portlet-title\">\n <div class=\"caption font-green-sharp\">\n <i class=\"icon-speech f...
php
chosen
[ { "from": "system", "value": "Use latest cub widget js\n" }, { "from": "human", "value": "<?php namespace Cub\\CubLaravel;\n\nuse Config;\n\nclass CubWidget\n{\n /**\n * Get Cub Widget header script\n *\n * @return string\n */\n public function headerScript()\n {\n ...
php
chosen
[ { "from": "system", "value": "Update Providers to match laravel/laravel repo\n" }, { "from": "human", "value": "<?php\n\nnamespace RadDB\\Providers;\n\nuse Illuminate\\Support\\Facades\\Event;\nuse Illuminate\\Foundation\\Support\\Providers\\EventServiceProvider as ServiceProvider;\n\nclass Even...
php
chosen
[ { "from": "system", "value": "Fix bad key format for config component\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpTabs\\Component;\n\nabstract class Config\n{\n /**\n * @var array config options\n */\n private static $data = array();\n\n /**\n * Gets a defined option\n * ...
php
chosen
[ { "from": "system", "value": "Return null rather than throw error on value not found\n" }, { "from": "human", "value": "<?php\n/**\n * Class KeylistsService\n *\n * @author del\n */\n\nnamespace Delatbabel\\Keylists\\Services;\n\nuse Delatbabel\\Keylists\\Models\\Keyvalue;\nuse Illuminate\\Suppo...
php
chosen
[ { "from": "system", "value": "Add methods to the storage interface to inject query an error log processors\n" }, { "from": "human", "value": "<?php\n\nnamespace Silktide\\Reposition\\Storage;\n\nuse Silktide\\Reposition\\QueryBuilder\\TokenSequencerInterface;\nuse Silktide\\Reposition\\Metadata\...
php
chosen
[ { "from": "system", "value": "Add test for CommandNotFoundError exception being thrown by Executor.\n" }, { "from": "human", "value": "<?php\n\nclass ExecutorTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @var \\MeadSteve\\Console\\Executor\n */\n protected $testedExecutor;\n...
php
chosen
[ { "from": "system", "value": "Use application with cli interface\n" }, { "from": "human", "value": "<?php\n\nnamespace CacheTool\\Command;\n\nuse CacheTool\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\n\nabst...
php
chosen
[ { "from": "system", "value": "Create basic test: file size\n" }, { "from": "human", "value": "<?php\nnamespace Tests;\n\nrequire __DIR__ . \"/../src/Analyzer.php\";\n\nuse PHPUnit\\Framework\\TestCase;\nuse AnalyzerNS\\Analyzer;\n\nclass AnalyzerTest extends TestCase\n{\n \n public functio...
php
chosen
[ { "from": "system", "value": "Fix type / batchId parameter order bug\n" }, { "from": "human", "value": "<?php\n\nnamespace CascadeEnergy\\DistributedOperations\\Elasticsearch;\n\nuse CascadeEnergy\\DistributedOperations\\Operation;\nuse Elasticsearch\\Helper\\Iterators\\SearchHitIterator;\n\ncla...
php
chosen
[ { "from": "system", "value": "Replace some spaces with tabs\n" }, { "from": "human", "value": "<?php\n\nclass MailMandrillTransportTest extends PHPUnit_Framework_TestCase {\n\n public function testSend()\n {\n $message = new Swift_Message('Foo subject', 'Bar body');\n $messag...
php
chosen
[ { "from": "system", "value": "Make rememberable cache flushes trigger on deletes too\n" }, { "from": "human", "value": "<?php\n\nnamespace Amelia\\Rememberable;\n\nuse Amelia\\Rememberable\\Query\\Builder as QueryBuilder;\nuse Amelia\\Rememberable\\Eloquent\\Builder as EloquentBuilder;\nuse Illu...
php
chosen
[ { "from": "system", "value": "Allow user switching in test environments" }, { "from": "human", "value": "<?php\n\nnamespace SheaDawson\\UserSwitcher;\n\nuse SilverStripe\\Control\\Director;\nuse SilverStripe\\Control\\Controller;\nuse SilverStripe\\Security\\Permission;\n\n/**\n * UserSwitcher\n...
php
chosen
[ { "from": "system", "value": "Test deep association queries in Doctrine2::seeInRepository\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Tests;\n\nuse App\\Entity\\Comment;\nuse Codeception\\Util\\HttpCode;\n\nclass CommentCest\n{\n public function createComment(FunctionalTester $...
php
chosen
[ { "from": "system", "value": "Update test to reflect changes to class\n" }, { "from": "human", "value": "<?php\n\nnamespace FullyBaked\\Pslackr;\n\nuse PHPUnit_Framework_TestCase;\n\nclass PslackrTest extends PHPUnit_Framework_TestCase\n{\n public function testConstructorSetsConfigProperty()\...
php
chosen
[ { "from": "system", "value": "Remove reference of stock from the main module.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @package shop\n * @subpackage exceptions\n */\nclass ShopBuyableException extends Exception {\n\t\n}\n\n/**\n * @package shop\n * @subpackage exceptions\n */\nclass S...
php
chosen
[ { "from": "system", "value": "Fix not going to dominion status page after logging via 'remember me'\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Http\\Controllers;\n\nuse Auth;\nuse OpenDominion\\Services\\Dominion\\SelectorService;\n\nclass HomeController extends Abstract...
php
chosen
[ { "from": "system", "value": "Update fatal error handling to work with newer versions of yii\n" }, { "from": "human", "value": "<?php\n\nnamespace webtoolsnz\\scheduler;\n\n/**\n * Class ErrorHandler\n * @package webtoolsnz\\scheduler\n */\nclass ErrorHandler extends \\yii\\console\\ErrorHandler...
php
chosen
[ { "from": "system", "value": "Set a micropub token when not in production\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\Facades\\Storage;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MicropubSessionProvider extends ServiceProvider\n{\n ...
php
chosen
[ { "from": "system", "value": "Change route path column to default 191 chars long for the migration to work correctly with utf8mb4_unicode_ci collation (for now at least, until Sam's changes blow it all up).\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nus...
php
chosen
[ { "from": "system", "value": "Send application/json instead of urlencoded for webhooks\n" }, { "from": "human", "value": "<?php\nnamespace CodeDay\\Clear\\Models\\Application;\n\nuse Illuminate\\Database\\Eloquent;\n\nclass Webhook extends \\Eloquent {\n protected $table = 'applications_webho...
php
chosen
[ { "from": "system", "value": "Change tag and include generator tag" }, { "from": "human", "value": "<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n<meta name=\"author\" content=\"Bludit CMS\">\n\n<!-- Dynamic title tag -->\n<...
php
chosen
[ { "from": "system", "value": "Update Dotenv config to the new version\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of gpupo/submarino-sdk\n * Created by Gilmar Pupo <contact@gpupo.com>\n * For the information of copyright and license you should...
php
chosen
[ { "from": "system", "value": "Allow only adding importers to model admins with scaffolded importers\n" }, { "from": "human", "value": "<?php\n\nclass ImportAdminExtension extends Extension{\n\t\n\t/**\n\t * Prevent existing import form from showing up\n\t * @todo: there should be a better way to...
php
chosen
[ { "from": "system", "value": "Add links to status filtering\n" }, { "from": "human", "value": "@extends('layouts.default')\n\n@section('content')\n <h1>Support Tickets</h1>\n\n <table class=\"table table-striped table-hover\">\n <thead>\n <th>Title</th>\n <th>P...
php
chosen
[ { "from": "system", "value": "Fix warning when no listener is registered\n" }, { "from": "human", "value": "<?php\n// Copyright (c) 2018 Fernando Bevilacqua <dovyski@gmail.com>\n// Licensed under the MIT license, see LICENSE file.\n\nnamespace Codebot;\n\nclass Signal {\n\tprivate $listeners;\n\...
php
chosen
[ { "from": "system", "value": "Fix de retorno __toString() erroneo cuando se relaciona un objeto Null.\n" }, { "from": "human", "value": "<?php\n\n/**\n * PluginComuna\n * \n * This class has been auto-generated by the Doctrine ORM Framework\n * \n * @package ##PACKAGE##\n * @subpackage ##SUBP...
php
chosen
[ { "from": "system", "value": "Add dumym docblock when creating function\n\nCloses #34\n" }, { "from": "human", "value": "{!! '<?'.'php' !!}\ndeclare(strict_types=1);\n\nnamespace phln\\{{$ns}};\n\nuse function phln\\fn\\curryN;\n\nconst {{$name}} = '\\\\phln\\\\{{$ns}}\\\\{{$name}}';\nconst 𝑓{{...
php
chosen
[ { "from": "system", "value": "Remove DI on command construct.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Orchestra\\Foundation\\Providers;\n\nuse Illuminate\\Contracts\\Foundation\\Application;\n...
php
chosen
[ { "from": "system", "value": "Reduce Hero Quote Cyan size\n" }, { "from": "human", "value": "<?php\n\n$feature_color = 'cyan';\n$feature_kind = 'quote';\n\nrequire dirname(__FILE__) . '/../worldskills_hero.php';\n" }, { "from": "gpt", "value": "<?php\n\n$feature_color = 'cyan';\n$fea...
php
chosen
[ { "from": "system", "value": "Fix the MySQL issue with not nullable timestamp\n\n" }, { "from": "human", "value": "<?php\n\nuse Arcanesoft\\Blog\\Bases\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\n/**\n * Class CreateBlogPostsTable\n *\n * @author ARCANEDEV <arcanedev.maroc...
php
chosen
[ { "from": "system", "value": "Modify API so responses are no longer wrapped\n" }, { "from": "human", "value": "<?php\n\nclass ResponseHelpers {\n public static function respondNotFound() {\n @header(\"HTTP/1.0 404 Not Found\");\n }\n\n public static function respondServerError() {\n @he...
php
chosen
[ { "from": "system", "value": "Add date to test page\n" }, { "from": "human", "value": "<div class=\"h1\">TEST PAGE</div>" }, { "from": "gpt", "value": "<div class=\"h1\">TEST PAGE</div>\n\n<?php echo time();?>\n<br>\n<?php echo date('Y-m-d H:i:s T');?>\n" } ]
php
chosen
[ { "from": "system", "value": "Fix deprecated usage of the config component\n" }, { "from": "human", "value": "<?php\n\nnamespace Incenteev\\TranslationCheckerBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definit...
php
chosen
[ { "from": "system", "value": "Make search.elastic.version an int not a string\n\nSummary:\nPuppet is not budging in allowing me to use an int so let's just make it a int.\n\nThis fixes prod for when we want to change versions too.\n\nChange-Id: I348d674762953433bd77c6ff8efb4246d5d68b73\n\nReviewers: mmodell...
php
chosen
[ { "from": "system", "value": "Resolve Guzzle from the container\n\nIn case someone is swapping Guzzle out with a mock or something else..." }, { "from": "human", "value": "<?php\n\nnamespace Benwilkins\\FCM;\n\nuse GuzzleHttp\\Client;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\N...
php
chosen
[ { "from": "system", "value": "Update test fixture support message\n" }, { "from": "human", "value": "<?php\n\n$message = 'Requires the PHP7 amqp extension.';\n\nreturn class_exists('AMQPQueue');\n" }, { "from": "gpt", "value": "<?php\n\n$message = 'Requires the amqp extension.';\n\nr...
php
chosen
[ { "from": "system", "value": "Replace deprecated share() method for Laravel 5.4 compatibility\n" }, { "from": "human", "value": "<?php \n\nnamespace Larapi;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LarapiServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading o...
php
chosen
[ { "from": "system", "value": "Add output buffering so we have option to send headers later on\n" }, { "from": "human", "value": "<?\n//Application entry point\ndefine('ROOT', dirname(__FILE__));\n\ninclude(ROOT.'/lib/autoload.php');\ninclude(ROOT.'/vendor/autoload.php');\n\nif($config['env'] == ...
php
chosen
[ { "from": "system", "value": "Add iterable to list of not allowed doubles types in specification\n" }, { "from": "human", "value": "<?php\n\nnamespace spec\\PhpSpec\\CodeAnalysis;\n\nuse PhpSpec\\CodeAnalysis\\NamespaceResolver;\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass Sta...
php
chosen
[ { "from": "system", "value": "Update bundle configuration for Symfony 4.2 change" }, { "from": "human", "value": "<?php\n\nnamespace LongRunning\\Bundle\\LongRunningBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config...
php
chosen
[ { "from": "system", "value": "Check if any translations are present in file\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Wingu\\FluffyPoRobot\\Translation\\Loader;\n\nuse Symfony\\Component\\Translation\\Exception\\InvalidResourceException;\nuse Symfony\\Comp...
php
chosen
[ { "from": "system", "value": "Append template name and replace by i18n friendly version of basename\n" }, { "from": "human", "value": "<?php namespace Leean\\Endpoints\\Inc;\n\n/**\n * Class Template\n *\n * @package Leean\\Endpoints\\Inc\n */\nclass Template\n{\n\t/**\n\t * Returns the type for...
php
chosen
[ { "from": "system", "value": "[AIMRefundRequest] Add test when no credit card expiry dates are set\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\AuthorizeNet\\Message;\n\nuse Omnipay\\Tests\\TestCase;\n\nclass AIMRefundRequestTest extends TestCase\n{\n public function setUp()...
php
chosen
[ { "from": "system", "value": "Convert notice sot use new model format\n" }, { "from": "human", "value": "<!-- Notices -->\n\t<?php\n\t$notices = \\FelixOnline\\Core\\BaseManager::build('FelixOnline\\Core\\Notice', 'notices');\n\t$notices->filter('hidden = 0')\n\t\t->filter('end_time > NOW()')\n\...
php
chosen
[ { "from": "system", "value": "Call other seeds through classes.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function run()\n {...
php
chosen
[ { "from": "system", "value": "Add source and sourceId query parameter support\n\nTo match the spec published on SwaggerHub.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Transformers\\ServiceTransformer;\nuse App\\Models\\Service;\nuse Illuminate...
php
chosen
[ { "from": "system", "value": "Drop pagination for Timeline platforms\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Inertia\\Inertia;\nuse App\\Models\\Platform;\n\nclass TimelineController extends Controller\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Throw an exception if the configured driver does not exist.\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass InverterServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates that the l...
php
chosen
[ { "from": "system", "value": "Fix formatting of previous merge\n" }, { "from": "human", "value": "<?php\n\nnamespace Igorw\\Trashbin;\n\nclass FileStorage implements Storage\n{\n private $storageDirectory;\n \n public function __construct($storageDirectory)\n {\n $this->storag...
php
chosen
[ { "from": "system", "value": "Add &nbsp; to header values to force a value\n" }, { "from": "human", "value": "<?php\n$subject = $this->email->getHeaderValue('Subject', '<Empty Subject>');\n$this->title($subject);\n?>\n<h1 class=\"heading\">\n <a href=\"<?= $this->escape()->attr($this->route('...
php
chosen
[ { "from": "system", "value": "Create option to not render sign up link\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/base.php';\nrequire_once __DIR__ . '/labeled-input.php';\nrequire_once __DIR__ . '/text-button.php';\nrequire_once __DIR__ . '/../../lib/utils.php';\n\nclass ...
php
chosen
[ { "from": "system", "value": "Clean skippable tests that are never skipped\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 LICE...
php
chosen
[ { "from": "system", "value": "Define Node properties and methods\n" }, { "from": "human", "value": "<?php\nnamespace Gt\\Dom;\n\n/**\n * Represents any web page loaded in the browser and serves as an entry point\n * into the web page's content, the DOM tree (including elements such as\n * <body>...
php
chosen
[ { "from": "system", "value": "Remove Email module - missed tests\n" }, { "from": "human", "value": "<?php namespace CodeIgniter\\Config;\n\nuse Config\\Email;\n\nclass ConfigTest extends \\CIUnitTestCase\n{\n\n\tpublic function testCreateSingleInstance()\n\t{\n\t\t$Config = Config::get(...
php
chosen
[ { "from": "system", "value": "Add isRegistered method to lead entity\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Entities;\n\nuse Illuminate\\Database\\Eloquent\\Model as Model;\n\nclass Lead extends Model\n{\n\n protected $table = 'leads';\n\n public $timestamps = false;\n\...
php
chosen
[ { "from": "system", "value": "Set focus on the dropdown for category popover\n" }, { "from": "human", "value": "<section id=\"main\">\n <section>\n <h3><?= t('Change category for the task \"%s\"', $values['title']) ?></h3>\n <form method=\"post\" action=\"<?= $this->url->href('b...
php
chosen
[ { "from": "system", "value": "Swap to the correct Uuid library\n" }, { "from": "human", "value": "<?php\nnamespace SmoothPhp\\CommandBus;\n\nuse Rhumsaa\\Uuid\\Uuid;\nuse SmoothPhp\\Contracts\\CommandBus\\Command;\n\n/**\n * Class Command\n * @package SmoothPhp\\CommandBus\n * @author Simon Benn...
php
chosen
[ { "from": "system", "value": "Remove whatever was causing HHVM segfault\n" }, { "from": "human", "value": "<?php\n\nnamespace Pinq\\Tests\\Integration\\Collection;\n\nclass ApplyTest extends CollectionTest\n{\n /**\n * @dataProvider Everything\n */\n public function testThatExecuti...
php
chosen
[ { "from": "system", "value": "Add column for new OAuth thing.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\n/**\n * Class ChangesFo...
php
chosen
[ { "from": "system", "value": "Rename path for assessment add form\n" }, { "from": "human", "value": "<?php\n\nuse SensioLabs\\Behat\\PageObjectExtension\\PageObject\\Page;\n\nclass AddAssessment extends Page\n{\n protected $path = \"/assessments/add\";\n}\n" }, { "from": "gpt", "v...
php
chosen
[ { "from": "system", "value": "Remove cache for source trait\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Orchid\\Screen\\Traits;\n\nuse Illuminate\\Support\\Arr;\n\n/**\n * Trait AsSource.\n */\ntrait AsSource\n{\n /**\n * @var array|null\n */\n ...
php
chosen
[ { "from": "system", "value": "Add second image thumbnail example\n" }, { "from": "human", "value": "// Add featured images support\nadd_theme_support('post-thumbnails');\n\n// Image dimensions\nadd_image_size('random-profile', 200, 200, true);\n" }, { "from": "gpt", "value": "// Add ...
php
chosen
[ { "from": "system", "value": "Add trailing slash using the $path parameter" }, { "from": "human", "value": "<header class=\"banner container\" role=\"banner\">\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <a class=\"brand\" href=\"<?php echo home_url(); ?>/\"><?php bloginfo('name...
php
chosen
[ { "from": "system", "value": "Exclude secure false from example\n" }, { "from": "human", "value": "<?php\n\n/*\n * Include the composer autoload file.\n */\n\ninclude('../vendor/autoload.php');\n\n/*\n * Load in the configuration information.\n * Make sure to replace the keys with your own.\n */...
php
chosen
[ { "from": "system", "value": "Remove git_upload/receive_pack() methods from GitRepository class---not planned for this class anymore\n" }, { "from": "human", "value": "<?php\n\nclass GitRepository\n{\n public $path;\n \n public function __construct($path)\n {\n $this->path = $...
php
chosen
[ { "from": "system", "value": "Use the correct method for a VARCHAR column\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMediaEndpointTable extend...
php
chosen
[ { "from": "system", "value": "Return types in manager tests\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 copyright an...
php
chosen
[ { "from": "system", "value": "Remove unnesearry log when testing for timestamp\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nuse Carbon\\Carbon;\n\nclass FeedMeDateHelper\n{\n // Public Methods\n // =========================================================================\n...
php
chosen