conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update checker of pass-by-reference problem.\n" }, { "from": "human", "value": "<?php\nnamespace wapmorgan\\PhpCodeFixer;\n\n/**\n * @test 5.3\n * @param array $usage_tokens\n * @param $function\n * @return bool\n */\nfunction call_with_passing_by_reference(array $u...
php
chosen
[ { "from": "system", "value": "Set the main section of the page to align with the responsive web design\nchanges." }, { "from": "human", "value": "<?php\ninclude('./requires.inc.php');\n\ninclude('./config/loadConfiguration.php');\n\r\ninclude('./header.inc.php');\r\n?>\r\n\r\n<?php \r\ninclude('...
php
chosen
[ { "from": "system", "value": "Delete saved methods after tests finish\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 setu...
php
chosen
[ { "from": "system", "value": "Use fix module names to abstract from account base controller." }, { "from": "human", "value": "<?php\n\nnamespace account\\base;\n\nclass Controller extends \\luya\\web\\Controller\n{\n public function getRules()\n {\n return [\n [\n ...
php
chosen
[ { "from": "system", "value": "Use dephendency to load test dependencies.\n" }, { "from": "human", "value": "<?php\n\nrequire('../../vendor.php');\nrequire('ModuleTests.php');\n\n\\Phunit\\Phunit::run();\n" }, { "from": "gpt", "value": "<?php\n\nrequire('../bower_components/Dephendenc...
php
chosen
[ { "from": "system", "value": "Reset the preload cache when a language has been imported\n" }, { "from": "human", "value": "<?php\n\nuse wcf\\system\\cronjob\\CronjobScheduler;\nuse wcf\\system\\event\\EventHandler;\nuse wcf\\system\\event\\listener\\PhraseChangedPreloadListener;\nuse wcf\\system...
php
chosen
[ { "from": "system", "value": "Fix ul list test; needs clean up for lists\n" }, { "from": "human", "value": "<?php # -*- coding: utf-8 -*-\n\nnamespace Bueltge\\Marksimple\\Tests\\Unit\\Rule;\n\nuse Bueltge\\Marksimple\\Rule;\nuse Bueltge\\Marksimple\\Rule\\ElementRuleInterface;\nuse Bueltge\\Mar...
php
chosen
[ { "from": "system", "value": "Introduce additional empty array check.\n" }, { "from": "human", "value": "<?php\nclass BinaryGap\n{\n private $number;\n\n /**\n * BinaryGap constructor.\n * @param $number\n */\n public function __construct($number)\n {\n $this->numb...
php
chosen
[ { "from": "system", "value": "Change handling of events to later in the process.\n" }, { "from": "human", "value": "<?php\n\nnamespace Plummer\\Calendarful;\n\ninterface CalendarInterface\n{\n\tpublic function addEvent(EventInterface $event);\n\n\tpublic function addRecurrenceType(RecurrenceInte...
php
chosen
[ { "from": "system", "value": "Remove bad argument to enqueue to prevent strict error. Added support of custom post type check to script loading conditions.\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of WPCore project.\n *\n * (c) Louis-Michel Raynauld <louismichel@pweb.ca...
php
chosen
[ { "from": "system", "value": "Remove a fixed module ID\n" }, { "from": "human", "value": "<?php\n\nnamespace filsh\\yii2\\oauth2server;\n\n/**\n * Instead use bootstrap module\n * must be removed in v2.1\n * \n * @deprecated v2.0.1\n */\nclass Bootstrap implements \\yii\\base\\BootstrapInterface...
php
chosen
[ { "from": "system", "value": "Use HostnameLockHolder rather than IpLockHolder.\n" }, { "from": "human", "value": "<?php\n/**\n * Factory to create RunSingle object\n *\n * @author Matthias Gisder <matthias@ingenerator.com>\n * @copyright 2014 inGenerator Ltd\n * @licence BSD\n */\n\n\nnames...
php
chosen
[ { "from": "system", "value": "Refactor tagged service IDs sorter.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015-2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * Fo...
php
chosen
[ { "from": "system", "value": "Remove additional field not used\n" }, { "from": "human", "value": "<?php\nnamespace QzPhp;\n\nclass DBConGenerator{\n public function generate($host, $database, $user, $password){\n $dsn = 'mysql:dbname=' . $database . ';host=' . $host;\n if(!empty...
php
chosen
[ { "from": "system", "value": "Update to form basic URL class\n" }, { "from": "human", "value": "<?php\n\ninclude_once('http.php');\n\nclass ResyncURL\n{\n public $loc;\n\n public $lastmod;\n\n public $metadata = array();\n\n function __construct($l, $lm = '', $md = []) {\n $th...
php
chosen
[ { "from": "system", "value": "Disable debug on Pagoda Box\n" }, { "from": "human", "value": "<?php\n\n$app['debug'] = true;\n$app['http_cache'] = true;\n\n$app['redis.config'] = array('host' => $_SERVER['CACHE1_HOST'], 'port' => $_SERVER['CACHE1_PORT']);\n" }, { "from": "gpt", "value...
php
chosen
[ { "from": "system", "value": "Convert maxmind raw result to UTF-8\n" }, { "from": "human", "value": "<?php\n\nnamespace Maxmind\\MinFraud;\n\nclass MinFraudResponse\n{\n private $isCurlSuccessful;\n private $rawResult;\n\n /**\n * @param bool $isCurlSuccessful\n * @param string ...
php
chosen
[ { "from": "system", "value": "Allow clicking anywhere in row to toggle checkbox\n" }, { "from": "human", "value": "<table class=\"table table-striped\">\n <tbody>\n @foreach($lanGames as $lanGame)\n @can('view', $lanGame)\n @php\n if (Auth::user()) {\n ...
php
chosen
[ { "from": "system", "value": "Remove the PHP 5.5 `::class` usage\n" }, { "from": "human", "value": "<?php\n\nnamespace spec\\Dock\\Docker\\Dns;\n\nuse Dock\\Docker\\Dns\\ContainerAddressResolver;\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass DnsDockResolverSpec extends ObjectBe...
php
chosen
[ { "from": "system", "value": "Fix codestyle and use stripos to check starting with vowel\n" }, { "from": "human", "value": "<?php\nnamespace Codeception\\Lib\\Actor\\Shared;\n\ntrait Comment\n{\n public function expectTo($prediction)\n {\n return $this->comment('I expect to ' . $pre...
php
chosen
[ { "from": "system", "value": "Allow changing enabled status for blogs\n" }, { "from": "human", "value": "<?php\n\nadd_filter('wpmu_blogs_columns', function ($columns) {\n $columns['2fa'] = '2FA';\n return $columns;\n});\n\nadd_action('manage_sites_custom_column', function ($column_name, $blawg...
php
chosen
[ { "from": "system", "value": "[TASK] Rename repository method `add` to attach in order to not collide with extbase\n" }, { "from": "human", "value": "<?php\nnamespace DreadLabs\\VantomasWebsite\\SecretSanta\\Pair;\n\nuse DreadLabs\\VantomasWebsite\\SecretSanta\\Donee\\DoneeInterface;\nuse DreadL...
php
chosen
[ { "from": "system", "value": "Update structure tables with common D8 entries and add option for easily excluding watchdog as well.\n" }, { "from": "human", "value": "<?php\n/**\n * Drush System configuration\n *\n * This file configures usage of Drush on the build container, in conjunction\n * w...
php
chosen
[ { "from": "system", "value": "Test for sort_custom AND sort_default\n" }, { "from": "human", "value": "<?php $sort_custom = $this->configuration->getValue('get.sort_custom'); ?>\n<?php $sort_default = $this->configuration->getValue('get.sort_default'); ?>\n<?php if ($sort_custom || $sort_custom)...
php
chosen
[ { "from": "system", "value": "Use a fresh DOMDocument for each ScriptsRearrangement iteration\n" }, { "from": "human", "value": "<?php\n\nreturn call_user_func(function () {\n\n $html = file_get_contents(__DIR__ . '/../../test/test-app/webcarpet.php');\n $filter = new Kibo\\Phast\\Filters\...
php
chosen
[ { "from": "system", "value": "Exit if RCP_Member class doesn't exist.\n" }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: Restrict Content Pro - Restrict WooCommerce Shop Archive\n * Description: Restricts access to the WooCommerce shop archive, using the settings specified in the \"R...
php
chosen
[ { "from": "system", "value": "Remove Algorithm namespace (split off into separate repository)" }, { "from": "human", "value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\Complete;\n\nuse Fhaculty\\Graph\\Algorithm\\Directed;\n\nuse Fhaculty\\Graph\\Graph;\n\nuse Fhaculty\\Graph\\Loader\\CompleteGr...
php
chosen
[ { "from": "system", "value": "Add edit button to designer page.\n" }, { "from": "human", "value": "@extends('layout.app')\n\n@section('content')\n<div id=\"picture-carousel\" class=\"carousel\">\n <img src=\"{{ $designer->getImage()->getThumbUrl() }}\" />\n <img src=\"{{ $designer->getImage()-...
php
chosen
[ { "from": "system", "value": "Clean up style for rate limit test\n\nCC @jxu577\n" }, { "from": "human", "value": "<?php\n\nnamespace Stripe;\n\nclass RateLimitErrorTest extends TestCase\n{\n private function rateLimitErrorResponse()\n {\n return array(\n 'error' => array(...
php
chosen
[ { "from": "system", "value": "Index view now displays all returned results\n" }, { "from": "human", "value": "<?php echo json_encode($scores); ?>" }, { "from": "gpt", "value": "<div class=\"container-fluid\">\n <div class=\"row mainpanel\">\n <div class=\"col-md-12 color-sw...
php
chosen
[ { "from": "system", "value": "Fix wrong created_at field type" }, { "from": "human", "value": "<?php\n\nuse yii\\db\\Schema;\nuse yii\\db\\Migration;\n\nclass m140703_123104_page extends Migration\n{\n public function up()\n {\n $tableOptions = null;\n if ($this->db->driverNa...
php
chosen
[ { "from": "system", "value": "[HttpFoudation] Add ability to configure sqlite session storage.\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, ...
php
chosen
[ { "from": "system", "value": "Update so ony varaibles are passed to end()\n" }, { "from": "human", "value": "<?php\nnamespace Opg\\Lpa\\DataModel\\Validator\\Constraints;\n\n/**\n * This train should be included in any 'Validator\\Constraints' class that wants to use\n * its original Symfony Val...
php
chosen
[ { "from": "system", "value": "Move cache into common location\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Phansible\\Provider;\n\nuse App\\Phansible\\Model\\GithubAdapter;\nuse Cache\\Adapter\\Filesystem\\FilesystemCachePool;\nuse Github\\Client;\nuse League\\Flysystem\\Adapter\\L...
php
chosen
[ { "from": "system", "value": "Implement default controller to redirect in function of role\n" }, { "from": "human", "value": "<?php\n\nnamespace Project\\AppBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse...
php
chosen
[ { "from": "system", "value": "Revert \"feed.http-hooks\" HTTP request construction to use \"http_build_query()\" so nested \"storyData\" is handled correctly\n\nSummary:\nSee <https://discourse.phabricator-community.org/t/storydata-is-blank-in-outgoing-requests-to-the-configured-feed-http-hooks/2366/>.\n\nT...
php
chosen
[ { "from": "system", "value": "Fix reloading the wrong session $var\n\nIn `do_voodoo`, we reload the session var from the database whenever\nwe're in a game, but don't have a sector lock yet.\n\nWhen we're joining or entering a game, we're in the unique situation\nwhere we load the original session var outsi...
php
chosen
[ { "from": "system", "value": "Fix a typo, make it use HSV at all times.\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\ninclude(\"NudeDetector.php\");\n\nif ($argc == 1)\n\texit;\n\n$input_file = $argv[1];\n\n$detector = new NudeDetector($input_file, 'HSV');\necho \"map sking pixel...
php
chosen
[ { "from": "system", "value": "Delete store purchases when the related store is deleted\n" }, { "from": "human", "value": "<?php\n\nclass Kohana_Model_Store extends Jam_Model {\n\n\t/**\n\t * @codeCoverageIgnore\n\t */\n\tpublic static function initialize(Jam_Meta $meta)\n\t{\n\t\t$meta\n\t\t\t->...
php
chosen
[ { "from": "system", "value": "Add check to prevent being redirected to a bad request page.\n" }, { "from": "human", "value": "<?php\n\ninclude_once('config/init.php');\n\nif (isset($_SERVER['HTTP_REFERER'])) {\n if (substr_compare($_SERVER['HTTP_REFERER'], 'login.php', -strlen('login.php'), s...
php
chosen
[ { "from": "system", "value": "Add test for specifics headers presence\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Alt Three Throttle.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w...
php
chosen
[ { "from": "system", "value": "Add index on `agent_id` to `web_artists` [API-341, API-336]\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CleanWebArtists...
php
chosen
[ { "from": "system", "value": "Return max possible total count when `countSynchronously` is true, calculate limit and offset\n" }, { "from": "human", "value": "<?php\n/**\n * ActiveRecord for API\n *\n * @link https://github.com/hiqdev/yii2-hiart\n * @package yii2-hiart\n * @license BSD-...
php
chosen
[ { "from": "system", "value": "Change delimiter for repository regex\n\n'#' is the default delimiter for route regexes in\n`Symfony\\Component\\Routing\\RouteCompiler`, so use this.\n" }, { "from": "human", "value": "<?php\n\nnamespace Gitlist\\Util;\n\nuse Silex\\Application;\n\nclass Routing\n{...
php
chosen
[ { "from": "system", "value": "[Codeception] Move mailer hack to `loadApp` method to ensure it's always applied.\n" }, { "from": "human", "value": "<?php\n\nnamespace Codeception\\Module;\n\nuse Codeception\\TestInterface;\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\H...
php
chosen
[ { "from": "system", "value": "Optimize Performance for long lines (use mb_strcut() instead of preg_split())\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the eluceo/iCal package.\n *\n * (c) Markus Poerschke <markus@eluceo.de>\n *\n * This source file is subject to the ...
php
chosen
[ { "from": "system", "value": "Fix for undefined var in migration\n" }, { "from": "human", "value": "<?php\n\n// Check to ensure this file is included in Joomla!\ndefined('_JEXEC') or die('Restricted access');\n\n/**\n * Migration script for add watching table\n **/\nclass Migration20130521160001...
php
chosen
[ { "from": "system", "value": "Add missing config for cache folder permissions\n" }, { "from": "human", "value": "<?php namespace OpenCFP\\Provider;\n\nuse HTMLPurifier;\nuse HTMLPurifier_Config;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\nclass HtmlPurifierServiceProvider i...
php
chosen
[ { "from": "system", "value": "[ProductVariant] Add locale to product variant query builders\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...
php
chosen
[ { "from": "system", "value": "Throw error on not connected\n" }, { "from": "human", "value": "<?php\n\nnamespace Purekid\\Mongodm\\Test\\TestCase;\n\nuse Phactory\\Mongo\\Phactory;\nuse Purekid\\Mongodm\\MongoDB;\n\n/**\n * Test Case Base Class for using Phactory *\n */\nabstract class PhactoryT...
php
chosen
[ { "from": "system", "value": "Allow using services.php, html-filters.php via Composer\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/../vendor/autoload.php';\nif (!defined('PHAST_CONFIG_FILE')) {\n define('PHAST_CONFIG_FILE', __DIR__ . '/config-user.php');\n}\n" }, { ...
php
chosen
[ { "from": "system", "value": "PLAT-9061: Add Thai to reach supported languages\n" }, { "from": "human", "value": "<?php\n/**\n * @package plugins.reach\n * @subpackage api.enum\n */\nclass KalturaCatalogItemLanguage extends KalturaStringEnum\n{\n\tconst EN = KalturaLanguage::EN;\n\tconst EN_US =...
php
chosen
[ { "from": "system", "value": "Use SplFileInfo::isFile() method for checking if path is a file\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nuse PHLAK\\Config\\Config;\nuse Slim\\Psr7\\Response;\nuse SplFileInfo;\n\nclass FileInfoController\n{\n /** @var Config App...
php
chosen
[ { "from": "system", "value": "Remove t() from PHPdoc example to avoid confusion\n" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Core\\ExternalLink;\n\n/**\n * External Link Provider Interface\n *\n * @package externalLink\n * @author Frederic Guillot\n */\ninterface ExternalLi...
php
chosen
[ { "from": "system", "value": "Add fixes for inflector and tests\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 distributed...
php
chosen
[ { "from": "system", "value": "Add StatHat metrics for user creation.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Providers;\n\nuse DoSomething\\Gateway\\Blink;\nuse Illuminate\\Support\\ServiceProvider;\nuse Northstar\\Models\\User;\n\nclass AppServiceProvider extends Servic...
php
chosen
[ { "from": "system", "value": "Update Hybrid\\Core::import to use include instead of require_once, and add some docblock\n" }, { "from": "human", "value": "<?php namespace Hybrid;\n\nuse \\Closure;\n\nclass Core\n{\n\tpublic static function start() { }\n\n\tpublic static function import($file_pat...
php
chosen
[ { "from": "system", "value": "Use ruby style instance variables for Method\n" }, { "from": "human", "value": "<?php\n\nnamespace Phuby;\n\nclass Method extends Object {\n protected $unbound;\n protected $receiver;\n\n function initialize($unbound, $receiver) {\n $this->unbound = ...
php
chosen
[ { "from": "system", "value": "Add a bunch of icons for testing\n" }, { "from": "human", "value": "<div class=\"contain-to-grid\">\n <header>\n\n <section class=\"banner\">\n <div id=\"logo\" class=\"columns\">\n <div class=\"container\"></div>\n </div>\n <div id=\"blog-...
php
chosen
[ { "from": "system", "value": "Make it possible to include the ID in the name mask\n\nFor example an entry mask could be \"Boat #%id%\" and the result would be \"Boat #5\"" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Express\\Entry\\Formatter;\n\nuse Concrete\\Core\\Entity\...
php
chosen
[ { "from": "system", "value": "Clarify that the abstract constraint should not be relied upon anymore\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full...
php
chosen
[ { "from": "system", "value": "Add a group name to the Components\n" }, { "from": "human", "value": "<?php\n\nuses(Tests\\TestCase::class)->in(__DIR__);\n" }, { "from": "gpt", "value": "<?php\n\nuses(Tests\\TestCase::class)->in(__DIR__);\n\nuses()->group('components')->in(__DIR__.'/Co...
php
chosen
[ { "from": "system", "value": "Make it more easy to compare locale\n" }, { "from": "human", "value": "<?php\n\nnamespace Common;\n\nuse InvalidArgumentException;\nuse Serializable;\n\nabstract class Locale implements Serializable\n{\n /**\n * @var string\n */\n protected $locale;\n\...
php
chosen
[ { "from": "system", "value": "Add ability to delete spending on spendings' index view\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('title', __('general.spendings'))\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2>{{ __('general.spendings') }}</h2>\n ...
php
chosen
[ { "from": "system", "value": "Add update script - drop table not something\n" }, { "from": "human", "value": "<?php\n\nforeach (CM_Db_Db::exec(\"SHOW TABLES LIKE 'wurfl%'\")->fetchAllColumn() as $tableName) {\n\tCM_Db_Db::exec('DROP IF EXISTS ' . $tableName);\n}\nCM_Db_Db::exec('DROP PROCEDURE ...
php
chosen
[ { "from": "system", "value": "Add some more information about the speakers for the 24th.\n" }, { "from": "human", "value": "<a href=\"assets/images/new31.jpg\" target=\"_blank\"><img src=\"assets/images/new31.jpg\" alt=\"New US 31 Hamilton County\" align=\"right\" /></a>\n\n<p>Coming to us from ...
php
chosen
[ { "from": "system", "value": "Add test about allowed http verbs when sending request\n\n" }, { "from": "human", "value": "<?php\n\nuse TZK\\Taiga\\Requests\\CurlRequest;\nuse TZK\\Taiga\\Service;\nuse TZK\\Taiga\\Services\\Users;\nuse TZK\\Taiga\\Taiga;\n\ndescribe('ServiceSpec', function () {\n...
php
chosen
[ { "from": "system", "value": "Return white color contrasting a dark color\n" }, { "from": "human", "value": "<?php\n\nnamespace Rainbow\\Calculation\\Operation;\n\nuse Rainbow\\Calculation\\CalculationInterface;\nuse Rainbow\\Rgb;\n\nfinal class Contrast implements CalculationInterface\n{\n p...
php
chosen
[ { "from": "system", "value": "Use a stricter regexp in Diffusion remarkup\n\nSummary:\nJust minor bookkeeping, but the current regexp is too liberal and\nwill match things which can't possibly be revision hashes.\n\nTest Plan:\nTyped things which should and shouldn't be revision links, they\ngot handled pro...
php
chosen
[ { "from": "system", "value": "FIX Fixed breaking custommenu block that was referencing the Items list prior to saving, if accessed via BlockSet\n" }, { "from": "human", "value": "<?php\n/**\n * A block that allows end users to manually build a custom (flat or nested) menu \n * @author Shea Daws...
php
chosen
[ { "from": "system", "value": "Add the special _route parameter to the json response\n" }, { "from": "human", "value": "<?php\n\nnamespace DjebbZ\\HelloBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass ...
php
chosen
[ { "from": "system", "value": "Add the model stuff to the location.\n" }, { "from": "human", "value": "<?php\n\nnamespace Hackspace\\Bundle\\CalciferBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * Location\n *\n * @property string $name\n * @property float $lon\n * @property floa...
php
chosen
[ { "from": "system", "value": "Change indexAction to include library variables\n" }, { "from": "human", "value": "<?php\n\nnamespace TheGame\\MapsBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n...
php
chosen
[ { "from": "system", "value": "Allow upper case and untrimmed gender codes\n" }, { "from": "human", "value": "<?php\n\nnamespace MusicBrainz\\Value;\n\nuse MusicBrainz\\Value;\n\n/**\n * A gender\n */\nclass Gender implements Value\n{\n /**\n * Male\n *\n * @var string\n */\n ...
php
chosen
[ { "from": "system", "value": "Fix bug al actualizar perfil\n" }, { "from": "human", "value": "<?php\n\nnamespace Tecnocreaciones\\Vzla\\GovernmentBundle\\Form\\Type;\n\nuse FOS\\UserBundle\\Form\\Type\\ProfileFormType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\nclass ProfileFormType...
php
chosen
[ { "from": "system", "value": "Check if Client exists when test.client does not exist, to provide clearer exception message\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...
php
chosen
[ { "from": "system", "value": "Fix for adjust parent method definition\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Eulogix\\Cool package.\n *\n * (c) Eulogix <http://www.eulogix.com/>\n *\n * For the full copyright and license information, please view the LICENSE\n...
php
chosen
[ { "from": "system", "value": "Work on operational notes page\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('content')\n <div class=\"row\">\n <h2>Operational notes</h2>\n <div class=\"col input-gropu mb-3\"\n <form wire:submit.prevent=\"getNotes\">\n <...
php
chosen
[ { "from": "system", "value": "Routing: Add home action in HomeController to test default route\n" }, { "from": "human", "value": "<?php\r\nnamespace engine\\controllers;\r\n\r\nclass HelloController\r\n{\r\n\r\n public function doHelloWorld ($id = false)\r\n {\r\n echo 'Hello World ...
php
chosen
[ { "from": "system", "value": "Add full calendar for staff\n" }, { "from": "human", "value": " <div id=\"sidebar\">\n\n <ul class=\"clearfix\">\n <li class=\"help\"><a href=\"#\">Help</a></li>\n <li><a href=\"/\">Upcoming Visits</a></li>\n <li><a href=\"...
php
chosen
[ { "from": "system", "value": "Update faves to items, remove guest middleware\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Item;\nuse Auth;\n\nclass ItemsController extends Controller\n{\n /**\n * Create a new con...
php
chosen
[ { "from": "system", "value": "Remove strict declaration on migration\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n\nnamespace Sylius\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migration...
php
chosen
[ { "from": "system", "value": "Remove useless defined method from interface, it will not be used\n" }, { "from": "human", "value": "<?php\n\nnamespace Wanjee\\Shuwee\\AdminBundle\\Datagrid;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\ninterface DatagridInterface\n{\n // add field\n ...
php
chosen
[ { "from": "system", "value": "Order searched events in admin by \"from\"\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Paging_Event_SearchText extends Denkmal_Paging_Event_Abstract {\n\n /**\n * @param string $text\n */\n public function __construct($text) {\n $q...
php
chosen
[ { "from": "system", "value": "Make sure deprecated ConfigureClientView event still works\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n...
php
chosen
[ { "from": "system", "value": "Remove unnecessary console logging since the open browser is all the feedback required.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Actions;\n\nuse App\\Shell\\Shell;\nuse Facades\\App\\Environment;\n\nclass OpenInBrowser\n{\n use LamboAction;\n\n ...
php
chosen
[ { "from": "system", "value": "Add license header to StepupBundle.\n" }, { "from": "human", "value": "<?php\n\nnamespace Surfnet\\StepupBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass SurfnetStepupBundle extends Bundle\n{\n}\n" }, { "from": "gpt", "value": "<?p...
php
chosen
[ { "from": "system", "value": "Add a link used to clear the purchase date input\n" }, { "from": "human", "value": "<!-- Purchase Date -->\n<div class=\"form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}\">\n <label for=\"purchase_date\" class=\"col-md-3 control-label\">{{ trans(...
php
chosen
[ { "from": "system", "value": "Remove useless of() call in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Brick\\Math\\Tests;\n\nuse Brick\\Math\\BigDecimal;\nuse Brick\\Math\\BigInteger;\n\n/**\n * Base class for BigInteger and BigDecimal test cases.\n */\nabstract class AbstractTes...
php
chosen
[ { "from": "system", "value": "Add setUp and tearDown to test example" }, { "from": "human", "value": "<?php\n\nuse Dojo\\Example;\nuse PHPUnit\\Framework\\TestCase;\n\nclass ExampleTest extends TestCase\n{\n public function testRandom()\n {\n $object = new Example();\n $this-...
php
chosen
[ { "from": "system", "value": "Add fingerprint consistency for Complexity issues\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPMD;\n\nclass Fingerprint\n{\n const OVERRIDE_RULES = [\n \"CyclomaticComplexity\",\n \"Design/LongClass\",\n \"Design/LongMethod\",\n ];\n...
php
chosen
[ { "from": "system", "value": "Add tech/topic tag relationships to Users\n" }, { "from": "human", "value": "<?php\n\nuse Emergence\\People\\User;\n\nUser::$fields['Twitter'] = [\n 'notnull' => false,\n 'unique' => true\n];\n\nUser::$relationships['Tags'] = [\n 'type' => 'many-many',\n ...
php
chosen
[ { "from": "system", "value": "Change version to something more appropriate.\n" }, { "from": "human", "value": "<?php\n/**\n * Application.php\n *\n * MIT LICENSE\n *\n * LICENSE: This source file is subject to the MIT license.\n * A copy of the licenses text was distributed alongside this\n * fi...
php
chosen
[ { "from": "system", "value": "Change base command, set output\n\nIn case that a styled-output is given, then there is no need to wrap the\noutput.\n" }, { "from": "human", "value": "<?php namespace Aedart\\Scaffold\\Console;\n\nuse Aedart\\Scaffold\\Containers\\IoC;\nuse Aedart\\Scaffold\\Contra...
php
chosen
[ { "from": "system", "value": "Convert balance records to Money objects\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace PerFi\\Application\\Factory;\n\nuse PerFi\\Domain\\Account\\Account;\nuse PerFi\\Domain\\Account\\AccountId;\nuse PerFi\\Domain\\Account\\Account...
php
chosen
[ { "from": "system", "value": "Change how context is passed\n" }, { "from": "human", "value": "<?php namespace Inkwell\n{\n\tuse Affinity;\n\tuse Auryn;\n\n\t$loader = require 'vendor/autoload.php';\n\t$constants = require 'constants.php';\n\n \tforeach ($constants as $const => $value) {\n\t\t...
php
chosen
[ { "from": "system", "value": "Make sure path is correct when loaded from composer\n" }, { "from": "human", "value": "<?php\n\nnamespace Sioen;\n\n/**\n * Get a translated list of countries\n * Uses this vendor: https://github.com/umpirsky/country-list/\n *\n * @author Wouter Sioen <wouter.sioen@...
php
chosen
[ { "from": "system", "value": "[retrieve-modify-message-history|PHP] Add missing params to search\n" }, { "from": "human", "value": "<?php\n// Get the PHP helper library from twilio.com/docs/php/install\nrequire_once '/path/to/vendor/autoload.php'; // Loads the library\nuse Twilio\\Rest\\Client;\...
php
chosen
[ { "from": "system", "value": "Add Application name in DB if pg version >= 8\n" }, { "from": "human", "value": "<?php \nclass timeoutFilter extends sfFilter\n{\n public function execute ($filterChain)\n {\n\n if($time = sfConfig::get('dw_queryTimeout',null))\n {\n $conn = Doctrine_Ma...
php
chosen
[ { "from": "system", "value": "Allow throwing of exception when yiitter is mocked in unit tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Yiitter;\n\n/**\n * Creates an exception from a tmhOAuth instance based on its last response data.\n *\n * @author Shiki <bj@basanes.net>\n */\ncla...
php
chosen