conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix: Reduce visibility of protected class members to private\n" }, { "from": "human", "value": "<?php\n\nnamespace Application\\Controller;\n\nuse Application\\Service\\RepositoryRetriever;\nuse Zend\\Mvc\\Controller\\AbstractActionController;\nuse Zend\\View\\Model...
php
chosen
[ { "from": "system", "value": "Fix regexp logic when installed into subfolder\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Slim HTTP Basic Authentication middleware\n *\n * Copyright (c) 2013-2015 Mika Tuupola\n *\n * Licensed under the MIT license:\n * http://www.ope...
php
chosen
[ { "from": "system", "value": "Add preRemove callbcok for user to change email" }, { "from": "human", "value": "<?php\n\nnamespace NyroDev\\NyroCmsBundle\\Model\\Entity;\n\nuse NyroDev\\NyroCmsBundle\\Model\\User as UserModel;\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Gedmo\\Mapping\\Annotation as...
php
chosen
[ { "from": "system", "value": "Use markdown file title by defautl\n" }, { "from": "human", "value": "<?php\n\n/**\n* # Page View Model\n*\n* Automaticly load page based on slug, throw 404 if page doesn't exist.\n*\n* @package\t\tFlatfile\n* @category\t\tView Model\n* @author\t\tZiopod <ziopod@gma...
php
chosen
[ { "from": "system", "value": "Add categories to the JSON file\n" }, { "from": "human", "value": "<?php require_once 'config.php';\n\nif ($env == 'production')\n{\n error_reporting(E_ERROR | E_PARSE);\n}\n\nfunction print_files($url, $dir)\n{\n $hide = \".\";\n\n $directory = opendir($dir);\n\...
php
chosen
[ { "from": "system", "value": "Allow access to vagrant webserver\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n...
php
chosen
[ { "from": "system", "value": "Add static caching to twig get_user function.\n" }, { "from": "human", "value": "<?php\n\nnamespace Bkstg\\CoreBundle\\Twig;\n\nuse Symfony\\Component\\Security\\Core\\User\\UserProviderInterface;\n\nclass UserExtension extends \\Twig_Extension\n{\n private $user...
php
chosen
[ { "from": "system", "value": "Add lazy flag to avoid circular reference" }, { "from": "human", "value": "<?php\n\nnamespace Finite\\Bundle\\FiniteBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symf...
php
chosen
[ { "from": "system", "value": "Set user for core app service correctly\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WebClientBundle\\Controller;\n\nclass TestNotificationController extends TestViewController\n{\n public function urlLimitAction($test_id, $website) {\n ...
php
chosen
[ { "from": "system", "value": "Convert left over 5.4 closing bracket\n\nClosing bracked of array was not converted to 5.3 style" }, { "from": "human", "value": "<?php\nnamespace Aura\\Html\\Helper\\Input;\n\nreturn array(\n 'button' => function () { return new Generic; },\n 'chec...
php
chosen
[ { "from": "system", "value": "Fix CS issues reported by php-cs-fixer\n\n- Remove unused use\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copy...
php
chosen
[ { "from": "system", "value": "Include the new PaymentCondition class in the classinclude file\n" }, { "from": "human", "value": "<?php\n/*************************************************************************************************\n * Copyright 2015 MajorLabel -- This file is a part of Major...
php
chosen
[ { "from": "system", "value": "Add simple function directly to the view as closure to help get a widget specific Advanced Custom Field\n" }, { "from": "human", "value": "<?php\nnamespace Sarcofag\\Service\\SPI\\Widget;\n\nuse Sarcofag\\Exception\\RuntimeException;\nuse Sarcofag\\Service\\API\\WP;...
php
chosen
[ { "from": "system", "value": "Add some boilerplate scheduling artisan commands to run some scheduled jobs.\n" }, { "from": "human", "value": "<?php namespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Ke...
php
chosen
[ { "from": "system", "value": "Add link to edit test date information to Pending page\n\nFixes #177\n" }, { "from": "human", "value": "<h2><span class=\"label label-default\">Pending surveys</span></h2>\n<table class=\"table table-striped table-hover\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th>Survey ID</...
php
chosen
[ { "from": "system", "value": "Allow SS Environment to define the deploynaut external resources\n" }, { "from": "human", "value": "<?php\n\nglobal $project;\n$project = 'mysite';\n\nglobal $database;\n$database = 'deploynaut';\n\nrequire_once('conf/ConfigureFromEnv.php');\n\nMySQLDatabase::set_co...
php
chosen
[ { "from": "system", "value": "Update conversation repository: get a conversation by recipient only (not by its author)\n" }, { "from": "human", "value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Symfony\\Component\\Security\\Core\\User...
php
chosen
[ { "from": "system", "value": "Improve and fix CallbacIterator unit test\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplePHPEasyPlus\\Iterator;\n\nclass CallbackIteratorTest extends \\PHPUnit_Framework_TestCase\n{\n public function testIterate()\n {\n $items = array(1, 2)...
php
chosen
[ { "from": "system", "value": "Fix - Allow DSA to access bulk tag\n" }, { "from": "human", "value": "<?php\n\nclass Bulk_tag extends MX_Controller {\n\tfunction index(){\n\t\t$data['title'] = 'Bulk Tagging Tool';\n\t\t$data['scripts'] = array('bulk_tag_app');\n\t\t$data['js_lib'] = array('core', ...
php
chosen
[ { "from": "system", "value": "Revert \"only transform exceptions if the request is expecting a json response.\"\n\nThis reverts commit 32c6f94210fe91933e20198de3d73d1d855c5416.\n" }, { "from": "human", "value": "<?php\n\nnamespace Flugg\\Responder\\Exceptions;\n\nuse Exception;\nuse Flugg\\Respo...
php
chosen
[ { "from": "system", "value": "Trim diffs only on the right side\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPSpec2\\Diff;\n\nclass Diff\n{\n private $engines = array();\n\n public function addEngine(EngineInterface $engine)\n {\n $this->engines[] = $engine;\n }\n\n...
php
chosen
[ { "from": "system", "value": "Fix column name in activity model\n" }, { "from": "human", "value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\n/**\n* Logs actions performed in the CMS.\n*\n* @package\tSledge\n* @category\tModels\n* @author\tRob Taylor\n* @copyright\tHoop Asso...
php
chosen
[ { "from": "system", "value": "Add hr to sponsors list\n" }, { "from": "human", "value": "<div id=\"sponsors\" class=\"container\">\n <h2>Sponsors</h2>\n\n <div class=\"sponsors-list\">\n <div>\n <a href=\"https://www.digitalocean.com/?refcode=7922b1dff899\">\n ...
php
chosen
[ { "from": "system", "value": "Make options part of the interface\n" }, { "from": "human", "value": "<?php\nnamespace SlimApi\\Generator;\n\ninterface GeneratorInterface\n{\n /**\n * Validate names and fields provided\n *\n * @param string $name\n * @param array $fields\n *...
php
chosen
[ { "from": "system", "value": "Add comment to script to describe what this script is good for\n" }, { "from": "human", "value": "<?php\n$data = Kwf_Registry::get('db')->query('SELECT * FROM `kwc_basic_image` WHERE data like \\'%preview_image\":true%\\'')->fetchAll();\nforeach ($data as $row) {\n ...
php
chosen
[ { "from": "system", "value": "Improve fenced code block parser's handling of closing fences.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Markdown\\Parser;\n\nuse FluxBB\\Markdown\\Common\\Text;\nuse FluxBB\\Markdown\\Node\\CodeBlock;\n\nclass FencedCodeBlockParser extends Abstr...
php
chosen
[ { "from": "system", "value": "Set names to default routes.\n" }, { "from": "human", "value": "<?php\n\nuse App\\Controllers\\HomeController;\nuse App\\Controllers\\LeadController;\nuse App\\Controllers\\ThanksController;\n\n$app->get('/', HomeController::class.':index');\n\n$app->post('/store', ...
php
chosen
[ { "from": "system", "value": "Add comment for relationship function\n" }, { "from": "human", "value": "<?php\n\nclass Author extends Eloquent {\n\n /**\n * Database table used by model\n */\n protected $table = 'authors';\n\n /**\n * Class Constants\n */\n\n const SHO...
php
chosen
[ { "from": "system", "value": "Update config for Symfony 4.2 change" }, { "from": "human", "value": "<?php\n\nnamespace Gos\\Bundle\\PubSubRouterBundle\\DependencyInjection;\n\nuse Gos\\Bundle\\PubSubRouterBundle\\Generator\\Generator;\nuse Gos\\Bundle\\PubSubRouterBundle\\Matcher\\Matcher;\nuse ...
php
chosen
[ { "from": "system", "value": "Include DB and JoinClause in the template factory generator view\n" }, { "from": "human", "value": "<?= '<?php' ?>\n\n\nnamespace {{$namespace}};\n\nuse Chalcedonyt\\QueryBuilderTemplate\\Templates\\Factory\\AbstractTemplateFactory;\n\nclass {{$classname}} extends A...
php
chosen
[ { "from": "system", "value": "Add comment about Provider not being used in userland code\n" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Http;\n\nuse Neos\\Flow\\Annotations as Flow;\nuse Neos\\Flow\\Core\\Bootstrap;\nuse Psr\\Http\\Message\\ServerRequestFactoryInterface;\nuse Ps...
php
chosen
[ { "from": "system", "value": "[SecurityBundle] Fix disabling of RoleHierarchyVoter when passing empty hierarchy\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 lice...
php
chosen
[ { "from": "system", "value": "Add option to insert multiple elements at the same time\n" }, { "from": "human", "value": "<?php\n\nnamespace Galahad\\LaravelAddressing;\n\nuse ArrayObject;\nuse IteratorAggregate;\nuse Traversable;\n\n/**\n * Class Collection\n *\n * @package Galahad\\LaravelAddre...
php
chosen
[ { "from": "system", "value": "Send proper 404 code: fix\n" }, { "from": "human", "value": "<?php\n\n/**\n* SpinDash — A web development framework\n* © 2007–2015 Ilya I. Averkov\n*\n* Contributors:\n* Irfan Mahfudz Guntur <ayes@bsmsite.com>\n* Evgeny Bulgakov <evgeny@webline-masters.ru>\n*/\n\nna...
php
chosen
[ { "from": "system", "value": "Add one more test for the Batch Extension.\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\Plates\\Extension;\n\nclass BatchTest extends \\PHPUnit_Framework_TestCase\n{\n private $extension;\n\n public function setUp()\n {\n $this->exte...
php
chosen
[ { "from": "system", "value": "Tweak behaviour of Null transformer\n" }, { "from": "human", "value": "<?php\n/*\n * Copyright 2017 Jack Sleight <http://jacksleight.com/>\n * This source file is subject to the MIT license that is bundled with this package in the file LICENCE. \n */\n\nnamespace Co...
php
chosen
[ { "from": "system", "value": "Correct the Message in `skipIfPhp5`\n\nWhich said something non-sensical before.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of PMG\\Queue\n *\n * Copyright (c) PMG <https://www.pmg.com>\n *\n * For full copyright information see the LICENSE ...
php
chosen
[ { "from": "system", "value": "Use an Anonymous Function for Loading the Plugin\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the wp-magnify/core package.\n *\n * (c) Christopher Davis <http://christopherdavis.me>\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Fix a problem with the initial installation\n" }, { "from": "human", "value": "<?php\nnamespace OC\\Migrations;\n\nuse OCP\\Migration\\ISimpleMigration;\nuse OCP\\Migration\\IOutput;\n\n/**\n * Disable enterprise_key app during the upgrade to 10.5.0\n */\nclass Vers...
php
chosen
[ { "from": "system", "value": "Add tip about getProcessorArguments implementation\n" }, { "from": "human", "value": "<?php\n\nnamespace Swarrot\\SwarrotBundle\\Processor;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\ninterface ProcessorConfiguratorInterface\n{\n /**\n * Def...
php
chosen
[ { "from": "system", "value": "Set delete method just to show how it's done\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\FactoryMuffin\\Test;\n\nuse League\\FactoryMuffin\\Facade\\FactoryMuffin;\n\nclass TestCase extends \\PHPUnit_Framework_TestCase\n{\n public static function...
php
chosen
[ { "from": "system", "value": "Remove PHP 4 compatibility hack.\n\nSigned-off-by: Edward Z. Yang <dbd597f5635f432486c5d365e9bb585b3eaa1853@mit.edu>\n" }, { "from": "human", "value": "<?php\n\n/**\n * Validate all attributes in the tokens.\n */\n\nclass HTMLPurifier_Strategy_ValidateAttributes ext...
php
chosen
[ { "from": "system", "value": "Change Auth\\Guard to use Guard Contract" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelMixpanel\\Providers;\n\nuse GeneaLabs\\LaravelMixpanel\\LaravelMixpanel;\nuse GeneaLabs\\LaravelMixpanel\\Listeners\\LaravelMixpanelEventHandler;\nuse GeneaLa...
php
chosen
[ { "from": "system", "value": "Add apache note with userid and session id\n" }, { "from": "human", "value": "<?php \nclass trackingFilter extends sfFilter\n{\n public function execute ($filterChain)\n {\n if ($this->isFirstCall())\n {\n $user = $this->getContext()->getUser();\n\n ...
php
chosen
[ { "from": "system", "value": "Add counter to word class\n" }, { "from": "human", "value": "<?php\n/**\n * This class represents a word\n * @author newloki\n */\nnamespace \\Language\\Word;\nuse \\Language\\Languages\\LanguagesAbstract;\n\nclass Word\n{\n /** @var \\Language\\Languages\\Langua...
php
chosen
[ { "from": "system", "value": "Remove code that was moved back to Engine\n" }, { "from": "human", "value": "<?php\n\nnamespace PDepend\\Metrics;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\nclass AnalyzerFactory\n{\n private $container;\n private $options;\n\n p...
php
chosen
[ { "from": "system", "value": "Reorder to match PHPTAL interface.\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * Allows PHPTAL to take advantage of the Kohana i18n tranlator.\n *\n * @package KOtal\n * @category Base\n * @author H...
php
chosen
[ { "from": "system", "value": "Allow to dd in cli\n" }, { "from": "human", "value": "<?php\n/*\n +------------------------------------------------------------------------+\n | dd |\n +---------------------------------------------...
php
chosen
[ { "from": "system", "value": "FIX Only overwrite pagelist data if not found\n\nOnly set fields in the data going out in the user info list stuff if the data\nhasn't already been set by some other mechanism (in the default implementation)\n" }, { "from": "human", "value": "<?php\n\n/**\n * @autho...
php
chosen
[ { "from": "system", "value": "Remove echo, so undot() can be used like str_replace()\n" }, { "from": "human", "value": "<?php\n\n/*\n * Layout functions\n */\n\n// `encrypt`\n//\n// Encrypts `$data` with base64.\nfunction encrypt($data) {\n echo base64_encode($data);\n}\n\n// `decrypt`\n//\n// ...
php
chosen
[ { "from": "system", "value": "Make queued jobs the default.\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Foundation\\Console;\n\nuse Illuminate\\Console\\GeneratorCommand;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass JobMakeCommand extends GeneratorCommand\...
php
chosen
[ { "from": "system", "value": "Make Composer work with PHP 5.2 and earlier. Reported by @voku\n\nSigned-off-by: Edward Z. Yang <dbd597f5635f432486c5d365e9bb585b3eaa1853@cs.stanford.edu>\n" }, { "from": "human", "value": "<?php\nif (!defined('HTMLPURIFIER_PREFIX')) {\n define('HTMLPURIFIER_PREF...
php
chosen
[ { "from": "system", "value": "[Form] Fix UnexpectedTypeException from HttpFoundation extension\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": "Upgrade method getController to accept params additional from route" }, { "from": "human", "value": "<?php\n\nnamespace JS\\Test;\n\nuse Zend\\Mvc\\MvcEvent;\nuse Zend\\Mvc\\Router\\Http\\TreeRouteStack;\nuse Zend\\Mvc\\Router\\Console\\RouteMatch;\nuse Zend\\Test\\...
php
chosen
[ { "from": "system", "value": "Add error message when return codes don't match on the passthru\n" }, { "from": "human", "value": "<?php\nnamespace Vanderbilt\\EmailTriggerExternalModule;\n\nuse ExternalModules\\AbstractExternalModule;\nuse ExternalModules\\ExternalModules;\n\nrequire_once 'EmailT...
php
chosen
[ { "from": "system", "value": "Add authentication check to destroy() policy\n" }, { "from": "human", "value": "<?php\n\nnamespace RadDB\\Policies;\n\nuse RadDB\\Tube;\nuse RadDB\\User;\nuse Illuminate\\Support\\Facades\\Auth;\nuse Illuminate\\Auth\\Access\\HandlesAuthorization;\n\nclass TubePolic...
php
chosen
[ { "from": "system", "value": "Test even more PHP decoding cases\n" }, { "from": "human", "value": "<?php\nuse Gettext\\Utils\\Strings;\n\nclass StringsTest extends PHPUnit_Framework_TestCase\n{\n public function stringFromPhpProvider()\n {\n return array(\n array('\"test\...
php
chosen
[ { "from": "system", "value": "Test if const CLIENT is valid\n" }, { "from": "human", "value": "<?php\n\nnamespace Moip\\Tests;\n\nuse Moip\\Tests\\MoipTestCase;\n\n/**\n* class MoipTest\n*/\nclass MoipTest extends MoipTestCase\n{\n\t/**\n\t * Test if endpoint production is valid.\n\t */\n\tpubli...
php
chosen
[ { "from": "system", "value": "Fix run tests in php7\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\n\nuse PHPUnit_Framework_TestCase;\n\nclass TestCase extends PHPUnit_Framework_TestCase\n{\n protected function loadFixture($filename)\n {\n $path = __DIR__ . '/fixture...
php
chosen
[ { "from": "system", "value": "Format exceptions to JSON in JSON layer\n" }, { "from": "human", "value": "<?php\n\nnamespace Aztech\\Layers\\Elements;\n\nuse Aztech\\Layers\\Responses\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Respons...
php
chosen
[ { "from": "system", "value": "Update our temporary route path\n" }, { "from": "human", "value": "<?php\nnamespace Fyuze\\Kernel\\Application;\n\nuse Fyuze\\Http\\Kernel;\nuse Fyuze\\Http\\Response;\nuse Fyuze\\Kernel\\Fyuze;\nuse Fyuze\\Http\\Request;\nuse Symfony\\Component\\HttpKernel\\Control...
php
chosen
[ { "from": "system", "value": "Add new method to publisher interface.\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Retrinko\\CottonTail\\Publisher;\n\n\ninterface PublisherInterface\n{\n /**\n * @param string $data\n *\n * @return void\n */\n public function publi...
php
chosen
[ { "from": "system", "value": "Remove unused variable within component presenter\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was...
php
chosen
[ { "from": "system", "value": "Add in forgot password route\n" }, { "from": "human", "value": "<?php\n\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| Here i...
php
chosen
[ { "from": "system", "value": "Update GoogleReverseGeoCoder for the new mock location" }, { "from": "human", "value": "<?php\n\nnamespace SearchApi\\Providers;\n\nuse SearchApi\\Models as Models;\nuse SearchApi\\Test as Test;\nuse SearchApi\\Support as Support;\nuse SearchApi\\Services\\ReverseGe...
php
chosen
[ { "from": "system", "value": "Use htmlentities in the HTML\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@3404 46e82423-29d8-e211-989e-002590a4cdd4\n" }, { "from": "human", "value": "<?php\n\t#\n\t# $Id: login.php,v 1.1.2.8 2003-12-01 18:17:47 dan Exp $\n\t#\n\t# Copyright (c) 1998-20...
php
chosen
[ { "from": "system", "value": "Disable process timeout to allow download long videos\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace YoutubeDl\\Process;\n\nuse Symfony\\Component\\Process\\ExecutableFinder;\nuse Symfony\\Component\\Process\\Process;\nuse YoutubeD...
php
chosen
[ { "from": "system", "value": "Rename caught previous exception variable\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace EPS\\PhpUri\\Validator;\n\nuse EPS\\PhpUri\\Exception\\ValidatorException;\n\nfinal class AggregatedValidator implements Validator\n{\n /**...
php
chosen
[ { "from": "system", "value": "Set compilation adhesion on the command line.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nuse Repositories\\RepositoryI...
php
chosen
[ { "from": "system", "value": "Add add to cart buttons to category view\n" }, { "from": "human", "value": "<?php include 'header.php'; ?>\n<?php include 'sidebar.php'; ?>\n <section id=\"main\" role=\"main\" class=\"category\">\n <h2><?php echo $category['name']; ?></h2>\n<?php foreach(...
php
chosen
[ { "from": "system", "value": "Refactor builder method to cache relationships\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelModelCaching;\n\nuse Closure;\nuse Illuminate\\Cache\\TaggableStore;\nuse Illuminate\\Database\\Eloquent\\Builder as EloquentBuilder;\n\nclass Builder...
php
chosen
[ { "from": "system", "value": "Allow filter to run after object hydration\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\nnamespace Onion\\Framework\\Collection;\n\nuse Onion\\Framework\\Hydrator\\Interfaces\\HydratableInterface;\n\nclass HydratableCollection extends CallbackCo...
php
chosen
[ { "from": "system", "value": "Add \"min\" and \"max\" to validations.\n\n\n" }, { "from": "human", "value": "<?php\n/**\n * Validation library.\n *\n * $Id$\n *\n * @package Validation\n */\nclass Validation extends Validation_Core {\n\n // {{{ Properties\n\n // Names\n protected $na...
php
chosen
[ { "from": "system", "value": "Change CodeStyling for more consistency\n\n- 2 empty lines after usestatement\r\n- No empty line after variable typedefinition" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\RadBundle\\Entity\\Extension;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n *...
php
chosen
[ { "from": "system", "value": "Add .nz 1st level, expand 2nd level domains\n\n- Adds .nz\r\n- Adds missing cri.nz\r\n- Correct spelling of parliament.nz" }, { "from": "human", "value": "<?php\n\nnamespace Faker\\Provider\\en_NZ;\n\nclass Internet extends \\Faker\\Provider\\Internet\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Extend display product details to show product number in the list\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Catalog\\Category;\n\nuse Moltin\\SDK\\Facade\\Moltin as Moltin;\nuse Moltin\\SDK\\Facade\\Product as Product;\n\nclass CategoryList\n{\n ...
php
chosen
[ { "from": "system", "value": "Allow soft deletion of users\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Auth\\UserInterface;\nuse Illuminate\\Auth\\Reminders\\RemindableInterface;\n\nclass User extends Eloquent implements UserInterface, RemindableInterface {\n\n\t/**\n\t * The dat...
php
chosen
[ { "from": "system", "value": "Remove Attribute trait from Variable node" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\Parser\\Node;\n\nuse Phug\\Parser\\Node;\nuse Phug\\Util\\Partial\\AttributeTrait;\nuse Phug\\Util\\Partial\\NameTrait;\n\nclass VariableNode extends Node\n{\n use...
php
chosen
[ { "from": "system", "value": "Change la in pagetitle to at\n\ngit-svn-id: bc1bac543ec1b3c003370e43af937eeab92df7a4@180 bc0df05e-133d-0410-bb72-81d3b1e9bcfd\n" }, { "from": "human", "value": "<?php\r\n\t$job = new Job($id);\r\n\tif ($extra != '' && $extra == $job->GetAuth())\r\n\t{\r\n\t\t$later_...
php
chosen
[ { "from": "system", "value": "Fix slug on many method calls\n" }, { "from": "human", "value": "<?php\n\nnamespace Rudolf\\Component\\Helpers\\Navigation;\n\nclass MenuItem\n{\n private $data;\n\n public function __construct(array $data)\n {\n $this->data = $data;\n }\n\n pu...
php
chosen
[ { "from": "system", "value": "Fix normalize signature for sf 4.4\n\nhttps://github.com/symfony/serializer/blob/4.4/Normalizer/AbstractObjectNormalizer.php" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: evaisse\n * Date: 05/05/15\n * Time: 15:38\n */\n\nnamespace e...
php
chosen
[ { "from": "system", "value": "TASK: Add PHP 7.0 scalar type hints to method arguments and return types\n" }, { "from": "human", "value": "<?php\nnamespace Neos\\Utility;\n\n/*\n * This file is part of the Neos.Utility.Pdo package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n ...
php
chosen
[ { "from": "system", "value": "Change a bracelet to new line\n" }, { "from": "human", "value": "<?php\n\nnamespace Juy\\CharacterSolver;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Contracts\\Http\\Kernel;\n\nclass CharacterSolverServiceProvider extends ServiceProvider\n{\n /...
php
chosen
[ { "from": "system", "value": "Put in a better fix for the asset injection routine" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCasts\\Http\\Middleware;\n\nuse Closure;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\n\nclass AssetInjection\n{\n public function...
php
chosen
[ { "from": "system", "value": "Test apply on a non-existing method\n" }, { "from": "human", "value": "<?php\n\nuse Jade\\Compiler;\n\nclass BugCompiler extends Compiler {\n\n public function __construct() {\n\n $this->createStatements();\n }\n}\n\nclass JadeCompilerExceptionsTest ext...
php
chosen
[ { "from": "system", "value": "Update Resources translation based on translate.google.com\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\t'account' => array(\n\t\t'profile' => 'Редактировать профиль',\n\t\t'password' => 'Изменить пароль',\n\t),\n\n\t'extensions' => array(\n\t\t'list'...
php
chosen
[ { "from": "system", "value": "Fix inconsistent space after model name between App & User models\n" }, { "from": "human", "value": "<?php\n\n/**\n * \n * @todo Add ownership to the apps. So a certain user can administrate his own apps\n */\nclass AuthAppModel extends spitfire\\Model\n{\n\t\n\tpub...
php
chosen
[ { "from": "system", "value": "Check if array index has content\n" }, { "from": "human", "value": "<?php\n/**\n * GitScrum v0.1.\n *\n * @author Renato Marinho <renato.marinho@s2move.com>\n * @license http://opensource.org/licenses/GPL-3.0 GPLv3\n */\nnamespace GitScrum\\Http\\Requests;\n\nuse I...
php
chosen
[ { "from": "system", "value": "Improve encapsulation using private instead of protected.\n" }, { "from": "human", "value": "<?php\n\nnamespace estvoyage\\statsd\\value;\n\nuse\n\testvoyage\\value\\world as value\n;\n\nabstract class type\n{\n\tuse value\\string {\n\t\t__construct as private;\n\t}...
php
chosen
[ { "from": "system", "value": "Fix weird bug when creating new exhibition\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('sidemenu')\n @include('layouts.menu')\n@endsection\n\n@section('content')\n <div class=\"panel panel-default\">\n <div class=\"panel-headi...
php
chosen
[ { "from": "system", "value": "Fix tab indent in MixevalQuestionType model.\n\nIt was using tab indent due to it being autogenerated by cake bake.\n" }, { "from": "human", "value": "<?php\nclass MixevalQuestionType extends AppModel {\n\tvar $name = 'MixevalQuestionType';\n\tvar $displayField = 't...
php
chosen
[ { "from": "system", "value": "Add bower alias inside test env to reflect correct bower path inside vendor directory\n" }, { "from": "human", "value": "<?php\n\nuse SideKit\\Config\\ConfigKit;\n\nreturn [\n\n /*\n * --------------------------------------------------------------------------\...
php
chosen
[ { "from": "system", "value": "Update the version number of doctrine migrations\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\DBAL\\Migrations;\n\nclass MigrationsVersion\n{\n private static $version = 'v1.5.0';\n\n public static function VERSION()\n {\n $gitvers...
php
chosen
[ { "from": "system", "value": "Document that retrievers must throw an exception when requested to retrieve unknown dependencies.\n" }, { "from": "human", "value": "<?php\n\nnamespace BartFeenstra\\DependencyRetriever\\Retriever;\n\n/**\n * Defines a dependency retriever.\n */\ninterface Retriever...
php
chosen
[ { "from": "system", "value": "Update seeder with better test users.\nAdd a seeded admin user, and make some random seeded staff users.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Northstar\\Models\\User;\n\nclass UserTableSeeder extends Seeder\n{\n /**\n...
php
chosen
[ { "from": "system", "value": "Hide user name from screen readers\nThe user name will be available to screen readers from the adjacent \navatar's aria-label\n" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Formatter;\n\nuse Kanboard\\Core\\Filter\\FormatterInterface;\n\n/**\n * Cla...
php
chosen
[ { "from": "system", "value": "Add pagination link for previous page\n" }, { "from": "human", "value": "<?php\n$url = app('Flarum\\Http\\UrlGenerator');\n?>\n<div class=\"container\">\n <h2>{{ $translator->trans('core.views.index.all_discussions_heading') }}</h2>\n\n <ul>\n @foreach ...
php
chosen
[ { "from": "system", "value": "Make sure generated usernames cannot break validation\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Seeders;\n\nuse Illuminate\\Database\\Seeder;\nuse Flarum\\Core\\Models\\User;\n\nclass UsersTableSeeder extends Seeder\n{\n /**\n * Run the...
php
chosen
[ { "from": "system", "value": "Fix Interface and trait aware service\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: visa\n * Date: 08/07/15\n * Time: 15.28\n */\n\nnamespace MailMan\\Service;\n\n\nclass MailServiceAwareTrait\n{\n protected $mailService;\n /...
php
chosen
[ { "from": "system", "value": "Handle case when RenderContext is not an array but ArrayObject\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\NodeBundle\\EventListener;\n\nuse Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent;\nuse Symfony\\Component\\Tem...
php
chosen