conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Exclude mock directory from coverage.\n" }, { "from": "human", "value": "<?php\n\nuse mageekguy\\atoum\\reports;\n\n$runner\n\t->addTestsFromDirectory(__DIR__ . '/tests/units/classes')\n\t->disallowUndefinedMethodInInterface()\n;\n\n$travis = getenv('TRAVIS');\n\nif...
php
chosen
[ { "from": "system", "value": "Add description to custom-scalar types\n" }, { "from": "human", "value": "<?php\n\nnamespace Overblog\\GraphQLBundle\\Config;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\n\nclass CustomScalarTypeDefinition extends TypeDefinition\n{\n publ...
php
chosen
[ { "from": "system", "value": "Replace host for testing by ->getHost()\n" }, { "from": "human", "value": "<?php\n\nnamespace SLLH\\HybridAuthBundle\\Security\\Http\\Logout;\n\nuse Symfony\\Component\\Security\\Http\\Logout\\LogoutHandlerInterface,\n Symfony\\Component\\Security\\Core\\Authenti...
php
chosen
[ { "from": "system", "value": "Fix user not found on post\n" }, { "from": "human", "value": "@extends('layouts/default')\n\n@section('pagetitle') 404 - ChatProject @endsection\n\n@section('navbar')\n<li class=\"nav-item\"><a href=\"#\" class=\"nav-link\">Accueil</a></li>\n@if (Auth::check())\n<li...
php
chosen
[ { "from": "system", "value": "Remove tag, remove unneeded variable\n" }, { "from": "human", "value": "<?php\n\n//SHTracker, Copyright Josh Fradley (http://github.com/joshf/SHTracker)\n\n//Connect to database\nrequire_once(\"config.php\");\n\n//Connect to database\n$con = mysql_connect(DB_HOST, D...
php
chosen
[ { "from": "system", "value": "Change array definition for PHP 5.3 support\n" }, { "from": "human", "value": "<?php\n\nnamespace Liip\\ImagineBundle\\Imagine\\Filter\\Loader;\n\nuse Imagine\\Filter\\Advanced\\Grayscale;\nuse Imagine\\Image\\ImageInterface;\n\n/**\n * GrayscaleFilterLoader - apply...
php
chosen
[ { "from": "system", "value": "Check if connection is not false\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\Ftp;\n\nclass RawListFtpConnectivityChecker implements ConnectivityChecker\n{\n /**\n * @inheritDoc\n */\n public func...
php
chosen
[ { "from": "system", "value": "Fix writing method of anonymous function\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the php-utils.php package.\n *\n * Copyright (C) 2015 Tadatoshi Tokutake <tadatoshi.tokutake@gmail.com>\n *\n * Licensed under the MIT License\n */\n\n\...
php
chosen
[ { "from": "system", "value": "t8: Fix case typo in notfound page\n" }, { "from": "human", "value": "<?php\nclass CM_Page_Error_NotFound extends CM_Page_Abstract {\n\n\tpublic function prepare(CM_RequestHandler_Abstract $requestHandler) {\n\t\t$requestHandler->setHeaderNotfound();\n\t\t$this->set...
php
chosen
[ { "from": "system", "value": "Set abstract test to abstract\n" }, { "from": "human", "value": "<?php\n\nnamespace MS\\PHPMD\\Tests\\Functional;\n\nuse Symfony\\Component\\Process\\ProcessBuilder;\nuse Symfony\\Component\\Process\\Process;\n\n/**\n * Class AbstractProcessTest\n *\n * @package MS\...
php
chosen
[ { "from": "system", "value": "Fix the \"skip over files beginning with a dot\" feature\n" }, { "from": "human", "value": "<?php\n\n/**\n * Functions file\n * \n * This file is for general purpose functions required by the front controller\n * and any other output-related features.\n *\n * @versi...
php
chosen
[ { "from": "system", "value": "COM-330: Make default Edit and Delete buttons available for entities\n - improved refresh grid action\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Component\\Action\\Action;\n\nuse Symfony\\Component\\PropertyAccess\\PropertyPath;\n\nuse Symfony\\Compo...
php
chosen
[ { "from": "system", "value": "Rename var name as same asa parameter\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ray\\Di\\MultiBinding;\n\nuse Koriym\\ParamReader\\ParamReaderInterface;\nuse Ray\\Di\\Di\\Set;\nuse Ray\\Di\\Exception\\SetNotFound;\nuse Ray\\Di...
php
chosen
[ { "from": "system", "value": "Rename `users` relationship to `members` to be a more accurate description\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Team extends Model\n{\n ...
php
chosen
[ { "from": "system", "value": "Add missing slash in fixture path.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rezzza\\AliceExtension\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder...
php
chosen
[ { "from": "system", "value": "[Bugfix] Correct validators generator command description\n\nMerge pull request #42 from SirLamer/patch-1\r\n\r\nCorrect make:json-api:validators description typo" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2016 Cloud Creativity Limited\n *\n * Licen...
php
chosen
[ { "from": "system", "value": "Put declare() statement on newline\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace CultuurNet\\UDB3\\Organizer\\Events;\n\nuse CultuurNet\\Geocoding\\Coordinate\\Coordinates;\nuse CultuurNet\\Geocoding\\Coordinate\\Latitude;\nuse Cultu...
php
chosen
[ { "from": "system", "value": "Add return type and strict thing\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\nnamespace...
php
chosen
[ { "from": "system", "value": "Fix model path for serialization in init command" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the cast package.\n *\n * Copyright (c) 2013 Jason Coward <jason@opengeek.com>\n *\n * For the full copyright and license information, please view t...
php
chosen
[ { "from": "system", "value": "Update collection import to use new class\n" }, { "from": "human", "value": "<?php\n\nnamespace As3\\Modlr\\Api;\n\nuse As3\\Modlr\\Metadata\\EntityMetadata;\nuse As3\\Modlr\\Models\\Collection;\nuse As3\\Modlr\\Models\\Model;\n\n/**\n * Interface for serializing mo...
php
chosen
[ { "from": "system", "value": "Handle invalid client credentials properly.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Auth\\Repositories;\n\nuse League\\OAuth2\\Server\\Repositories\\ClientRepositoryInterface;\nuse Northstar\\Auth\\Entities\\ClientEntity;\nuse Northstar\\Mod...
php
chosen
[ { "from": "system", "value": "Make consturctor compatible with php 5.4\n" }, { "from": "human", "value": "<?php\n\nnamespace HelloFresh\\Reagieren\\MessageBroker\\Composite;\n\nuse Collections\\ArrayList;\nuse Collections\\Dictionary;\nuse Collections\\MapInterface;\nuse Collections\\VectorInter...
php
chosen
[ { "from": "system", "value": "Change the phpcs:ignore to ignore the specific error rather than the entire code segment.\n" }, { "from": "human", "value": "<?php\n/**\n * Class Google\\Site_Kit\\Modules\\Analytics\\Plugin_Detector\n *\n * @package Google\\Site_Kit\\Modules\\Analytics\n * @copyr...
php
chosen
[ { "from": "system", "value": "Remove unnecessary method (there is a magic method already)" }, { "from": "human", "value": "<?php\n\nnamespace MenaraSolutions\\Geographer;\n\n/**\n * Class State\n * @package MenaraSolutions\\FluentGeonames\n */\nclass State extends Divisible\n{\n /**\n * @...
php
chosen
[ { "from": "system", "value": "Fix regular expression to match all after |\n" }, { "from": "human", "value": "<?php\n\nnamespace Oneup\\Contao\\J2B;\n\nclass Runner\n{\n public function moveJs(\\PageModel $objPage, \\LayoutModel $objLayout, \\PageRegular $objPageRegular)\n {\n if ('F...
php
chosen
[ { "from": "system", "value": "Update header of beatmapset discussion votes\n" }, { "from": "human", "value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\n\n This file is part of osu!web. osu!web is distributed with the hope of\n attracting more community contributions to the cor...
php
chosen
[ { "from": "system", "value": "[FEATURE] Create HAL CMM compatible REST output for media detail\n" }, { "from": "human", "value": "<?php\n\nnamespace Protalk\\ApiBundle\\Controller;\n\nuse FOS\\RestBundle\\Controller\\FOSRestController;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controlle...
php
chosen
[ { "from": "system", "value": "Fix dataconversion. Tests are passing now\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenSRS\\backwardcompatibility\\dataconversion\\domains\\lookup;\n\nuse OpenSRS\\backwardcompatibility\\dataconversion\\DataConversion;\nuse OpenSRS\\Exception;\n\nclass...
php
chosen
[ { "from": "system", "value": "Check if $options is set" }, { "from": "human", "value": "<?php \n\n $tbg_response->addBreadcrumb(__('Report an issue'), make_url('project_reportissue', array('project_key' => \\thebuggenie\\core\\framework\\Context::getCurrentProject()->getKey())));\n $tbg_re...
php
chosen
[ { "from": "system", "value": "Revert \"Change to shell_exec for debugging\"\n\nThis reverts commit 1c358fa4f4b0bb1168fa614f0d7d9409668c18c9.\n" }, { "from": "human", "value": "<?php\n\nfunction collect_networkUsage($debug, $log) {\n $usage = shell_exec('ifstat -S 0.1 1');\n\n $usage = expl...
php
chosen
[ { "from": "system", "value": "Add Basic Auth in generateToken()\n" }, { "from": "human", "value": "<?php\n/**\n * ownCloud - oauth2\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Jonathan Neugebauer\n * @copyrig...
php
chosen
[ { "from": "system", "value": "Disable autocomplete on train number input\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t<title>Vozni red uživo!</title>\n\t<link rel=\"st...
php
chosen
[ { "from": "system", "value": "Make search indexer a command line application\n\nsvn commit r12184\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Site/SiteApplication.php';\nrequire_once 'Site/SiteDatabaseModule.php';\nrequire_once 'Site/SiteConfigModule.php';\nrequire_once 'SwatDB/Swa...
php
chosen
[ { "from": "system", "value": "Mark test not performing assertions as such\n\nIt is considered risky not to perform assertions.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\Bundle\\MongoDBBundle\\Tests\\DataCollector;\n\nuse Doctrine\\Bundle\\MongoDB...
php
chosen
[ { "from": "system", "value": "Add more assertions for Favicon\n" }, { "from": "human", "value": "<?php namespace Arcanedev\\Head\\Tests\\Entities;\n\nuse Arcanedev\\Head\\Entities\\Favicon;\n\n/**\n * Class FaviconTest\n * @package Arcanedev\\Head\\Tests\\Entities\n */\nclass FaviconTest extends...
php
chosen
[ { "from": "system", "value": "Improve error to load module assets.\n" }, { "from": "human", "value": "<?php echo Asset::css('site.css');?>\n<?php\n$module_assets_css = conf('assets.css.modules');\nforeach ($module_assets_css as $module => $files)\n{\n\tif ($module == 'admin') continue;\n\tforeac...
php
chosen
[ { "from": "system", "value": "Update host changed time on content block save\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Drupal\\wmcontent\\EventSubscriber;\n\nuse Drupal\\Core\\Entity\\EntityInterface;\nuse Drupal\\wmcontent\\Event\\ContentBlockChangedEvent;\nuse Drupal\\wmcontent\\...
php
chosen
[ { "from": "system", "value": "Test fix - variable not defined\n" }, { "from": "human", "value": "<?php\n\nnamespace NodeRED\\Test;\n\nuse GuzzleHttp\\Psr7\\Response;\nuse NodeRED\\OAuth;\nuse NodeRED\\OAuthToken;\n\nclass OAuthTest extends \\PHPUnit_Framework_TestCase\n{\n const MOCK_URL = 'h...
php
chosen
[ { "from": "system", "value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40400 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki CMS Groupwa...
php
chosen
[ { "from": "system", "value": "Remove deprecated code from form type extension\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the BootstrapBundle project.\n *\n * (c) 2013 Philipp Boes <mostgreedy@gmail.com>\n *\n * For the full copyright and license information, please vi...
php
chosen
[ { "from": "system", "value": "Use responseProfile as argument name" }, { "from": "human", "value": "<?php\n\n/**\n * Define client request optional configurations\n */\nclass KalturaRequestConfiguration\n{\n\t/**\n\t * Impersonated partner id\n\t * @var int\n\t */\n\tpublic $partnerId;\n\t\n\t/*...
php
chosen
[ { "from": "system", "value": "Add doc comment to the class.\n" }, { "from": "human", "value": "<?php\nclass logger\n{\n private $logfile = null;\n\n private static $instance = null;\n\n public static function getInstance()\n {\n if (self::$instance == null) {\n self...
php
chosen
[ { "from": "system", "value": "Add new line in customCSS\n" }, { "from": "human", "value": "<?php\ninclude('include/config.ini.php');\n$plugins = $file_db->prepare(\"SELECT id_plugin, file, public1, public2, public3, int1, int2, int3, txt1, txt2, txt3 FROM plugins ORDER BY id_plugin ASC\");\n$plu...
php
chosen
[ { "from": "system", "value": "Use new version 1.2 of Favicon library\n" }, { "from": "human", "value": "<?php\n\ninclude(LIB_PATH . '/Favicon/Favicon.php');\ninclude(LIB_PATH . '/Favicon/DataAccess.php');\n\n$favicons_dir = DATA_PATH . '/favicons/';\n$default_favicon = PUBLIC_PATH . '/themes/ico...
php
chosen
[ { "from": "system", "value": "FIX: Remove accidentally introduced '23' at the start of the file\n" }, { "from": "human", "value": "<?php\n/**\n* Defines the SupportingProjectPage page type - initial code created by ss generator\n*/\nclass PageWithImage extends Page implements RenderableAsPortlet...
php
chosen
[ { "from": "system", "value": "Store uploaded images in public/storage/images/uploaded\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\Input;\nuse Illuminate\\Support\\Facades\\Validator;\n\nclass FileuploaderController extends Co...
php
chosen
[ { "from": "system", "value": "Add new db table name constants\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See P...
php
chosen
[ { "from": "system", "value": "Make img tag compliant to the standard html\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<?php\n define('BASE_DIR', dirname(__FILE__));\n require_once(BASE_DIR.'/config.php');\n?>\n<html>\n <head>\n <title><?php echo CAM_STRING; ?></title>\n <script ...
php
chosen
[ { "from": "system", "value": "Add case param in accept/reject urls.\n" }, { "from": "human", "value": "<?php\n\nfunction modal ($id, $title, $body, $data) {\n $html = '<div id=\"'.$id.'\" class=\"modal fade\" style=\"display:none\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabe...
php
chosen
[ { "from": "system", "value": "Remove unused phpdoc @return for a constructor\n\n[ci skip]" }, { "from": "human", "value": "<?php\n\n/**\n * @copyright 2017 Vladimir Jimenez\n * @license https://github.com/allejo/stakx/blob/master/LICENSE.md MIT\n */\n\nnamespace allejo\\stakx\\Document;\n\nint...
php
chosen
[ { "from": "system", "value": "Disable Suhosin test for PHP > 5.3.9.\nSuhosin project is inactive right now and the latest release is\nfor 5.3.9.\n" }, { "from": "human", "value": "<?php\n/**\n * Skeleton Test class file for Suhosin group\n * \n * @package PhpSecInfo\n * @author Anthon Pang\n */\...
php
chosen
[ { "from": "system", "value": "Change name of file on the filesystem.\n" }, { "from": "human", "value": "<?php\nnamespace Zf2FileUploader\\Resource\\Persister\\Image;\n\nuse Zend\\Filter\\File\\Rename;\nuse Zf2FileUploader\\Options\\ImageResourceOptionsInterface;\nuse Zf2FileUploader\\Resource\\I...
php
chosen
[ { "from": "system", "value": "system: Add require statement for the abstract L10nProvider\n" }, { "from": "human", "value": "<?php\n\n/**\n * Factory class for providing Localization implementations\n * @author M2Mobi, Heinz Wiesinger\n */\nclass L10nFactory\n{\n\n /**\n * Instance of the...
php
chosen
[ { "from": "system", "value": "Use new title parameter from notice component\n\nwoops\n" }, { "from": "human", "value": "@php\n $moduleHeading = (!$hideTitle && !empty($postTitle)) ?\n '<b>'. $postTitle.'</b><br/>' : '';\n@endphp\n\n@notice([\n 'type' => $notice_type,\n 'message' ...
php
chosen
[ { "from": "system", "value": "Fix regression from \"boot.php currently not needed separately\"\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace app;\n\nuse ErrorException;\nuse Throwable;\n\n/**\n * Include base source files and extensions\n */\nforeach (glob(__D...
php
chosen
[ { "from": "system", "value": "Revert \"feat(Performer): test on HelloWorld\"\n" }, { "from": "human", "value": "<?php\n\nuse YesWiki\\Core\\YesWikiHandler;\n\nclass HelloHandler extends YesWikiHandler\n{\n function run()\n {\n $pageBody = $this->wiki->page['body'];\n throw ne...
php
chosen
[ { "from": "system", "value": "Fix difference in URLs in webmention\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass WebMentionsTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function r...
php
chosen
[ { "from": "system", "value": "Convert liefeeds to Unix style\n" }, { "from": "human", "value": "<?php defined('BASEPATH') OR exit('No direct script access allowed');\r\n/*\r\n|--------------------------------------------------------------------------\r\n| Enable/Disable Migrations\r\n|----------...
php
chosen
[ { "from": "system", "value": "Use eventicon in sidebar links" }, { "from": "human", "value": "<div class=\"calendar\">\n <?php echo $savvy->render($context->getMonthWidget()); ?>\n</div>\n\n<div id=\"subscribe\">\n <span>Subscribe to this calendar</span>\n <ul id=\"droplist\">\n ...
php
chosen
[ { "from": "system", "value": "Add css class to register form button" }, { "from": "human", "value": "<div id=\"<?=$_id?>\" class=\"well\">\n <h2>Register</h2>\n <form action=\"<?=$registerUrl?>\" method=\"post\">\n <label>Email</label>\n <input name=\"email\" type=\"text\" va...
php
chosen
[ { "from": "system", "value": "Use class basename for ModelNotFoundException\n" }, { "from": "human", "value": "<?php\n\nnamespace Fuzz\\ApiServer\\Exception;\n\nuse Exception;\nuse Fuzz\\ApiServer\\Routing\\Responder;\nuse Illuminate\\Database\\Eloquent\\ModelNotFoundException;\nuse Illuminate\\...
php
chosen
[ { "from": "system", "value": "Add title to earnings' index view\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2>{{ __('general.earnings') }}</h2>\n <div class=\"box mt-3\">\n @if (count($earnings))\n ...
php
chosen
[ { "from": "system", "value": "Add native function on url filter\n" }, { "from": "human", "value": "<?php\n\nnamespace JVCrud\\Filter;\n\nclass Url\n{\n public function verifyUrlQueryFilter($paramsQuery)\n {\n $fromQuery = null;\n \n if (is_array($paramsQuery) && count(...
php
chosen
[ { "from": "system", "value": "Add request methods to client\n" }, { "from": "human", "value": "<?php\n\nnamespace SaasRunner;\n\nuse Guzzle;\n\nclass Client {\n\n public function __construct($apiKey, $apiHost = 'api.saasrunner.com') {\n $this->client = new Guzzle\\Http\\Client('http://...
php
chosen
[ { "from": "system", "value": "Fix data column to longtext migration.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass ChangeDataTypeToLongtext extends Migration {\n\n\t/**\n\t * Run the migrations....
php
chosen
[ { "from": "system", "value": "Validate the boolean field strictly\n" }, { "from": "human", "value": "<?php\n\nnamespace Platformsh\\ConsoleForm\\Field;\n\nclass BooleanField extends Field\n{\n public $default = true;\n\n /**\n * {@inheritdoc}\n */\n protected function getQuestio...
php
chosen
[ { "from": "system", "value": "Add number of keys deleted as output to the redis clear script\n" }, { "from": "human", "value": "<?php\n\n$_dir = rtrim(__DIR__, '\\/').DIRECTORY_SEPARATOR;\nrequire $_dir.'../../vendor/autoload.php';\nrequire $_dir.'../conf.php';\n\n\\App\\RedisHelper::del(array_s...
php
chosen
[ { "from": "system", "value": "Add send element supprort Laravel 4.1" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Vietnamese Language for Laravel 4\n|-------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "EDIT prevent default submit behaviour, add redirect\n" }, { "from": "human", "value": "{% extends 'backend/layout.twig.php' %}\n{% block content %} \n<article class=\"container itemCenter center column\">\n\n {% if message.content is defined %}\n <div class=\"...
php
chosen
[ { "from": "system", "value": "Fix \"show campaign\" button label\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('title', 'Schedule new campaign run')\n\n@section('content')\n\n <div class=\"c-header\">\n <h2>SCHEDULES</h2>\n </div>\n <div class=\"card\">\n...
php
chosen
[ { "from": "system", "value": "Add unit tests for `getIfModifiedSince`\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2020, Pierre-Henry Soria. All Rights Reserved.\n * @license MIT License; See PH7.LICE...
php
chosen
[ { "from": "system", "value": "Set callback param to false\n" }, { "from": "human", "value": "<?php\n\nuse Proud\\Core;\n\nclass Submenu extends Core\\ProudWidget {\n\n function __construct() {\n parent::__construct(\n 'submenu', // Base ID\n __( 'Submenu', 'wp-age...
php
chosen
[ { "from": "system", "value": "Fix activation code to string" }, { "from": "human", "value": "<?php namespace Maatwebsite\\Usher\\Domain\\Users\\Activations;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Maatwebsite\\Usher\\Services\\CodeGenerator;\nuse Maatwebsite\\Usher\\Domain\\Shared\\Embeddable...
php
chosen
[ { "from": "system", "value": "Add new test for fromHttpResponse method.\n" }, { "from": "human", "value": "<?php\n\nuse OAuth1Client\\Credentials\\TemporaryCredentials;\n\nclass TemporaryCredentialsTest extends PHPUnit_Framework_TestCase {\n protected $temporaryCredentials;\n\n function se...
php
chosen
[ { "from": "system", "value": "Remove not existing and unused trait\n" }, { "from": "human", "value": "<?php\n\nnamespace SlmMail\\Mail\\Message\\Provider;\n\nuse SlmMail\\Mail\\Message\\ProvidesAttachments;\nuse Zend\\Mail\\Message;\n\nclass AlphaMail extends Message\n{\n /**\n * Identifi...
php
chosen
[ { "from": "system", "value": "Add some concrete tests with a simple api\n" }, { "from": "human", "value": "<?php\n/**\n * @author Boris Guéry <guery.b@gmail.com>\n */\n\nnamespace JsonBuilder;\n\nclass JsonBuilderTest extends \\PHPUnit_Framework_TestCase\n{\n public function testBuildASimpleJ...
php
chosen
[ { "from": "system", "value": "Load new doctrine and swiftmailer bundles\n" }, { "from": "human", "value": "<?php\n\nuse Tomahawk\\HttpKernel\\Kernel;\n\nclass AppKernel extends Kernel\n{\n\n public function registerBundles()\n {\n $bundles = array(\n new \\Tomahawk\\Bundl...
php
chosen
[ { "from": "system", "value": "Add data fixtures bundle config\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function registerBundles()\n {\n ...
php
chosen
[ { "from": "system", "value": "Bugfix: Update exception when YAML couldn't be parsed" }, { "from": "human", "value": "<?php\n\nnamespace Just\\SonataThemeBundle\\DependencyInjection;\n\nuse RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Update branch for git updater\n" }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: Culture Object\n * Plugin URI: http://cultureobject.co.uk\n * Description: A framework as a plugin to enable sync of culture objects into WordPress.\n * Version: 3.0.0-alpha...
php
chosen
[ { "from": "system", "value": "Change to new setter-less date time method\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\RadBundle\\Entity\\Traits;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n\n/**\n *\n */\ntrait TimestampsTrait\n{\n /**\n * @var \\DateTimeImmutable\n * @...
php
chosen
[ { "from": "system", "value": "Fix dangling collection label on empty users list, in group editing\n" }, { "from": "human", "value": "<?php\n\nnamespace FOM\\UserBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\nclass GroupT...
php
chosen
[ { "from": "system", "value": "Set default build task to test\n" }, { "from": "human", "value": "<?php\n\nnamespace Bob;\n\ntask('test', array('phpunit.xml'), function() {\n echo sh('phpunit');\n});\n\nfileTask('phpunit.xml', array('phpunit.dist.xml'), function() {\n copy('phpunit.dist.xml'...
php
chosen
[ { "from": "system", "value": "Connect to transactionalDigest queue as exclusive consumer\n" }, { "from": "human", "value": "<?php\n/**\n * mbc-transactional-digest\n *\n * Collect transactional campaign sign up message requests in a certain time period and\n * compose a single digest message req...
php
chosen
[ { "from": "system", "value": "Use read() directly in example instead of ByteStream\\pipe()\n" }, { "from": "human", "value": "<?php // basic (and dumb) HTTP client\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n// This is a very simple HTTP client that just prints the response without parsin...
php
chosen
[ { "from": "system", "value": "Update migrations to include index.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\n\n/**\n * SuppressWarnings(PHPMD.ShortMethodName)\n *\n * Class ChangesForV321\n */\nclass ChangesForV321 extends Migration\n{\n\n /*...
php
chosen
[ { "from": "system", "value": "Check if algolia api key is set.\n" }, { "from": "human", "value": "<div class=\"form-group search\">\n <input type=\"text\" class=\"form-control\" id=\"search\" placeholder=\"Search the docs...\">\n <i class=\"glyphicon glyphicon-search\"></i>\n</div>\n" },...
php
chosen
[ { "from": "system", "value": "Add Color to Login Button\n" }, { "from": "human", "value": "<div class=\"container\">\n\t<br/>\n\t<div class=\"row\">\n\t\t<?php echo validation_errors(); ?>\n\t\t<?php echo form_open('admin/login'); ?>\n\t\t\t<div class=\"col-md-4 col-md-offset-4\">\n\t\t\t<div cl...
php
chosen
[ { "from": "system", "value": "Test for DateTimeLocal DateTime formatting\n" }, { "from": "human", "value": "<?php\n\nuse AdamWathan\\Form\\Elements\\DateTimeLocal;\n\nclass DateTimeLocalTest extends PHPUnit_Framework_TestCase\n{\n use InputContractTest;\n\n protected function newTestSubjec...
php
chosen
[ { "from": "system", "value": "Add method to build query string\n" }, { "from": "human", "value": "<?php\n\nnamespace MetaSyntactical\\Http\\Transport;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\ninterface TransportInterface\n{\n /**\n * Send...
php
chosen
[ { "from": "system", "value": "Use Facade to access method instead of creating a new instance.\n" }, { "from": "human", "value": "<?php\n\nnamespace DvK\\Laravel\\Vat;\n\nuse Illuminate\\Contracts\\Container\\Container;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Facades\...
php
chosen
[ { "from": "system", "value": "Fix crash on reset password page\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 * file that was distribut...
php
chosen
[ { "from": "system", "value": "Use of the permission instead of group's ID\n" }, { "from": "human", "value": "<?php\n\t//Main controller class of the admin panel: all controllers of the admin panel should inherit from it\n\tabstract class Controller_admin_main extends Controller_main\n\t{\n\t\tpu...
php
chosen
[ { "from": "system", "value": "Fix bug in 'pure' due to operator precedence\n" }, { "from": "human", "value": "<?php\n\nnamespace Phunkie\\Functions\\applicative;\n\nuse Phunkie\\Cats\\Applicative;\nuse Phunkie\\Cats\\Apply;\nuse function Phunkie\\Functions\\currying\\applyPartially;\nuse Phunkie...
php
chosen
[ { "from": "system", "value": "Remove old, now irrelevant comment\n" }, { "from": "human", "value": "<?php\n\nnamespace Brick\\App\\View\\Helper;\n\nuse Brick\\Di\\Injector;\nuse Brick\\App\\View\\View;\n\n/**\n * This view helper allows to render a View from within another View (referred to as a...
php
chosen
[ { "from": "system", "value": "Correct Entities folder case on doctrine config\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is covered by the AGPLv3 license, which can be found at the LICENSE file in the root of this project.\n * @copyright 2017 subtitulamos.tv\n */\n\nrequire __...
php
chosen
[ { "from": "system", "value": "Change since version to not include beta identifier\n" }, { "from": "human", "value": "<?php\n/**\n * Part of the Joomla Framework Authentication Package\n *\n * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.\n * @license GNU...
php
chosen
[ { "from": "system", "value": "Remove superfluous item from pattern array\n\nThe string \"\\r\\n\" within the search array is superfluous because it is already covered by the single \"\\r\" and \"\\n\".\n" }, { "from": "human", "value": "<?php\n#===================================================...
php
chosen
[ { "from": "system", "value": "Add getTenant method to Exception.\n" }, { "from": "human", "value": "<?php\nnamespace ThinkSayDo\\EnvTenant\\Events;\n\nclass TenantNotResolvedException extends \\Exception\n{\n\n}" }, { "from": "gpt", "value": "<?php\nnamespace ThinkSayDo\\EnvTenant\\E...
php
chosen
[ { "from": "system", "value": "Fix in the unit tests.\n" }, { "from": "human", "value": "<?php\n\n/*\n * Bear CMS addon for Bear Framework\n * https://bearcms.com/\n * Copyright (c) 2016 Amplilabs Ltd.\n * Free to use under the MIT license.\n */\n\n/**\n * @runTestsInSeparateProcesses\n */\nclass...
php
chosen