conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add functionnal test in DefautController\n" }, { "from": "human", "value": "<?php\n\nnamespace Neblion\\ScrumBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public func...
php
chosen
[ { "from": "system", "value": "Fix package service provider registration" }, { "from": "human", "value": "<?php namespace Spekkionu\\Assetcachebuster;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AssetcachebusterServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if l...
php
chosen
[ { "from": "system", "value": "Fix grammar in front controller comment." }, { "from": "human", "value": "<?php\n\n// Path to the front controller (this file)\ndefine('FCPATH', __DIR__.DIRECTORY_SEPARATOR);\n\n// Location of the Paths config file.\n// This is the first of two lines that might need...
php
chosen
[ { "from": "system", "value": "Fix merge conflicts and add new features\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 migrations.\n\t *...
php
chosen
[ { "from": "system", "value": "Add properties to the user models\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Fenos\\Notifynder\\Notifable;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Silber\\Bouncer\\Database\\HasRolesAndAbilities;\n\nclass User extends ...
php
chosen
[ { "from": "system", "value": "Add tests to make sure code succeeds." }, { "from": "human", "value": "<?php\n// TrainingMatrix Copyright 2014 by WebIS Spring 2014 License Apache 2.0\nnamespace WCS;\nrequire_once 'Work-Cell-Scheduler/Config/global.php';\n\nclass TrainingMatrix{\n\n\tprivate $peopl...
php
chosen
[ { "from": "system", "value": "Add userpage's link to user menu\n" }, { "from": "human", "value": "<!-- Right Side Of Navbar -->\n<ul class=\"navbar-nav ml-auto pr-1 pr-md-3\">\n <!-- Authentication Links -->\n @guest\n <li class=\"nav-item\"><a class=\"nav-link\" href=\"{{ route('login'...
php
chosen
[ { "from": "system", "value": "Add some data to the test request object.\n" }, { "from": "human", "value": "<?php\n\nnamespace MCordingley\\LaravelSapient\\Test\\Middleware;\n\nuse Illuminate\\Http\\Request;\nuse MCordingley\\LaravelSapient\\Test\\TestCase as BaseTestCase;\n\nabstract class TestC...
php
chosen
[ { "from": "system", "value": "Use scope instead of condition in query\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Request;\nuse App\\Http\\Resources\\ConfigResource;\nuse App\\Model\\Config;\n\nclass SettingsController extends Controller\n{\n ...
php
chosen
[ { "from": "system", "value": "Use correct syntax to mark class as internal\n\n@var internal looks like a mistake\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\Migrations\\Version;\n\nuse Doctrine\\Migrations\\Configuration\\Configuration;\n\n/**\n * ...
php
chosen
[ { "from": "system", "value": "Fix bug with loading Module config file\n" }, { "from": "human", "value": "<?php\nnamespace Config;\nclass Modules {\n private $environment;\n\n public function __construct($modules = [], $configFile = \"config.json\") {\n $this->modules = $modules;\n ...
php
chosen
[ { "from": "system", "value": "Remove formName for easier overwriting\n" }, { "from": "human", "value": "<?php\nclass Kwc_Advanced_CommunityVideo_Controller extends Kwf_Controller_Action_Auto_Kwc_Form\n{\n protected $_formName = 'Kwc_Advanced_CommunityVideo_Form';\n}\n\n" }, { "from": ...
php
chosen
[ { "from": "system", "value": "Use ->exec for generating the test SQL database from setup/\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please vi...
php
chosen
[ { "from": "system", "value": "Add missing trick to appear in the classmap\n\nThis should have been part of 9a3d73acfcac1104c33cda810eedfedea2a7b7ba\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-...
php
chosen
[ { "from": "system", "value": "Add fk to pivot relationship\n\nThere are config values for foreign keys in pivot tables,\r\nbut they are not used in declaration of relationship. Fix it." }, { "from": "human", "value": "<?php\n\nnamespace Laratrust\\Traits;\n\n/**\n * This file is part of Laratrus...
php
chosen
[ { "from": "system", "value": "ENH: Allow web API parameters to be passed as POST parameters in addition to the normal GET parameters\n\ngit-svn-id: 496ab2bd9c9a782235c11388890d59de1024c1f0@2808 91079597-3006-4846-9bd3-4f3fb3d139a7\n" }, { "from": "human", "value": "<?php\n/*=====================...
php
chosen
[ { "from": "system", "value": "Load environment variables array in dot-flatten form\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Config;\n\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass FileEnvironmentVariablesLoader implements EnvironmentVariablesLoaderInterface {\n\n\t/**\n...
php
chosen
[ { "from": "system", "value": "Make the database wrapper a singleton\n" }, { "from": "human", "value": "<?php\n\nnamespace ModHelper;\n\n/**\n * This file deals with some database internals.\n *\n * @package ModHelper\n * @since 1.0\n */\nclass Database\n{\n\t/**\n\t * Handler to SMF's database ...
php
chosen
[ { "from": "system", "value": "Move backward on FactoryPass type" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the OverblogThriftBundle package.\n *\n * (c) Overblog <http://github.com/overblog/>\n *\n * For the full copyright and license information, please view the LICEN...
php
chosen
[ { "from": "system", "value": "Add spacing to posts count\n" }, { "from": "human", "value": "@extends('templates.base')\n\n@section('title')\n {{{ substr($category->title, 0, 30) }}}\n@stop\n\n@section('body')\n <div class=\"post col-md-8 col-lg-6\">\n <h1>{{{ $category->title }}} <s...
php
chosen
[ { "from": "system", "value": "Add tabindex to the content landmark to make it focusable. Remove it from the previous landmark that we were trying to skip to.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html class=\"bg-white antialiased\" lang=\"en\">\n<head>\n @include('components.me...
php
chosen
[ { "from": "system", "value": "Fix Symfony 3 incompatible form type\n" }, { "from": "human", "value": "<?php\n\nnamespace Mapbender\\DigitizerBundle\\Element\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Options...
php
chosen
[ { "from": "system", "value": "Update Wed Mar 2 13:31:00 CET 2016\n" }, { "from": "human", "value": "<?php\n\nnamespace Nitrapi\\Services\\Voiceservers;\n\n\nclass VoiceserverDetails\n{\n protected $data;\n\n public function __construct(array &$data) {\n $this->data = $data;\n }\...
php
chosen
[ { "from": "system", "value": "Update format type in View Index User\n" }, { "from": "human", "value": "<?php\n\nuse yii\\helpers\\Html;\nuse yii\\grid\\GridView;\n\n/* @var $this yii\\web\\View */\n/* @var $dataProvider yii\\data\\ActiveDataProvider */\n\n$this->title = 'Users';\n$this->params['...
php
chosen
[ { "from": "system", "value": "Add backslash to symbols regex\n\nSimilar to the slash symbol the backslash has been missing in the symbol regex" }, { "from": "human", "value": "<?php\n\nnamespace Schuppo\\PasswordStrength;\n\nclass PasswordStrength\n{\n public function validateLetters($value)\...
php
chosen
[ { "from": "system", "value": "Create migration directory if not exist\n" }, { "from": "human", "value": "<?php\n\nnamespace Dami\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command,\n Symfony\\Component\\Console\\Input\\InputOption,\n Symfony\\Component\\Console\\Input\\Inp...
php
chosen
[ { "from": "system", "value": "Return the provider so core can store a reference to it\n" }, { "from": "human", "value": "<?php\n\n// Require the extension's composer autoload file. This will enable all of our\n// classes in the src directory to be autoloaded.\nrequire 'vendor/autoload.php';\n\n/...
php
chosen
[ { "from": "system", "value": "Add public visibility to constructors\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\DashboardBundle\\Widget;\n\n\nuse Doctrine\\Common\\Annotations\\AnnotationReader;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\B...
php
chosen
[ { "from": "system", "value": "Send XML_-RPC responses in UTF-8\n\nsvn commit r10953\n" }, { "from": "human", "value": "<?php\n// Set content type to XML\nheader('Content-type: text/xml');\n\n// Disable any caching with HTTP headers\n// Any date in the past will do here\nheader('Expires: Mon, 26 ...
php
chosen
[ { "from": "system", "value": "Add function to list posts\n" }, { "from": "human", "value": "<?php\n/*\nPlugin Name: Lists in a Shortcode\nDescription: MU Plugin that lets you get lists of posts, pages and sites in a network\nAuthor: Jude Rosario\nAuthor URI: http://premium.wpmudev.org/\nVersion:...
php
chosen
[ { "from": "system", "value": "Make source nullable; Add soft deletes\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateAttendanceTable extends Migrat...
php
chosen
[ { "from": "system", "value": "Delete ip security (distant server)\n\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 li...
php
chosen
[ { "from": "system", "value": "Remove event attributes that should not be fillable.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Event extends Model\n{\n /**\n * The attributes that are mass assignable.\n *\...
php
chosen
[ { "from": "system", "value": "Throw exception of generator doesn't implement AccessTokenInterface\n" }, { "from": "human", "value": "<?php\nnamespace Imbo\\EventListener\\AccessToken;\n\nuse Imbo\\EventListener\\AccessToken\\AccessTokenGenerator,\n Imbo\\EventListener\\AccessToken\\SHA256;\n\...
php
chosen
[ { "from": "system", "value": "Use self for php 5.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Mockery\\Generator;\n\nclass DefinedTargetClass \n{\n private $rfc;\n\n public function __construct(\\ReflectionClass $rfc)\n {\n $this->rfc = $rfc;\n }\n\n public stati...
php
chosen
[ { "from": "system", "value": "Remove 'properties' from UserStatus temporarily due to naming conflict.\n" }, { "from": "human", "value": "<?php\n/**\n * @see https://developers.podio.com/doc/users\n */\nclass PodioUserStatus extends PodioObject {\n public function __construct($attributes = array...
php
chosen
[ { "from": "system", "value": "Add iv in job data when queueing\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse App\\Services\\CsvGenerator;\nuse App\\Services\\Response;\nuse Illuminate\\Contracts\\Routing\\ResponseFactory;\nuse Illuminate\\Support\\ServiceProvider;\...
php
chosen
[ { "from": "system", "value": "Fix typo in `scarlarToString` method name.\n\nThis is a protected function and is not called anywhere else but this class, so this is safe to rename." }, { "from": "human", "value": "<?php\n\nnamespace Flint\\Config\\Normalizer;\n\nuse Pimple;\n\n/**\n * @package Fl...
php
chosen
[ { "from": "system", "value": "Use old import toc name to avoid migration problems\n" }, { "from": "human", "value": "<?php\nreturn [\n 'csv' => [\n 'delimiter' => ';',\n 'enclosure' => '\"',\n 'escape' => '\\\\',\n 'single_item' => false,\n 'first_row_as_key...
php
chosen
[ { "from": "system", "value": "Fix public asset publish location\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\Bones\\Keeper;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass BonesKeeperServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if loading of the ...
php
chosen
[ { "from": "system", "value": "Use PHPUnit 6 class names\n\nBug: T192167\nChange-Id: Id309ad5933371dd835ec431ded80f650e228099c\n" }, { "from": "human", "value": "<?php\n\nclass EchoExecuteFirstArgumentStub implements PHPUnit_Framework_MockObject_Stub {\n\tpublic function invoke( PHPUnit_Framework...
php
chosen
[ { "from": "system", "value": "Move authtoken login_name column to varchar(255)\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace OC\\Core\\Migrations;\n\nuse Closure;\nuse OCP\\D...
php
chosen
[ { "from": "system", "value": "Remove duplicate methods from preauth service\n" }, { "from": "human", "value": "<?php\r\n\r\nrequire_once ('Base.php');\r\n\r\n/**\r\n * Paymill API wrapper for transactions resource\r\n */\r\nclass Services_Paymill_Preauthorizations extends Services_Paymill_Transa...
php
chosen
[ { "from": "system", "value": "Add middleware to check whether or not it's a recurring invoice\n" }, { "from": "human", "value": "<?php\n\nuse Slim\\Http\\Request;\nuse Slim\\Http\\Response;\n\n// Routes\n\n$app->get('/', function (Request $request, Response $response, $args) {\n // Render res...
php
chosen
[ { "from": "system", "value": "Simplify foreach with in_array function\n" }, { "from": "human", "value": "<?php\n/**\n * Mockery\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * with this package in the file LICENSE.txt.\n * It is also available throu...
php
chosen
[ { "from": "system", "value": "Update CSRF token mismatch error message\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Igniter\\Flame\\Foundation\\Http\\Middleware;\n\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as Middleware;\n\nclass VerifyCsrfToken extends Middleware...
php
chosen
[ { "from": "system", "value": "III-2159: Add method to read mainLanguage from JSON-LD in projectors\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\ReadModel;\n\nuse CultuurNet\\UDB3\\Language;\n\ntrait MultilingualJsonLDProjectorTrait\n{\n /**\n * @param \\stdClass...
php
chosen
[ { "from": "system", "value": "Move to self over static\n" }, { "from": "human", "value": "<?php\n/**\n * @codingStandardsIgnoreStart\n *\n * @author Barney Hanlon <barney@shrikeh.net>\n * @copyright Barney Hanlon 2017\n * @license https://opensource.org/licenses/MIT\n *\n * @coding...
php
chosen
[ { "from": "system", "value": "Add \"file_exists\" check for the CI.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Sync\\Task;\n\nuse App\\Doctrine\\ReloadableEntityManagerInterface;\nuse App\\Entity\\Repository\\SettingsRepository;\nuse App\\Radio\\Adapte...
php
chosen
[ { "from": "system", "value": "Fix error when there's no tags\n" }, { "from": "human", "value": "<?php get_header(); ?> \n<div class=\"container\"> \n <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>\n <div class=\"post-date-divider\">\n <span><?php the_time(...
php
chosen
[ { "from": "system", "value": "Add collection to rest controller\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: GeoMash\n * Date: 3/14/14\n * Time: 8:16 PM\n */ " }, { "from": "gpt", "value": "<?php\nnamespace application\\nutsNBolts\\controller\\rest...
php
chosen
[ { "from": "system", "value": "Change hard coded db configuration\n" }, { "from": "human", "value": "<?php\nnamespace Rosewood;\n\nuse RedBean_Facade as R;\n\nclass Database\n{\n function __construct()\n {\n $this->config = [];\n R::setup('mysql:host=localhost;dbname=rosewood-test',\n ...
php
chosen
[ { "from": "system", "value": "[BUGFIX] Check for existance of $releasesList[0] before using\n" }, { "from": "human", "value": "<?php\n\nnamespace Deployer;\n\ntask('buffer:stop', function () {\n $releasesList = get('releases_list');\n // Remove lock files also from previous release because...
php
chosen
[ { "from": "system", "value": "Use array instead of string on the foreach\n" }, { "from": "human", "value": "<?php\n\nfunction collect_memory() {\n $memorystr = file_get_contents('/proc/meminfo');\n \n foreach ($memorystr as $key => $value) {\n // Remove spaces\n \t$memory[$key...
php
chosen
[ { "from": "system", "value": "Make unit test name simpler\n" }, { "from": "human", "value": "<?php\n\nuse Mockery as m;\nuse Illuminate\\Support\\Facades\\Response;\n\nclass SupportFacadeResponseTest extends PHPUnit_Framework_TestCase {\n\n\tpublic function tearDown()\n\t{\n\t\tm::close();\n\t}\...
php
chosen
[ { "from": "system", "value": "Fix failing test on ProfilerHelper\n" }, { "from": "human", "value": "<?php\n\nnamespace LastCall\\Crawler\\Test\\Helper;\n\n\nuse LastCall\\Crawler\\Helper\\ProfilerHelper;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcher;\nuse Symfony\\Component\\EventDis...
php
chosen
[ { "from": "system", "value": "Fix issue on object crawling, again.\n" }, { "from": "human", "value": "<?php\n\nfunction ex($object, $coords, $default = null)\n{\n if (!is_array($object) and !is_object($object))\n {\n return $default;\n }\n\n $keys = explode('.', $coords);\n ...
php
chosen
[ { "from": "system", "value": "ENHANCEMENT: Allow a grid of the latest items of one particular class type\n" }, { "from": "human", "value": "<?php\n\nclass GridRowsExtension extends DataExtension {\n\n /*\n If you are laying out using some form of grid, e.g. HTML table (ugh) or bootstraps span ...
php
chosen
[ { "from": "system", "value": "Rename method 'testExample' to 'testRegister'\n" }, { "from": "human", "value": "<?php\n\nuse App\\UserRegistrationRequest;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\n\nclass RegisterTest extends TestCase\n{\n use DatabaseMigrations;\n\n /**\n * ...
php
chosen
[ { "from": "system", "value": "tests: Disable some PHP insights sniffs\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Preset\n |--------------------------...
php
chosen
[ { "from": "system", "value": "Add notice about the license of the translation in the footer\n" }, { "from": "human", "value": "<?php\n\nnamespace Kenjis\\TranslationTools\\Modifier;\n\nuse Kenjis\\TranslationTools\\Document;\nuse Kenjis\\TranslationTools\\File;\n\nclass AddCopyright\n{\n prot...
php
chosen
[ { "from": "system", "value": "Extend interface to require a method to create new requests\n" }, { "from": "human", "value": "<?php\n\nnamespace MetaSyntactical\\Http\\Transport;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\ninterface TransportInterfa...
php
chosen
[ { "from": "system", "value": "Fix SQL when purging trending tag table\n" }, { "from": "human", "value": "<?php\n\nclass SV_TrendingContentTags_XenForo_DataWriter_Tag extends XFCP_SV_TrendingContentTags_XenForo_DataWriter_Tag\n{\n protected function _delete()\n {\n parent::_delete();...
php
chosen
[ { "from": "system", "value": "Add very simple content to the AMP Options page; we must add a nice full page describing the options available\n" }, { "from": "human", "value": "<?php\n\nclass AMP_Options_Menu_Page {\n\tpublic function render() {\n\t\techo '<div class=\"wrap\"><p>Here is where the...
php
chosen
[ { "from": "system", "value": "Enable no subdir support for links\n" }, { "from": "human", "value": "<?php\n\n /**\n * HTML Methods\n * \n * @author Edwin Dayot <edwin.dayot@sfr.fr>\n * @copyright 2014\n */\n\n /**\n * HTML Class\n */\n class HTML\n {\n ...
php
chosen
[ { "from": "system", "value": "Add missing space between method and docblock.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Http\\Controllers;\n\nuse Rogue\\Models\\Campaign;\nuse Illuminate\\Http\\Request;\nuse Rogue\\Http\\Transformers\\CampaignTransformer;\n\nclass CampaignsCont...
php
chosen
[ { "from": "system", "value": "Fix to Product block product lookup\n" }, { "from": "human", "value": "<?php \nnamespace Concrete\\Package\\VividStore\\Src\\VividStore\\Utilities;\n\nuse Controller;\nuse Core;\nuse User;\nuse Database;\n\ndefined('C5_EXECUTE') or die(_(\"Access Denied.\"));\n\ncla...
php
chosen
[ { "from": "system", "value": "Add basic generate PDF functionality\n" }, { "from": "human", "value": "<?php require_once('inc/header.php'); ?>\n\n</head>\n<body>\n<?php\n\t$lti->requirevalid();\n?>\n<h1>Generate PDF</h1>\n\n\n<!-- Answer a bunch of questions and a pdf will be generated -->\n\n\n...
php
chosen
[ { "from": "system", "value": "BB-4056: Add or adjust implementation of the SKU filters from the grid. Both use StringFilter in the ORM version\n- namespace fix\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SearchBundle\\Event;\n\nuse Oro\\Bundle\\DataGridBundle\\Datagrid\\Da...
php
chosen
[ { "from": "system", "value": "Fix the latest seen migration, use the default parameter to init the whole seen column to true\n" }, { "from": "human", "value": "<?php\n\nuse Movim\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nuse App\\Message;\n\nclass AddSeenToMessagesTable extend...
php
chosen
[ { "from": "system", "value": "Remove PHP 7.1 feature usage for 7.0 compat\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp;\n\nfinal class CombinedCancellationToken implements CancellationToken\n{\n private $tokens = [];\n\n private $nextId = \"a\";\n private $callbacks = [];\n...
php
chosen
[ { "from": "system", "value": "Exclude existing event from duplicate paging\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Component_EventPreview extends Denkmal_Component_Abstract {\n\n public function prepare(CM_Frontend_Environment $environment, CM_Frontend_ViewResponse $viewResp...
php
chosen
[ { "from": "system", "value": "Add that test to the Feed tests.\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'PHPUnit/Framework.php';\n\nrequire_once 'FeedAuthorTest.php';\nrequire_once 'FeedContributorTest.php';\nrequire_once 'FeedIdTest.php';\nrequire_once 'FeedRightsTest.php';\nreq...
php
chosen
[ { "from": "system", "value": "Use app storage sub path\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Service\n\t|--------------------------------------------------------------------------\n\t|...
php
chosen
[ { "from": "system", "value": "Remove not needed part of controller\n" }, { "from": "human", "value": "<?php\n\nnamespace PerFi\\PerFiBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Template;\nuse Sym...
php
chosen
[ { "from": "system", "value": "Make it into single statement.\n" }, { "from": "human", "value": "<?php\n\nnamespace Adldap\\Laravel\\Validation\\Rules;\n\nuse Adldap\\Laravel\\Events\\AuthenticatedModelTrashed;\nuse Illuminate\\Support\\Facades\\Event;\n\nclass DenyTrashed extends Rule\n{\n /*...
php
chosen
[ { "from": "system", "value": "Add \"Changes Planned\" and \"In Preparation\" states for revisions\n\nSummary:\nRef T2222. Discussion in T4481. Ref T2543.\n\nPrimarily, this will let me fix some of the rough edges that came out of ApplicationTransactions and state-based transitions.\n\nI'm also adding a cons...
php
chosen
[ { "from": "system", "value": "Test to ensure css-vendor doesn't contain resources from *-source folders\n" }, { "from": "human", "value": "<?php\n\nclass CM_Http_Response_Resource_Css_VendorTest extends CMTest_TestCase {\n\n public function testProcess() {\n $render = new CM_Frontend_R...
php
chosen
[ { "from": "system", "value": "Fix ping to check each connection, not only first one\n\n(cherry picked from commit 72d4097)\n" }, { "from": "human", "value": "<?php\n\nnamespace Enqueue\\Bundle\\Consumption\\Extension;\n\nuse Doctrine\\DBAL\\Connection;\nuse Enqueue\\Consumption\\Context;\nuse En...
php
chosen
[ { "from": "system", "value": "Fix search indexing populating thread wordcount\n" }, { "from": "human", "value": "<?php\n\nclass SV_WordCountSearch_XenForo_Search_DataHandler_Thread extends XFCP_SV_WordCountSearch_XenForo_Search_DataHandler_Thread\n{\n protected function _insertIntoIndex(XenFo...
php
chosen
[ { "from": "system", "value": "Remove email from frontend config\n" }, { "from": "human", "value": "<?php\nreturn [\n 'adminEmail' => 'kalnyanton@gmail.com',\n 'title' => 'Веб студия «Палитра»',\n 'title_short' => 'Палитра',\n 'title_long' => 'Студия веб дизайна «Палитра»',\n 'phon...
php
chosen
[ { "from": "system", "value": "Return an error response when worker is not accessible\n" }, { "from": "human", "value": "<?php\n\nnamespace APIBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Compo...
php
chosen
[ { "from": "system", "value": "consentSimpleAdmin: Use new selftest-function on database backend.\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@3309 44740490-163a-0410-bde0-09ae8108e29a\n" }, { "from": "human", "value": "<?php\n/**\n *\n * @param array &$hookinfo hookinfo\n */\nfunctio...
php
chosen
[ { "from": "system", "value": "Replace default with filter on default_option.\n\nThis is necessary for backwards compatibility with the current tests.\n" }, { "from": "human", "value": "<?php\n/**\n * Class Google\\Site_Kit\\Modules\\Search_Console\\Settings\n *\n * @package Google\\Site_Kit\\M...
php
chosen
[ { "from": "system", "value": "Set default timezone for this script to New York\n- Got sick of this being reset to UTC by osx or homebrew in php.ini\n" }, { "from": "human", "value": "<?php\n\nnamespace aMoniker\\LedgerPrices;\n\nuse aMoniker\\LedgerPrices\\Command\\UpdatePricesCommand;\nuse aMon...
php
chosen
[ { "from": "system", "value": ":wrench: Change post id on comment fixtures by reference\n" }, { "from": "human", "value": "<?php\n\nnamespace OAuthBundle\\DataFixtures\\ORM;\n\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\DataFixtures\\FixtureInterface;\nuse Doctrin...
php
chosen
[ { "from": "system", "value": "Fix (Feedback): Change style to lanscape phone\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\...
php
chosen
[ { "from": "system", "value": "BB-4476: Apply menu item position\n- fixed unit tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\NavigationBundle\\Tests\\Unit\\Entity;\n\nuse Oro\\Component\\Testing\\Unit\\EntityTestCaseTrait;\n\nuse Oro\\Bundle\\NavigationBundle\\Entity\\M...
php
chosen
[ { "from": "system", "value": "Add tests for memory class\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Alexandre Quercia <alquerci@email.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nname...
php
chosen
[ { "from": "system", "value": "Fix for crazy routes issue\n" }, { "from": "human", "value": "<?php\n\nnamespace Chula\\ControllerProvider;\n\nuse Silex\\Application;\nuse Silex\\ControllerProviderInterface;\nuse \\Michelf\\Markdown;\nuse Chula\\Tools\\Encryption;\n\nclass HomePage implements Cont...
php
chosen
[ { "from": "system", "value": "Add arguments to addCommand method\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n * Contains Drupal\\AppConsole\\Command\\Helper\\ChainCommandHelper.\n */\n\nnamespace Drupal\\AppConsole\\Command\\Helper;\n\nuse Symfony\\Component\\Console\\Helper\\Helper...
php
chosen
[ { "from": "system", "value": "Set header to accept v4 API" }, { "from": "human", "value": "<?php\n\nnamespace Github\\Api;\n\n/**\n * GraphQL API.\n *\n * Part of the Github v4 API\n *\n * @link https://developer.github.com/v4/\n * @author Miguel Piedrafita <soy@miguelpiedrafita.com>\n */\ncla...
php
chosen
[ { "from": "system", "value": "Change router action so it occurs on all pages rather than 404s\n" }, { "from": "human", "value": "<?php\n\nnamespace FrontRouterPlugin;\n\ncall_user_func(function() {\n\n// thisfile\n $thisfile = basename(__FILE__, '.php');\n\n// language\n i18n_merge($thisfile) ...
php
chosen
[ { "from": "system", "value": "Update title of the about page.\n" }, { "from": "human", "value": "@extends('layouts.master')\n\n@section('title', 'Home')\n@section('description', 'Converter to create mp3 podcasts to subcribe in itunes for your articles.')\n\n@section('content')\n <section clas...
php
chosen
[ { "from": "system", "value": "Allow `willLintPaths` and `didLintPaths` to be overridden\n\nSummary: I'm not sure if the upstream will be interested in this change, but we are writing a linter which works by running an external command on the entire repository. This can't be done with `ArcanistExternalLinter...
php
chosen
[ { "from": "system", "value": "Correct way to build language URL\n" }, { "from": "human", "value": "<li class=\"dropdown\">\n <a href=\"#\" data-toggle=\"dropdown\">\n <img class=\"icon\" src=\"/img/icon/language.svg\"/>\n <span class=\"text hidden-xs\">{{ trans('common.language'...
php
chosen
[ { "from": "system", "value": "Check whether or not email is taken already 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\\User;\nuse Hash;...
php
chosen
[ { "from": "system", "value": "Prepend sensitive defaults for other bundles\n" }, { "from": "human", "value": "<?php\n\nnamespace Teneleven\\Bundle\\GeolocatorBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Config\\FileLocato...
php
chosen
[ { "from": "system", "value": "Add missing comma after last element in an array\n" }, { "from": "human", "value": "<?php\n\n/**\n * Updates the database layout during the update from 5.4 to 5.5.\n *\n * @author Matthias Schmidt\n * @copyright 2001-2021 WoltLab GmbH\n * @license GNU Lesser General...
php
chosen
[ { "from": "system", "value": "Update the 'stats' command output\n" }, { "from": "human", "value": "<?php\n\nnamespace Tarantool\\JobQueue\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Helper\\Table;\nuse Symfony\\Component\\Console\\Helper\\TableStyle;\nuse Symfony\\Component\\Console\\...
php
chosen