conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Align method arguments with laravel/framework" }, { "from": "human", "value": "<?php namespace Propaganistas\\LaravelFakeId;\n\nuse Illuminate\\Support\\Facades\\App;\nuse Exception;\n\ntrait RoutesWithFakeIds\n{\n /**\n * Get the value of the model's route k...
php
chosen
[ { "from": "system", "value": "Update to use <span> instead of <input> for non-modifiable text.\n\n" }, { "from": "human", "value": "\n<!-- Sleep so users see the activity indicator -->\n<?php sleep(2); ?>\n\n<ul id=\"stats\" title=\"Stats\">\n <li><a href=\"#usage\">Usage</a></li>\n <li><a...
php
chosen
[ { "from": "system", "value": "Fix profile photo upload indentation\n" }, { "from": "human", "value": "<?\nrequire_once('php/classes/member.php');\n\n$profileEdited = $currentUser;\n// TODO: Allow administrators to edit other member's profile pictures\n?><div class=\"row\">\n <div class=\"large-...
php
chosen
[ { "from": "system", "value": "Revert \"Change method 'alias' to 'bind' for provide facade\"\n\nThis reverts commit a65d340\n" }, { "from": "human", "value": "<?php\n\nnamespace AndrewNovikof\\Objects;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class ObjectsServiceProvider\n * @packa...
php
chosen
[ { "from": "system", "value": "Add helper method for closing node and passing potential children up the chain.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Markdown\\Node;\n\nabstract class Block extends Node implements NodeAcceptorInterface\n{\n\n protected $open = true;\n\n\...
php
chosen
[ { "from": "system", "value": "Add publish reference for config\n" }, { "from": "human", "value": "<?php namespace Panlogic\\Fonix;\n/**\n* Fonix helper package by Panlogic Ltd.\n*\n* NOTICE OF LICENSE\n*\n* Licensed under the terms from Panlogic Ltd.\n*\n* @package Fonix\n* @version 1.0.0\n* @au...
php
chosen
[ { "from": "system", "value": "Add missing newline after namespace\n" }, { "from": "human", "value": "<?php\n/**\n *\n * PHP.Gt (http://php.gt)\n * @copyright Copyright Ⓒ 2014 Bright Flair Ltd. (http://brightflair.com)\n * @license Apache Version 2.0, January 2004. http://www.apache.org/licenses\...
php
chosen
[ { "from": "system", "value": "Stop assuming the old password is 6 chars long\n" }, { "from": "human", "value": "<?php namespace App\\Services\\Validators;\n \nclass SeatUserPasswordValidator extends Validator {\n \n public static $rules = array(\n 'oldPassword' => 'required|min:6',\n ...
php
chosen
[ { "from": "system", "value": "Use internal logs when testing TestModel::getLogs\n" }, { "from": "human", "value": "<?php\n\nnamespace Criterion\\Test\\Model;\n\nclass TestModelTest extends \\Criterion\\Test\\TestCase\n{\n\n public function testInit()\n {\n $test = new \\Criterion\\M...
php
chosen
[ { "from": "system", "value": "Revert \"Make createLangualKey and isLangualKey private\"\n\nThis reverts commit 998f7b0f0771359aa26a815b9c16b76742eb0c46.\n" }, { "from": "human", "value": "<?php\n\nnamespace ContentTranslator\\Entity;\n\nabstract class Translate\n{\n protected $lang;\n prot...
php
chosen
[ { "from": "system", "value": "Allow to pass other things that string in args" }, { "from": "human", "value": "<?php\n\nnamespace DICIT;\n\nclass ReferenceResolver\n{\n const CONTAINER_REFERENCE = '$container';\n /**\n *\n * @var Container\n */\n private $container;\n\n pu...
php
chosen
[ { "from": "system", "value": "Fix ambiguity in field of worker\n" }, { "from": "human", "value": "<?php\nrequire_once '../svg.php';\ninclude '../init.php';\n\nif (isset($_GET['id'])) {\n $sql = \"SELECT `wm_workers`.`id` as `woker_id`, `user_id`, \".\n \"`worker_name`, `description...
php
chosen
[ { "from": "system", "value": "Fix problem when no paths isset\n" }, { "from": "human", "value": "<?php\n\nnamespace Sody\\View;\n\n/**\n * Sody view locator\n *\n * @author Kenny Damgren <kennydamgren@gmail.com>\n * @package Sody\n */\nclass ViewLocator\n{\n private $paths = array();\n pri...
php
chosen
[ { "from": "system", "value": "Make use of yii::t() on buttons text\n" }, { "from": "human", "value": "<?php\nuse yii\\helpers\\Url;\n\n/* @var $this yii\\web\\View */\n$this->title = 'Articles';\n?>\n\n <h2>\n <a href=<?= Url::to(['article/view', 'id' => $model->id]) ?>><?= $model->tit...
php
chosen
[ { "from": "system", "value": "Add tests for the forceSSL() helpers method\n" }, { "from": "human", "value": "<?php namespace Larapress\\Tests\\Services;\n\nuse Config;\nuse DB;\nuse Helpers;\nuse Lang;\nuse Log;\nuse Mockery;\nuse Larapress\\Tests\\TestCase;\nuse Request;\nuse View;\n\nclass Hel...
php
chosen
[ { "from": "system", "value": "Add Issue Comment Model attribute\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass IssueComment extends Model\n{\n\n}" }, { "from": "gpt", "value": "<?php\n\nnamespace App\\Models;...
php
chosen
[ { "from": "system", "value": "Use 'l' instead of a hardcoded anchor tag.\n" }, { "from": "human", "value": "<p>No credit cards registered, please <a href=\"/my-credit-cards/add\">register a credit card</a>.</p>\n" }, { "from": "gpt", "value": "<p>No credit cards registered, please <?...
php
chosen
[ { "from": "system", "value": "Set the content group weight to 90\n" }, { "from": "human", "value": "<?php namespace Modules\\Menu\\Composers;\n\nuse Illuminate\\Contracts\\View\\View;\nuse Maatwebsite\\Sidebar\\SidebarGroup;\nuse Maatwebsite\\Sidebar\\SidebarItem;\nuse Modules\\Core\\Composers\\...
php
chosen
[ { "from": "system", "value": "Add optional args for container_class for nav-menu container default class is 'sailen_short_menu_con'\n<code> [menu name=\"Primary\" class=\"my_custom_class\" con=\"my_custom_class\"] </code>\n" }, { "from": "human", "value": "<?php\n\n\tclass Sailen_Short_Menu{\n\t...
php
chosen
[ { "from": "system", "value": "Drop old MySQL versions support that doesn't support json columns\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\M...
php
chosen
[ { "from": "system", "value": "Fix issues after upgraded dependency\n" }, { "from": "human", "value": "<?php\n\nnamespace blink\\laravel\\database\\commands;\n\nuse \\Illuminate\\Database\\Migrations\\DatabaseMigrationRepository;\nuse \\Illuminate\\Database\\Migrations\\MigrationCreator;\nuse \\I...
php
chosen
[ { "from": "system", "value": "Add in database tst code.\n" }, { "from": "human", "value": "<?php\n\nnamespace Buster;\n\nuse Buster\\Provider\\JsonResponseProvider;\nuse Silex\\Application as SilexApplication;\nuse Silex\\Provider\\MonologServiceProvider;\nuse Silex\\Provider\\TwigServiceProvide...
php
chosen
[ { "from": "system", "value": "Revert \"Exceptions extending ApiException should always return json.\"\n\nThis reverts commit 1ddd0cfbf0632214ffe5f9c4f1d98ad453e53f3c.\n" }, { "from": "human", "value": "<?php\n\nnamespace Flugg\\Responder\\Exceptions;\n\nuse Exception;\nuse Flugg\\Responder\\Exce...
php
chosen
[ { "from": "system", "value": "Remove PHP template engine from 'modules' project.\n" }, { "from": "human", "value": "<?php\nnamespace @@namespace@@\\Modules\\Frontend;\n\nuse Phalcon\\DiInterface;\nuse Phalcon\\Loader;\nuse Phalcon\\Mvc\\View;\nuse Phalcon\\Mvc\\ModuleDefinitionInterface;\n\nclas...
php
chosen
[ { "from": "system", "value": "Add method for checking debug mode\n" }, { "from": "human", "value": "<?php namespace Flarum;\n\nuse DB;\n\nclass Core\n{\n public static function isInstalled()\n {\n return file_exists(base_path('../config.php'));\n }\n\n public static function c...
php
chosen
[ { "from": "system", "value": "Add in missing directory separator\n" }, { "from": "human", "value": "<?php\n\nfunction atws_autoload($class) {\n $dirSep = DIRECTORY_SEPARATOR;\n $namespaceParts = explode('\\\\', $class);\n $className = array_pop($namespaceParts);\n\n array_shift($name...
php
chosen
[ { "from": "system", "value": "Add published field to news model\n" }, { "from": "human", "value": "<?php\n\nnamespace app\\models;\n\nuse Yii;\nuse yii\\base\\Model;\nuse yii\\db\\ActiveRecord;\n\n/**\n * ContactForm is the model behind the contact form.\n */\nclass NewsItem extends ActiveRecord...
php
chosen
[ { "from": "system", "value": "Fix bug when magic method doesn't found any of properties\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: xandros15\n * Date: 2016-06-19\n * Time: 17:22\n */\n\nnamespace Xandros15\\SlimPagination;\n\nuse Slim\\Http\\Request;\nuse Sl...
php
chosen
[ { "from": "system", "value": "Remove comments and sidebar from post page.\n" }, { "from": "human", "value": "<?php\n/**\n * The template for displaying all single posts.\n *\n * @package Victorian Climbing Club\n */\n\nget_header(); ?>\n\n\t<div id=\"primary\" class=\"content-area\">\n\t\t<main ...
php
chosen
[ { "from": "system", "value": "Allow attributes for text field\n" }, { "from": "human", "value": "<div class=\"form-group {{ $errors->has($fieldName) ? 'has-error' : '' }}\">\n {!! Form::label($elementName, $options['label']) !!}\n {!! Form::text($elementName, $record->$fieldName, [\n\t ...
php
chosen
[ { "from": "system", "value": "Make library compatible with PHPUnit 4\n" }, { "from": "human", "value": "<?php\n\nnamespace Matthias\\PhpUnitAsynchronicity;\n\nuse Matthias\\Polling\\CallableProbe;\nuse Matthias\\Polling\\Exception\\Interrupted;\nuse Matthias\\Polling\\Poller;\nuse Matthias\\Poll...
php
chosen
[ { "from": "system", "value": "[Config] Set a basic config tree\n" }, { "from": "human", "value": "<?php\n\nnamespace SalvoCanna\\RedisNotificationBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Configu...
php
chosen
[ { "from": "system", "value": "Change exception to more appropriate" }, { "from": "human", "value": "<?php\n\nnamespace JWX\\JWE\\KeyAlgorithm;\n\nuse JWX\\JWA\\JWA;\nuse JWX\\JWE\\KeyManagementAlgorithm;\nuse JWX\\JWT\\Parameter\\AlgorithmParameter;\n\n\n/**\n * Algorithm to carry CEK in plainte...
php
chosen
[ { "from": "system", "value": "Work around doctrine bug by specifying index name\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Entity;\n\nuse App\\Repository\\OAuthStateRepository;\nuse DateTime;\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * Database table used for storing valid OAu...
php
chosen
[ { "from": "system", "value": "Set date_default_timezone to UTC (suppress PHP warning)\n" }, { "from": "human", "value": "<?php\r\n\r\nrequire_once __DIR__.'/../vendor/autoload.php';\r\n\r\n$app = new Silex\\Application();\r\n\r\nrequire __DIR__.'/../app/config/prod.php';\r\nrequire __DIR__.'/../...
php
chosen
[ { "from": "system", "value": "Update tests for Listings pages\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Tests\\TestCase;\n\nclass ListingsTest extends TestCase\n{\n use WithoutMiddleware;\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Make test failure on purpose\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Functional;\n\nclass QuoteTest extends BaseTestCase\n{\n public function testNumberOfCategories(){\n $quote = new \\Quote(null, null);\n $categories = $quote->...
php
chosen
[ { "from": "system", "value": "Set release version to 0.7.2\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n * @package Zi...
php
chosen
[ { "from": "system", "value": "Add missing attribute declaration (was made dynamically)\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU...
php
chosen
[ { "from": "system", "value": "Fix missing timeout for request\n" }, { "from": "human", "value": "<?php\n\nnamespace Visitmedia\\FindologicClient;\n\nuse GuzzleHttp\\ClientInterface;\nuse GuzzleHttp\\Exception\\RequestException;\n\nclass FindologicClient\n{\n\n private $client;\n private $d...
php
chosen
[ { "from": "system", "value": "Remove unnecessary @return doc for constructor\n" }, { "from": "human", "value": "<?php\n\nnamespace Wheniwork\\OAuth2\\Client\\Grant;\n\nuse League\\OAuth2\\Client\\Grant\\GrantInterface;\nuse League\\OAuth2\\Client\\Token\\AccessToken as AccessToken;\n\nclass Rene...
php
chosen
[ { "from": "system", "value": "Update Service Provider - Add @method boot and populate the ITunes class\n" }, { "from": "human", "value": "<?php namespace Vinelab\\ITunes;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass ITunesServiceProvider extends ServiceProvider {\r\n\r\n\t/**\r\...
php
chosen
[ { "from": "system", "value": "Implement field that was required in Service\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\...
php
chosen
[ { "from": "system", "value": "Add one more test to make sure input can be accessed.\n" }, { "from": "human", "value": "<?php\n\nnamespace spec\\FluxBB\\Core;\n\nuse Illuminate\\Contracts\\Events\\Dispatcher;\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\nuse FluxBB\\Core\\Action;\n\ncla...
php
chosen
[ { "from": "system", "value": "Create new local $source variable\n\nThis was done to make clear what we're doing.\n" }, { "from": "human", "value": "<?php\n\nnamespace Avalanche\\Bundle\\ImagineBundle\\Imagine;\n\nuse Avalanche\\Bundle\\ImagineBundle\\Imagine\\Filter\\FilterManager;\n\nclass Cach...
php
chosen
[ { "from": "system", "value": "Add getter for retrieving the log file path.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Simple support class for reading and writing deploynaut job logs\n */\nclass DeploynautLogFile {\n\tprotected $logFile;\n\n\tpublic function __construct($logFile) {\n\t\...
php
chosen
[ { "from": "system", "value": "Change of function to error_reporting\n" }, { "from": "human", "value": "<?php\r\n /**\r\n * Main Controller\r\n * \r\n * @package MagicPHP\r\n * @author André Ferreira <andrehrf@gmail.com>\r\n * @link https://github.com/magicp...
php
chosen
[ { "from": "system", "value": "Fix the path for generated models.\n" }, { "from": "human", "value": "<?php\n//===============================================\n// Debug\n//===============================================\nini_set('display_errors', 'On');\nerror_reporting(E_ALL);\n\n\n//============...
php
chosen
[ { "from": "system", "value": "Load configuration manually as of version 0.16.0" }, { "from": "human", "value": "<?php\n\n// IMPORTANT!!! Require composer autoload\nrequire_once 'vendor/autoload.php';\nrequire_once 'vendor/taviroquai/architectphp/aliases.php';\n\n// IMPORTANT!!! Give configuratio...
php
chosen
[ { "from": "system", "value": "Move deletion of installer folder to the end\n" }, { "from": "human", "value": "<?php\n\nnamespace Installer\\Handlers;\n\nuse Installer\\Helpers\\File;\n\nfinal class CleanerHandler extends AbstractHandler implements HandlerInterface\n{\n public function execute...
php
chosen
[ { "from": "system", "value": "Save taxon root at end\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\SitemapPlugin\\Controller;\n\nuse Lakion\\ApiTestCase\\XmlApiTestCase;\nuse Sylius\\Component\\Core\\Model\\Product;\nuse Sylius\\Component\\Core\\Model\\Taxon;\n\n/**\n * @author St...
php
chosen
[ { "from": "system", "value": "Remove php 7.1 `?` operator\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Roave\\Signature;\n\nuse Roave\\Signature\\Encoder\\EncoderInterface;\nuse Roave\\Signature\\Hasher\\HasherInterface;\n\nfinal class FileContentChecker impl...
php
chosen
[ { "from": "system", "value": "Fix share via email link\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Sharing\\ShareThisPage;\nuse Concrete\\Core\\Sharing\\SocialNetwork\\Service as SocialNetworkService;\n\nclass Service extends SocialNetworkService\n{\n\n public static f...
php
chosen
[ { "from": "system", "value": "Make the Settings core plugin loadable\n" }, { "from": "human", "value": "<?php\n\nuse Cake\\Core\\Configure;\nuse Cake\\Core\\Plugin;\n\n/**\n * Dashboard URL\n */\nConfigure::write('Croogo.dashboardUrl', array(\n\t'admin' => true,\n\t'plugin' => 'extensions',\n\t'...
php
chosen
[ { "from": "system", "value": "Set page id for menu\n" }, { "from": "human", "value": "<?php\n/**\n * Index page controller\n *\n * @package Anqh\n * @author Antti Qvickström\n * @copyright (c) 2009 Antti Qvickström\n * @license http://www.opensource.org/licenses/mit-license.php MIT li...
php
chosen
[ { "from": "system", "value": "Send QR Code when riddle created\n\n" }, { "from": "human", "value": "<?php\n/**\n * CodeMOOC QuizzleBot\n * ===================\n * UWiClab, University of Urbino\n * ===================\n * Command message processing functionality.\n */\n\n/**\n * Processes command...
php
chosen
[ { "from": "system", "value": "Create destination directory if not exists\n" }, { "from": "human", "value": "<?php\nnamespace phtamas\\yii2\\imagecontroller;\n\nuse yii\\base\\Action as BaseAction;\nuse yii\\web\\NotFoundHttpException;\n\nclass Action extends BaseAction\n{\n /**\n * @var \...
php
chosen
[ { "from": "system", "value": "Fix: Use assertSame() instead of assertEquals()\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of sebastian/phpunit-framework-constraint.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information...
php
chosen
[ { "from": "system", "value": "Use of @component for buttons in form\n" }, { "from": "human", "value": "<div class=\"btn-toolbar\">\n <button class=\"btn-primary btn\" value=\"true\" id=\"exit\" name=\"exit\" type=\"submit\">{{ __('Save and exit') }}</button>\n <button class=\"btn-default b...
php
chosen
[ { "from": "system", "value": "Enable debug mode on heroku\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Application Debug Mode\n\t|-------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Rename Trailing Comma In Multiline Array\n\nhttps://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/5669\r\n\r\nhttps://github.com/FriendsOfPHP/PHP-CS-Fixer/commit/a04d9c50ad8b00ac489001cf691b0183f985a8c9" }, { "from": "human", "value": "<?php\n\n$finder = Symfony\\Compon...
php
chosen
[ { "from": "system", "value": "[Tests] Disable the Packagist root enquiry test due to upstream breakage" }, { "from": "human", "value": "<?php\nnamespace Bolt\\Tests\\Composer\\Action;\n\nuse Bolt\\Composer\\Action\\ShowPackage;\nuse Bolt\\Tests\\BoltUnitTest;\n\n/**\n * Class to test src/Compose...
php
chosen
[ { "from": "system", "value": "Add the route for the user to register for an account\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|----------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Update user model to the more secure version.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Auth\\UserInterface;\nuse Illuminate\\Auth\\Reminders\\RemindableInterface;\n\nclass User extends Eloquent implements UserInterface, RemindableInterface {\n ...
php
chosen
[ { "from": "system", "value": "Fix CSRF test; method name was renamed for PSR compatibility.\n" }, { "from": "human", "value": "<?php\n\nclass CSRFTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @covers \\Resonantcore\\Lib\\Security\\CSRF::insert_token()\n */\n public function ...
php
chosen
[ { "from": "system", "value": "Add users route to the nav\n" }, { "from": "human", "value": "<nav class=\"navigation -white -floating\">\n <a class=\"navigation__logo\" href=\"/\"><span>DoSomething.org</span></a>\n <div class=\"navigation__menu\">\n @if (Auth::user())\n <u...
php
chosen
[ { "from": "system", "value": "Make search term `required` in search form.\n" }, { "from": "human", "value": "<form role=\"search\" method=\"get\" class=\"search-form form-inline\" action=\"<?php echo esc_url(home_url('/')); ?>\">\n <label class=\"sr-only\"><?php _e('Search for:', 'roots'); ?></...
php
chosen
[ { "from": "system", "value": "Add test for custom servers\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp\\Dns\\Test;\n\nclass IntegrationTest extends \\PHPUnit_Framework_TestCase {\n protected function setUp() {\n \\Amp\\reactor(\\Amp\\driver());\n }\n\n /**\n * @g...
php
chosen
[ { "from": "system", "value": "Add monolog logger to guzzle client\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Geonames API Connector.\n *\n * (c) Alchemy <dev.team@alchemy.fr>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Remove the use of Exception\n" }, { "from": "human", "value": "<?php\nnamespace PhpDDD\\Notification;\n\nuse Exception;\n\nclass Notification\n{\n\n /**\n * @var Error[]\n */\n private $errors = array();\n\n /**\n * @param string $message\n ...
php
chosen
[ { "from": "system", "value": "Fix up the 2FA login form\n" }, { "from": "human", "value": "@extends('layout.clean')\n\n@section('content')\n <div class=\"login\">\n <div class=\"col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4 text-center\">\n <div...
php
chosen
[ { "from": "system", "value": "Update test to support PHP 5.4\n" }, { "from": "human", "value": "<?php\n\nuse donatj\\MockWebServer\\RequestInfo;\nuse donatj\\MockWebServer\\ResponseStack;\n\nclass ResponseStackTest extends \\PHPUnit_Framework_TestCase {\n\n\tpublic function testEmpty() {\n\t\t$m...
php
chosen
[ { "from": "system", "value": "Make sure that 0 doesnt count as empty\n" }, { "from": "human", "value": "<?php\n\nnamespace Smartive\\HandlebarsBundle\\Helper;\n\nuse Handlebars\\Context;\nuse Handlebars\\Helper;\n\n/**\n * Base class for Handlebars helpers\n */\nabstract class AbstractHelper imp...
php
chosen
[ { "from": "system", "value": "Make access to the parameters static\n" }, { "from": "human", "value": "<?php\n/**\n * File DbConfiguration.php\n *\n * @category\n * @package\n * @author Ivanis Kouamé <ivanis.kouame@smile.fr>\n * @copyright 2015 Smile\n */\n\nnamespace Hipay\\SilexIntegration\\...
php
chosen
[ { "from": "system", "value": "Add an update method to update account details\n" }, { "from": "human", "value": "<?php\n\nnamespace Duffleman\\Luno\\Interactors;\n\nclass AccountInteractor extends BaseInteractor\n{\n\n /**\n * Endpoint for this model.\n *\n * @var string\n */\n...
php
chosen
[ { "from": "system", "value": "Fix Twig table extension runtime\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of TableBundle.\n *\n * (c) David Coudrier <david.coudrier@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that wa...
php
chosen
[ { "from": "system", "value": "Revert \"Solved issue where submit button wasn't reusable\"\n\nThis reverts commit 8c5fd32b47166b9166fba54b09fd851fdd691d77.\n" }, { "from": "human", "value": "<?php\n\nnamespace FormAl\\Elements;\n\nuse FormAl\\ElementBase;\nuse FormAl\\Utilities\\HtmlBuilder;\n\n/...
php
chosen
[ { "from": "system", "value": "Add reset capabilities to Handles\n\nSigned-off-by: Stéphane HULARD <a24f38cb8c57ec2778c80a9f0c151933508927e5@chstudio.fr>\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the bee4/transport package.\n * For the full copyright and license infor...
php
chosen
[ { "from": "system", "value": "Fix typo and add docblocks flashable trait\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: kayladnls\n * Date: 10/16/14\n * Time: 10:54 PM\n */\n\nnamespace OpenCFP\\Controller;\n\nuse Silex\\Application;;\n\n\ntrait FlashableTrait\n...
php
chosen
[ { "from": "system", "value": "Make the download start quicker\n" }, { "from": "human", "value": "<?php slot('download');\n/** @var sfParameterHolder $sf_flash */\nif($sf_flash->has('download')) {\necho '<meta http-equiv = \"refresh\" content = \"1; url=' . $sf_flash->get('download') . '\" >';\n...
php
chosen
[ { "from": "system", "value": "Set editor holder to stacked\n" }, { "from": "human", "value": "<?php\n\nclass SirTrevorEditor extends TextareaField {\n private static function path($to = '') {\n return 'sirtrevor/' . $to;\n }\n\n /**\n * Includes the JavaScript neccesary for t...
php
chosen
[ { "from": "system", "value": "Fix login issue in case the user is already signed in\n\nIn case you're already signed in and visit the login page,\nyou have to sign in again, but actually u're still authenticated.\nI have added a check that will lead to a redirection to the admin\ndashboard in case you're st...
php
chosen
[ { "from": "system", "value": "Deploy from asana-api-meta v0.4.5 (c7c1b64/master) by noonhub" }, { "from": "human", "value": "<?php\n\nnamespace Asana\\Resources\\Gen;\n\nclass StoriesBase\n{\n public function __construct($client)\n {\n $this->client = $client;\n }\n\n public f...
php
chosen
[ { "from": "system", "value": "Make the echoed path start on the src directory\n" }, { "from": "human", "value": "<?php\n\nnamespace ModuleGenerator\\CLI\\Service\\Generate;\n\nfinal class EchoDumper implements Dumper\n{\n public function dump(string $filename, string $content)\n {\n ...
php
chosen
[ { "from": "system", "value": "Fix - MarkdownController route error\n" }, { "from": "human", "value": "<?php\r\n\r\n use Carbon\\Carbon;\r\n use Illuminate\\Http\\Request;\r\n\r\n Route::get('/', '\\ShawnSandy\\PageKit\\Controllers\\PagesController@index');\r\n Route::get('/{name}', '...
php
chosen
[ { "from": "system", "value": "Remove line that was previously removed\n" }, { "from": "human", "value": "<?php\n/*\n\tPufferPanel - A Game Server Management Panel\n\tCopyright (c) 2015 Dane Everitt\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of...
php
chosen
[ { "from": "system", "value": "Allow for more spaces in horizontal rules.\n\nRefs #1.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Markdown\\Extension\\Core;\n\nuse FluxBB\\Markdown\\Common\\Text;\nuse FluxBB\\Markdown\\Extension\\ExtensionInterface;\nuse FluxBB\\Markdown\\Render...
php
chosen
[ { "from": "system", "value": "Revert \"do not test the dst for palmer (do not understand php behaviour for this one)\"\n\nThis reverts commit a830d15881d2aafb11357c4591568ea53c60a22b.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Tests\\Innmind\\TimeContinuum\...
php
chosen
[ { "from": "system", "value": "Revert \"CI - add failing test\"\n\nThis reverts commit 912137a843cc2ba922b3759bf11bba86094783df.\n" }, { "from": "human", "value": "<?php\n\nnamespace GoPay;\n\nclass FactoryTest extends \\PHPUnit_Framework_TestCase\n{\n public function testTravisShouldFail()\n ...
php
chosen
[ { "from": "system", "value": "Fix incorrect login after confirming token\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Handlers\\Commands;\n\nuse Flarum\\Core\\Repositories\\UserRepositoryInterface as UserRepository;\nuse Flarum\\Core\\Events\\UserWillBeSaved;\nuse Flarum\\Cor...
php
chosen
[ { "from": "system", "value": "Fix class BadFunctionCallException not found\n" }, { "from": "human", "value": "<?php\nnamespace Eris\\Generator;\nuse Eris\\Generator;\nuse ReverseRegex\\Lexer;\nuse ReverseRegex\\Random\\SimpleRandom;\nuse ReverseRegex\\Parser;\nuse ReverseRegex\\Generator\\Scope;...
php
chosen
[ { "from": "system", "value": "Add http mock to return fake data on test\n" }, { "from": "human", "value": "<?php\n/**\n * This file is just help to development\n */\nnamespace Tests\\RingCaptcha;\n\nuse RingCaptcha\\RingCaptcha;\n\nclass SendVerificationTest extends \\PHPUnit_Framework_TestCase\...
php
chosen
[ { "from": "system", "value": "Fix case where command namespace contains Command\n\nFixes the case where a command has a namespace that contains the string\n'Command'. For example: Acme/Commanding/LaunchMissileCommand where\nonly the last instance of 'Command' should be replaced with 'CommandHandler'\nand 'V...
php
chosen
[ { "from": "system", "value": "Fix backward compatibility (errors as strings)" }, { "from": "human", "value": "<?php\nnamespace Ayeo\\Validator;\n\nclass Error\n{\n /**\n * @var string\n */\n private $message;\n /**\n * @var null\n */\n private $value;\n\n public fu...
php
chosen
[ { "from": "system", "value": "Implement default transport using Guzzle lib\n" }, { "from": "human", "value": "<?php\n\nnamespace FullyBaked\\Pslackr;\n\nclass Pslackr implements Transport\n{\n protected $token;\n\n protected $domain;\n\n public function __construct($config)\n {\n ...
php
chosen
[ { "from": "system", "value": "Fix nested call to Promise\\wait() in test\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp\\Parallel\\Test\\Worker;\n\nuse Amp\\Parallel\\Worker\\Internal\\TaskSuccess;\nuse Amp\\PHPUnit\\AsyncTestCase;\nuse Amp\\Promise;\n\nclass TaskSuccessTest extends A...
php
chosen
[ { "from": "system", "value": "Test persist and serialize simple Entity\n" }, { "from": "human", "value": "<?php\n\nnamespace NilPortugues\\Tests\\Api\\JsonApi\\Doctrine;\n\nclass DoctrineTest extends AbstractTestCase {\n\n\tpublic function testPersit() {\n\t\t$newCustomer = new \\Doctrine\\Entit...
php
chosen
[ { "from": "system", "value": "Update method class in PHPNativeElements\n" }, { "from": "human", "value": "<?php \n\nuse PHPUnit_Framework_TestCase as PHPUnit;\n\nclass PHPNativeElementsTest extends PHPUnit {\n\n\t/**\n\t * undocumented function\n\t *\n\t * @return void\n\t **/\n\tpublic function...
php
chosen
[ { "from": "system", "value": "Add condition for loading locations dynamic sidebar\n" }, { "from": "human", "value": "<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n <div class=\"row\">\n <div class=\"col-md-4\">\n <?php\n\n if ('' !== get_the_pos...
php
chosen
[ { "from": "system", "value": "Add Test for UTF-8 encoding to CsvWriter\n" }, { "from": "human", "value": "<?php\n\nnamespace Ddeboer\\DataImport\\Tests\\Writer;\n\nuse Ddeboer\\DataImport\\Writer\\CsvWriter;\n\nclass CsvWriterTest extends StreamWriterTest\n{\n public function testWriteItem()\...
php
chosen