conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix more PHPUnitTest backwards incompatibilities"
},
{
"from": "human",
"value": "<?php\n\nspl_autoload_register(function ($classname) {\n\t$file = dirname(__DIR__) . DIRECTORY_SEPARATOR . str_replace('\\\\', DIRECTORY_SEPARATOR, $classname) . '.php';\n\tif (is_file... | php | chosen |
[
{
"from": "system",
"value": "Test Emotes: Equals assert for search by id.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ApiFastTest extends TestCase\n{\n\tprotected $baseUrl = '';\n\n\t/**\n\t * ApiFastTest constructor.\n\t */\n\tpublic function __construct()\n\t{\n\t\tparent::__construct()... | php | chosen |
[
{
"from": "system",
"value": "Fix get images array index\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Milax\\Mconsole\\Http\\Controllers\\API;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\nuse Milax\\Mconsole\\Models\\Image as ImageModel;\nuse Image;\nuse F... | php | chosen |
[
{
"from": "system",
"value": "Test using the more expensive call\n\n"
},
{
"from": "human",
"value": "<?php\nnamespace CfdiUtilsTests\\OpenSSL;\n\n/**\n * This test convert the file CSD01_AAA010101AAA.key as an unprotected key file converted using command:\n * openssl pkcs8 -inform DER -passin p... | php | chosen |
[
{
"from": "system",
"value": "Read the local db config from .env.local.php\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Database Connections\n\t|----------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "[Core] Make shopper context extend nested context interfaces\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct a mistaken Phurl link in the \"missing symbol\" exception\n\nSummary: See PHI2022. This link is missing the `/u/` part and currently 404's.\n\nTest Plan: Followed the new link, got documentation.\n\nDifferential Revision: https://secure.phabricator.com/D21611\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Remove restrictions of dev mode for the minute, while we're developing on a VM\n"
},
{
"from": "human",
"value": "<?php\n\n// this check prevents access to debug front controllers that are deployed by accident to production servers.\n// feel free to remove this, ext... | php | chosen |
[
{
"from": "system",
"value": "Clean up if statement in menu item partial view\n"
},
{
"from": "human",
"value": "@if (is_string($item))\n <li class=\"header\">{{ $item }}</li>\n@else\n <li {{ isset($item['submenu']) ? 'class=\"treeview\"' : '' }}>\n <a href=\"{{ isset($item['url']) ... | php | chosen |
[
{
"from": "system",
"value": "Move base module class into ATP\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository\n * @copyright Copyright (c) ... | php | chosen |
[
{
"from": "system",
"value": "Correct input type for email\n\nCorrect input type for email"
},
{
"from": "human",
"value": "<div id=\"controls\">\n\t<form id=\"newuser\" autocomplete=\"off\">\n\t\t<input id=\"newusername\" type=\"text\"\n\t\t\tplaceholder=\"<?php p($l->t('Username'))?>\"\n\t\t\t... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect nullable specification in migration\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 root for full licence t... | php | chosen |
[
{
"from": "system",
"value": "Change the way the explore section is routed\n"
},
{
"from": "human",
"value": "<?php\n\npreg_match(\"#^/edit(/new|/[0-9a-z]+)?$#\", $_SERVER['REQUEST_URI'], $matches);\nif (count($matches) > 0) {\n require(\"edit.php\");\n return true;\n}\n\npreg_match(\"#^/w... | php | chosen |
[
{
"from": "system",
"value": "Fix passing arguments to async() blocks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CrystalPlanet\\Redshift\\EventLoop;\n\nclass EventLoop\n{\n /**\n * @var array\n */\n private $queue = [];\n\n /**\n * Adds a new task to the queue.\n ... | php | chosen |
[
{
"from": "system",
"value": "UPDATE - Unused use class removed."
},
{
"from": "human",
"value": "<?php\n\nnamespace DoctrineExtensions\\Query\\Mysql;\n\nuse Doctrine\\ORM\\Query\\Lexer,\n Doctrine\\ORM\\Query\\QueryException;\n\n/**\n * @author Vas N <phpvas@gmail.com>\n */\nclass DateSub ex... | php | chosen |
[
{
"from": "system",
"value": "Add method to check for role by slug since they're not keyed that way anymore.\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\UsersModule\\Role;\n\nuse Anomaly\\Streams\\Platform\\Entry\\EntryCollection;\nuse Anomaly\\UsersModule\\Role\\Contract\\RoleIn... | php | chosen |
[
{
"from": "system",
"value": "UPDATE: Add SVM test to group\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Camspiers\\StatisticalClassifier\\Classifier;\n\nuse Camspiers\\StatisticalClassifier\\DataSource\\DataArray;\n\nclass SVMTest extends \\PHPUnit_Framework_TestCase\n{\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Remove the $cause parameter as it is not used\n"
},
{
"from": "human",
"value": "<?php\nnamespace PhpDDD\\Notification;\n\nuse Exception;\n\n/**\n * This class is for internal purpose only\n */\nclass Error\n{\n\n /**\n * @var string\n */\n private $me... | php | chosen |
[
{
"from": "system",
"value": "Add return types preparing for upgrade of parent."
},
{
"from": "human",
"value": "<?php\n\nnamespace Silly\\Input;\n\n/**\n * Extending InputArgument because...\n *\n * @author Matthieu Napoli <matthieu@mnapoli.fr>\n */\nclass InputArgument extends \\Symfony\\Compo... | php | chosen |
[
{
"from": "system",
"value": "Add additional tests for parameters that complete code coverage for apply function.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for apply Mimic library functi... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with clock roll over."
},
{
"from": "human",
"value": "<?php\n\nnamespace MillerVein\\Component\\Form\\DataTransformer;\n\nuse DateTime;\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Validator\\Exception\\UnexpectedTypeExc... | php | chosen |
[
{
"from": "system",
"value": "Use a varchar instead of an enum. Enums are not supported in sqlite and on postgresql it requires extra work to use\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace atk4\\data\\tests\\smbo;\n\nclass SMBOTestCase extends \\atk4\\data\\tests\\SQLTestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Mark all notifications with the same subject as read\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * fil... | php | chosen |
[
{
"from": "system",
"value": "Fix selected business retrieval from session"
},
{
"from": "human",
"value": "@if(Session::get('selected.business_id'))\n <li><a href=\"{{ route('manager.business.show', Session::get('selected.business_id')) }}\">{!! Icon::home() !!} {{ trans('app.nav.manager.bus... | php | chosen |
[
{
"from": "system",
"value": "Remove min 1 from reporttype\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: ylly\n * Date: 16/10/15\n * Time: 19:01\n */\n\nnamespace ESN\\PermanenceBundle\\Form\\Type;\n\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Add missing slash to config directory\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AlexaPHP\\Providers;\n\nuse Illuminate\\Contracts\\Events\\Dispatcher as DispatcherContract;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AlexaServiceProvider extends ... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong return phpdoc value\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Provider Class\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved.\n * @l... | php | chosen |
[
{
"from": "system",
"value": "Remove unused method calls in ServiceProvider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelFlare\\Cms;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass CmsServiceProvider extends ServiceProvider\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix silent PDO construction failure when password not set\n"
},
{
"from": "human",
"value": "<?php\n// Database\n// Name : MySQL (PDO)\n// Dependencies : php;pdo_mysql\n// Required : server username database\n// Optional : passwor... | php | chosen |
[
{
"from": "system",
"value": "Index page is much more production-centric\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Terramar\\Packages\\Application;\n\nrequire __DIR__ . '/../vendor/autoload... | php | chosen |
[
{
"from": "system",
"value": "Fix default sidebar search label.\n"
},
{
"from": "human",
"value": "<div id=\"sidebar\">\n <div id=\"leftbar\">\n <div class=\"sidebartext\">\n <ul>\n <?php if (!dynamic_sidebar(\"Footer Left\")) { ?>\n <li><ul... | php | chosen |
[
{
"from": "system",
"value": "Fix editable text divs. Have probably broken headings and paras.\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\n// Contains the text for default chunks to highlight that content can be inserted.\nreturn array(\n\t'... | php | chosen |
[
{
"from": "system",
"value": "Add convenience line for debug.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/vendor/autoload.php';\n\n$app = new Looptribe\\Paytoshi\\Application();\n$app->run();\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once __DIR__.'/vend... | php | chosen |
[
{
"from": "system",
"value": "Remove conditional on seeding users.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse VotingApp\\Models\\User;\n\nclass UsersTableSeeder extends Seeder\n{\n\n public function run()\n {\n $faker = Faker\\Factory::create(... | php | chosen |
[
{
"from": "system",
"value": "Add comment on Artisan class.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Foundation\\Providers;\n\nuse Illuminate\\Foundation\\Artisan;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Foundation\\Console\\TailCommand;\nuse Illuminate\... | php | chosen |
[
{
"from": "system",
"value": "Add form error for sendEmail but not email on invite form\n"
},
{
"from": "human",
"value": "<?php\n\nclass Admin_FormAction_UserInvite_Create extends Admin_FormAction_Abstract {\n\n protected function _getRequiredFields() {\n return [];\n }\n\n prot... | php | chosen |
[
{
"from": "system",
"value": "Add doc blocks to service provider.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DigitLab\\AdaptiveView;\n\nuse DigitLab\\AdaptiveView\\Browser\\AgentBrowserAdapter;\nuse DigitLab\\AdaptiveView\\Browser\\Browser;\nuse Illuminate\\Support\\ServiceProvider;\n... | php | chosen |
[
{
"from": "system",
"value": "Update script to safely de-activate, and keep latest active.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Script to remove users with duplicate email accounts.\n *\n * to run:\n * drush --script-path=../scripts/ php-script remove-duplicate-emails.php\n */\n\n$u... | php | chosen |
[
{
"from": "system",
"value": "Enable getting string with fallback, but still notifying missing key"
},
{
"from": "human",
"value": "<?php namespace Barryvdh\\TranslationManager;\n\nuse Illuminate\\Translation\\Translator as LaravelTranslator;\nuse Illuminate\\Events\\Dispatcher;\n\nclass Transla... | php | chosen |
[
{
"from": "system",
"value": "Make truncate to be available at php 5.3 and 5.4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coduo\\PHPHumanizer\\String;\n\nclass Truncate\n{\n /**\n * @var string\n */\n private $text;\n\n /**\n * @var int\n */\n private $char... | php | chosen |
[
{
"from": "system",
"value": "Add a new column: moves per attack.\n"
},
{
"from": "human",
"value": "@section('title')\nMelee - Cataclysm: Dark Days Ahead\n@endsection\n@section('content')\n<h1>Melee</h1>\n<p>\nItems with bashing+cutting damage higher than 10 and to-hit bonus higher than -2\n</p... | php | chosen |
[
{
"from": "system",
"value": "Fix 'ignorePermissions' compatibility bug in 8.0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace A3020\\Centry\\User\\Summary;\n\nuse A3020\\Centry\\Payload\\PayloadAbstract;\nuse Concrete\\Core\\Database\\Connection\\Connection;\nuse Concrete\\Core\\User\\Use... | php | chosen |
[
{
"from": "system",
"value": "Change data with empty json string\n"
},
{
"from": "human",
"value": "<?php\n/**\n * WebHook event manager\n *\n * Licensed under The MIT License\n * For full copyright and license information, please see the LICENSE\n * Redistributions of files must retain the abov... | php | chosen |
[
{
"from": "system",
"value": "Make sure View is bootstrapped when Requirejs resource is retrieved inside dependent modules\n"
},
{
"from": "human",
"value": "<?php\n\nclass ManipleRequirejs_Bootstrap extends Maniple_Application_Module_Bootstrap\n{\n public function getResourcesConfig()\n {... | php | chosen |
[
{
"from": "system",
"value": "Allow columns to be translated\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: mirel\n * Date: 24.10.2014\n * Time: 16:10\n */\n\nnamespace mpf\\widgets\\viewtable\\columns;\n\n\nuse mpf\\base\\Object;\nuse mpf\\web\\helpers\\Html;\n... | php | chosen |
[
{
"from": "system",
"value": "Allow assertion that path does not exist\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ibuildings\\QaTools\\Core\\Assert;\n\nuse Assert\\Assertion as BaseAssertion;\nuse Ibuildings\\QaTools\\Core\\Exception\\InvalidArgumentException;\n\n/**\n * @method stati... | php | chosen |
[
{
"from": "system",
"value": "Add a test about parsing $< and $> (that was failing before fix)\n"
},
{
"from": "human",
"value": "<?php\n\nuse Manialib\\Formatting\\Converter\\Html;\nuse Manialib\\Formatting\\ManiaplanetString;\n\nclass HtmlTest extends PHPUnit_Framework_TestCase\n{\n\n publi... | php | chosen |
[
{
"from": "system",
"value": "Replace type filtering method with a name based assign() method\n"
},
{
"from": "human",
"value": "<?php\n\tnamespace Bolt\\Api;\n\n\tclass Connections extends \\Bolt\\Base\n\t{\n\t\tpublic $sources;\n\n\t\tpublic function __construct($connections = null)\n\t\t{\n\t... | php | chosen |
[
{
"from": "system",
"value": "Switch sitemap index extractor to use sax speediness\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace webignition\\WebResource\\Sitemap\\UrlExtractor;\n\nclass SitemapsOrgXmlIndexUrlExtractor extends UrlExtractor {\n\n public function extract($content) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add missing Mailgun 'endpoint' option\n\nCounterpart to https://github.com/laravel/framework/pull/25010\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party... | php | chosen |
[
{
"from": "system",
"value": "Fix entity attribute and verify metadata use.\n"
},
{
"from": "human",
"value": "<?php\nnamespace MapasCulturais;\n\nclass Definition implements \\JsonSerializable{\n use \\MapasCulturais\\Traits\\MagicGetter,\n \\MapasCulturais\\Traits\\MagicSetter;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Change how the config class is called\n"
},
{
"from": "human",
"value": "<?php\n\n$default = [\n 'Demo\\\\Application\\\\Adapter\\\\TwigAdapter' => [\n 'class' => 'Demo\\\\Application\\\\Adapter\\\\TwigAdapter',\n 'arguments' => [\n 'conf... | php | chosen |
[
{
"from": "system",
"value": "Fix (Observation test): change method name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\TestsService;\n\nuse AppBundle\\Service\\ObservationService;\nuse AppBundle\\Entity\\Observation;\nuse PHPUnit\\Framework\\TestCase;\n\nuse OC\\BookingBundle\... | php | chosen |
[
{
"from": "system",
"value": "Use class constants instead of class names.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace solutionweb\\gatekeeper\\utils;\n\nuse mako\\application\\Package;\n\n/**\n * Package registraion class.\n *\n * @author Bert Peters <bert@solution-web.nl>\n */\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Fix static generator causing only one output at a time\n"
},
{
"from": "human",
"value": "<?php\nnamespace JLSalinas\\RWGen;\n\ntrait GeneratorAggregateHack\n{\n public function send($value)\n {\n static $generator = null;\n \n if ($genera... | php | chosen |
[
{
"from": "system",
"value": "Use the right URI for send\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MessageBird\\Resources\\Conversation;\n\nuse MessageBird\\Common\\HttpClient;\nuse MessageBird\\Exceptions;\nuse MessageBird\\Objects\\Conversation\\SendMessage;\nuse MessageBird\\Objec... | php | chosen |
[
{
"from": "system",
"value": "ENHANCEMENT: Test for points of interest layer\n"
},
{
"from": "human",
"value": "<?php\n\nclass PointsOfInterestLayerTest extends SapphireTest {\n\n\tpublic function testGetCMSFields() {\n\t\t$this->markTestSkipped('TODO');\n\t}\n}\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Check if admin is logged in AuthControllers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PSFS\\base\\types;\n\n\nuse PSFS\\base\\Security;\n\n/**\n * Class AuthController\n * @package PSFS\\base\\types\n */\ntrait SecureTrait {\n\n /**\n * @Inyectabl... | php | chosen |
[
{
"from": "system",
"value": "Use constant for graph names\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with... | php | chosen |
[
{
"from": "system",
"value": "Change the way tags are rendered.\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * The template for displaying post snippets. Used for both single and index/archive/search.\r\n *\r\n * @package NotebookHeavy\r\n * @subpackage NH2013\r\n * @since NH2013 1.0\r\n ... | php | chosen |
[
{
"from": "system",
"value": "Move several script loads to header-user.php.\n"
},
{
"from": "human",
"value": "<!-- jQuery -->\n <script src=\"js/jquery.js\"></script>\n\n <!-- Bootstrap Core JavaScript -->\n <script src=\"js/bootstrap.min.js\"></script>\n\n <script type=\"text/javas... | php | chosen |
[
{
"from": "system",
"value": "Add phpdoc for magic item() method\n"
},
{
"from": "human",
"value": "<?php\nnamespace Nodes\\Api\\Routing;\n\nuse Dingo\\Api\\Routing\\Helpers as DingoRoutingHelpers;\n\n/**\n * Class Helpers\n *\n * @trait\n * @package Nodes\\Api\\Routing\n *\n * @property \\Illu... | php | chosen |
[
{
"from": "system",
"value": "Include up to date CSS Styled Content TS\n"
},
{
"from": "human",
"value": "<?php\n\nif (!defined ('TYPO3_MODE')) die ('Access denied.');\n\n// Automatically include TypoScript dependencies\nFluidTYPO3\\Flux\\Core::addStaticTypoScript('EXT:css_styled_content/static/... | php | chosen |
[
{
"from": "system",
"value": "Fix phptidy configuration to exclude new facebook sdk path and php-bootstrap project\n"
},
{
"from": "human",
"value": "<?php\n$project_files = array(\n\t\"*.php\",\n\t\"*/*.php\",\n\t\"*/*/*.php\",\n\t\"*/*/*/*.php\",\n\t\"*/*/*/*/*.php\",\n\t\"*/*/*/*/*/*.php\",\n... | php | chosen |
[
{
"from": "system",
"value": "Check if the result is indeed an ArrayIterator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Rojtjo\\Notifier;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\nuse Rojtjo\\Notifier\\Notification;\n\nclass NotificationsSpec extends ObjectBehavi... | php | chosen |
[
{
"from": "system",
"value": "Fix Symfony 4.3 deprecation (Case 98936)"
},
{
"from": "human",
"value": "<?php\n/*\n * (c) webfactory GmbH <info@webfactory.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */... | php | chosen |
[
{
"from": "system",
"value": "Remove ResponseListener to avoid headers replacement\n"
},
{
"from": "human",
"value": "<?php\n\nuse Controller\\ProxyController;\nuse GuzzleHttp\\Client as HttpClient;\nuse Silex\\Provider\\ServiceControllerServiceProvider;\nuse Silex\\Provider\\UrlGeneratorService... | php | chosen |
[
{
"from": "system",
"value": "Use helper class to determine if middleware group exists\n"
},
{
"from": "human",
"value": "<?php\n\nuse GeneaLabs\\LaravelCaffeine\\Http\\Controllers\\LaravelCaffeineController;\n\nif (hasWebMiddleware()) {\n Route::group(['middleware' => ['web']], function () {... | php | chosen |
[
{
"from": "system",
"value": "Update header of user 404 page\n"
},
{
"from": "human",
"value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\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 ecosystem of... | php | chosen |
[
{
"from": "system",
"value": "Put base_url in example config file\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n"
},
{
"from": "human",
"value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n/*\n * Use this file to override ... | php | chosen |
[
{
"from": "system",
"value": "Remove request from method signature\n\n$request is not used in the function. So there is no need to include it in the signature"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Ro... | php | chosen |
[
{
"from": "system",
"value": "Fix template name in controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZF\\Apigility\\Welcome;\n\nuse Zend\\Mvc\\Controller\\AbstractActionController;\nuse Zend\\View\\Model\\ViewModel;\n\nclass WelcomeController extends AbstractActionController\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Mark current section as selected in the sidebar.\n"
},
{
"from": "human",
"value": "@php\n /**\n * @var string[] $sectionNames\n * @var \\App\\ValueObjects\\Sidebar $sidebar\n */\n@endphp\n\n<div id=\"sidebar-wrapper\">\n <div id=\"sidebar\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Resolve upmerge conflict in composer\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribu... | php | chosen |
[
{
"from": "system",
"value": "Use object SID instead of GUID\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Laravel\\Auth;\n\nuse Adldap\\Utilities;\nuse Adldap\\Laravel\\Traits\\AuthenticatesUsers;\nuse Illuminate\\Contracts\\Auth\\UserProvider;\nuse Illuminate\\Contracts\\Auth\\... | 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 one more missing reference"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'method' => 'post',\n 'elements' => [\n\n 'is_enabled' => [\n 'radio',\n [\n 'label' => __('Enable Automated Assignment'),\n ... | php | chosen |
[
{
"from": "system",
"value": "Document that pop() might return Null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kue;\n\n/**\n * Interface for Queues\n *\n * @author Christoph Hochstrasser <christoph.hochstrasser@gmail.com>\n */\ninterface Queue\n{\n /**\n * Blocks until a job is... | php | chosen |
[
{
"from": "system",
"value": "Add methods to build add/remove filter URLs\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Solr facet option\n *\n * @category Asm\n * @package Asm_Solr\n * @author Ingo Renner <ingo@infielddesign.com>\n */\nclass Asm_Solr_Model_Solr_Facet_FacetOption extends V... | php | chosen |
[
{
"from": "system",
"value": "Fix a bug when providing messages for validation rules in Factory class\n"
},
{
"from": "human",
"value": "<?php namespace App\\Components\\Validation\\Sirius;\n\nuse App\\Components\\Validation\\FactoryInterface;\nuse Sirius\\Validation\\Validator;\n\n/**\n * A Sir... | php | chosen |
[
{
"from": "system",
"value": "Set up bootstrap css for textview in menu item editing view.\n\nSigned-off-by: Jason Kolenosky <c92c737a100c74df3b60e0542eeddf902cd72829@gmail.com>\n"
},
{
"from": "human",
"value": "<div><label for=\"{name}\">{label}</label>\n\t<input type=\"text\" id=\"{name}\" na... | php | chosen |
[
{
"from": "system",
"value": "Add missing import in API base controller\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2015 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 ... | php | chosen |
[
{
"from": "system",
"value": "Create docs response with correct content type header\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Controller;\n\n\nuse Korobi\\WebBundle\\Exception\\NotImplementedException;\nuse Michelf\\Markdown;\nuse Symfony\\Component\\HttpFoundation... | php | chosen |
[
{
"from": "system",
"value": "Remove $_mockData from TestCase trait\n\nIt cannot share a property with subclasses because subclasses will\nalways change the value, and this is invalid in PHP.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Garp\n * @author Harmen Janssen <harmen@grrr... | php | chosen |
[
{
"from": "system",
"value": "Fix bug where the threads relationship method wasn't returning anything\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Forum extends Model\n{\n protected $table = 'forums';\n\n public function ... | php | chosen |
[
{
"from": "system",
"value": "Add extra class for Artisan\n\nAdds the call() command. Fixes #42"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Filename\n |-------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Upgrade medialibrary db to v9\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMediaTable ... | php | chosen |
[
{
"from": "system",
"value": "Add done status to entryServerNodeTask\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Core\n * @subpackage model.enum\n */\ninterface EntryServerNodeStatus extends BaseEnum\n{\n\tconst ERROR = -1;\n\tconst STOPPED = 0;\n\tconst PLAYABLE = 1;\n\tconst BRO... | php | chosen |
[
{
"from": "system",
"value": "Change the behaviour of the markdown text processor so it follows better whitespace boundary rules\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Helpers\\BBCode\\Processors;\n \nclass MarkdownTextProcessor extends Processor {\n\n function Process($re... | php | chosen |
[
{
"from": "system",
"value": "Move Phar archive to the parent folder.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\t$dir = getcwd();\n\n\t$path = explode( DIRECTORY_SEPARATOR, $dir );\n\tarray_pop( $path );\n\t$path = implode( DIRECTORY_SEPARATOR, $path );\n\n\t$archive = new P... | php | chosen |
[
{
"from": "system",
"value": "Prepare Cache Driver for Laravel 5.8"
},
{
"from": "human",
"value": "<?php\n\nnamespace KDuma\\emSzmalAPI\\CacheProviders;\n\nuse Cache;\n\n/**\n * Class LaravelCacheProvider.\n */\nclass LaravelCacheProvider implements CacheProviderInterface\n{\n /**\n * @v... | php | chosen |
[
{
"from": "system",
"value": "Include all scripts and classes"
},
{
"from": "human",
"value": "<?php\r\n/** \r\n * Mozzaic : Samp Web Advanced Development\r\n * Copyright (c) Mozzaic Foundation, Inc. \r\n * Created by Buthers\r\n * \r\n * Do not use this project for commercial purposes\r\n * Cha... | php | chosen |
[
{
"from": "system",
"value": "Revert \"revert: use github chart js in meanwhile\"\n\nThis reverts commit ca6cac9557d4e73f3e3c6a1ca1c6e2857445d366.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\t<meta charset=\"UTF-8\">\n\t<title>Elvenar Stats</title>\n\n\t<link... | php | chosen |
[
{
"from": "system",
"value": "Reset the server status when ip_adress changed\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Fixhub.\n *\n * Copyright (C) 2016 Fixhub.org\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was dis... | php | chosen |
[
{
"from": "system",
"value": "Add the voodoo object constructions\n"
},
{
"from": "human",
"value": "<?php\n\n// run the callback a lot, return average run time in ms\nfunction clock(\\Closure $callback, $iterations = 10000) {\n $begin = microtime(true);\n\n for ($i = 0; $i < $iterations; ... | php | chosen |
[
{
"from": "system",
"value": "Add branch filter for bitbucket webhooks"
},
{
"from": "human",
"value": "<?php namespace ShinyDeploy\\Core\\RequestParser;\n\nuse ShinyDeploy\\Core\\RequestParser\\RequestParser;\n\nclass Bitbucket implements RequestParser\n{\n /** @var array $parameters */\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix small mistake in this test\n"
},
{
"from": "human",
"value": "<?php\n\n$data = <<<EOD\n<feed xmlns=\"http://www.w3.org/2005/Atom\">\n\t<entry>\n\t\t<title type=\"xhtml\"><div xmlns=\"http://www.w3.org/1999/xhtml\"><![CDATA[This &amp; this]]></div></title>\n\... | php | chosen |
[
{
"from": "system",
"value": "Test entire string in application\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CacheTool\\Console;\n\nuse CacheTool\\Command\\CommandTest;\n\nclass ApplicationTest extends CommandTest\n{\n public function testVersion()\n {\n $result = $this->ru... | php | chosen |
[
{
"from": "system",
"value": "Create a test for TestComponent Class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Tests\\Foundation\\Testing\\Concerns;\n\nuse Illuminate\\Foundation\\Testing\\Concerns\\InteractsWithViews;\nuse Orchestra\\Testbench\\TestCase;\n\nclass Interact... | php | chosen |
[
{
"from": "system",
"value": "Fix stupid error in interface definition.\n"
},
{
"from": "human",
"value": "<?php namespace Experience\\Validation\\Interfaces;\n\ninterface ValidatorInterface\n{\n public function validateForCreate(Array $data);\n public function validateForUpdate(Array $dat... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.