conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow to update cache key\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n 'default' => 'default',\n \n 'path' => base_path('themes'),\n\n 'cache' => [\n \t'enabled' => true,\n \t'lifetime' => 86400,\n ]\n\n);" }, { "from": ...
php
chosen
[ { "from": "system", "value": "Add boleta xml generator tests\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: Giansalex\n * Date: 16/07/2017\n * Time: 22:54\n */\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Greenter\\Xml\\Builder;\n\nuse Greenter\\Data\\Generat...
php
chosen
[ { "from": "system", "value": "Refactor file type registry to use services\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\AssetsBundle\\File;\n\nuse Becklyn\\AssetsBundle\\Asset\\Asset;\nuse Becklyn\\AssetsBundle\\File\\Type\\CssFile;\nuse Becklyn\\AssetsBundle\\File\\Type\\FileTy...
php
chosen
[ { "from": "system", "value": "Remove useless code from the bundle class\n" }, { "from": "human", "value": "<?php\n\nnamespace Knplabs\\Bundle\\MarkdownBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle as BaseBundle;\n\nclass KnplabsMarkdownBundle extends BaseBundle\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Update noreturnvalue test for PhpParser 3.x." }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Psy Shell.\n *\n * (c) 2012-2018 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr...
php
chosen
[ { "from": "system", "value": "Use Type::hasType to check for existing type\n" }, { "from": "human", "value": "<?php\n\nnamespace Ident\\Test\\Doctrine;\n\nuse Doctrine\\DBAL\\Types\\Type;\n\n/**\n * Class AbstractUuidTypeTest\n */\nabstract class AbstractUuidTypeTest extends \\PHPUnit_Framework_...
php
chosen
[ { "from": "system", "value": "Allow deletedAt to be nullable\n" }, { "from": "human", "value": "<?php\n\nnamespace Gedmo\\SoftDeleteable\\Traits;\n\n/**\n * SoftDeletable Trait, usable with PHP >= 5.4\n *\n * @author Wesley van Opdorp <wesley.van.opdorp@freshheads.com>\n * @link http://www.gedim...
php
chosen
[ { "from": "system", "value": "Remove extra whitespace in reminder email\n" }, { "from": "human", "value": "Hi {{ $assignment->user->preferred_first_name }},\n\n@if(!$assignment->tar_received && $assignment->travel->tar_required)\nYou still need to submit a Travel Authority Request for {{ $assign...
php
chosen
[ { "from": "system", "value": "Set headers in a different manner in the middleware\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\n\nclass PreventBackHistory\n{\n /**\n * Handle an incoming request.\n *\n * @param \\Illuminate\\Http\\R...
php
chosen
[ { "from": "system", "value": "Autoloader: Support PSR-4 style namespace/directory mapping\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n" }, { "from": "human", "value": "<?php\n/*\n * Copyright 2014 Florian \"Bluewind\" Pritz <bluewind@server-speed.net>\n *\...
php
chosen
[ { "from": "system", "value": "Update FormatProvider::format() signature so it doesnt force an array\n" }, { "from": "human", "value": "<?php\n\nnamespace Benrowe\\Formatter;\n\n/**\n * Formatter Provider interface\n *\n * Provide a standard format interface for Providers to adher to\n *\n * @pac...
php
chosen
[ { "from": "system", "value": "Fix bug in sentence generator.\n\nNo commas were ever going to be added.\n" }, { "from": "human", "value": "<?php\nreturn function() {\n $randomWord = function() {\n $word = '';\n $length = rand(1, 20);\n for ($i = 0; $i < $length; $i++) {\n ...
php
chosen
[ { "from": "system", "value": "Change license to MIT to match the project\n" }, { "from": "human", "value": "<?php\n/**\n *\n * This file is part of Aura for PHP.\n *\n * @license http://opensource.org/licenses/bsd-license.php BSD\n *\n */\nnamespace Aura\\Router\\Helper;\n\nuse Aura\\Router\\Exc...
php
chosen
[ { "from": "system", "value": "Correct typo in class description.\n" }, { "from": "human", "value": "<?php\n\nnamespace Codeception\\Module;\n\n/**\n * Class WebHelper - ddefine custom functions for WebGuy.\n */\nclass WebHelper extends \\Codeception\\Module\n{\n}\n" }, { "from": "gpt", ...
php
chosen
[ { "from": "system", "value": "Fix select form component values\n" }, { "from": "human", "value": "<div class=\"form-group\">\n\t<label>{{ $label }}</label>\n @if (isset($options) && is_array($options))\n <?php if (isset($value)): $val = $value; elseif (is_bool(Form::getValueAttribute($...
php
chosen
[ { "from": "system", "value": "Use require instead of require_once when retrieving loader\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the broadway/broadway package.\n *\n * (c) Qandidate.com <opensource@qandidate.com>\n *\n * For the full copyright and license informat...
php
chosen
[ { "from": "system", "value": "Move documentation downloads into site/assets/downloads/documentation\n" }, { "from": "human", "value": "<?php\n\nclass Documentation {\n private $_filename;\n\n public function __construct($filename) {\n $this->_filename = $filename;\n }\n\n publ...
php
chosen
[ { "from": "system", "value": "Switch api details to use spurs twitter\n" }, { "from": "human", "value": "\n<?php\nrequire \"./vendor/autoload.php\";\nuse Abraham\\TwitterOAuth\\TwitterOAuth;\n\ndefine('CONSUMER_KEY', 'bZBePzKUIAgUD67Q5S1XyAt8d');\ndefine('CONSUMER_SECRET', 'eIEhPq4BGay9P335fcPpM...
php
chosen
[ { "from": "system", "value": "Fix object ids with more than one digit being unviewable\n\nDue to a regex error in the route for viewing objects, ids with more\nthan one digit would take the last digit in the id as the object to\nview.\n" }, { "from": "human", "value": "<?php\n\n$router = new \\P...
php
chosen
[ { "from": "system", "value": "Use $argv instead of $_SERVER['argv']\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n\ninclude_once dirname(__DIR__) . '/boot.php';\n\n$a = new Friendica\\App(dirname(__DIR__));\n\\Friendica\\BaseObject::setApp($a);\n\n(new Friendica\\Core\\Console())...
php
chosen
[ { "from": "system", "value": "Remove line creating false 403\n" }, { "from": "human", "value": "<?php\n/**\n * @package Zoop\n * @license MIT\n */\n\nnamespace Zoop\\GatewayModule;\n\nuse Zoop\\GatewayModule\\Exception;\nuse Zend\\Authentication\\Adapter\\Http as ZendHttpAdapter;\nuse Zend...
php
chosen
[ { "from": "system", "value": "Fix case in class name\n" }, { "from": "human", "value": "<?php\n\nnamespace Qandidate\\Toggle\\Operator;\n\nuse Qandidate\\Toggle\\Operator;\n\nclass Inset extends Operator\n{\n private $values;\n\n /**\n * @param array $values\n */\n public functi...
php
chosen
[ { "from": "system", "value": "[REFACTOR] Remove \"final\" keyword on getItems and getDefaultId methods in dynamic list services.\n" }, { "from": "human", "value": "<?php\nclass zone_ListPublishedcountriesService extends BaseService\n{\n\t/**\n\t * @var customer_ListTitleService\n\t */\n\tprivate...
php
chosen
[ { "from": "system", "value": "Fix dashboard to display newest grades\n" }, { "from": "human", "value": "<?php\n\nclass DashboardController extends \\BaseController {\n\n\t/**\n\t * Display main page of dashboard\n\t *\n\t * @return View\n\t */\n\tpublic function getIndex()\n\t{\n\n $grade...
php
chosen
[ { "from": "system", "value": "Simplify add dashboard widgets compiler pass.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n...
php
chosen
[ { "from": "system", "value": "Update phpDoc to make it standard compliant\n\nPHP Doc stipulates that for `@var` comments, the type should come first (see http://en.wikipedia.org/wiki/PHPDoc#Tags)\n" }, { "from": "human", "value": "<?php\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\n...
php
chosen
[ { "from": "system", "value": "Remove all jenkins-specific bits and bobs\n" }, { "from": "human", "value": "<?php\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\n\n$loader = require __DIR__.'/../vendor/autoload.php';\n\n// intl\nif (!function_exists('intl_get_error_code')) {\n requi...
php
chosen
[ { "from": "system", "value": "Fix missing --no-wait option on integration:delete\n" }, { "from": "human", "value": "<?php\nnamespace Platformsh\\Cli\\Command\\Integration;\n\nuse Platformsh\\Cli\\Command\\PlatformCommand;\nuse Platformsh\\Cli\\Util\\ActivityUtil;\nuse Symfony\\Component\\Console...
php
chosen
[ { "from": "system", "value": "Add class alias for BC with older PHPUnit\n" }, { "from": "human", "value": "<?php\n\nuse WP_CLI_Login\\WP_CLI_Login_Server;\n\nclass WP_CLI_Login_ServerTest extends PHPUnit_Framework_TestCase\n{\n /** @test */\n function parses_endpoint_and_key_from_uri()\n ...
php
chosen
[ { "from": "system", "value": "Fix handling of URLs, that result in no actual model\n\nAdd $callback to scope of Closure.\n" }, { "from": "human", "value": "<?php namespace Felixkiss\\SlugRoutes;\n\nuse Illuminate\\Routing\\Router;\n\nclass SlugRouter extends Router\n{\n public function model(...
php
chosen
[ { "from": "system", "value": "Change use statement to ASFEntityManager\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the Artscore Studio Framework package.\n *\n * (c) Nicolas Claverie <info@artscore-studio.fr>\n *\n * For the full copyright and license information, pleas...
php
chosen
[ { "from": "system", "value": "Refactor to use Laravel Storage - supporting Flysystem" }, { "from": "human", "value": "<?php\n\nnamespace Mitul\\Generator\\File;\n\nclass FileHelper\n{\n\tpublic function writeFile($file, $contents)\n\t{\n\t\tfile_put_contents($file, $contents);\n\t}\n\n\tpublic f...
php
chosen
[ { "from": "system", "value": "Remove non used namespace from extension class\n" }, { "from": "human", "value": "<?php\n\nnamespace Usoft\\IDealBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony...
php
chosen
[ { "from": "system", "value": "Call paste() directly on Image object\n" }, { "from": "human", "value": "<?php\n\nnamespace Liip\\ImagineBundle\\Imagine\\Filter\\Loader;\n\nuse Imagine\\Image\\Point;\nuse Imagine\\Filter\\Basic\\Paste;\nuse Imagine\\Image\\ImageInterface;\nuse Imagine\\Image\\Imag...
php
chosen
[ { "from": "system", "value": "Update for error when plugin fusioninventory not present\n" }, { "from": "human", "value": "<?php\n\n/*\n ----------------------------------------------------------------------\n FusionInventory\n Copyright (C) 2010-2011 by the FusionInventory Development Team...
php
chosen
[ { "from": "system", "value": "Revert \"Added a required GET parameter and changed the output format. It now only returns up to 5 names.\"\n\nThis reverts commit f7343f7f18e0eaead9c3bc0106d7731509885641.\n" }, { "from": "human", "value": "<?php\n\nif (isset($_GET[\"user\"])) {\n $toMatch = $_...
php
chosen
[ { "from": "system", "value": "Allow numbers in type format name (int32/int64)" }, { "from": "human", "value": "<?php\n\nnamespace SwaggerGen\\Swagger\\Type;\n\n/**\n * Abstract foundation of all type definitions.\n *\n * @package SwaggerGen\n * @author Martijn van der Lee <martijn@vanderl...
php
chosen
[ { "from": "system", "value": "Change nested plus to be (+ 1 (+ 2 3))\n" }, { "from": "human", "value": "<?php\n\nnamespace Igorw\\Ilias;\n\nrequire __DIR__.'/../vendor/autoload.php';\n\n$ast = [\n ['+', 1, 2],\n ['+', 1, ['+', 1, 1]],\n [['get-plus-func'], 1, 2],\n ['get-random-numbe...
php
chosen
[ { "from": "system", "value": "Return status and output from job\n\n- To see what actually happened\n" }, { "from": "human", "value": "<?php\nchdir(__DIR__ . '/../../');\n\nif (! ZendJobQueue::getCurrentJobId()) {\n header('HTTP/1.1 403 Forbidden');\n exit(1);\n}\n\n$command = '/usr/local/z...
php
chosen
[ { "from": "system", "value": "Remove css rule on p tag\n" }, { "from": "human", "value": "<!-- Date Time Picker JS -->\n<script src=\"../js/date-time-picker/jquery-ui-1.10.0.custom.min.js\"></script>\n<script src=\"../js/date-time-picker/jquery-ui-sliderAccess.js\"></script>\n<script src=\"../js...
php
chosen
[ { "from": "system", "value": "Check for the response class\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Plinth\\Response;\r\n\r\nuse Plinth\\Dictionary;\r\n\r\nclass Parser\r\n{\r\n /**\r\n * @param Response $self\r\n * @param string $template\r\n\t * @param array $templa...
php
chosen
[ { "from": "system", "value": "Fix mktime returning error on no default timezone\n" }, { "from": "human", "value": "<?php namespace Rafasamp\\Sonus;\n\nclass Helpers\n{\n /**\n * Extracts seconds from HH:MM:SS string\n * @param string HH:MM:SS formatted value\n * @return string\n ...
php
chosen
[ { "from": "system", "value": "Fix typo and use span for upgrade notice block (already nested in p tag)\n" }, { "from": "human", "value": "<?php\n\n/** \n * Adds the WordPress plugin update action if we are on the plugins page.\n *\n * @since v1.1.1\n */\n\nglobal $pagenow;\n\n/**\n * WordPress a...
php
chosen
[ { "from": "system", "value": "Include media URLs with field data\n" }, { "from": "human", "value": "<?php\nrequire_once(\"dbconnection.php\");\nrequire_once(\"return_package.php\");\n\nclass fields extends dbconnection\n{\n public static function getFieldsForGame($pack)\n {\n $game_...
php
chosen
[ { "from": "system", "value": "Use stored slug for generating server-rendered link to discussion\n\nFixes #646.\n" }, { "from": "human", "value": "<?php\n$url = app('Flarum\\Forum\\UrlGenerator');\n?>\n<div class=\"container\">\n <h2>{{ $translator->trans('core.ref.all_discussions') }}</h2>\n\...
php
chosen
[ { "from": "system", "value": "FIX Only update member actions that have occurred for member objects that exist in the DB\n" }, { "from": "human", "value": "<?php\n\n/**\n * \n *\n * @author <marcus@silverstripe.com.au>\n * @license BSD License http://www.silverstripe.org/bsd-license\n */\nclass M...
php
chosen
[ { "from": "system", "value": "Change site title to Guestlist\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Brucosijada Guestlist</title>\n <link rel=\"stylesheet\" href=\"/css/app.css\" charset=\"utf-8\">\n <link rel=\"styles...
php
chosen
[ { "from": "system", "value": "Update operator for template call\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('content')\n @include('partials.page-header')\n\n @if (!have_posts())\n <div class=\"alert alert-warning\">\n {{ __('Sorry, no results were found.', 's...
php
chosen
[ { "from": "system", "value": "Support for yet another subdomain\n" }, { "from": "human", "value": "<?\n $url = $_SERVER['HTTP_HOST'];\n if($url == \"map.project-osrm.org\") {\n \t$file = file_get_contents('map.html');\n\t\techo $file;\n \treturn;\n }\n $file = file_get_contents('...
php
chosen
[ { "from": "system", "value": "Implement post view action method.\n" }, { "from": "human", "value": "<?php\n\nnamespace frontend\\controllers;\n\nuse yii\\web\\Controller;\nuse yii\\web\\HttpException;\nuse common\\models\\Section;\n\nclass SectionController extends Controller\n{\n public func...
php
chosen
[ { "from": "system", "value": "Move the deploynaut modeladmin up to the top of the cms menu\n" }, { "from": "human", "value": "<?php\n\nclass DNAdmin extends ModelAdmin {\n\n\tpublic static $menu_title = \"Deploynaut Projects\";\n\tpublic static $url_segment = \"naut\";\n\tpublic static $managed_...
php
chosen
[ { "from": "system", "value": "Add port not to use default\n" }, { "from": "human", "value": "<?php\nerror_reporting(E_ALL | E_STRICT);\n$src = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src';\nset_include_path(get_include_path()\n . $src\n);\n\nrequire_once 'Net/KyotoTycoon.php';\n$kt = new \\...
php
chosen
[ { "from": "system", "value": "Change this to show a unique text so each image is considered different in the network tab (for testing pages with lots of images)\n" }, { "from": "human", "value": "<?php\n\nnamespace Factories;\n\nuse Contracts\\Factories\\FactoryContract;\nuse Faker\\Factory;\n\n...
php
chosen
[ { "from": "system", "value": "Rename some methods for better readability\n" }, { "from": "human", "value": "<?php\nnamespace Doctrine\\Search\\Http;\n\ninterface AdapterInterface\n{\n public function setConfig(array $config);\n \n public function openConnection($host, $port = 80);\n ...
php
chosen
[ { "from": "system", "value": "Remove redundant phpdoc info @version\n" }, { "from": "human", "value": "<?php\n/**\n * @title Ajax Helper Class\n *\n * @author Pierre-Henry SORIA <ph7software@gmail.com>\n * @copyright (c) 2012-2019, Pierre-Henry Soria. All Rights Reser...
php
chosen
[ { "from": "system", "value": "Update link to IRC page" }, { "from": "human", "value": "<article>\n\n <h1>Welcome to laravel.io</h1>\n\n <p>Laravel: Ins and Outs is a project created and maintained by the {{ HTML::link('http://laravel.com/irc', '#Laravel community on irc.freenode.net') }}. ...
php
chosen
[ { "from": "system", "value": "[FrameworkBundle] Fix BrowserKit assertions to make them compatible with Panther\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 licen...
php
chosen
[ { "from": "system", "value": "FIX Only updateList for objects that have the FluentVersionedExtension\n\nPrevents breaking when fluent is not enabled, or querying objects that are not fluent\n" }, { "from": "human", "value": "<?php\n\nnamespace TractorCow\\Fluent\\Extension;\n\nuse SilverStripe\\...
php
chosen
[ { "from": "system", "value": "Replace array with ArrayCollection in decks.\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Mo\\FlashCardsBundle\\Document;\r\n\r\nuse Doctrine\\ODM\\MongoDB\\Mapping\\Annotations as MongoDB;\r\n\r\n/**\r\n * @MongoDB\\Document(collection=\"decks\")\r\n *...
php
chosen
[ { "from": "system", "value": "Add callback for compile action\n" }, { "from": "human", "value": "<?php\n\nnamespace TlAssetsBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Remove fluent interface on registry\n" }, { "from": "human", "value": "<?php\nnamespace DICIT;\n\nclass Registry\n{\n protected $data = array();\n\n public function __construct() {\n\n }\n\n public function flush() {\n $this->data = array();\n ...
php
chosen
[ { "from": "system", "value": "Use get for loading dialog.\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2012 Thomas Tanghus <thomas@tanghus.net>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\nfunc...
php
chosen
[ { "from": "system", "value": "Add FirePHP to monolog service provider\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Logger\\Manager;\nuse Bolt\\Logger\\Handler\\SystemHandler;\nuse Bolt\\Logger\\Handler\\RecordChangeHandler;\nuse Monolog\\Logger;\nuse Silex\\...
php
chosen
[ { "from": "system", "value": "Disable order by desc for wallets list\n" }, { "from": "human", "value": "<?php\n\nnamespace WalletLogger;\n\nuse Illuminate\\Database\\Capsule\\Manager;\n\nclass WalletsController extends ItemsController\n{\n public function __construct(Manager $db)\n {\n ...
php
chosen
[ { "from": "system", "value": "Add blog link to footer\n" }, { "from": "human", "value": "<p><a href=\"/politica-de-privacidade\">Política de Privacidade</a></p>\n" }, { "from": "gpt", "value": "<p>\n <a href=\"https://blog.benspenhorados.pt\">Blogue</a> - \n <a href=\"/politica-de-...
php
chosen
[ { "from": "system", "value": "Change directory to project root before bootstrapping " }, { "from": "human", "value": "<?php\n\nif (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {\n return false;\n}\n\nrequire 'vendor/autoload.php';\n\...
php
chosen
[ { "from": "system", "value": "Allow unpacking selected fields in specific order\n" }, { "from": "human", "value": "<?php\r\nclass SodaTuple {\r\n public function __construct($fields = array()) {\r\n foreach($fields as $field => $value) {\r\n $this->{$field} = $value;\r\n }\r\...
php
chosen
[ { "from": "system", "value": "[DOC] Add documentation link for Flagged Revisions\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@39878 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Proje...
php
chosen
[ { "from": "system", "value": "Use php artisan serve url\n\nSigned-off-by: snipe <e9c017fc53f27c86a4fb6d4f0de7d332b596a185@snipe.net>\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse Facebook\\WebDriver\\Chrome\\ChromeOptions;\nuse Facebook\\WebDriver\\Remote\\DesiredCapabiliti...
php
chosen
[ { "from": "system", "value": "Fix protocol and version parsing" }, { "from": "human", "value": "<?php namespace Inkwell\\HTTP\\Gateway\n{\n\tuse Inkwell\\HTTP;\n\tuse Inkwell\\Transport;\n\tuse Dotink\\Flourish\\Collection;\n\n\tclass Server implements Transport\\GatewayInterface\n\t{\n\t\t/**\n...
php
chosen
[ { "from": "system", "value": "Delete unused method and add PHPDoc\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Lloople\\Notificator;\r\n\r\n/**\r\n * Class Notificator\r\n *\r\n * @package Lloople\\Notificator\r\n */\r\nclass Notificator\r\n{\r\n\r\n public static function succes...
php
chosen
[ { "from": "system", "value": "Add docblock and if statements to growl method\n" }, { "from": "human", "value": "<?php\nnamespace BryanCrowe;\n\nclass Growl\n{\n public function __construct() {}\n\n public function growl($message = null, $options = []) {}\n\n public function createComman...
php
chosen
[ { "from": "system", "value": "Adjust factory to use ContainerBuilder::addCompilerPass()\n" }, { "from": "human", "value": "<?php\n\nnamespace Yolo;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Yolo\\DependencyInjection\\YoloExtension;\nuse Yolo\\Compiler\\EventSubscribe...
php
chosen
[ { "from": "system", "value": "Fix coding standard [skip fix]\n" }, { "from": "human", "value": "<?php\n\nnamespace Miaoxing\\Config\\Service;\n\nuse Wei\\Env;\nuse Exception;\nuse League\\Flysystem\\Adapter\\Local;\nuse League\\Flysystem\\Sftp\\SftpAdapter;\nuse League\\Flysystem\\Filesystem;\nu...
php
chosen
[ { "from": "system", "value": "Remove unused param from anonymous function\n" }, { "from": "human", "value": "<?php\n\nuse Estaty\\Application;\nuse Estaty\\Controller\\HomepageController;\n\n$app['homepage.controller'] = $app->share(function(Silex\\Application $app) {\n return new HomepageCon...
php
chosen
[ { "from": "system", "value": "Allow normal traces in dev\n" }, { "from": "human", "value": "<?php\n\nnamespace Outlandish\\Wpackagist\\EventListener;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\\Component\\HttpKern...
php
chosen
[ { "from": "system", "value": "Revert \"Revert \"Last codestyle fix (I hope)\"\"\n\nThis reverts commit f57f550268ef23ccb74c6b4da6f4e0cb4d515179.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpun...
php
chosen
[ { "from": "system", "value": "Fix for empty query stack\n" }, { "from": "human", "value": "<?php\n\nnamespace Parsnick\\EloquentJs;\n\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\n\nclass ServiceProvider extends BaseServiceProvider\n{\n /**\n * Register the service pr...
php
chosen
[ { "from": "system", "value": "Add --force option to module:publish command\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Fort\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n * The name ...
php
chosen
[ { "from": "system", "value": "Fix setting user to null, for now\n\nStill need to flesh out the exact purpose/use of the Actor class\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Support;\n\nuse Flarum\\Core\\Models\\User;\nuse Flarum\\Core\\Models\\Guest;\n\nclass Actor\n{\n ...
php
chosen
[ { "from": "system", "value": "Correct bug in updating Payload with new Request object\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright (c) 2016 Refinery29, Inc.\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distributed with this sou...
php
chosen
[ { "from": "system", "value": "Add the user detail ID to the form validation\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Form\\Type;\n\nuse AppBundle\\Entity\\User;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\...
php
chosen
[ { "from": "system", "value": "Allow AJAX viewpress view function calls\n" }, { "from": "human", "value": "<?php\n\nuse Carbon\\Carbon;\nuse EklundChristopher\\ViewPress\\Application;\n\nif (! function_exists('viewpress_view'))\n{\n /**\n * Render a view file.\n *\n * @param strin...
php
chosen
[ { "from": "system", "value": "Add missing Date form type\n\nhttp://symfony.com/doc/current/reference/forms/types/date.html" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Upgrade\\Fixer;\n\nuse Symfony\\CS\\Tokenizer\\Tokens;\n\nabstract class FormTypeFixer extends AbstractFixer\n{\...
php
chosen
[ { "from": "system", "value": "Add cache expiration on class metadata\n" }, { "from": "human", "value": "<?php\n\nnamespace JPC\\Test\\MongoDB\\ODM\\Factory;\n\nuse JPC\\MongoDB\\ODM\\Factory\\ClassMetadataFactory;\nuse JPC\\Test\\MongoDB\\ODM\\Framework\\TestCase;\n\nclass ClassMetadataFactoryTe...
php
chosen
[ { "from": "system", "value": "Remove generated image in tests.\n" }, { "from": "human", "value": "<?php\n\nnamespace Identicon;\n\nuse Identicon\\Identity\\Identity;\nuse Imagine\\Gd\\Imagine;\n\nclass IdenticonTest extends \\PHPUnit_Framework_TestCase\n{\n public function testCreateNew()\n ...
php
chosen
[ { "from": "system", "value": "Add success message to clear-compiled command" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Foundation\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass ClearCompiledCommand extends Command\n{\n /**\n * The console command name.\n ...
php
chosen
[ { "from": "system", "value": "Fix unizue collection object compare bug\n" }, { "from": "human", "value": "<?php\n\nnamespace Feedbee\\Smp\\Collection;\n\nclass UniqueCollection extends Collection\n{\n /**\n * @param array $values\n * @return \\Feedbee\\Smp\\Collection\\Collection\n ...
php
chosen
[ { "from": "system", "value": "Remove duplicate AOS js call\n" }, { "from": "human", "value": "@extends('page::page-layouts.default')\n@section('title', 'Laravel Pages')\n@section('body')\n\n@include('page::shared.header', [\"class_name\" => \"landing bg-5\"])\n\n\n@include('page::shared.nav')\n\...
php
chosen
[ { "from": "system", "value": "Add line at end of file\n" }, { "from": "human", "value": "<?php\n\n$data = [\n 'username' => 'darth',\n 'email' => 'd.vader@theempire.com',\n];\n\n// Inserts data and returns inserted row's primary key\n$userModel->insert($data);\n\n// Inserts data and ret...
php
chosen
[ { "from": "system", "value": "Add call static helper method to service context\n" }, { "from": "human", "value": "<?php\n/**\n *\n */\n\nnamespace Arc5\\Facade;\n\nuse Mvc5\\App;\nuse Mvc5\\Service\\Context;\nuse Mvc5\\Service\\Facade;\nuse Mvc5\\Service\\Service as _Service;\n\ntrait Service\n{...
php
chosen
[ { "from": "system", "value": "Reset the request instance after the tests complete\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . \"/ResolverTestCase.php\";\n\nclass CanonicalUrlResolverTest extends ResolverTestCase\n{\n\n protected function setUp()\n {\n $this->u...
php
chosen
[ { "from": "system", "value": "Add a default date format" }, { "from": "human", "value": "<?php\n$db_core = require(__DIR__ . '/db_core.php');\n$db_bank = require(__DIR__ . '/db_bank.php');\n$db_openerp = require(__DIR__ . '/db_openerp.php');\nYii::setAlias('@base', dirname(dirname(__DIR__)));\n\...
php
chosen
[ { "from": "system", "value": "III-1783: Remove unnecessary dependency on Monolog\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\Log;\n\nuse Monolog\\Logger;\nuse Psr\\Log\\LoggerInterface;\n\nclass ContextEnrichingLoggerTest extends \\PHPUnit_Framewor...
php
chosen
[ { "from": "system", "value": "Fix for Custom Table Name" }, { "from": "human", "value": "<?php\n/**\n * @link http://mikhailmikhalev.ru\n * @author Mikhail Mikhalev\n */\n\nnamespace nhkey\\arh\\managers;\n\nuse Yii;\nuse yii\\db\\Connection;\nuse yii\\di\\Instance;\n\n\n/**\n * Class DBManager ...
php
chosen
[ { "from": "system", "value": "Make tests phpunit 5 compatible\n" }, { "from": "human", "value": "<?php\n\nnamespace Phive\\TaskQueue\\Tests;\n\nuse Phive\\Queue\\NoItemAvailableException;\nuse Phive\\TaskQueue\\Executor;\n\nclass ExecutorTest extends \\PHPUnit_Framework_TestCase\n{\n private ...
php
chosen
[ { "from": "system", "value": "Tweak test to use heap more naturally\n" }, { "from": "human", "value": "<?php\n/**\n * Created by JetBrains PhpStorm.\n * User: Doug\n * Date: 28/07/13\n * Time: 12:58\n * To change this template use File | Settings | File Templates.\n */\n\n namespace DVDoug\\Box...
php
chosen
[ { "from": "system", "value": "Fix the graphql server url.\n" }, { "from": "human", "value": "<?php namespace ProcessWire;\n\n$ProcessGraphQL = $modules->get('ProcessGraphQL');\n$ProcessGraphQL->GraphQLServerUrl = $config->urls->root . '/graphql/';\necho $ProcessGraphQL->executeGraphiQL();\n" }...
php
chosen
[ { "from": "system", "value": "Use property instead of name for meta tags" }, { "from": "human", "value": "\t\t<?php if ($content_type = Controller::$view->mime_type): ?>\n\t\t\t<?php if (!empty(Controller::$view->charset)) { $content_type .= ';charset=' . Controller::$view->charset; } ?>\n\t\t\t...
php
chosen
[ { "from": "system", "value": "Remove PSR-7 response interface from middleware.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Http\\Middleware;\n\nuse League\\OAuth2\\Server\\Server as OAuthServer;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerReque...
php
chosen