conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Implement streamMediaFile in DownloadHandler mock\n" }, { "from": "human", "value": "<?php\nnamespace Ouzo\\Tests;\n\nclass MockDownloadHandler\n{\n private $_fileName;\n\n public function downloadFile($fileData)\n {\n $this->_fileName = $fileData['l...
php
chosen
[ { "from": "system", "value": "BAP-11706: Create new entity \"oro_translation_key\"\n- cr updates" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\Tests\\Unit\\Entity;\n\nuse Oro\\Bundle\\TranslationBundle\\Entity\\Language;\nuse Oro\\Bundle\\TranslationBundle\\...
php
chosen
[ { "from": "system", "value": "[DQL] Change hardcoded enabled value to parameter in where statements\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 L...
php
chosen
[ { "from": "system", "value": "Delete rudolf dir from img url\n" }, { "from": "human", "value": "<?php\n\nnamespace Rudolf\\Component\\Images;\n\nclass Image\n{\n public static function resize($url, $w, $h)\n {\n $url = str_replace('/content/', '', $url);\n return CONTENT.'/ca...
php
chosen
[ { "from": "system", "value": "Add comment explaining details of the dynamic baseUri.\n" }, { "from": "human", "value": "<?php\n/*\n * Modified: prepend directory path of current file, because of this file own different ENV under between Apache and command line.\n * NOTE: please remove this comme...
php
chosen
[ { "from": "system", "value": "Remove sleep from page retrieval\n" }, { "from": "human", "value": "<?php\n\nclass GalleryController extends BaseController {\n\n public $return_data = [\n 'per_page' => 10\n ];\n\n public function getIndex()\n {\n $this->return_data['entri...
php
chosen
[ { "from": "system", "value": "FIX \"message: Class \\SecucardConnect\\Product\\Payment\\Model\\Merchant does not exist\" for some php versions\n" }, { "from": "human", "value": "<?php\n\nnamespace SecucardConnect\\Product\\Payment\\Model;\n\nuse SecucardConnect\\Product\\Common\\Model\\BaseModel...
php
chosen
[ { "from": "system", "value": "lva-27: Add a directions field to the venues\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddDirectionsToVenueTable extends Migration\n{\n /**\n * Run the m...
php
chosen
[ { "from": "system", "value": "Add old kickoff deck redirect\n" }, { "from": "human", "value": "<?php\nnamespace CodeDay\\Clear\\Http\\Controllers\\Manage\\DayOf;\n\nuse \\CodeDay\\Clear\\Models;\n\nclass DeckController extends \\CodeDay\\Clear\\Http\\Controller {\n\n public function getIndex(...
php
chosen
[ { "from": "system", "value": "Update self reference in constructor" }, { "from": "human", "value": "<?php\n\nclass Log\n{\n\tpublic $tree;\n\tpublic $height;\n\tpublic $health;\n\tpublic $image;\n\tpublic $comment;\n\t\n\tfunction __construct($tre, $hei, $hea, $img, $com)\n\t{\n\t\t$tree = $tre;...
php
chosen
[ { "from": "system", "value": "Add method to get the right block type from a module extra\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Pages\\Domain\\ModuleExtra;\n\nuse Common\\Exception\\InvalidModuleExtraType;\nuse JsonSerializable;\n\nfinal class ModuleExtraType imp...
php
chosen
[ { "from": "system", "value": "Fix Form compatibility issue with Symfony 2.1\n" }, { "from": "human", "value": "<?php\nnamespace Koala\\ContentBundle\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\n\nclass LayoutsFormType extends AbstractType\n{\n var $provider;\n\n public function _...
php
chosen
[ { "from": "system", "value": "Change relative file path to absolute path\n\nWe know the sites folder exists at the same location always because of\ndevbox.\n" }, { "from": "human", "value": "<?php\n\n$site = $app['controllers_factory'];\n\n$site->get('/', function() use ($twig) {\n\n $siteFin...
php
chosen
[ { "from": "system", "value": "Add missing put to client interface\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace AtlassianConnectBundle\\Service;\n\nuse AtlassianConnectBundle\\Entity\\TenantInterface;\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile...
php
chosen
[ { "from": "system", "value": "Add list:server command enable option\n" }, { "from": "human", "value": "<?php\n/**\n * SiteCLI - Help you manage Nginx local development configuration\n *\n * @author panlatent@gmail.com\n * @link https://github.com/panlatent/site-cli\n * @license https://opens...
php
chosen
[ { "from": "system", "value": "Refactor to use new guzzle methods / style\n" }, { "from": "human", "value": "<?php\n\nnamespace FullyBaked\\Pslackr;\n\nuse Guzzle\\Http\\Client;\n\nclass Pslackr implements Transport\n{\n protected $token;\n\n public function __construct($config)\n {\n ...
php
chosen
[ { "from": "system", "value": "Return store assets as JSON\n" }, { "from": "human", "value": "<?php\r\n\r\n/**\r\n * eTinyMCE backend controller.\r\n *\r\n * @package Rootd_Tinymce\r\n * @author Rick Buczynski <me@rickbuczynski.com>\r\n * @copyright 2014 Rick Buczynski. All Rights Reserved.\...
php
chosen
[ { "from": "system", "value": "Fix PHPDoc wrong type annotation\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PhpTabs package.\n *\n * Copyright (c) landrok at github.com/landrok\n *\n * For the full copyright and license information, please see\n * <https://github.c...
php
chosen
[ { "from": "system", "value": "Add view __call method for testing.\n" }, { "from": "human", "value": "<?php\n/**\n * \\YafUnit\\View 通过模拟一个无法渲染无法读取模板的视图引擎获取视图中变量\n * 子类\\Yaf\\View\\Simple\n * @author Lancer He <lancer.he@gmail.com>\n * @since 2014-04-18\n * @update 2015-07-10\n */\n\nnamespace Y...
php
chosen
[ { "from": "system", "value": "Use spaces instead of tab\n" }, { "from": "human", "value": "<?php\nnamespace App\\Controller;\n\nclass Example\n{\n\tpublic function getName($request, $response, $route)\n\t{\n $data = ['greeting' => 'Hi, ' . $route->getWildcard('name'), 'method' => 'You use...
php
chosen
[ { "from": "system", "value": "Add trailing comma in array for consistency\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Factories;\n\nuse Carbon\\Carbon;\nuse OpenDominion\\Models\\Round;\nuse OpenDominion\\Models\\RoundLeague;\n\nclass RoundFactory\n{\n // todo: move to...
php
chosen
[ { "from": "system", "value": "Update DB to use PHP MySQLi extensions\n\nclass.db.php has been updated to utilise MySQLi extenstions (as I should\nbe using)\n" }, { "from": "human", "value": "<?php\n// RadioPanel - Database class\n// (C) Matt Ribbins - matt@mattyribbo.co.uk\n// \nclass Database ...
php
chosen
[ { "from": "system", "value": "Use proper index in indexer.\n" }, { "from": "human", "value": "<?php\n\nnamespace Gielfeldt\\TransactionalPHP;\n\n/**\n * Class Indexer\n *\n * @package Gielfeldt\\TransactionalPHP\n */\nclass Indexer\n{\n /**\n * @var int[]\n */\n protected $index = ...
php
chosen
[ { "from": "system", "value": "Change timeout type, increase to 2s\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Exception;\nuse GuzzleHttp\\Client;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Node extends Model\n{\n function online()\n {\n try {\n ...
php
chosen
[ { "from": "system", "value": "Remove redundant floatval call when casting to float\n" }, { "from": "human", "value": "<?php\n/**\n * @see https://github.com/zendframework/zend-filter for the canonical source repository\n * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://w...
php
chosen
[ { "from": "system", "value": "Consistency: Rename CredentialStatus class name (with Core suffix)\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU ...
php
chosen
[ { "from": "system", "value": "Set primary site ID as default site ID for existing menus\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace olivestudio\\olivemenus\\migrations;\r\n\r\nuse craft\\db\\Migration;\r\n\r\n/**\r\n * Migration: Add site_id field to olivemenus table migration.\r\n...
php
chosen
[ { "from": "system", "value": "Make getImage non-static, correct default path\n" }, { "from": "human", "value": "<?php\n/**\n * @package Mautic\n * @copyright 2014 Mautic, NP. All rights reserved.\n * @author Mautic\n * @link http://mautic.com\n * @license GNU/GPLv3 http://w...
php
chosen
[ { "from": "system", "value": "Fix errors with Blade parsing\n\nFor some reason, if `@endif` is directly next to a bare string it doesn't parse correctly. This is one way to fix it, another would be to wrap them in Blade \"echo\" tags: `{{ 'active' }}@endif`" }, { "from": "human", "value": "<li c...
php
chosen
[ { "from": "system", "value": "Update usage of the MongoDB adapter\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\nnamespace Imbo\\Behat;\n\nuse Imbo\\EventListener\\ImageVariations;\nuse Imbo\\EventListener\\ImageVariations\\Database\\MongoDB;\nuse Imbo\\EventListener\\ImageVa...
php
chosen
[ { "from": "system", "value": "Fix cache clearer doc block.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Alexander Volodin <mr-stanlik@yandex.ru>\n * @copyright Copyright (c) 2020, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the f...
php
chosen
[ { "from": "system", "value": "Clean up wording, not worth a re-release.\n\n" }, { "from": "human", "value": "<?php \n/* $Id:$ */\n\n// Wrapper code for opening a new window. \n//\n//This program is free software; you can redistribute it and/or\n//modify it under the terms of version 2 of the GNU...
php
chosen
[ { "from": "system", "value": "Update test to match new variable names\n" }, { "from": "human", "value": "<?php\n\nnamespace phpSmug\\Tests;\n\nuse phpSmug\\Client;\n\nclass ClientTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @test\n */\n public function shouldNotHaveToPass...
php
chosen
[ { "from": "system", "value": "Revert \"Simplify queue draining code\"\n\nThis reverts commit cc6f1c3846a77f42c3d5cab013dd012bab2a682a.\n\nNote: The task must be kept on the queue until after it is called.\nOtherwise drain() will be called recursively.\n" }, { "from": "human", "value": "<?php\n\n...
php
chosen
[ { "from": "system", "value": "Use a datetime object to set the expire date instead of a ttl\n" }, { "from": "human", "value": "<?php\n\nnamespace Bgy\\OAuth2;\n\n/**\n * @author Boris Guéry <guery.b@gmail.com>\n */\nclass AccessToken\n{\n private $accessToken;\n private $expiresIn;\n pr...
php
chosen
[ { "from": "system", "value": "Make shared secret translatable again\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n" }, { "from": "human", "value": "<?php\n/** @var array $_ */\n/** @var \\OCP\\IL10N $l */\nscript('spreed', ['admin/signaling-server']);\nst...
php
chosen
[ { "from": "system", "value": "Add publishes for future migrations\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author Ben Rowe <ben.rowe.83@gmail.com>\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\n\nnamespace Benrowe\\Laravel\\Config;\n\nuse Illumi...
php
chosen
[ { "from": "system", "value": "Remove a line that require Gateway/Http/Lib/omise-php lib\n" }, { "from": "human", "value": "<?php\nuse \\Magento\\Framework\\Component\\ComponentRegistrar;\n\nrequire_once dirname(__FILE__) . '/Gateway/Http/Lib/omise-php/lib/Omise.php';\n\nComponentRegistrar::regis...
php
chosen
[ { "from": "system", "value": "Handle non-existent translation_domain table to allow its creation\n\nFixes #2\n" }, { "from": "human", "value": "<?php\n\nnamespace Argentum\\TranslationBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TranslationDomainRepository\n *\n * @author ...
php
chosen
[ { "from": "system", "value": "Make entity repo compatible with parent\n" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\RadBundle\\Doctrine;\n\nuse Doctrine\\ORM\\EntityRepository as BaseEntityRepository;\nuse Doctrine\\ORM\\QueryBuilder;\n\nabstract class EntityRepository extends BaseE...
php
chosen
[ { "from": "system", "value": "Remove unused apps from the DocumentType typeahead\n\nSummary: Ref T10951. This diff removes uninstalled applications from the result set for DocumentType restults\n\nTest Plan: Uninstall an application (diviner for example), then go to the document type search menu and ensure ...
php
chosen
[ { "from": "system", "value": "Use PDO driver for unit tests so everything works on PHP 5.5\n" }, { "from": "human", "value": "<?php\n\nspl_autoload_register(function($class)\n{\n\t$file = __DIR__.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.str_replace('_', '/', $class).'.php';\n\n\tif (is_...
php
chosen
[ { "from": "system", "value": "Fix the template permissions bug.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL;\n\nclass Settings {\n\n public static function module()\n {\n return \\Processwire\\wire('modules')->get('ProcessGraphQL');\n }\n\n public static fun...
php
chosen
[ { "from": "system", "value": "Fix fail if no banner id set\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2015-2017 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed with the hope of\n * attracting more community contributions to the core ecosyste...
php
chosen
[ { "from": "system", "value": "Change last migration to new mig format\n" }, { "from": "human", "value": "<?php\n require_once 'migrate.php';\n\n migrate(\n [\n 'ALTER TABLE\n roundcreatures\n CHANGE\n `action` `action` ENUM(\"NONE\...
php
chosen
[ { "from": "system", "value": "Fix error when run the migrations\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Validator;\n\nclass AppServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap any application ser...
php
chosen
[ { "from": "system", "value": "Fix typo on API util page.\n" }, { "from": "human", "value": "<?php\nnamespace Modules\\Api\\Controllers;\n\nuse \\PVL\\Debug;\nuse \\PVL\\Utilities;\n\nclass IndexController extends BaseController\n{\n public function testAction()\n {\n $this->doNotRen...
php
chosen
[ { "from": "system", "value": "Reset display before each message\n" }, { "from": "human", "value": "<?php\n\nfunction pole_display_price($label, $price) {\n $sock= socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n if (@socket_connect($sock, '127.0.0.1', 1888)) {\n socket_write($sock,\n ...
php
chosen
[ { "from": "system", "value": "Update general twitter share copy.\n" }, { "from": "human", "value": "<footer class=\"primary\">\n {{ $settings['site_title'] }} is a program of <a href=\"https://www.dosomething.org\">DoSomething.org</a>.\n\n <ul class=\"footer__links\">\n <li><a class=\"socia...
php
chosen
[ { "from": "system", "value": "Update use of deprecated CssSelector class\n" }, { "from": "human", "value": "<?php\n\nnamespace PigeonWebkit;\n\nuse Symfony\\Component\\CssSelector\\CssSelector,\n Behat\\Mink\\Session;\n\nclass FunctionalPigeon extends CapybaraWebkitDriver {\n\n protected $brow...
php
chosen
[ { "from": "system", "value": "Add ”Insert Test Cases“ link\n\n in views/test-excution/index.php" }, { "from": "human", "value": "<?php\n\nuse yii\\helpers\\Html;\nuse yii\\grid\\GridView;\n\n/* @var $this yii\\web\\View */\n/* @var $searchModel app\\models\\TestExcutionSearch */\n/* @var $dataPr...
php
chosen
[ { "from": "system", "value": "Update the way to register package's namespaces using L5's way\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Menus;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MenusServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loadin...
php
chosen
[ { "from": "system", "value": "fix(ipc): Mark method without body as abstract\n\nSigned-off-by: Francisco Miguel Biete <f1d806242fc0bb697f053bcdfc66a36bc885611e@renr.es>\n" }, { "from": "human", "value": "<?php\n\nabstract class InterProcessStorage {\n /**\n * Indicates if the inter-proces...
php
chosen
[ { "from": "system", "value": "UPDATE: Use services by service const's\n" }, { "from": "human", "value": "<?php\n\nnamespace Heystack\\Subsystem\\Ecommerce\\Traits;\n\nuse Heystack\\Subsystem\\Core\\ServiceStore;\n\ntrait OutputHandlerControllerTrait\n{\n\n /**\n * Process the request to t...
php
chosen
[ { "from": "system", "value": "Add test for all.js request\n" }, { "from": "human", "value": "<?php\n\nclass LocalizationScriptTest extends TestCase\n{\n public function testScriptRetrieval()\n {\n $response = $this->call('GET', '/js-localization/localization.js');\n\n $this->...
php
chosen
[ { "from": "system", "value": "Fix \"Call to a member function close() on null\" exception\n\n" }, { "from": "human", "value": "<?php\n\nnamespace VladimirYuldashev\\LaravelQueueRabbitMQ;\n\nuse Illuminate\\Queue\\QueueManager;\nuse Illuminate\\Support\\ServiceProvider;\nuse VladimirYuldashev\\La...
php
chosen
[ { "from": "system", "value": "Print footer with summary information\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view th...
php
chosen
[ { "from": "system", "value": "Add virtual acp sessions to clean up cronjob\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\cronjob;\nuse wcf\\data\\acp\\session\\ACPSessionEditor;\nuse wcf\\data\\cronjob\\Cronjob;\nuse wcf\\data\\session\\virtual\\SessionVirtualEditor;\nuse wcf\...
php
chosen
[ { "from": "system", "value": "Include Users / Groups APIs\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Http\\Request;\n\n/* Note: All Routes in this file are automatically prepended with /api */\n\nRoute::get('/hello_world', function () {\n return \"hello world\";\n})->middlewa...
php
chosen
[ { "from": "system", "value": "ref: Remove default comments in API routes file\n" }, { "from": "human", "value": "<?php\n\n use Illuminate\\Http\\Request;\n\n /*\n |--------------------------------------------------------------------------\n | API Routes\n |------------------------...
php
chosen
[ { "from": "system", "value": "Fix model events param type hint and doc.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\Auditable;\n\n/**\n * Class AuditableObserver\n *\n * @package Yajra\\Auditable\n */\nclass AuditableTraitObserver\n{\n /**\n * Model's creating event hook....
php
chosen
[ { "from": "system", "value": "[laravel-codepen] Remove boot method from service provider\n" }, { "from": "human", "value": "<?php\n\nnamespace Unicodeveloper\\Codepen;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass CodepenServiceProvider extends ServiceProvider\n{\n\n /**\n * Indic...
php
chosen
[ { "from": "system", "value": "Add FFMPEGEnvVarArrayToEnvVarObject(...) function to commons\n" }, { "from": "human", "value": "<?php\n\nnamespace FFMPEGWrapper\\Common;\n\nuse Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException;\nuse Symfony\\Component\\PropertyAccess\\Property...
php
chosen
[ { "from": "system", "value": "Use ::class keyword when possible\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 LICENSE\n * fil...
php
chosen
[ { "from": "system", "value": "Set weekly_report column in users table to true by default\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddWeeklyReportC...
php
chosen
[ { "from": "system", "value": "Extend from new ComCategoriesControllerCategory controller.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Contacts\n * @copyright Copyright (C) 2011 Timble CVBA and Contribut...
php
chosen
[ { "from": "system", "value": "Initialize application before error handler registration\n" }, { "from": "human", "value": "<?php\n/**\n * Error handler\n */\nset_error_handler(\n function ($severity, $message, $file, $line) {\n throw new ErrorException($message, 0, $severity, $file, $li...
php
chosen
[ { "from": "system", "value": "Use ::class keyword to get class names\n" }, { "from": "human", "value": "<?php\nnamespace AuthorBooks\\Model;\n\nuse Maghead\\Schema\\DeclareSchema;\n\nclass AuthorSchema extends DeclareSchema\n{\n public function schema()\n {\n $this->column('name')\n...
php
chosen
[ { "from": "system", "value": "Rename seed clients for consistency.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Northstar\\Models\\Client;\nuse Northstar\\Auth\\Scope;\n\nclass ClientTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n ...
php
chosen
[ { "from": "system", "value": "Allow errors/exceptions to be returned in JSON format.\n" }, { "from": "human", "value": "<?php\n/*\n * Copyright (c) 2014 Chris Wells (https://chriswells.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exc...
php
chosen
[ { "from": "system", "value": "Allow composer command to overwrite --no-dev\n" }, { "from": "human", "value": "<?php\nnamespace Phakebuilder;\n/**\n * Composer class\n * \n * @author Leonid Mamchenkov <l.mamchenkov@qobo.biz>\n */\nclass Composer {\n\n\t// Shorter form of --no-interaction\n\tconst...
php
chosen
[ { "from": "system", "value": "Add initialize to page interface.\n" }, { "from": "human", "value": "<?php\n\nnamespace Athens\\Core\\Page;\n\nuse Athens\\Core\\Writable\\WritableInterface;\nuse Athens\\Core\\Initializer\\InitializableInterface;\nuse Athens\\Core\\WritableBearer\\WritableBearerBea...
php
chosen
[ { "from": "system", "value": "Add navigation route model binding\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| He...
php
chosen
[ { "from": "system", "value": "Remove unused imports & fix docblocks.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Http\\Controllers\\Api;\n\nuse Rogue\\Models\\Post;\nuse Rogue\\Models\\Signup;\nuse Rogue\\Services\\PostService;\nuse Rogue\\Repositories\\SignupRepository;\nuse Ro...
php
chosen
[ { "from": "system", "value": "Include exception trace string in detailed debug message\n" }, { "from": "human", "value": "<?php\n\nnamespace Igniter\\Flame\\Exception;\n\nuse October\\Rain\\Exception\\ErrorHandler as OctoberErrorHandler;\n\n/**\n * System Error Handler, this class handles applic...
php
chosen
[ { "from": "system", "value": "Make login form template work even if form is escaped\n" }, { "from": "human", "value": "<?php $view->extend('DoctrineUserBundle::layout') ?>\n\n<?php if ($view->session->hasFlash('doctrine_user_session_new/error')): ?>\n<div class=\"doctrine_user_session_new_error\...
php
chosen
[ { "from": "system", "value": "Support standard `objectID` for article importer\n\n`$additionalData['articleID']` is used by the wordpress importer and kept as a fallback.\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\importer;\nuse wcf\\data\\article\\Article;\nuse wcf\\data\\...
php
chosen
[ { "from": "system", "value": "Add require statements to the year view... this fixes error with class monthwidget not found.\n\n" }, { "from": "human", "value": "<?php\n/**\n * This class is for the frontend view for an entire year.\n * \n * It contains basically 4 rows of 3 months, for a total o...
php
chosen
[ { "from": "system", "value": "Remove boardcast again, not needed.\n" }, { "from": "human", "value": "<?php\n\nnamespace Orphans\\GitDeploy\\Events;\n\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast;\n\nclass GitDeployed\n{\n use SerializesMo...
php
chosen
[ { "from": "system", "value": "Correct some comments in command producer\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Jérémy Marodon <marodon.jeremy@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source ...
php
chosen
[ { "from": "system", "value": "Test file for unufying the requests\n" }, { "from": "human", "value": "<?php\ninclude_once 'db_queries.php';\n$data = calculateUserRanking().\",\".calculateRanking().\",\".getTotalChanges();\necho json_encode($data);\n?>\n" }, { "from": "gpt", "value": "...
php
chosen
[ { "from": "system", "value": "Set timezone because it complains\n" }, { "from": "human", "value": " <!-- Footer -->\n <footer>\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <p>Copyright &copy; Purdue IEEE <?php echo date(\"Y\") ?></p>\n </d...
php
chosen
[ { "from": "system", "value": "!!!TASK: Add method argument and return type hints" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Neos\\Flow\\Persistence;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io...
php
chosen
[ { "from": "system", "value": "Switch to API version 009 for generation.\n" }, { "from": "human", "value": "<?php\n// Map 'src' and 'lib' folders to the Wsdl2PhpGenerator namespace in your\n// favorite PSR-0 compatible classloader or require the files manually.\nrequire __DIR__ . '/../vendor/auto...
php
chosen
[ { "from": "system", "value": "Update example to demonstrate concurrency\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\nrequire dirname(__DIR__).'/vendor/autoload.php';\n\nuse Icicle\\Awaitable;\nuse Icicle\\Concurrent\\Worker\\DefaultPool;\nuse Icicle\\Coroutine\\Coroutine;\nuse I...
php
chosen
[ { "from": "system", "value": "Fix class loading order for deprecated classes\n\nThe deprecated classes (Drupal and Symfony) now extend Drupal8 and\nSymfony2, so those need to be loaded first.\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__.'/src/Boris/Loader/Loader.php';\nrequire_...
php
chosen
[ { "from": "system", "value": "Fix CLI run with symlinked core directory under Windows\n" }, { "from": "human", "value": "<?php\n$DIR_BASE_CORE = dirname(__DIR__);\ndefine('DIR_BASE', dirname($DIR_BASE_CORE));\n\nrequire $DIR_BASE_CORE . '/bootstrap/configure.php';\nrequire $DIR_BASE_CORE . '/boo...
php
chosen
[ { "from": "system", "value": "Use local variables instead of properties\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please vie...
php
chosen
[ { "from": "system", "value": "Allow object subtypes to be changed via bulk editor\n\nSummary:\nRef T13151. See PHI683. Ref T12314.\n\nYou can currently change object subtypes via Conduit (`maniphest.edit`) but not via the web UI.\n\nChanging object subtypes is inherently a somewhat-perilous operation that l...
php
chosen
[ { "from": "system", "value": "Remove PHP_Token and CodeCoverage from whitelist\n\nSince CodeCoverage and PHP_Token are not part of the public API of\nPHPUnit they can safely be removed from the whitelist.\n\nIssue #3750\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * Th...
php
chosen
[ { "from": "system", "value": "Fix for PHP < 5.5\n" }, { "from": "human", "value": "<?php\n/**\n * Created by Florian Pradines\n */\n\nnamespace Skeerel\\Util;\n\n\nuse Skeerel\\Exception\\IllegalArgumentException;\nuse Skeerel\\Exception\\SessionNotStartedException;\n\nclass Session\n{\n publ...
php
chosen
[ { "from": "system", "value": "Fix process params to only accept StateMachine\n\nIt must accept all class that implement StateMachineInterface" }, { "from": "human", "value": "<?php\n\nnamespace Finite\\Transition;\n\nuse Finite\\StateMachine\\StateMachine;\n\n/**\n * The base Transition interfa...
php
chosen
[ { "from": "system", "value": "Use user instead of name\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Admin Name\n |-------------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Include full table diff string in the exception message\n\nOtherwise it doesn't get rendered in behat reports etc unless in\nverbose mode, which turns out to be not that useful.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Andrew Coulton <andrew@inge...
php
chosen
[ { "from": "system", "value": "Add new service on categoryService, get all first level\n" }, { "from": "human", "value": "<?php\n\nnamespace Flowcode\\ClassificationBundle\\Service;\n\n/**\n * CategoryService\n */ \nclass CategoryService{\n\n\tprivate $container;\n\n\tpublic function __construct...
php
chosen
[ { "from": "system", "value": "Add core methods for the builder\n\nCreate directories, copy files and generate files are the main\nresponsibilities for a Scaffold builder\n" }, { "from": "human", "value": "<?php namespace Aedart\\Scaffold\\Contracts\\Builders;\n\n/**\n * Builder\n *\n * A scaffol...
php
chosen
[ { "from": "system", "value": "Add min full payer to properties too\n" }, { "from": "human", "value": "<?php\n\nnamespace MssPhp\\Schema\\Response;\n\nuse JMS\\Serializer\\Annotation\\Type;\n\nclass Properties {\n /**\n * @Type(\"integer\")\n */\n public $area;\n\n /**\n * @T...
php
chosen
[ { "from": "system", "value": "Add control when creating a new refresh token and there is no refresh_token key in the response\n" }, { "from": "human", "value": "<?php\nnamespace Edujugon\\GoogleAds\\Console;\n\nuse Edujugon\\GoogleAds\\Auth\\OAuth2;\nuse Illuminate\\Console\\Command;\n\nclass Re...
php
chosen
[ { "from": "system", "value": "Add id property to the pointcut annotation\n" }, { "from": "human", "value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2012, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.org/licenses/mit-li...
php
chosen
[ { "from": "system", "value": "Add abort message in status middleware\n\nAdd exception message when there is a user status mismatch in a user\nstatus protected route\n" }, { "from": "human", "value": "<?php\n\nnamespace Nzesalem\\Lastus\\Middleware;\n\n/**\n * @package Nzesalem\\Lastus\n */\nuse ...
php
chosen