conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add Tutorial to backend : get article by translated slug\n" }, { "from": "human", "value": "<?php\n\nnamespace FBN\\GuideBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TutorialRepository.\n *\n * This class was generated by the Doctrine ORM. Add ...
php
chosen
[ { "from": "system", "value": "Update expectations for new graph API" }, { "from": "human", "value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\nclass GraphTest extends PHPUnit_Framework_TestCase\n{\n public function testCreateGraph()\n {\n $dir = __DIR__ . '/../';\n ...
php
chosen
[ { "from": "system", "value": "Add missing MySQL 8.0 keywords\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\DBAL\\Platforms\\Keywords;\n\nuse function array_merge;\n\n/**\n * MySQL 8.0 reserved keywords list.\n */\nclass MySQL80Keywords extends MySQL57Keywords\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "CRM-2945: Prepare demo\n- fix cs build\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\IntegrationBundle\\Exception;\n\nclass SoapConnectionException extends TransportException\n{\n /**\n * @param string $response\n * @param \\Excep...
php
chosen
[ { "from": "system", "value": "BAP-3040: Improve date conditions in filters\n - fix error message\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\FilterBundle\\Expression\\Exception;\n\nuse Oro\\Bundle\\DataGridBundle\\Exception\\UserInputErrorExceptionInterface;\n\nclass Exp...
php
chosen
[ { "from": "system", "value": "Fix (Observation test): change methode name\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\TestsService;\n\nuse AppBundle\\Service\\ObservationService;\nuse AppBundle\\Entity\\Observation;\nuse PHPUnit\\Framework\\TestCase;\n\nuse OC\\BookingBundle...
php
chosen
[ { "from": "system", "value": "Fix wrong phpdoc type name\n" }, { "from": "human", "value": "<?php\n/**\n * We made this code.\n * By pH7 (Pierre-Henry SORIA).\n */\n\nnamespace PFBC\\Validation;\n\nuse PH7\\ExistsCoreModel;\nuse PH7\\Framework\\Security\\Ban\\Ban;\n\nclass BankAccount extends \\...
php
chosen
[ { "from": "system", "value": "Drop \"useAllScheme\" option (no implementation)\n" }, { "from": "human", "value": "<?php\n\nnamespace Mapbender\\DigitizerBundle\\Element\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Compon...
php
chosen
[ { "from": "system", "value": "Add missing FROM expression to consent SQL query\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenConext\\EngineBlock\\Authentication\\Repository;\n\nuse DateTime;\nuse Doctrine\\DBAL\\Connection as DbalConnection;\nuse Doctrine\\DBAL\\DBALException;\nuse O...
php
chosen
[ { "from": "system", "value": "Add link to partners in workhsops landing\n" }, { "from": "human", "value": "<div class=\"partner\">\n\t<div class=\"container\">\n\t\t<div class=\"row\">\n\t\t\t<div class=\"col-md-offset-3 col-md-2 col-sm-4 col-xs-12\">\n\t <img class=\"img-responsive n...
php
chosen
[ { "from": "system", "value": "Use Listener Annotation contract vs Model in typehint.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Valkyrja framework.\n *\n * (c) Melech Mizrachi\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Add additional check for count\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Mannequin.\n *\n * (c) 2017 Last Call Media, Rob Bayliss <rob@lastcallmedia.com>\n *\n * This source file is subject to the MIT license that is bundled\n * with th...
php
chosen
[ { "from": "system", "value": "Add some basic wrapper logic\n" }, { "from": "human", "value": "<?php\n\nclass CampaignMonitor\n{\n protected $app;\n\n public function __construct($app)\n {\n $this->app = $app;\n }\n}\n" }, { "from": "gpt", "value": "<?php\n\nnamespa...
php
chosen
[ { "from": "system", "value": "Fix recent migration for SQLite\n\nBadMethodCallException: SQLite doesn't support multiple calls to\ndropColumn / renameColumn in a single modification.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\...
php
chosen
[ { "from": "system", "value": "Add styles for search subscribe links\n" }, { "from": "human", "value": "<div class=\"wdn-grid-set\">\n <section class=\"bp2-wdn-col-one-third\">\n <h1 class=\"results\">\n <?php\n if ($dt = $context->getSearchTimestamp()) {\n ...
php
chosen
[ { "from": "system", "value": "Set display name for typecasting\n" }, { "from": "human", "value": "<?php\n\nnamespace Jasny\\Meta\\TypeCasting;\n\nuse Jasny\\TypeCast;\n\n/**\n * Cast class properties based on the meta data.\n *\n * @author Arnold Daniels <arnold@jasny.net>\n * @license https://...
php
chosen
[ { "from": "system", "value": "Use appropriate assert instead of combination\n" }, { "from": "human", "value": "<?php\n\nnamespace Go\\Console\\Command;\n\nuse Go\\Functional\\BaseFunctionalTest;\nuse Go\\Tests\\TestProject\\Application\\Main;\n\nclass CacheWarmupCommandTest extends BaseFunctiona...
php
chosen
[ { "from": "system", "value": "Remove \"required\" on search field\n" }, { "from": "human", "value": "<?php\n/**\n * Created by JetBrains PhpStorm.\n * User: Alexandre\n * Date: 26/05/13\n * Time: 12:15\n * To change this template use File | Settings | File Templates.\n */\n\nnamespace Uvweb\\UvB...
php
chosen
[ { "from": "system", "value": "Fix calls to request object\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html class=\"koowa-html\" xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n <link rel=\"stylesheet\" ...
php
chosen
[ { "from": "system", "value": "UPDATE age of account now printing out\n" }, { "from": "human", "value": "<h1>Create Bank Account</h1>\n\n<fieldset>\n <legend>Account Information</legend>\n <?php\n echo form_open('banks/create_bank');\n echo form_input('bank_name', set_value('bank_name...
php
chosen
[ { "from": "system", "value": "Fix spelling on groupID primary key\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersGroupsCatsTable extends Migration\n{\n /**\n * Run the migration...
php
chosen
[ { "from": "system", "value": "TASK: Allow null values for Date annotations" }, { "from": "human", "value": "<?php\nnamespace Flowpack\\ElasticSearch\\Indexer\\Object\\Transform;\n\n/*\n * This file is part of the Flowpack.ElasticSearch package.\n *\n * (c) Contributors of the Flowpack Team - flo...
php
chosen
[ { "from": "system", "value": "Clean up old authentication checks; list is always authenticated\n" }, { "from": "human", "value": "<h2>Podcasts</h2>\n <div class=\"podcasts\">\n <?php foreach($podcasts as $podcast): ?>\n <h3>\n <?php echo link_to_with_icon($podcast->getTitle(), \"web\...
php
chosen
[ { "from": "system", "value": "Fix container global instance conflict\n" }, { "from": "human", "value": "<?php\n\nnamespace Marquine\\Etl;\n\nuse Illuminate\\Container\\Container as BaseContainer;\n\nclass Container extends BaseContainer\n{\n /**\n * Set the globally available instance of ...
php
chosen
[ { "from": "system", "value": "Use getToolbar() to get the toolbar object.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id: html.php 628 2011-03-20 01:49:53Z johanjanssens $\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Cache\n * @copyright Copyright (C)...
php
chosen
[ { "from": "system", "value": "Fix PHPStan level 5 in xcodes package\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Greenter\\Validator;\n\nuse DOMDocument;\nuse DOMXPath;\n\n/**\n * Class XmlErrorCodeProvider.\n */\nclass XmlErrorCodeProvider implements ErrorCo...
php
chosen
[ { "from": "system", "value": "Fix problem with validation return (returns a boolean type now).\n\nSigned-off-by: Kleber Hamada Sato <ec5707b0b64a0d43d3e1549dd10066748e4d5866@yahoo.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Respect\\Validation\\Rules;\n\nclass PrimeNumber extends ...
php
chosen
[ { "from": "system", "value": "Allow pushover to be mocked in reporter\n" }, { "from": "human", "value": "<?php\n\nnamespace ScottRobertson\\Scrutiny\\Reporter;\n\nclass Pushover extends Base\n{\n private $token;\n private $user;\n private $pushover;\n\n public function __construct($t...
php
chosen
[ { "from": "system", "value": "Fix warning caused by undefined index\n" }, { "from": "human", "value": "<?php\n\nnamespace Hodor\\MessageQueue;\n\nuse Exception;\nuse PHPUnit_Framework_TestCase;\n\nclass QueueFactoryTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @var array\n */\n...
php
chosen
[ { "from": "system", "value": "Change the locale according to the current page\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: Nico\n * Date: 12/05/14\n * Time: 21:13\n */\n\nnamespace Nmc\\DynamicPageBundle\\Listener;\n\nuse Symfony\\Component\\HttpKernel\\Event\...
php
chosen
[ { "from": "system", "value": "Use implicit null instead of explicit\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|--------------------------------------------------------------------------\n|\n| He...
php
chosen
[ { "from": "system", "value": "Fix to redirect to homepage when no referer is defined\n" }, { "from": "human", "value": "<?php\n/**\n * Created by Amal Raghav <amal.raghav@gmail.com>\n * Date: 11/06/11\n */\n\nnamespace Flock\\MainBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Contr...
php
chosen
[ { "from": "system", "value": "Implement trivial version for doctrine repository\n" }, { "from": "human", "value": "<?php\n\nnamespace Galileo\\SettingBundle\\Lib\\Infrastructure\\Framework;\n\nuse Galileo\\SettingBundle\\Lib\\Model\\Setting;\nuse Galileo\\SettingBundle\\Lib\\Model\\SettingReposi...
php
chosen
[ { "from": "system", "value": "Add ids to distro GET\n" }, { "from": "human", "value": "<?php\n\nnamespace Linode\\Common;\n\nuse Linode\\Common\\Curl;\n\nclass Distributions extends Core\n{\n\t//Get a list of al available distributions\n\n\tfunction getDistros() {\n $curl = new Curl();\n ...
php
chosen
[ { "from": "system", "value": "Set the router on the controller.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Routing;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ControllerServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Register the service provider.\n\t *\n\...
php
chosen
[ { "from": "system", "value": "Disable fractal on empty config\n" }, { "from": "human", "value": "<?php\n\nnamespace Aztech\\Layers\\Elements;\n\nuse Aztech\\Layers\\LayerBuilder;\nuse Aztech\\Phinject\\Container;\nuse League\\Fractal\\Manager;\nuse Symfony\\Component\\HttpFoundation\\Request;\nu...
php
chosen
[ { "from": "system", "value": "Refactor validation exception to be more friendly to custom messages\n" }, { "from": "human", "value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: mduncan\n * Date: 4/21/15\n * Time: 1:25 PM\n */\n\nnamespace Fulfillment\\Postage\\Exceptions;\n\n\n\nclass Va...
php
chosen
[ { "from": "system", "value": "[Tests] Use short array syntax in Codeception StorageEvents test\nextension" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\TesterEvents;\n\nuse Bolt\\Events\\StorageEvents;\n\nclass Extension extends \\Bolt\\BaseExtension\n{\n /** Stor...
php
chosen
[ { "from": "system", "value": "Fix for bug when using APC in version 3.1.4" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Component\\Validator\\Mapping\\Cache;\n\nuse Symfony\\Component\\Validator\\Mapping\\ClassMetadata;\n\nclass ApcCache implements CacheInterface\n{\n private $...
php
chosen
[ { "from": "system", "value": "Add phpunit tests for Alert component" }, { "from": "human", "value": "<?php\n\nnamespace TestSuite\\TwbsHelper\\View\\Helper;\n\nclass AlertTest extends \\TestSuite\\TwbsHelper\\AbstractViewHelperTestCase {\n\n /**\n * @var \\TwbsHelper\\View\\Helper\\Alert\...
php
chosen
[ { "from": "system", "value": "Test for SQL query count\n" }, { "from": "human", "value": "<?php\n\nnamespace SymfonyDay\\Bundle\\BlogBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public function t...
php
chosen
[ { "from": "system", "value": "FIX update status help to match new CSS\n" }, { "from": "human", "value": "<?php\r\n\r\nclass Default_View_Helper_StatusHelp extends Zend_View_Helper_Abstract\r\n{\r\n\tpublic function statusHelp()\r\n\t{\r\n\t\t$result = '<ul>';\r\n\t\t$result .= '<li><span class=\...
php
chosen
[ { "from": "system", "value": "Fix size group not found exception class.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Lev Semin <lev@darvin-studio.ru>\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www...
php
chosen
[ { "from": "system", "value": "Fix step in number input\n" }, { "from": "human", "value": "<?php\necho $this->inner('input', [\n\t'type'\t=> 'number',\n]);" }, { "from": "gpt", "value": "<?php\necho $this->inner('input', [\n\t'type'\t=> 'number',\n 'step' => 'any',\n]);" } ]
php
chosen
[ { "from": "system", "value": "Add method to set user id\n" }, { "from": "human", "value": "<?php namespace professionalweb\\payment\\contracts\\recurring;\n\n/**\n * Interface for payment systems have recurring payments\n * @package professionalweb\\payment\\contracts\\recurring\n */\ninterface ...
php
chosen
[ { "from": "system", "value": "Fix issue in anonymous filters in aggregations\n" }, { "from": "human", "value": "<?php\nnamespace Elastica\\Aggregation;\n\nuse Elastica\\Filter\\AbstractFilter;\n\n/**\n * Class Filters.\n *\n * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/...
php
chosen
[ { "from": "system", "value": "Check the token before returning the profiles export template\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Profiles\\Actions;\n\nuse Backend\\Core\\Engine\\Base\\ActionAdd as BackendBaseActionAdd;\n\n/**\n * This is the add-action, it will...
php
chosen
[ { "from": "system", "value": "Use proper method name for Pheanstalk\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Queue\\Connectors;\n\nuse Pheanstalk\\Connection;\nuse Pheanstalk\\Pheanstalk;\nuse Illuminate\\Queue\\BeanstalkdQueue;\n\nclass BeanstalkdConnector implements Co...
php
chosen
[ { "from": "system", "value": "Change scope in register function for $app\n\nWhen running unit tests, the register fails since $this is not in object context" }, { "from": "human", "value": "<?php namespace Krucas\\Notification;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass Notifi...
php
chosen
[ { "from": "system", "value": "Fix generic message command to use new conversation methods.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the TelegramBot package.\n *\n * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>\n *\n * For the full copyright and license ...
php
chosen
[ { "from": "system", "value": "Fix timer wakeup via cache\n" }, { "from": "human", "value": "<?php\n /**\n * This file is part of the Certificationy web platform.\n * (c) Johann Saunier (johann_27@hotmail.fr)\n *\n * For the full copyright and license information, please view the LICENSE\n * file...
php
chosen
[ { "from": "system", "value": "Make coverage php version option verbose\n" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\DevTool\\Command;\n\nuse Phug\\DevTool\\AbstractCommand;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterf...
php
chosen
[ { "from": "system", "value": "Allow editing of site title in settings screen.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Extend the SiteConfig\n */\nclass MultisitesSiteConfigExtension extends Extension {\n\t\n\t/**\n\t * Modify fields in the site config screen to remove fields which ar...
php
chosen
[ { "from": "system", "value": "Make sure geopoint works with empty value\n" }, { "from": "human", "value": "<?php\n\nclass CM_FormField_GeoPoint extends CM_FormField_Abstract {\n\n\tpublic function __construct($name) {\n\t\tparent::__construct($name);\n\t}\n\n\t/**\n\t * @param array ...
php
chosen
[ { "from": "system", "value": "Implement API function for listing traits\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse AppBundle\\API\\Listing;\nu...
php
chosen
[ { "from": "system", "value": "Update example configuration to include the swissmon database configuration\n" }, { "from": "human", "value": "<?php\n/**\n * @author Reto Schneider, 2011, github@reto-schneider.ch\n */\n\n$drupalprefix = ''; // Drupal prefix (e.g. 'drupal_')\n\n$config['naturvielfa...
php
chosen
[ { "from": "system", "value": "Use getTableName() so it works with prefixes\n\nInstalls that use a table prefix like \"mage_\" do not work with the current code. It produces the following error...\r\n\r\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'core_config_data' doesn't exist" }, { ...
php
chosen
[ { "from": "system", "value": "Fix user cart recalculation listener\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribu...
php
chosen
[ { "from": "system", "value": "Align with new 'min' value\n" }, { "from": "human", "value": "<?php\n\nnamespace Raffle;\n\nclass RandomService\n{\n /**\n * Base URL\n */\n const BASE_URL = 'https://www.random.org/integer-sets/?sets=1&min=%d&max=%d&num=%d&order=random&format=plain&rn...
php
chosen
[ { "from": "system", "value": "Add CSS class changes to the asset partial.\n" }, { "from": "human", "value": "<div class=\"col-md-3 asset\" data-asset-id=\"{{ $asset->getId() }}\">\n <a href=\"#\">\n <div class=\"list-content-card animated pulse-hover\">\n <span class=\"label...
php
chosen
[ { "from": "system", "value": "Add route handling for the CSS\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nRoute::set('email', 'emails')\n\t->defaults(array(\n\t\t'controller' => 'email',\n\t\t'action' => 'list'\n\t));\n\nRoute::set('email...
php
chosen
[ { "from": "system", "value": "Adjust middleware classifier to support lumen\n\nI'm not 100% sure about the middleware groups part but the test seems to go through fine." }, { "from": "human", "value": "<?php\n\nnamespace Wnx\\LaravelStats\\Classifiers;\n\nuse Illuminate\\Contracts\\Http\\Kernel;...
php
chosen
[ { "from": "system", "value": "Use getFillable to get fields\n\nif class does not have getFields();" }, { "from": "human", "value": "<?php\n\nnamespace Taskforcedev\\CrudAPI\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Taskforcedev\\CrudAPI\\Models\\CrudModel;\n\n/**\n * Class Admin...
php
chosen
[ { "from": "system", "value": "Fix incorrect DbalEventStore constructor arguments\n" }, { "from": "human", "value": "<?php\n\nnamespace Madewithlove\\LaravelCqrsEs\\EventStore;\n\nuse Broadway\\EventStore\\Dbal\\DBALEventStore;\nuse Broadway\\EventStore\\InMemoryEventStore;\nuse Broadway\\Seriali...
php
chosen
[ { "from": "system", "value": "Use config for skipping rule instead\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Rector\\Core\\Configuration\\Option;\nuse Rector\\Laravel\\Set\\LaravelSetList;\nuse Rector\\Set\\ValueObject\\LevelSetList;\nuse Symfony\\Component\\Dep...
php
chosen
[ { "from": "system", "value": "Correct 'ThroughOrg' letter to point to proper contact_id data point\n" }, { "from": "human", "value": "<?php\n/**\n * Write a custom report to a letter (PDF).\n */\nclass CRM_Customreports_Form_Task_ContributionLetterThroughOrg extends CRM_Customreports_Form_Task_C...
php
chosen
[ { "from": "system", "value": "Swap order of implode() args to fix deprecation warning on PHP 7.4\n" }, { "from": "human", "value": "<?php\n\nnamespace WireMock\\Integration;\n\nuse WireMock\\Client\\WireMock;\n\nrequire_once 'MappingsAssertionFunctions.php';\nrequire_once 'TestClient.php';\n\nab...
php
chosen
[ { "from": "system", "value": "Add context handlers for @Given and @Then\n" }, { "from": "human", "value": "<?php\n\nuse Behat\\Behat\\Context\\Context;\nuse Behat\\Behat\\Context\\SnippetAcceptingContext;\nuse Behat\\Gherkin\\Node\\PyStringNode;\nuse Behat\\Gherkin\\Node\\TableNode;\n\n/**\n * D...
php
chosen
[ { "from": "system", "value": "Add missing PHP closing tag\n" }, { "from": "human", "value": "<?php\n\n/*\n\tMySQL query config\n\t----------------------------------- */\n\n\tnamespace CRD\\Core;\n\n\t// Sample query\n\t$app->queries->sample = \"\";\n" }, { "from": "gpt", "value": "<?...
php
chosen
[ { "from": "system", "value": "Add useful functions to model\n" }, { "from": "human", "value": "<?php\n/**\n * Created by Kimi Tourism.\n * @author Suley<luzhang@jmlvyou.com>\n * @time 13-10-31\n * @version 1.0\n * @copyright \n **/\n\nclass AssetHistory extends CActiveRecord{\n\tpublic $user_id,...
php
chosen
[ { "from": "system", "value": "Add already the UNMINIFIED out-commented block.\n" }, { "from": "human", "value": "<?php ///////////////////////////////////////////////////////\n// ----------------------------------------------------------\n// SNIPPET\n// ------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix access to $crud in button from model function\n\nIf stack is 'line' and button type is 'model_function' you don't have access to the `$crud` object.\r\n\r\nI think it's wrong anyway because we're calling the same method with two different parameter types: \r\nline 5 `$entry...
php
chosen
[ { "from": "system", "value": "Fix style and missing semi-colon.\n" }, { "from": "human", "value": "<?php // CONFIRMATION DIALOG ?>\n<div id=\"confirmDelete\" title=\"Delete {{ $model }}\" style=\"display: none;\">\n This action <em>cannot</em> be undone.\n\n Are you sure you want to delete...
php
chosen
[ { "from": "system", "value": "Add deprecation tag to notify users\n" }, { "from": "human", "value": "<?php\n\nnamespace XeroPHP\\Remote;\n\nabstract class Object extends Model\n{\n\n}" }, { "from": "gpt", "value": "<?php\n\nnamespace XeroPHP\\Remote;\n\n/**\n * @deprecated As of PHP ...
php
chosen
[ { "from": "system", "value": "fix(shop): Insert link type and category in home page\n\nInsert link type and category in home page\n\nsee #386\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=...
php
chosen
[ { "from": "system", "value": "Return a boolean instead of void\n\nSigned-off-by: Rick Kerkhof <77953cd64cc4736aae27fa116356e02d2d97f7ce@gmail.com>\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2018 The WildPHP Team\n *\n * You should have received a copy of the MIT license with t...
php
chosen
[ { "from": "system", "value": "Use Ramsey/Uuid instead of Rhumsaa\n" }, { "from": "human", "value": "<?php\n\nnamespace Madewithlove\\LaravelCqrsEs\\Identifier;\n\nuse Rhumsaa\\Uuid\\Uuid;\n\nclass UuidIdentifier implements Identifier\n{\n /**\n * @var Uuid\n */\n protected $value;\...
php
chosen
[ { "from": "system", "value": "Change explanation field type to text to allow long explanations.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTri...
php
chosen
[ { "from": "system", "value": "Make entitty class configurable via ModuleOptions.\n" }, { "from": "human", "value": "<?php\n\nnamespace JwPersistentUser\\Model;\n\nuse Zend\\ServiceManager\\FactoryInterface,\n Zend\\ServiceManager\\ServiceLocatorInterface;\n\nclass ModuleOptionsFactory impleme...
php
chosen
[ { "from": "system", "value": "Replace usage of magic class constant with FQCN string\n" }, { "from": "human", "value": "<?php\n\nnamespace Liip\\RMT\\Tests\\Functional;\n\nuse Exception;\nuse Liip\\RMT\\Context;\nuse Liip\\RMT\\Prerequisite\\TestsCheck;\n\nclass TestsCheckTest extends \\PHPUnit_...
php
chosen
[ { "from": "system", "value": "Add adapter getter to model iterator\n" }, { "from": "human", "value": "<?php\nnamespace PhpEmber;\n\ninterface ModelIterator extends \\Countable, \\Iterator {\n}\n" }, { "from": "gpt", "value": "<?php\nnamespace PhpEmber;\n\ninterface ModelIterator exte...
php
chosen
[ { "from": "system", "value": "Fix 6547 php file instructions\n" }, { "from": "human", "value": "<?php\n header(\"Set-Cookie: issue6547=Hello Firebug user!; Max-Age=0\");\n?>\n<!DOCTYPE html>\n<html>\n <head>\n <title>Issue 6547: Show cookie Max-Age when attribute is <= 0</title>\n ...
php
chosen
[ { "from": "system", "value": "Add view for update gallery action\n" }, { "from": "human", "value": "<?php\r\n defined('M2_MICRO') or die('Direct Access to this location is not allowed.');\r\n\r\n /**\r\n * Gallery Controller class\r\n * @name $galleryController\r\n * @package M...
php
chosen
[ { "from": "system", "value": "Make Dusk example test pass for now\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Browser;\n\nuse Tests\\DuskTestCase;\nuse Laravel\\Dusk\\Browser;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\n\nclass ExampleTest extends DuskTestCase\n{\...
php
chosen
[ { "from": "system", "value": "Add element identifier in laralytics_custom table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\n/**\n * Class CreateLaralyticsC...
php
chosen
[ { "from": "system", "value": "Check email before user email validator\n" }, { "from": "human", "value": "<?php\n\nnamespace Gitonomy\\Bundle\\FrontendBundle\\Validation\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse S...
php
chosen
[ { "from": "system", "value": "Update installation instructions for command line.\n" }, { "from": "human", "value": "<!doctype html>\n\n<html>\n<head>\n\t<title>FluxBB</title>\n</head>\n\n<body>\n\n\t<h1>Not installed</h1>\n\t<p>It looks like FluxBB has not been installed yet.</p>\n@if ($has_inst...
php
chosen
[ { "from": "system", "value": "Make SQLite3 tests actually run\n\nPHPUnit was using \"sqlite\" as extension name, however it should be\n\"sqlite3\". The tests were being skipped because of that.\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Tests\\Common\\Cache;\n\nuse Doctrine\...
php
chosen
[ { "from": "system", "value": "Fix PHP 5.3 compat in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace webignition\\Tests\\RobotsTxt\\File;\n\nuse webignition\\RobotsTxt\\Record\\Record;\n\nclass AddRecordTest extends FileTest {\n\n public function testAddRecord() {\n $record ...
php
chosen
[ { "from": "system", "value": "Update to two more variable names.\n" }, { "from": "human", "value": "<footer role=\"contentinfo\">\n <div class=\"wrapper\">\n\n <div class=\"__partner\">\n <span>In partnership with:</span> <img src=\"{{ $global_vars->footer_logo or '/dist/images/tmi-logo...
php
chosen
[ { "from": "system", "value": "Change kebab case into snake case\n" }, { "from": "human", "value": "<?php namespace $NAME$\\Dashboard;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DashboardServiceProvider extends ServiceProvider\n{\n\n /**\n * Register any application services.\n ...
php
chosen
[ { "from": "system", "value": "Fix parameter name in image controller\n" }, { "from": "human", "value": "<?php\n\nnamespace IrishDan\\ResponsiveImageBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\n\...
php
chosen
[ { "from": "system", "value": "Update chain filter to recognize final filter\n\nIn case we find final filter that is followed by any other filter we are\ngoing to throw an exception saying filter usage is not possible.\n" }, { "from": "human", "value": "<?php\n\nnamespace Avalanche\\Bundle\\Imagi...
php
chosen
[ { "from": "system", "value": "Remove non-existent namespace and fix whitespace.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse Laravel\\Dusk\\DuskServiceProvider;\nuse App\\Astro\\Validators\\ApiValidator;\nuse Illuminate\\Support\\ServiceProvider;\nuse Barryvdh\\La...
php
chosen
[ { "from": "system", "value": "Remove double count in staging\n" }, { "from": "human", "value": "<?php \nclass DisplayImportABCD implements IDisplayModels\n{\n public function getName()\n {\n return \"ABCD(EFG) XML\";\n }\n\n public function getColumns()\n {\n return array(\n 'cat...
php
chosen
[ { "from": "system", "value": "Update app list view for application status\n\nAdd the application status, not just the judged status. This\nis important for the admin since they see unsubmitted applications.\n\nSigned-off-by: Marc Jones <bb1304e98184a66f7e15848bfbd0ff1c09583089@gmail.com>\n(cherry picked fro...
php
chosen
[ { "from": "system", "value": "Fix a redirect-on-login issue by allowing logged-out users to view 404 pages\n\nSummary:\nSee T2102 and inline for discussion. This seems like the least-bad approach until we have something better.\n\nThe utility of next_uri seems much greater than the minor exposure of routabl...
php
chosen
[ { "from": "system", "value": "Use a mock for Auth object\n" }, { "from": "human", "value": "<?php\n\nclass BaseTest extends PHPUnit_Framework_TestCase {\n\n /**\n * @var \\BulkSmsCenter\\Auth\n */\n protected $auth;\n\n /**\n * @var PHPUnit_Framework_MockObject_MockObject\n ...
php
chosen
[ { "from": "system", "value": "Fix wrong console command namespace\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Console;\n\nuse Illuminate\\Database\\Console\\Migrations\\MigrateMakeCommand as BaseMigrateMakeCommand;\n\nclass MigrateMakeCom...
php
chosen
[ { "from": "system", "value": "Use `str_replace` instead of `preg_replace`" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Psy Shell\n *\n * (c) 2013 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed ...
php
chosen