conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix path in bootstrap script\n" }, { "from": "human", "value": "<?php\n\nuse Zend\\Mvc\\Application;\nuse Zend\\Stdlib\\ArrayUtils;\n\n/**\n * This makes our life easier when dealing with paths. Everything is relative\n * to the application root now.\n */\nchdir(dir...
php
chosen
[ { "from": "system", "value": "Remove redundant array check found by Psalm\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is a part of dflydev/dot-access-data.\n *\n * (c) Dragonfly Development Inc.\n *\n * For the full copyright and license information, please view the LICENSE\n * ...
php
chosen
[ { "from": "system", "value": "Allow user to fill notes\n" }, { "from": "human", "value": "<?php\n\nnamespace Nestor\\Entities;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Prettus\\Repository\\Contracts\\Transformable;\nuse Prettus\\Repository\\Traits\\TransformableTrait;\n\nclass Executio...
php
chosen
[ { "from": "system", "value": "Use DIRECTORY_SEPARATOR instead of '/'\n" }, { "from": "human", "value": "<?php\n\nnamespace CarlBennett\\MVC\\Libraries;\n\nuse \\CarlBennett\\MVC\\Libraries\\Exceptions\\TemplateNotFoundException;\nuse \\CarlBennett\\MVC\\Libraries\\Logger;\nuse \\SplObjectStorage...
php
chosen
[ { "from": "system", "value": "Update tests to phpunit 6\n" }, { "from": "human", "value": "<?php\n\nnamespace Limenius\\Liform\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\Form\\Forms;\nuse Limenius\\Liform\\Form\\Extension\\AddLiformExtension;\n\n/**\n *\n * Common test...
php
chosen
[ { "from": "system", "value": "Update Admin Panel Theme Info.\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\t\t'name' => 'Stupid Reborn Admin Theme',\n\t\t'description' => 'Flat Design Admin theme for the Reborn CMS',\n\t\t'author' => 'Reborn Development Team',\n\t\t'website' => 'ht...
php
chosen
[ { "from": "system", "value": "Include the correct memory file (oops)\n" }, { "from": "human", "value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version Functions\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\n// Debugging ...
php
chosen
[ { "from": "system", "value": "Add prioritization to event subscriber tags\n" }, { "from": "human", "value": "<?php\n\nnamespace As3\\Bundle\\ModlrBundle\\DependencyInjection\\Compiler;\n\nuse As3\\Bundle\\ModlrBundle\\DependencyInjection\\Utility;\nuse Symfony\\Component\\DependencyInjection\\Co...
php
chosen
[ { "from": "system", "value": "Set the etag only if it was generated\n" }, { "from": "human", "value": "<?php\n\nnamespace EXSyst\\Bundle\\RestBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n/**\n * @author...
php
chosen
[ { "from": "system", "value": "[Security] Change the phrasing of the deauthenticated event\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, pleas...
php
chosen
[ { "from": "system", "value": "Install no longer runs shim\n" }, { "from": "human", "value": "<?php\n\nnamespace Vagrant\\Shim\\Command;\n\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInt...
php
chosen
[ { "from": "system", "value": "Add Model generator to Generators Service Provider\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Ship\\Generator;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass GeneratorsServiceProvider extends ServiceProvider\n{\n\n /**\n * Bootstrap the...
php
chosen
[ { "from": "system", "value": "Add description to channel response" }, { "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 ecosyste...
php
chosen
[ { "from": "system", "value": "Fix VarDumper Server for Dumps where no request exist\n" }, { "from": "human", "value": "<?php\n\n\nnamespace FroshProfiler\\Components\\VarDumper;\n\nuse Enlight_Controller_Front;\nuse Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface...
php
chosen
[ { "from": "system", "value": "Revert \"🗑 Add deprecation warning\"\n\nThis reverts commit 10151d7522980429e960b883e09b95a1c393172e.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace HansOtt\\PSR7Cookies;\n\nuse Exception;\n\n/**\n * @deprecated Exception is not use...
php
chosen
[ { "from": "system", "value": "[FIX] Patch 300 et colonne potientiellement existante\n" }, { "from": "human", "value": "<?php\r\n/**\n * list_patch_0300\n * @package modules.list\n */\r\nclass list_patch_0300 extends patch_BasePatch\r\n{\r\n\t/**\n\t * Entry point of the patch execution.\n\t */\r...
php
chosen
[ { "from": "system", "value": "Fix issue identified by Psalm\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 the LICENS...
php
chosen
[ { "from": "system", "value": "Support for screened json strings\n" }, { "from": "human", "value": "<?php\n\nnamespace Milax\\Mconsole\\Processors;\n\nuse Milax\\Mconsole\\Contracts\\ContentLocalizator as Repository;\n\nclass ContentLocalizator implements Repository\n{\n public function locali...
php
chosen
[ { "from": "system", "value": "Make sure to match pre and textarea without any attributes\n" }, { "from": "human", "value": "<?php // @codeCoverageIgnoreStart\n\n/*\n * This file is part of HtmlCompress.\n *\n ** (c) 2014 Cees-Jan Kiewiet\n *\n * For the full copyright and license information, pl...
php
chosen
[ { "from": "system", "value": "Add HHVM >= 3.8.0 support in the artisan serve command via Proxygen Web Server\n\nNow we can run Laravel development server with HHVM, like this:\r\nhhvm artisan serve" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Foundation\\Console;\n\nuse Illumi...
php
chosen
[ { "from": "system", "value": "Throw access denied exception when user doesn't match\n" }, { "from": "human", "value": "<?php\n\nnamespace Rayku\\UserBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Nelmio\...
php
chosen
[ { "from": "system", "value": "Return true instead of $bar.\n" }, { "from": "human", "value": "<?php\nif (!defined('MEDIAWIKI')) die();\n/**\n * Class file for the GoogleAdSense extension\n *\n * @addtogroup Extensions\n * @author Siebrand Mazeland\n * @license MIT\n */\nclass GoogleAdSense {\n\n...
php
chosen
[ { "from": "system", "value": "Fix format inconsistency with FR/THR.\n" }, { "from": "human", "value": "<?php\nnamespace PVL\\NowPlayingAdapter;\n\nuse \\Entity\\Station;\n\nclass FillydelphiaRadio extends AdapterAbstract\n{\n /* Process a nowplaying record. */\n protected function _process...
php
chosen
[ { "from": "system", "value": "Revert \"Refactor RelativeResize param extraction in filter loader\"\n\nThis reverts commit 6226d0f5dffda0f8db8cfa212ced16b73c44b1b0.\n" }, { "from": "human", "value": "<?php\n\nnamespace Liip\\ImagineBundle\\Imagine\\Filter\\Loader;\n\nuse Imagine\\Exception\\Inval...
php
chosen
[ { "from": "system", "value": "Handle spaces in older versions of Illuminate\n" }, { "from": "human", "value": "<?php\n\nnamespace Silber\\Bouncer\\Database\\Titles;\n\nuse Illuminate\\Support\\Str;\n\nabstract class Title\n{\n /**\n * The human-readable title.\n *\n * @var string\...
php
chosen
[ { "from": "system", "value": "Test for file upload cannot run in CI\n" }, { "from": "human", "value": "<?php\n\nclass Tests_Selenium2TestCase_SessionCommand_FileTest extends Tests_Selenium2TestCase_BaseTestCase\n{\n public function testUploadFile()\n {\n $this->url('php/file_upload....
php
chosen
[ { "from": "system", "value": "Add simple sql query which returns all columns of trait_entry\n" }, { "from": "human", "value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait informatio\n */\nclass Traits extends \\WebService {\n\n /**\n * ...
php
chosen
[ { "from": "system", "value": "Use the default access value when creating a project\n" }, { "from": "human", "value": "<?php\n/**\n * @package hubzero-cms\n * @copyright Copyright 2005-2019 HUBzero Foundation, LLC.\n * @license http://opensource.org/licenses/MIT MIT\n */\n\n// No direct ac...
php
chosen
[ { "from": "system", "value": "Remove unused variable from Homepage test\n" }, { "from": "human", "value": "<?php\n\nclass HomepageTest extends TestCase {\n\n /**\n * A basic functional test of the homepage.\n *\n * @return void\n */\n public function testHomepageGetResponse...
php
chosen
[ { "from": "system", "value": "Address detail being fetched from the Google's API\n" }, { "from": "human", "value": "<?php\n\nnamespace kamranahmedse;\n\n/**\n * Geocode\n *\n * A wrapper around Google's Geocode API that parses the address, \n * to get different details regarding the address\n *\...
php
chosen
[ { "from": "system", "value": "Update service provider Applications , JwtAuth\n" }, { "from": "human", "value": "<?php namespace JwtAuth;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass JwtAuthServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if loading of the provider...
php
chosen
[ { "from": "system", "value": "Add guest middleware as an annotation and remove the constructor method. Extend from the AbstractController and override the resetPassword method to use the command bus for resetting a password.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Contro...
php
chosen
[ { "from": "system", "value": "Add a bit of comments\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n\nuse DDelrio1986\\Superheroes\\Superheroes;\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n$options = getopt('a', ['all']);\n\n$superheroes = new Superheroes;\n\nif (count(...
php
chosen
[ { "from": "system", "value": "Improve DiscoJuice Feed debug view\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@2900 44740490-163a-0410-bde0-09ae8108e29a\n" }, { "from": "human", "value": "<?php\n\n\n#sleep(2);\n\n$feed = new sspmod_discojuice_Feed();\n\nif (!empty($_REQUEST['refresh'])...
php
chosen
[ { "from": "system", "value": "Add global constants document root and root directory path\n\nChange-Id: I12458ba161c2c04569e0002cdede6a59dc5c5e23\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * This makes our life easier when dealing with paths. Everything is relative\r\n * to the applicati...
php
chosen
[ { "from": "system", "value": "Change how dependencies are injected\n" }, { "from": "human", "value": "<?php\n\nerror_reporting(E_ALL | E_STRICT);\n\nrequire '../vendor/autoload.php';\n\n// Load our dependencies\n$container = require_once __DIR__.'/../bootstrap/dependencies.php';\n\n// Run the im...
php
chosen
[ { "from": "system", "value": "Fix request to `index.php` in URL\n" }, { "from": "human", "value": "<?php\n\nnamespace hiapi\\Core\\Console\\Formatter;\n\nuse Lcobucci\\ContentNegotiation\\Formatter\\ContentOnly;\n\nclass Php extends ContentOnly\n{\n public function formatContent($content, $at...
php
chosen
[ { "from": "system", "value": "Remove Timer as we are extending Base Task now\n" }, { "from": "human", "value": "<?php\n\nnamespace JoeStewart\\RoboDrupalVM\\Task;\n\n\nuse Robo\\Result;\nuse Robo\\Task\\BaseTask;\nuse Robo\\Common\\ExecOneCommand;\nuse Robo\\Contract\\CommandInterface;\nuse Robo...
php
chosen
[ { "from": "system", "value": "Allow to pass a http status code and header to generateHateoasResponse\n" }, { "from": "human", "value": "<?php\n\nnamespace Phrest\\API;\n\n\ntrait HateoasResponseGeneratorAwareTrait\n{\n /**\n * @var HateoasResponseGenerator\n */\n protected $hateoas...
php
chosen
[ { "from": "system", "value": "Use correct Response namespace in RendorError trait\n" }, { "from": "human", "value": "<?php\n\nnamespace RCatlin\\Blog\\Behavior;\n\nuse Assert\\Assertion;\nuse Refinery29\\ApiOutput\\Resource\\ResourceFactory;\nuse Refinery29\\Piston\\Http\\Response;\n\ntrait Rend...
php
chosen
[ { "from": "system", "value": "Fix fatal error in beta4\n" }, { "from": "human", "value": "<?php\n\nuse Flarum\\Event\\ConfigureLocales;\nuse Illuminate\\Contracts\\Events\\Dispatcher;\n\nreturn function (Dispatcher $events) {\n $events->listen(ConfigureLocales::class, function (ConfigureLocal...
php
chosen
[ { "from": "system", "value": "Add default value to groupby()\n\nfor null \\$groupBy values" }, { "from": "human", "value": "<?php\n\nnamespace Dash;\n\nfunction groupBy($input, $groupBy)\n{\n\tassertType($input, ['iterable']);\n\n\treturn reduce($input, function($grouped, $value) use ($groupBy) ...
php
chosen
[ { "from": "system", "value": "Add a check for activated plugins\n" }, { "from": "human", "value": "<?php\n\n/**\n * Get the Space Open/Close state from external sources\n *\n * For now, only get state from the Wordpress Opening Hours plugin\n *\n * @since 0.3\n */\nclass Space_State\n{\n\n pu...
php
chosen
[ { "from": "system", "value": "Fix for function not returning boolean value\n" }, { "from": "human", "value": "<?php\n\nnamespace Rehyved\\utilities;\n\n\nclass StringHelper\n{\n public static function endsWith(string $haystack, string $needle, bool $caseSensitive = true){\n $haystackLe...
php
chosen
[ { "from": "system", "value": "[IMPROVED] Use data interval on getuserworkers\n" }, { "from": "human", "value": "<?php\n\n// Make sure we are called from index.php\nif (!defined('SECURITY')) die('Hacking attempt');\n\n// Check if the API is activated\n$api->isActive();\n\n// Check user token\n$us...
php
chosen
[ { "from": "system", "value": "Remove the visually hidden so it doesn't read Home twice\n" }, { "from": "human", "value": "{{--\n $breadcrumbs => array // [['display_name', 'relative_url']]\n--}}\n<nav class=\"mt-6 mb-2\" aria-label=\"Breadcrumbs\">\n <ul class=\"list-reset text-sm\">\n ...
php
chosen
[ { "from": "system", "value": "Allow members to have an access to members' content by default.\n" }, { "from": "human", "value": "; <?php /*\n\n[admin]\n\ndefault = On\n\n[editor]\n\ndefault = Off\nadmin = On\nadmin/edit = On\nadmin/d...
php
chosen
[ { "from": "system", "value": "Change default db from 10layer to tenlayer\n" }, { "from": "human", "value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n// Generally will be localhost if you're querying from the machine that Mongo is installed on\n$config['mongo...
php
chosen
[ { "from": "system", "value": "Update caching for AuthResponse type.\n" }, { "from": "human", "value": "<?php namespace ProcessWire\\GraphQL\\Type;\n\nuse GraphQL\\Type\\Definition\\ObjectType;\nuse GraphQL\\Type\\Definition\\Type;\nuse ProcessWire\\GraphQL\\Type\\Traits\\CacheTrait;\n\nclass Aut...
php
chosen
[ { "from": "system", "value": "Revert \"Return self instead of parent to allow nested resolutions\"\n\nThis reverts commit ae2a25ad2373588c52b3a3df025f1f99e533f769.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\nnamespace Onion\\Framework\\Collection;\n\nclass CallbackCollecti...
php
chosen
[ { "from": "system", "value": "Fix defaults for Session config\n" }, { "from": "human", "value": "<?php\n\nreturn [\n /**\n * The driver to use to store the session (defaults to `file`)\n */\n 'driver' => getenv('SESSION_DRIVER') ?? 'file',\n\n /**\n * The name of the cookie ...
php
chosen
[ { "from": "system", "value": "Remove required fields from address state\n" }, { "from": "human", "value": "<?php\n\nnamespace PatternSeek\\ECommerce\\ViewState;\n\nuse PatternSeek\\ComponentView\\ViewState\\ViewState;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\n/**\n * Class Ad...
php
chosen
[ { "from": "system", "value": "Use ASTRUNDIR, not /tmp, for the lockfile\n\nUse \"scheduler.lock\" as the lockfile name.\nNeed to read in the configuration files first,\nso we know which directory will hold the lock.\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n// vim: set ai ts=...
php
chosen
[ { "from": "system", "value": "Test outgoing message can be retrieved repeatedly\n" }, { "from": "human", "value": "<?php\n\nnamespace Hodor\\MessageQueue;\n\nuse PHPUnit_Framework_TestCase;\nuse RuntimeException;\n\n/**\n * @coversDefaultClass Hodor\\MessageQueue\\OutgoingMessage\n */\nclass Out...
php
chosen
[ { "from": "system", "value": "Add Laravel config into Service Provider\n" }, { "from": "human", "value": "<?php namespace Philipbrown\\WorldPay;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass WorldPayServiceProvider extends ServiceProvider {\n\n /**\n * Indicates if loading of the prov...
php
chosen
[ { "from": "system", "value": "Create method to render logout page\nCreate method to log the user out\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\User;\n\nuse Session;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\n\nclass LoginControll...
php
chosen
[ { "from": "system", "value": "Store StyleBlock descendants to speed up containsOpenStyleBlock\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 ...
php
chosen
[ { "from": "system", "value": "Fix permissions for dev env.\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com/doc/current/book/...
php
chosen
[ { "from": "system", "value": "Add missing test for Left::ap\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpFp\\Either\\Test;\n\nuse PhpFp\\Either\\Either;\nuse PhpFp\\Either\\Constructor\\{Left, Right};\n\nclass ApTest extends \\PHPUnit_Framework_TestCase\n{\n public function testAp...
php
chosen
[ { "from": "system", "value": "fix: Fix wrong tested quote provider in Quote test\n" }, { "from": "human", "value": "<?php\n\nnamespace Monolol\\Lolifiers;\n\nuse Monolol\\Referentials\\MonologLevel;\nuse Monolol\\Lolifiers\\Quote;\nuse Monolol\\Lolifiers\\QuoteProviders;\nuse Monolog\\Logger;\n\...
php
chosen
[ { "from": "system", "value": "Fix case on committee URL\n" }, { "from": "human", "value": "<?php\n/*******************************************************************************\n * Copyright (c) 2015 Eclipse Foundation and others.\n * All rights reserved. This program and the accompanying mate...
php
chosen
[ { "from": "system", "value": "Fix incorrect phpdoc return type\n" }, { "from": "human", "value": "<?php\n\nnamespace RulerZ\\Model;\n\nuse Hoa\\Ruler\\Model as HoaModel;\nuse RulerZ\\Visitor;\n\nclass Rule extends HoaModel\\Model\n{\n /**\n * Returns a list of accessed variables.\n *\...
php
chosen
[ { "from": "system", "value": "Add the `literature` router rule for the doc.\n" }, { "from": "human", "value": "<?php\n\nuse Hoa\\Router;\n\n$router = new Router\\Http();\n$router\n ->get(\n 'c',\n '(?<vendor>)/(?<chapter>)\\.html'\n )\n ->get(\n 'hack',\n '(?...
php
chosen
[ { "from": "system", "value": "Support new location of Authentication component.\n\nFollowing Midas commit d65efd4f9, authentication component has been\nmoved to core. This commit ensure that the module remains compatible with\nMidas independently of that backward incompatible change.\n" }, { "from":...
php
chosen
[ { "from": "system", "value": "Allow disable warning to exception casts in tests\n" }, { "from": "human", "value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n// Throw an exception when E_ERRORS occur to better debug the problem\nfunction throwExceptionOnError($severity, $message, $...
php
chosen
[ { "from": "system", "value": "Fix an API change (since 2.3) that crashed form submission\n" }, { "from": "human", "value": "<?php\n\nnamespace Djebbz\\BlogBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Djebbz\\BlogBundle\\Entity\\Enquiry;\nuse Djebbz\...
php
chosen
[ { "from": "system", "value": "Allow timestamp matcher to traverse into folders\n\n" }, { "from": "human", "value": "<?php\n\n/**\n * @copyright 2018 Vladimir Jimenez\n * @license https://github.com/stakx-io/stakx/blob/master/LICENSE.md MIT\n */\n\nnamespace allejo\\stakx\\Filesystem;\n\nabstra...
php
chosen
[ { "from": "system", "value": "Update test ExamplePluginConfg.php to match test.\n" }, { "from": "human", "value": "<?php\nreturn function (PHPCI\\Plugin\\Util\\Factory $factory) {\n $factory->registerResource(\n // This function will be called when the resource is needed.\n func...
php
chosen
[ { "from": "system", "value": "Modify config-db.php include to check for file instead of doing a (failed) include and spamming the log files that the file doesn't exist\n" }, { "from": "human", "value": "<?php\n//ykksm will use the configuration stored in /etc/yubico/ksm/config-db.php, if that fi...
php
chosen
[ { "from": "system", "value": "Check for config file first\n" }, { "from": "human", "value": "<?php namespace Morrislaptop\\LaravelFivePackageBridges;\n\nuse ReflectionClass;\n\ntrait LaravelFivePackageBridgeTrait {\n\n\tpublic function boot()\n\t{\n\t\t$this->loadViewsFrom($this->namespace, $thi...
php
chosen
[ { "from": "system", "value": "Fix issue with null value in tables\n" }, { "from": "human", "value": "<?php namespace Anomaly\\RelationshipFieldType;\n\nuse Anomaly\\Streams\\Platform\\Addon\\FieldType\\FieldTypeModifier;\nuse Anomaly\\Streams\\Platform\\Model\\EloquentModel;\n\n/**\n * Class Rel...
php
chosen
[ { "from": "system", "value": "Add Github link for contributing\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; ...
php
chosen
[ { "from": "system", "value": "Add missing update calls to AppearanceLastClearedNull\n" }, { "from": "human", "value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AppearanceLastClearedNull extends AbstractMigration {\n\tpublic function up() {\n\t\t$this->table('appearances')\n\t\t...
php
chosen
[ { "from": "system", "value": "Convert Eloquent models to entities when performing an action\n" }, { "from": "human", "value": "<?php\n\nnamespace Nwidart\\Modules\\Repositories;\n\nuse Nwidart\\Modules\\Exceptions\\Repositories\\ActionFailed;\nuse Nwidart\\Modules\\Exceptions\\Repositories\\NoRe...
php
chosen
[ { "from": "system", "value": "Remove a print in a unit test. sorry....\n" }, { "from": "human", "value": "<?php\n\nnamespace PureMachine\\Bundle\\WebServiceBundle\\Tests\\Service;\n\nuse PureMachine\\Bundle\\WebServiceBundle\\Service\\WebServiceManager;\nuse Symfony\\Bundle\\FrameworkBundle\\Tes...
php
chosen
[ { "from": "system", "value": "Check for Predis\\Client existance before running tests.\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Tests\\Common\\Cache;\n\nuse Doctrine\\Common\\Cache\\Cache;\nuse Doctrine\\Common\\Cache\\PredisCache;\nuse Predis\\Client;\nuse Predis\\Connect...
php
chosen
[ { "from": "system", "value": "Allow to change the alias of the bundle" }, { "from": "human", "value": "<?php\n\nnamespace Da\\ProtoBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass DaProtoBundle extends Bundle\n{\n}\n" }, { "from": "gpt", "value": "<?php\n\nname...
php
chosen
[ { "from": "system", "value": "Use mockClass instead of mockObject\n" }, { "from": "human", "value": "<?php\n\nnamespace MockaTests\\Mocka;\nuse Mocka;\n\nclass ClassTraitTest extends \\PHPUnit_Framework_TestCase {\n\n public function testCallMockedMethod() {\n $mocka = new Mocka();\n ...
php
chosen
[ { "from": "system", "value": "Make note that this is HTML specific.\n\ngit-svn-id: 25f448894bd6eb0cddf10ded73b4f5a7ea3203f3@233 48356398-32a2-884e-a903-53898d9a118a\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'HTMLPurifier/AttrDef.php';\nrequire_once 'HTMLPurifier/AttrDef/Pixels.php...
php
chosen
[ { "from": "system", "value": "Add a note stating the trailing slash is required\n" }, { "from": "human", "value": "<?php\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n | The path where the media files will be uploaded\n |-------------...
php
chosen
[ { "from": "system", "value": "Make sure port number is stored correctly\n" }, { "from": "human", "value": "<?php\n\nnamespace Krixon\\URL;\n\nclass PortNumber\n{\n private $number;\n \n \n /**\n * @param int $value\n *\n * @throws \\InvalidArgumentException\n */\n ...
php
chosen
[ { "from": "system", "value": "Revert conditional require of autoloader\n\nIf using Jentil as parent theme, Jentil is supposed to be installed\nvia `composer create-project`, in which case the autoloader would\nexist in Jentil's root.\n\nIf installed as a package, it's supposed to be installed from\nthe cons...
php
chosen
[ { "from": "system", "value": "Allow searchResult to be accessed after a skipped test\n\nI'm writing a custom formatter to get the arguments passed into a test. With an ExecutedStepResult I can just find these in the searchResult attribute, but I can't do the same with the SkippedStepResult class." }, { ...
php
chosen
[ { "from": "system", "value": "Change homepage to match spec.\n" }, { "from": "human", "value": "<h2>Podcasts</h2>\n <div class=\"podcasts\">\n <?php foreach($podcasts as $podcast): ?>\n <h3>\n <?php echo link_to_with_icon($podcast->getTitle(), \"web\", $podcast->getUri()); ?>\n </...
php
chosen
[ { "from": "system", "value": "Add English translation for new cards on dashboard\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'dashboard' => 'Dashboard',\n\n 'total_earned' => 'Total Earned',\n 'total_spent' => 'Total Spent',\n 'most_expensive_tag' => 'Most Expensive Tag',\...
php
chosen
[ { "from": "system", "value": "Fix bug with checkbox sanitizer\n" }, { "from": "human", "value": "<?php\n\nnamespace fieldwork\\validators;\n\nclass CheckboxFieldValidator extends FieldValidator\n{\n\n private $checked;\n\n public function __construct ($checked, $errorMsg)\n {\n p...
php
chosen
[ { "from": "system", "value": "Fix dass bei News Detail Preview Image Admin felder doppelt waren\n" }, { "from": "human", "value": "<?php\nclass Vpc_Abstract_Image_Trl_Form_ImageData extends Vpc_Abstract_Image_Trl_ImageData\n{\n public function load($row)\n {\n $src = $this->_getImag...
php
chosen
[ { "from": "system", "value": "Add endpoint to force asset download\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\MediaLibrary\\Api;\n\nuse Backend\\Modules\\MediaLibrary\\Domain\\MediaItem\\MediaItemRepository;\nuse FOS\\RestBundle\\Controller\\Annotations as Rest;\nuse...
php
chosen
[ { "from": "system", "value": "Fix url, add X-Request-With, organize code\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCaffeine\\Http\\Middleware;\n\nuse Closure;\n\nclass LaravelCaffeineDripMiddleware\n{\n /**\n * Handle an incoming request.\n *\n * @param ...
php
chosen
[ { "from": "system", "value": "Fix people transfer when previous week was empty\n" }, { "from": "human", "value": "<?php namespace TmlpStats\\Reports\\Arrangements;\n\nclass TeamMembersByQuarter extends BaseArrangement\n{\n /*\n * Builds an array of TDO attendance for each team member\n ...
php
chosen
[ { "from": "system", "value": "Fix Call to undefined method Orchestra\\Tenanti\\Migrator\\Factory::getModel()\n\n- Call model method instead of getModel\n" }, { "from": "human", "value": "<?php\n\nnamespace Orchestra\\Tenanti\\Console;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\n...
php
chosen
[ { "from": "system", "value": "Set name as mandatory element for reset form creation" }, { "from": "human", "value": "<?php\n\nnamespace GoalioForgotPassword\\Form;\n\nuse Laminas\\Form\\Form;\nuse Laminas\\Form\\Element;\nuse GoalioForgotPassword\\Options\\ForgotOptionsInterface;\n\nclass Reset ...
php
chosen
[ { "from": "system", "value": "Fix setting `auth.defaults.provider` config option\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Support\\Str;\n\nclass SetAuthDefaults\n{\n /**\n * Han...
php
chosen
[ { "from": "system", "value": "Revert change, App must be nullable\n" }, { "from": "human", "value": "<?php\n/**\n * Slim Framework (https://slimframework.com)\n *\n * @link https://github.com/slimphp/Slim\n * @copyright Copyright (c) 2011-2017 Josh Lockhart\n * @license https://github.com...
php
chosen
[ { "from": "system", "value": "Add common createClient() and createServer() helpers" }, { "from": "human", "value": "<?php\n\nnamespace Sockets;\n\nuse React\\Promise\\When;\n\nuse React\\Promise\\Deferred;\nuse React\\EventLoop\\LoopInterface;\nuse Socket\\Raw\\Factory as RawFactory;\nuse \\Exce...
php
chosen
[ { "from": "system", "value": "Send proper content-type for api\n" }, { "from": "human", "value": "<?php\n\nnamespace j0k3r\\FeedBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Method;\nuse Symfony\\Com...
php
chosen
[ { "from": "system", "value": "Remove unneeded method from concrete impl.\n" }, { "from": "human", "value": "<?php namespace Modules\\Blog\\Repositories\\Eloquent;\n\nuse Modules\\Blog\\Entities\\Category;\nuse Modules\\Blog\\Repositories\\CategoryRepository;\nuse Modules\\Core\\Repositories\\Elo...
php
chosen
[ { "from": "system", "value": "Handle empty or null authorization header prefix\n" }, { "from": "human", "value": "<?php\n\nnamespace Lexik\\Bundle\\JWTAuthenticationBundle\\TokenExtractor;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * AuthorizationHeaderTokenExtractor\n *\n * @a...
php
chosen
[ { "from": "system", "value": "Use custom header color in emails\n" }, { "from": "human", "value": "<tr>\n <td class=\"header\">\n @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))\n\n @if ($snipeSettings->brand == '3')\n ...
php
chosen
[ { "from": "system", "value": "Remove the type constraints for the value token. References and tokens that don't represent a primitive value were breaking due to the unnecessary restrictions.\n" }, { "from": "human", "value": "<?php\n\nnamespace Silktide\\Reposition\\QueryBuilder\\QueryToken;\n\n...
php
chosen