conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Hide form if signed in\n" }, { "from": "human", "value": "<div class=\"page-header\">\n <div class=\"container\">\n <h1>Välkommen till Chalmers IT:s Autentiseringssystem!</h1>\n </div>\n</div>\n<div class=\"row\">\n <div class=\"col-lg-4\">\n <p></p>\n </d...
php
chosen
[ { "from": "system", "value": "Fix home highlights feed code\n" }, { "from": "human", "value": "<?php\n\nnamespace Bamboo\\Feeds\\Highlights;\n\nuse Bamboo\\Feeds\\Base;\n\nclass Home extends Base\n{\n\n protected $_feed = 'home/highlights';\n protected $_response;\n\n public function ge...
php
chosen
[ { "from": "system", "value": "Refactor compiler pass classes for consistency.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyrig...
php
chosen
[ { "from": "system", "value": "Fix uploaded file tmp path\n" }, { "from": "human", "value": "<?php\n\nnamespace Colorium\\Http\\Request;\n\nclass File\n{\n\n const OK = 0;\n const MAX_SIZE = 1;\n const FORM_SIZE = 2;\n const PARTIAL = 3;\n const NO_FILE = 4;\n const NO_TMP_DIR =...
php
chosen
[ { "from": "system", "value": "Update docblocks for begin & end methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Benrowe\\Laravel\\Widgets\\Traits;\n\n/**\n * Provides the begin & end functionality for the Widget factory\n *\n * @package Benrowe\\Laravel\\Widgets\n */\ntrait BeginEnd...
php
chosen
[ { "from": "system", "value": "Use label naming instead of entity name\n" }, { "from": "human", "value": "<?php\n\nnamespace Wanjee\\Shuwee\\AdminBundle\\Admin;\n\ninterface AdminInterface\n{\n // Get Create/Edit form (form class or \\Symfony\\Component\\Form\\Form)\n public function getFor...
php
chosen
[ { "from": "system", "value": "Add database seeder to add sample Potatocraft server to database.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n...
php
chosen
[ { "from": "system", "value": "Add a value to yield (might fix hhvm, but probably not)\n" }, { "from": "human", "value": "<?php\nnamespace Dynamo\\Middleware;\n\nuse Dynamo\\HttpResponse;\n\nclass RequestDuration {\n\tpublic function __invoke(HttpResponse $response) {\n\t\t$start = microtime(true...
php
chosen
[ { "from": "system", "value": "Make filter implement writable interface.\n" }, { "from": "human", "value": "<?php\n\nnamespace UWDOEM\\Framework\\Filter;\n\nuse Guzzle\\Service\\Resource\\Model;\nuse Propel\\Runtime\\ActiveQuery\\ModelCriteria;\n\nuse UWDOEM\\Framework\\FilterStatement\\FilterSta...
php
chosen
[ { "from": "system", "value": "Fix bug on initialization of controllers" }, { "from": "human", "value": "<?php\r\n\r\nnamespace TaskManagement;\r\n\r\nuse Zend\\ModuleManager\\Feature\\AutoloaderProviderInterface;\r\nuse Zend\\ModuleManager\\Feature\\ConfigProviderInterface;\r\n\r\nclass Module i...
php
chosen
[ { "from": "system", "value": "Add \"OR ListID\" check for element to element link\n\nThis is when elements are related to eachother and don't have a parent ID\n" }, { "from": "human", "value": "<?php\n\n/**\n * @package elemental\n */\nclass ElementPublishChildren extends DataExtension {\n\n\tpu...
php
chosen
[ { "from": "system", "value": "Add cancel button to earnings' edit view\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2>{{ __('actions.edit') }} {{ __('general.earning') }}</h2>\n <div class=\"box mt-3\">\n ...
php
chosen
[ { "from": "system", "value": "Remove @author tag for GeLo.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Http Discovery package.\n *\n * (c) PHP HTTP Team <team@php-http.org>\n *\n * For the full copyright and license information, please read the LICENSE\n * file th...
php
chosen
[ { "from": "system", "value": "Test that some exceptions are converted before rendering\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Nord\\ImageManipulationService\\Tests\\Exceptions;\n\nuse Nord\\ImageManipulationService\\Exceptions\\Handler;\nuse Nord\\ImageManipulationService\\Tests...
php
chosen
[ { "from": "system", "value": "Handle neglected input, Section builder.\n" }, { "from": "human", "value": "<?php\n\nnamespace UWDOEM\\Framework\\Section;\n\n\nuse UWDOEM\\Framework\\Writer\\WritableInterface;\n\n\nclass SectionBuilder {\n\n /**\n * The section's label. Set by overriding Se...
php
chosen
[ { "from": "system", "value": "Set timeout for 15 minutes\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Model;\n\nuse Symfony\\Component\\Process\\Process;\n\n\n\n/**\n * @author Martin Bažík <martin@bazik.sk>\n */\nclass Builder\n{\n\n\t/**\n\t * @var string\n\t */\n\tprivate $outpu...
php
chosen
[ { "from": "system", "value": "Write out message if there are no animals.\nStrings put into translation function.\n" }, { "from": "human", "value": "@extends('layouts.app')\n@section('content')\n <table class=\"table table-responsive table-bordered\">\n <tr>\n <th>Name</th>\n...
php
chosen
[ { "from": "system", "value": "Revert \"Used ternary operator instead of \"or\" for constant definition\"\n\nThis reverts commit 2bb6f13505e212d68841a7e6609806fb30d04002.\n" }, { "from": "human", "value": "<?php\n\ndefined('YII_DEBUG') ?: define('YII_DEBUG', false);\n\nrequire(__DIR__ . '/protect...
php
chosen
[ { "from": "system", "value": "Access code button in row widget is now secondary\n" }, { "from": "human", "value": " <div class=\"pure-g centered-row\">\n <div class=\"pure-u-1 pure-u-md-1-2\">\n <div class=\"l-box\">\n <p> <?php echo _('If you do not want to c...
php
chosen
[ { "from": "system", "value": "Update makeHtmlSnapshot step usage documentation" }, { "from": "human", "value": "<?php\nnamespace Codeception\\Lib\\Interfaces;\n\ninterface PageSourceSaver\n{\n /**\n * Saves page source of to a file\n *\n * ```php\n * $this->getModule('{{MODULE...
php
chosen
[ { "from": "system", "value": "Move validator extension registration to boot() method\n\nThe extension registration process needs app['validator'] to be registered already.\nTherefore, it belongs into the boot() method, rather than the register() method.\n" }, { "from": "human", "value": "<?php n...
php
chosen
[ { "from": "system", "value": "Revert \"Make service provider deferred\"\n\nThis reverts commit 3918b0c987b4545c414eba988b66dba1d1de5e57.\n\nService providers with a boot method cannot be deferred! It's a mystery\nto me that this worked in Laravel 5.1.\n\nThis fixes #50 but intentionally regresses #18. I don...
php
chosen
[ { "from": "system", "value": "Write ID to DB test\n" }, { "from": "human", "value": "\n<!DOCTYPE html>\n<html>\n <head><title>Response</title></head>\n <body>\n <h1>Response</h1>\n <?php\n require(\"secretSettings.php\");\n $raw = file_get_contents('php:...
php
chosen
[ { "from": "system", "value": "Allow array type for a parameter $params\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ray\\AuraSqlModule\\Pagerfanta;\n\nuse Aura\\Sql\\ExtendedPdoInterface;\n\ninterface AuraSqlPagerFactoryInterface\n{\n /**\n * @param ar...
php
chosen
[ { "from": "system", "value": "Add DepositAccountType for US bank account types" }, { "from": "human", "value": "<?php\nnamespace MangoPay;\n\n/**\n * Class represents US bank account type for in BankAccount entity\n */\nclass BankAccountDetailsUS extends Libraries\\Dto implements BankAccountDeta...
php
chosen
[ { "from": "system", "value": "Update title to ReCAPTCHA v3" }, { "from": "human", "value": "<?php\nrequire_once 'recaptcha.class.php';\n\n$form_id = \"form\";\n$site_key = 'YOUR_SITE_KEY';\n$secret_key = 'YOUR_SECRET_KEY';\n$recaptcha = new Recaptcha($form_id, $site_key, $secret_key);\n?>\n<!doc...
php
chosen
[ { "from": "system", "value": "Set app_path to src directory\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion;\n\nuse Illuminate\\Foundation\\Application as LaravelApplication;\n\nclass Application extends LaravelApplication\n{\n protected $appPath;\n\n public function __c...
php
chosen
[ { "from": "system", "value": "Support for new arg type \"options\"\n" }, { "from": "human", "value": "<?php\n\nclass CLI_Xf extends CLI\n{\n\t\n\tpublic function run()\n\t{\n\t\t$class = 'CLI_' . ucfirst(strtolower($this->getArgumentAt(0)));\n\t\t\n\t\tif ($class != __CLASS__ AND class_exists($c...
php
chosen
[ { "from": "system", "value": "Update term model, to load childrens and parent terms\n" }, { "from": "human", "value": "<?php namespace Devfactory\\Taxonomy\\Models;\n\nclass Term extends \\Eloquent {\n\n protected $fillable = [\n 'name',\n 'vocabulary_id',\n 'parent',\n 'weight',\n ...
php
chosen
[ { "from": "system", "value": "Remove IP reference in PHP example\n" }, { "from": "human", "value": "{\n \"message\" : \"Hello Weave - nginx example\",\n \"hostname\" : <?php echo gethostname() ?>\",\n \"ip\" : <?php echo gethostbyname(gethostname()) ?>,\n \"date\" : \"<?php echo date...
php
chosen
[ { "from": "system", "value": "Fix config for register redirections" }, { "from": "human", "value": "<?php\nreturn [\n 'client_id' => env('PONI_CLIENT_ID'),\n 'secret' => env('PONI_CLIENT_SECRET')\n];\n" }, { "from": "gpt", "value": "<?php\nreturn [\n 'client_id' => env('PONI...
php
chosen
[ { "from": "system", "value": "Clear output buffers before show error messages.\n" }, { "from": "human", "value": "<?php\nnamespace Thulium;\n\nclass Error\n{\n static public function exceptionHandler(\\Exception $exception)\n {\n self::_handleError($exception->getMessage(), $excepti...
php
chosen
[ { "from": "system", "value": "Fix PHPMD detection of excessive whitespaces\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\...
php
chosen
[ { "from": "system", "value": "Implement ftp_site MKDIR command for g4/storage - refactor\n" }, { "from": "human", "value": "<?php\n\nnamespace G4\\Storage\\Ftp;\n\nclass Directory\n{\n\n private $connection;\n\n private $directoryPath;\n\n private $pathParts;\n\n private $useFtpSiteC...
php
chosen
[ { "from": "system", "value": "Change Test to not mock a non existing method\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\nnamespace Templado\\Engine;\n\nuse DOMDocument;\nuse PHPUnit\\Framework\\TestCase;\n\nclass StripRDFaAttributesTransformationTest extends TestCase {\n ...
php
chosen
[ { "from": "system", "value": "BAP-775: Create datagrid and pager for all results from indexer\n - updated datagrid interface\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\GridBundle\\Datagrid;\n\nuse Sonata\\AdminBundle\\Datagrid\\DatagridInterface as BaseDatagridInterface;\...
php
chosen
[ { "from": "system", "value": "Use filesystem for all file access.\n" }, { "from": "human", "value": "<?php\n\nnamespace Studio\\Creator;\n\nuse League\\Flysystem\\Adapter\\Local;\nuse League\\Flysystem\\Filesystem;\nuse Studio\\Parts\\PartInterface;\nuse Studio\\Package;\nuse Studio\\Shell\\Task...
php
chosen
[ { "from": "system", "value": "Add setting for enabling / disabling replays\n" }, { "from": "human", "value": "<?php\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n | The algorithm to sign the request with\n |---------------------------...
php
chosen
[ { "from": "system", "value": "Fix deprecation for symfony/config 4.2+" }, { "from": "human", "value": "<?php\n\nnamespace Hype\\MailchimpBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInt...
php
chosen
[ { "from": "system", "value": "Update class finder in case directory does not exist\n" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\RadBundle\\Finder;\n\nuse Symfony\\Component\\Finder\\Finder;\n\nclass ClassFinder\n{\n private $finder;\n\n public function __construct(Finder $fin...
php
chosen
[ { "from": "system", "value": "Remove const that is not supported in older php versions" }, { "from": "human", "value": "<?php\n\nclass myKuserUtils\n{\n\tconst SPECIAL_CHARS = array('+', '=', '-', '@', ',');\n\tconst NON_EXISTING_USER_ID = -1;\n\tconst USERS_DELIMITER = ',';\n\tconst DOT_CHAR = ...
php
chosen
[ { "from": "system", "value": "Make the openIban credentials optional\n" }, { "from": "human", "value": "<?php\n\nnamespace fieldwork\\components;\n\nuse fieldwork\\sanitizers;\nuse fieldwork\\validators;\n\nclass IbanField extends TextField\n{\n\n /**\n * Creates a new text field and adds...
php
chosen
[ { "from": "system", "value": "Allow affiliation address2 and zip to be null for some of our school records\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateAffiliationTable extends Migration\...
php
chosen
[ { "from": "system", "value": "Increase machine model field size from 20 chars to 50 chars\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMachinesTable extends Migration\n{\n /**\n * ...
php
chosen
[ { "from": "system", "value": "Change the value to return to stop the loop\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * Return a value based on a condition.\n */\nfunction condition (bool $test, callable $truthy, callable $falsy = null)\n{\n $falsy = $falsy ?...
php
chosen
[ { "from": "system", "value": "Change parameter type to match psr15 interface\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\nnamespace Onion\\Framework\\Http\\Middleware;\n\nuse Interop\\Http\\Middleware\\DelegateInterface;\nuse Interop\\Http\\Middleware\\ServerMiddlewareInte...
php
chosen
[ { "from": "system", "value": "Add complex queries support for boolean types in bill api (BRCD-1316)" }, { "from": "human", "value": "<?php\n\n/**\n * @package Billing\n * @copyright Copyright (C) 2012-2016 BillRun Technologies Ltd. All rights reserved.\n * @license GNU Affe...
php
chosen
[ { "from": "system", "value": "Use new 'security.csrf.token_manager' service instead of 'form.csrf_provider' if using SF >= 2.4.0\n" }, { "from": "human", "value": "<?php\n\nnamespace Admingenerator\\GeneratorBundle\\Twig\\Extension;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterf...
php
chosen
[ { "from": "system", "value": "Return rendered html post creation response\n" }, { "from": "human", "value": "<?php namespace Lavoaster\\LightBlog\\Blog\\Controllers;\n\nuse Lavoaster\\LightBlog\\Blog\\Repositories\\PostRepositoryInterface;\n\nclass PostController extends \\BaseController\n{\n\n ...
php
chosen
[ { "from": "system", "value": "Make array lib that much more awesome\n" }, { "from": "human", "value": "<?php\n\nnamespace Lib;\n\nclass Arr\n{\n public static function set(string $key, $value, array $container = []): array\n {\n $keys = explode('.', $key);\n $valueKey = array...
php
chosen
[ { "from": "system", "value": "Set global asset path for Css\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"de\">\n<head>\n <link href='https://fonts.googleapis.com/css?family=Catamaran:400,700|Cambay:400,700' rel='stylesheet' type='text/css'>\n <meta charset=\"UTF-8\">\n ...
php
chosen
[ { "from": "system", "value": "Fix bug getting associated entity (target name)\n\nFor some reason this was not using the field name to determine the\nassociated entity, but the object, which was throwing error converting\nto string." }, { "from": "human", "value": "<?php\nnamespace Tenet\\Filter;...
php
chosen
[ { "from": "system", "value": "Fix rendering of options in selectRange" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCasts;\n\nclass SelectRange extends Dropdown\n{\n public function __construct(\n string $name,\n $start,\n $end,\n $value = null...
php
chosen
[ { "from": "system", "value": "Fix test broken by removed deserialize() method\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\Role\\Events;\n\nuse PHPUnit\\Framework\\TestCase;\nuse ValueObjects\\Identity\\UUID;\n\nclass AbstractEventTest extends TestCase\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Fix product attributes db structure\n" }, { "from": "human", "value": "<?php namespace Octommerce\\Octommerce\\Updates;\n\nuse Schema;\nuse October\\Rain\\Database\\Updates\\Migration;\n\nclass CreateProductAttributesTable extends Migration\n{\n\n public function...
php
chosen
[ { "from": "system", "value": "Implement comparison between two datetimes\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpAbac\\Comparison;\n\nclass DateComparison {\n \n /**\n * Return true if the given datetime is between two other datetimes\n * \n * @param \\DateTime...
php
chosen
[ { "from": "system", "value": "Use host as localhost address instead of server name\n" }, { "from": "human", "value": "<?php\n\nfunction adminer_object()\n{\n // Required to run any plugin.\n include_once \"./plugins/plugin.php\";\n\n // Plugins auto-loader.\n foreach (glob(\"plugins/...
php
chosen
[ { "from": "system", "value": "Add cors header status code\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Middleware;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Slim\\Container;\n\n/**\n * CORS preflight middleware.\n */\nclass ...
php
chosen
[ { "from": "system", "value": "Change to so there's no confusion between global and local\n" }, { "from": "human", "value": "<?php\n\nnamespace werx\\Core\\Modules;\n\nuse werx\\Core\\Module;\nuse werx\\Core\\WerxApp;\n\nclass ConsoleDispatcher extends Module\n{\n\tpublic function handle(WerxAp...
php
chosen
[ { "from": "system", "value": "Fix bug where load was being called on null.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\ViewComposers;\n\nuse Illuminate\\Contracts\\View\\View;\n\nclass NotificationsComposer\n{\n /**\n * Binds the relevant notification information to t...
php
chosen
[ { "from": "system", "value": "Fix resource id bug (where it come from, nobody be knowin')\n\n" }, { "from": "human", "value": "<?php\nclass EmCore_Model_GroupItem extends Emerald_Model_AbstractItem implements Emerald_Acl_Role_Interface\n{\n\tprivate $_users;\n\t\n\tpublic function getRoleId()\n\...
php
chosen
[ { "from": "system", "value": "Update user migration with fields we'll want to use\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration {\n\n\t/**\n\t * Run the migrat...
php
chosen
[ { "from": "system", "value": "Replace cache with behavior pageCache\n" }, { "from": "human", "value": "<?php\n/**\n * @link https://github.com/himiklab/yii2-sitemap-module\n * @copyright Copyright (c) 2014 HimikLab\n * @license http://opensource.org/licenses/MIT MIT\n */\n\nnamespace assayerpro\...
php
chosen
[ { "from": "system", "value": "Change function from public to protected\n" }, { "from": "human", "value": "<?php namespace Lio\\Forum\\Replies;\n\nuse Lio\\Core\\FormModel;\nuse Validator;\n\nclass ReplyForm extends FormModel\n{\n protected $validationRules = [\n 'body' => 'required',\...
php
chosen
[ { "from": "system", "value": "Set the cookie path properly.\n\nThis is needed so that the cookies are valid for\n(only) us, and so that they're easier to track.\n" }, { "from": "human", "value": "<?php\n\nrequire_once(\"tokenstrategy.php\");\n\nclass CookieStrategy extends TokenStrategy\n{\n ...
php
chosen
[ { "from": "system", "value": "Replace codes to HTTP Codes." }, { "from": "human", "value": "<?php\n/**\n * @author Andrey Helldar <helldar@ai-rus.com>\n *\n * @since 2017-02-20\n * @since 2017-03-08 Add statuses for user.\n */\nreturn array(\n 1 => 'Unknown method',\n 2 => 'Unknown er...
php
chosen
[ { "from": "system", "value": "Add shortcut variable to tinker command\n" }, { "from": "human", "value": "<?php\nnamespace Rocketeer\\Console\\Commands;\n\nuse Boris\\Boris;\nuse Illuminate\\Console\\Command;\nuse Rocketeer\\Abstracts\\AbstractCommand;\n\nclass TinkerCommand extends AbstractComm...
php
chosen
[ { "from": "system", "value": "Check if orderitems is complete.\n" }, { "from": "human", "value": "<?\nclass Shineisp_Api_Shineisp_Ordersitems extends Shineisp_Api_Shineisp_Abstract_Action {\n \n public function checkIfComplete( $uuid ) {\n \n \n }\n \n}\n " }, {...
php
chosen
[ { "from": "system", "value": "[DebugBundle][VarDumper] Fix server dumper placeholder command\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, pl...
php
chosen
[ { "from": "system", "value": "Use variadic function instead of func_get_args()\n" }, { "from": "human", "value": "<?php\n\nnamespace tests\\mocks;\n\nfinal class ExampleClassWithArgs\n{\n private $constructorArgs = [];\n\n public function __construct()\n {\n $this->constructorArg...
php
chosen
[ { "from": "system", "value": "Add an extra newline to the createLink function\n" }, { "from": "human", "value": "<div class=\"bg1\"></div>\n<div class=\"bg2\"></div>\n<br/>\n<div class=\"header\">\n\t<h1>Parontalli</h1>\n\t<?\n\t\tif(substr($_SERVER[REQUEST_URI], 0, 4) == '/dev') {\n\t\t\techo(\...
php
chosen
[ { "from": "system", "value": "Revert \"Setting breadcrumbs to display: none to disable this broken feature at this time\"\n\nThis reverts commit 78d36e05ce2f06b8ac400b44f9a0ac7fe1cc3316.\n" }, { "from": "human", "value": "<div id=\"navigation\" class=\"module classPath-mop_modules_navigation_Nav...
php
chosen
[ { "from": "system", "value": "Use specific skipped testSetMultipleWithIntegerArrayKey now it is merged\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace RoaveTest\\DoctrineSimpleCache;\n\nuse Cache\\IntegrationTests\\SimpleCacheTest;\nuse Doctrine\\Common\\Cache\\...
php
chosen
[ { "from": "system", "value": "Fix the amount in cart\n\nSubclasses can set an amount and this has to be considered\n" }, { "from": "human", "value": "<?php\nclass Kwc_Shop_AddToCartAbstract_FrontendForm extends Kwf_Form\n{\n protected function _beforeInsert(&$row)\n {\n $row->amount...
php
chosen
[ { "from": "system", "value": "Correct class creation in custom filter\n\nSigned-off-by: devorama <057a94c3eec2d3bbeda2bb18edd6039385c36f6a@users.noreply.github.com>\n" }, { "from": "human", "value": "<?php namespace Tests\\Support\\Config\\Filters;\n$customfilters->aliases['test-customfilter'] =...
php
chosen
[ { "from": "system", "value": "Add Bootstrap CSS to master app layout\n" }, { "from": "human", "value": "// resources/views/layouts/app.blade.php\n\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title>Laravel Quickstart - Basic</title>\n\n <!-- CSS And JavaScript -->\n </hea...
php
chosen
[ { "from": "system", "value": "Send HTTP code when cron is too much executed\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU Gener...
php
chosen
[ { "from": "system", "value": "Fix only variables should be passed by reference notice" }, { "from": "human", "value": "<?php\n\nnamespace OntraportAPI;\n\n/**\n * Class APIAutoloader\n *\n * @author ONTRAPORT\n *\n * @package OntraportAPI\n */\nclass APIAutoloader\n{\n public static function ...
php
chosen
[ { "from": "system", "value": "Update status color based on response code\n" }, { "from": "human", "value": "<?php\r\n\r\n/**\r\n * Class Sheep_Debug_Block_Controller\r\n *\r\n * @category Sheep\r\n * @package Sheep_Debug\r\n * @license Copyright: Pirate Sheep, 2016, All Rights reserved.\r\n * ...
php
chosen
[ { "from": "system", "value": "Remove test that is not passed by Fuse.js itself\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse PHPUnit\\Framework\\TestCase;\nuse Fuse\\Fuse;\n\nclass SearchListTest extends TestCase {\n\tpublic function testSearc...
php
chosen
[ { "from": "system", "value": "Add file lock when commiting to eventstore\n" }, { "from": "human", "value": "<?php\n\nnamespace Selleet\\Infrastructure\\BuildingBlocks\\EventStore;\n\nuse RuntimeException;\nuse SplFileObject;\n\nclass InFileEventStore implements EventStore\n{\n private $direct...
php
chosen
[ { "from": "system", "value": "Abort with 404 if no CMS page content is available\n" }, { "from": "human", "value": "<?php\n\n/**\n * @license MIT, http://opensource.org/licenses/MIT\n * @copyright Aimeos (aimeos.org), 2015-2021\n * @package laravel\n * @subpackage Controller\n */\n\n\nnamespace ...
php
chosen
[ { "from": "system", "value": "Fix for page title not showing up\n" }, { "from": "human", "value": "@extends('scaffold-interface.layouts.app')\n@section('title',$Sitenavigation->PageTitle)\n@section('head')\n\n <script>\n {!!$Sitenavigation->PageJavaScript!!}\n </script>\n\n\n <st...
php
chosen
[ { "from": "system", "value": "CRM-4759: Fix path to entity_pagination_target options\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EntityPaginationBundle\\Datagrid;\n\nuse Oro\\Bundle\\DataGridBundle\\Extension\\AbstractExtension;\nuse Oro\\Bundle\\DataGridBundle\\Datasource...
php
chosen
[ { "from": "system", "value": "Check whether or not selected currency exists in database upon registration\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n// use App\\Http\\Controllers\\Controller;\n\nuse App\\Currency;\nuse App\\Us...
php
chosen
[ { "from": "system", "value": "Use willReturn() instead of will(returnValue()).\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 ...
php
chosen
[ { "from": "system", "value": "Use camel case yaml naming strategy instead of lower camel case\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the FixtureDumper library.\n *\n * (c) Martin Parsiegla <martin.parsiegla@gmail.com>\n *\n * For the full copyright and license in...
php
chosen
[ { "from": "system", "value": "Solve errata naming the class\n" }, { "from": "human", "value": "<?php\n\n/* Copyright 2009-2011 Rafael Gutierrez Martinez\n * Copyright 2012-2013 Welma WEB MKT LABS, S.L.\n * Copyright 2014-2016 Where Ideas Simply Come True, S.L.\n *\n * Licensed under the Apac...
php
chosen
[ { "from": "system", "value": "Clear superfluous use statements in example\n" }, { "from": "human", "value": "<?php\n\nuse Amp\\Success;\nuse Aerys\\Websocket;\nuse Aerys\\Websocket\\Broadcast;\n\nclass ExampleWebsocket implements Websocket {\n private $clientCount = 0;\n\n public function ...
php
chosen
[ { "from": "system", "value": "Replace use of Laravel Facades with dependency injection\n\nI'm not a huge fan of the Laravel Facades concept. But I get why it's\nthere. So this moves me away from that, making the code both clearer, as\nwell as easier for the IDE (PhpStorm of course) to figure out what's goin...
php
chosen
[ { "from": "system", "value": "Add check for Darwin OS\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of sebastian/environment.\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": "Remove Zend\\Router module from V2 configuration\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'modules' => [\n 'Zend\\Router',\n 'DoctrineModule',\n 'DoctrineMongoODMModule',\n ],\n 'module_listener_options' => [\n 'con...
php
chosen
[ { "from": "system", "value": "Use proper docblock for deprecation\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Foundation\\Bus;\n\nuse ArrayAccess;\n\n/**\n * This trait is deprecated. Use the DispatchesJobs trait.\n */\ntrait DispatchesCommands {\n\n\t/**\n\t * Dispatch a comm...
php
chosen
[ { "from": "system", "value": "Fix typo in loging page causing fatal error\n\nFix typo in loging page causing fatal error\n\n- Close `?>`\n\n\nFormer-commit-id: 483240697e8b609fed1aaeba50bb140c0505287b" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die('Access denied.');\n$form =...
php
chosen
[ { "from": "system", "value": "Correct multiple email uniqueness validator\n" }, { "from": "human", "value": "<?php\n\nnamespace Ojs\\UserBundle\\Validator;\n\nuse Doctrine\\ORM\\EntityManager;\nuse Ojs\\UserBundle\\Validator\\Constraints\\UniqueMultipleEmails;\nuse Symfony\\Component\\Validator\...
php
chosen
[ { "from": "system", "value": "Add categories plugin to manifest\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n\nif (!isset($argv[1])) {\n echo 'Please specify the tag for this release';\n exit(1);\n}\n\n$tag = $argv[1];\n\nshell_exec('git tag '.$tag);\nshell_exec('./build.s...
php
chosen
[ { "from": "system", "value": "Return types in repositories & dataset\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full cop...
php
chosen
[ { "from": "system", "value": "Fix group factory to prevent causing primary key conflicts\n" }, { "from": "human", "value": "<?php\n\n$factory->define(App\\Models\\Group::class, function (Faker\\Generator $faker) {\n return [\n 'group_id' => function () use ($faker) {\n // tr...
php
chosen
[ { "from": "system", "value": "Add actual error message to log\n" }, { "from": "human", "value": "<?php\n\nnamespace Busuu\\IosReceiptsApi;\n\nuse GuzzleHttp\\Client;\n\nclass AppleClient\n{\n /** @var Client $client */\n private $client;\n /** @var string */\n private $password;\n\...
php
chosen
[ { "from": "system", "value": "Split talks into upcoming and past talks.\n" }, { "from": "human", "value": "<?php\n/**\n * AlainSchlesser.com Speaking Page Plugin.\n *\n * @package AlainSchlesser\\Speaking\n * @author Alain Schlesser <alain.schlesser@gmail.com>\n * @license MIT\n * @link ...
php
chosen