conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix typo and namespace root\n" }, { "from": "human", "value": "<?php\n/**\n * Helper functions to work with the Twig template engine.\n */\n\nnamespace Siler\\Twig;\n\nuse Siler\\Container;\n\n/**\n * Initialze the Twig environment.\n *\n * @param string $templatesP...
php
chosen
[ { "from": "system", "value": "Add es_ES support to lang switcher menu" }, { "from": "human", "value": "<?php\n\nreturn [\n 'es_AR.utf8' => 'Español',\n # 'en_US.utf8' => 'English',\n];\n" }, { "from": "gpt", "value": "<?php\n\nreturn [\n 'es_ES.utf8' => 'Español',\n 'es_A...
php
chosen
[ { "from": "system", "value": "Remove unused and wrong namespace Exception import\n\nThe Ibericode\\Vat\\Exceptions\\Exception is an unused class in this interface. In addition, it is also referencing the class in the wrong namespace, as its FQCN is Ibericode\\Vat\\Exception." }, { "from": "human", ...
php
chosen
[ { "from": "system", "value": "Append timestamp to dev-trunk url\n" }, { "from": "human", "value": "<?php\n\nnamespace Outlandish\\Wpackagist\\Package;\n\nclass Plugin extends AbstractPackage\n{\n public function getVendorName()\n {\n return 'wpackagist-plugin';\n }\n\n public ...
php
chosen
[ { "from": "system", "value": "Add missing properties to email resource\n" }, { "from": "human", "value": "<?php\n\n/**\n * This class represents objects dispensed by the Email model\n *\n * @package Nails\\Email\\Resource\n * @category resource\n */\n\nnamespace Nails\\Email\\Resource;\n\nuse N...
php
chosen
[ { "from": "system", "value": "Use ADVISER_DIR instead of getcwd().\n" }, { "from": "human", "value": "<?php namespace Adviser\\Utilities;\n\nclass CommandRunnerUtilityTest extends \\Adviser\\Testing\\UtilityTestCase\n{\n\n /**\n * @test\n */\n public function it_runs_a_terminal_com...
php
chosen
[ { "from": "system", "value": "Refactor fromArray method to use property accessor\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the XiideaEasyAuditBundle package.\n *\n * (c) Xiidea <http://www.xiidea.net>\n *\n * This source file is subject to the MIT license that is bu...
php
chosen
[ { "from": "system", "value": "Remove ability for extensions to register a service provider\n\nThe concept of returning a bootstrapper function is simpler and the use of service providers had no advantage over it.\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Flarum.\n *\n...
php
chosen
[ { "from": "system", "value": "Fix inclusione css foundation dopo lo spostamento\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<!--[if IE 8]> <html class=\"no-js lt-ie9\" lang=\"en\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en\"> <!--<![endif]-->\n\n<head>\...
php
chosen
[ { "from": "system", "value": "Add missing assertions on authorizeTransfer test\n" }, { "from": "human", "value": "<?php\nnamespace Omnipay\\Skrill\\Message;\n\nuse Omnipay\\Tests\\TestCase;\n\nclass AuthorizeTransferRequestTest extends TestCase\n{\n /**\n * @var AuthorizeTransferRequest\n...
php
chosen
[ { "from": "system", "value": "Add static method call generator test\n" }, { "from": "human", "value": "<?php\nuse CodeGen\\Expr\\CallExpr;\nuse CodeGen\\Testing\\CodeGenTestCase;\nuse CodeGen\\Statement\\Statement;\n\nclass CallExprTest extends CodeGenTestCase\n{\n public function testSimpleM...
php
chosen
[ { "from": "system", "value": "test: Add test cases for the service provider\n" }, { "from": "human", "value": "<?php\n\nnamespace Weidner\\Goutte;\n\nuse Goutte\\Client as GoutteClient;\nuse GuzzleHttp\\Client as GuzzleClient;\n\nclass GoutteServiceProviderTest extends TestCase\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add `JSON_PARTIAL_OUTPUT_ON_ERROR` flag when encoding JSON responses in the exception handler\n\nThis fixes the scenario when json_encode() would fail and the default PHP exception handler takes over and returns something else than JSON\n" }, { "from": "human", "val...
php
chosen
[ { "from": "system", "value": "Allow also array of console task instances\n\nThere might be a scenario where instances are provided, rather than\njust class paths\n" }, { "from": "human", "value": "<?php namespace Aedart\\Scaffold\\Contracts\\Tasks;\n\nuse Aedart\\Scaffold\\Exceptions\\CannotExec...
php
chosen
[ { "from": "system", "value": "Tag first beta to attempt release\n" }, { "from": "human", "value": "<?php\n\nnamespace Paraunit\\Bin;\n\nuse Paraunit\\Command\\CoverageCommand;\nuse Paraunit\\Command\\ParallelCommand;\nuse Paraunit\\Configuration\\ParallelConfiguration;\nuse Paraunit\\Configurati...
php
chosen
[ { "from": "system", "value": "Use automatic repository configuration in generated application\n" }, { "from": "human", "value": "<?php\n\nnamespace $$NAMESPACE$$;\n\nuse Radvance\\Framework\\BaseWebApplication;\nuse Radvance\\Framework\\FrameworkApplicationInterface;\n// use $$NAMESPACE$$\\Repos...
php
chosen
[ { "from": "system", "value": "Add newlines after calendar name and date modified echos\n\n" }, { "from": "human", "value": "<?php\n/**\n * This file controls a day view output for iCalendar information.\n */\nUNL_UCBCN::outputTemplate('UNL_UCBCN_EventListing','EventListing_icalendar');\n?>\nBEGI...
php
chosen
[ { "from": "system", "value": "Remove local vars path & path_plugin\n" }, { "from": "human", "value": "<?php\n/**\n *@file\n * Contains \\Drupal\\AppConsole\\Generator\\CommandGenerator.\n */\n\nnamespace Drupal\\AppConsole\\Generator;\n\nclass CommandGenerator extends Generator\n{\n /**\n * G...
php
chosen
[ { "from": "system", "value": "Use two digit numbers to ensure PHP isn't converting the array to a string\n" }, { "from": "human", "value": "<?php\n\nclass ArrTest extends PHPUnit_Framework_TestCase {\n function testFlatten() {\n $this->assertEquals(\n array('a', 'b', 'c', 'd'),\n M...
php
chosen
[ { "from": "system", "value": "Drop Boilerplate <IE8 classes; wp_title cleanup\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" <?php language_attributes(); ?>> <![endif]-->\n<!--[if IE 7]> <html class=\"no-js lt-ie9 lt-...
php
chosen
[ { "from": "system", "value": "Add thumbnail support to event post type.\n" }, { "from": "human", "value": "<?php\n\nadd_action('init', 'create_post_type');\n\nfunction create_post_type()\n{\n add_post_type_support('page', 'excerpt');\n register_post_type('event',\n array(\n ...
php
chosen
[ { "from": "system", "value": "Add method to generate config and load config on vendor class\n" }, { "from": "human", "value": "<?php\n namespace Core;\n\n /**\n * Manage vendor and can automatically detect vendor.\n *\n * @package Core\n */\n class Vendor\n {\n ...
php
chosen
[ { "from": "system", "value": "Remove unexpected keyword from statement\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace AugustOffensive\\model;\n\n/**\n * Model connection class for connecting to database via PDO.\n */\nclass Connection\n{\n /** @var PDO $_con...
php
chosen
[ { "from": "system", "value": "Fix wrong letter case in namespace\n" }, { "from": "human", "value": "<?php\ndeclare (strict_types = 1);\n\nnamespace GrottoPress\\Jentil\\Setups\\Customizer\\Layout\\Settings;\n\nuse GrottoPress\\Jentil\\Setups\\Customizer\\Layout\\Layout;\nuse GrottoPress\\Jentil\...
php
chosen
[ { "from": "system", "value": "Return exception test instead of printing\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct access allowed.');\n/**\n * View fix for exceptions\n *\n * @package Anqh\n * @author Antti Qvickström\n * @copyright (c) 2010 Antti Qvick...
php
chosen
[ { "from": "system", "value": "Fix a problem with config publishing\n" }, { "from": "human", "value": "<?php namespace LaurentEsc\\Localization;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LocalizationServiceProvider extends ServiceProvider\n{\n\n /**\n * Bootstrap the applicatio...
php
chosen
[ { "from": "system", "value": "Allow passing null to get() to get the default repository\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony CMF package.\n *\n * (c) 2011-2015 Symfony CMF\n *\n * For the full copyright and license information, please view the LICEN...
php
chosen
[ { "from": "system", "value": "Fix up consume either/both check" }, { "from": "human", "value": "<?php\n\nnamespace SwaggerGen\\Swagger\\Type;\n\n/**\n * Basic file type definition.\n *\n * @package SwaggerGen\n * @author Martijn van der Lee <martijn@vanderlee.com>\n * @copyright 2014-201...
php
chosen
[ { "from": "system", "value": "Enhance bad response exception CS.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Lev Semin <lev@darvin-studio.ru>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and license i...
php
chosen
[ { "from": "system", "value": "Revert \"Set default string length to work around key too long errors\"\n\nThis reverts commit 70e0a7e8ba2c34e6d5ae097cf3d8a53217d87574.\n\nTrying to undo some breakage\n" }, { "from": "human", "value": "<?php\n\nnamespace RadDB\\Providers;\n\nuse Laravel\\Dusk\\Dus...
php
chosen
[ { "from": "system", "value": "Fix issue with test when no database is defined\n" }, { "from": "human", "value": "<?php\n/**\n * UserFrosting (http://www.userfrosting.com)\n *\n * @link https://github.com/userfrosting/UserFrosting\n * @license https://github.com/userfrosting/UserFrosting/b...
php
chosen
[ { "from": "system", "value": "Send the home CID for the sitemap to the client\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Application\\UserInterface\\Sitemap;\n\nuse Concrete\\Core\\Application\\UserInterface\\Sitemap\\TreeCollection\\TreeCollectionJsonFormatter;\nuse J...
php
chosen
[ { "from": "system", "value": "Add device descriptions for tablets\n" }, { "from": "human", "value": "<?php\n/**\n * @package Module\n * @subpackage About\n */\n\n/**\n * @package Module\n * @subpackage About\n */\nclass AboutWebModule extends WebModule {\n protected $id = 'about';\n\n pr...
php
chosen
[ { "from": "system", "value": "Rename variable from placeName to cityName\n" }, { "from": "human", "value": "<?php if (!defined('BASEPATH')) exit('No direct script access allowed');\n\nclass HomeController extends CI_Controller\n{\n public function __construct()\n {\n parent::__const...
php
chosen
[ { "from": "system", "value": "Make the enum element comparison strict\n\nThe current check is matching numeric strings that are not equal ( like \"604.1\" == \"604.10\" because of PHP's == behavior that converts numeric strings to numbers and then performs a numeric comparison), even if type is checked befo...
php
chosen
[ { "from": "system", "value": "Add button appears but not aligned\n" }, { "from": "human", "value": "<h1><?php echo $recipe->name; ?></h1>\n\n<div class=\"row recipe-quick-facts\">\n <div class=\"col-md-4\">\n <h4>Servings</h4>\n <?php echo $recipe->servings; ?>\n </div>\n ...
php
chosen
[ { "from": "system", "value": "Implement isFriendsOnly to check for friends-only listings.\n" }, { "from": "human", "value": "<?php\nApp::uses('AppModel', 'Model');\n\n/**\n * Product Listing Model\n */\nclass ProductListing extends AppModel\n{\n\tpublic $hasAndBelongsToMany = array(\n\t\t'Buyer'...
php
chosen
[ { "from": "system", "value": "Update laravel/mvc-basics/step-by-step/36 with theme formatting\n" }, { "from": "human", "value": "<?php\n// ~/Sites/presentation/mvc-basics/resources/views/event/tickets/index.blade.php\n// Using your text editor, edit the `index.blade.php` file and replace the pla...
php
chosen
[ { "from": "system", "value": "Return true if everything is ok.\n" }, { "from": "human", "value": "<?php\n/**\n * Class Google\\Site_Kit\\Core\\Authentication\\User_Input_State\n *\n * @package Google\\Site_Kit\n * @copyright 2020 Google LLC\n * @license https://www.apache.org/licenses/LICENS...
php
chosen
[ { "from": "system", "value": "Allow extra fields in step 6 voters\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\...
php
chosen
[ { "from": "system", "value": "Add more API calls to tests\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . \"/wavepipe.php\";\n\n// Attempt a login request using test credentials\n$login = json_decode(file_get_contents(\"http://localhost:8080/api/v0/login?u=test&p=test\"), true...
php
chosen
[ { "from": "system", "value": "Remove no longer used constant\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Zephir.\n *\n * (c) Zephir Team <team@zephir-lang.com>\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distri...
php
chosen
[ { "from": "system", "value": "Use default connection for DB repository\n" }, { "from": "human", "value": "<?php namespace Krucas\\Counter\\Integration\\Laravel;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Krucas\\Counter\\Counter;\n\nclass CounterServiceProvider extends ServiceProvider\n{\...
php
chosen
[ { "from": "system", "value": "[WebProfilerBundle] Fix tests about web profiler icons\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view ...
php
chosen
[ { "from": "system", "value": "Update Documentation URL and Release Feed\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nclass FieldManagerPlugin extends BasePlugin\n{\n // =========================================================================\n // PLUGIN INFO\n // =====...
php
chosen
[ { "from": "system", "value": "Fix issue with incorrect URL in Google Analytics script.\n\nBetter research later! Why does it work with my other sites, but not for this one?\n" }, { "from": "human", "value": "<?php ///////////////////////////////////////////////////////\n// ----------------------...
php
chosen
[ { "from": "system", "value": "Change key for console namespace\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of laravel-stubs package.\n *\n * @author ATehnix <atehnix@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w...
php
chosen
[ { "from": "system", "value": "Fix that the logger was lost" }, { "from": "human", "value": "<?php\n/*\n * (c) webfactory GmbH <info@webfactory.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespac...
php
chosen
[ { "from": "system", "value": "Add instruction for stopping dev server\n" }, { "from": "human", "value": "<?php\n\nnamespace Spark\\Core;\n\nuse Symfony\\Component\\Process\\PhpExecutableFinder;\nuse Symfony\\Component\\Process\\ProcessBuilder;\n\nclass DevelopmentServer\n{\n protected $docume...
php
chosen
[ { "from": "system", "value": "Add API doc link to key management page\n" }, { "from": "human", "value": "@title('Manage API keys: '.$user->name)\n@extends('app')\n\n@section('content')\n <h1>Manage API keys: {{ $user->name }}</h1>\n\n <ol class=\"breadcrumb\">\n <li><a href=\"{{ act...
php
chosen
[ { "from": "system", "value": "[Bundle] Make getPath() less error prone by allowing both backward and forward slashes\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the ...
php
chosen
[ { "from": "system", "value": "Remove notification type on log in\n" }, { "from": "human", "value": "<?php\nsession_start();\n$servername = \"localhost\";\n$username = \"root\";\n$password = \"\";\n$db_name = \"grade4_db\";\n$table_name = \"students\";\n$name = $_POST['studname'];\n$passphrase = ...
php
chosen
[ { "from": "system", "value": "Set Guzzle 6 as Http Client And Http Message Factory.\n" }, { "from": "human", "value": "<?php\n/**\n * Linkedin API for Laravel Framework\n *\n * @author Mauri de Souza Nunes <mauri870@gmail.com>\n * @license https://opensource.org/licenses/MIT MIT License\n *...
php
chosen
[ { "from": "system", "value": "Fix new notifications on old subjects not appearing\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Notifications;\n\nuse Flarum\\Core\\Users\\User;\n\nclass NotificationRepository\n{\n /**\n * Find a user's notifications.\n *\n * @pa...
php
chosen
[ { "from": "system", "value": "Add empty line between methods\n" }, { "from": "human", "value": "<?php\n\nnamespace FullyBaked\\Pslackr\\Messages;\n\nclass CustomMessage implements Message\n{\n protected $text;\n\n protected $optionalFields = [];\n\n public function __construct($messageT...
php
chosen
[ { "from": "system", "value": "Remove redundant return type in php doc\n" }, { "from": "human", "value": "<?php\n/**\n * @see https://github.com/zendframework/zend-di for the canonical source repository\n * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com)\n * ...
php
chosen
[ { "from": "system", "value": "Add container getter to remove consumer dependency on variable name\n" }, { "from": "human", "value": "<?php\nnamespace SD\\Currency\\DependencyInjection;\n\nuse SD\\Currency\\Repository;\n\ntrait CurrencyAwareTrait {\n private $autoDeclareCurrency = 'currency';\...
php
chosen
[ { "from": "system", "value": "Add various getters to the refund response to get data out.\n" }, { "from": "human", "value": "<?php\n\nnamespace DigiTickets\\VerifoneWebService\\Message\\NonSessionBased;\n\nuse DigiTickets\\VerifoneWebService\\Message\\AbstractRemoteResponse;\n\nclass RefundRespo...
php
chosen
[ { "from": "system", "value": "Add safeguard for purging cache\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nuse Illuminate\\Support\\Facades\\DB;\n\nclass PurgeCache extends Command\n{\n /**\n * The name and signatu...
php
chosen
[ { "from": "system", "value": "Update connector to have a short version of the reference for text objects.\n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1416 baf6b65b-9124-4dc3-b1c0-01155b4af546\n" }, { "from": "human", "value": "<?php\nexit; \n/* connector for Turbellarian\nestimated e...
php
chosen
[ { "from": "system", "value": "Use Memcached on localhost as default (and ArrayCache as fallback)\n\nNote: pretty bad. We should write a proper configuration system.\n" }, { "from": "human", "value": "<?php\n\nnamespace PPP\\Wikidata;\n\nuse Doctrine\\Common\\Cache\\ArrayCache;\nuse PPP\\Module\\...
php
chosen
[ { "from": "system", "value": "Add load communication in /jobs\n" }, { "from": "human", "value": "<?php\n\n/**\n Copyright (C) 2010-2016 by the FusionInventory Development Team\n Copyright (C) 2016 Teclib'\n\n This file is part of Armadito Plugin for GLPI.\n\n Armadito Plugin for GLPI is ...
php
chosen
[ { "from": "system", "value": "Correct casing to fix the travis build\n" }, { "from": "human", "value": "<?php\n\nclass Sabre_VObject_WindowsTimezoneMapTest extends PHPUnit_Framework_TestCase {\n\n /**\n * @dataProvider getMapping\n */\n function testCorrectTZ($timezoneName) {\n\n ...
php
chosen
[ { "from": "system", "value": "Add a \"--force\" argument to \"bin/config done\"\n\nSummary:\nRef T11922. When we deploy on Saturday I need to rebuild all the cluster indexes, but some instances won't have anything indexed so they won't actually trigger the activity.\n\nAdd a `--force` flag that just clears ...
php
chosen
[ { "from": "system", "value": "Extend from new ComCategoriesControllerCategory controller.\n" }, { "from": "human", "value": "<?php\n/**\n * @version\t\t$Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Newsfeeds\n * @copyright\tCopyright (C) 2011 Timble CVBA and Contributo...
php
chosen
[ { "from": "system", "value": "Change test command handler to return what was stored in the test command dto\n" }, { "from": "human", "value": "<?php\n\nnamespace VinceRuby\\Tactician\\Tests\\Stubs;\n\nuse VinceRuby\\Tactician\\Tests\\Stubs\\TestCommand;\n\nclass TestCommandHandler\n{\n\tpublic f...
php
chosen
[ { "from": "system", "value": "Add todo for signed phars\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license information, please vi...
php
chosen
[ { "from": "system", "value": "Allow get specs to everyone\n" }, { "from": "human", "value": "<?php\n\nnamespace Application\\Controller\\Api;\n\nuse Zend\\Db\\Sql;\nuse Zend\\Db\\TableGateway\\TableGateway;\nuse Zend\\Mvc\\Controller\\AbstractRestfulController;\nuse Zend\\View\\Model\\JsonModel;...
php
chosen
[ { "from": "system", "value": "Add comments about what other elements need support.\n" }, { "from": "human", "value": "<?php\nnamespace ComplexPie\\RSS20;\n\nclass Item extends \\ComplexPie\\XML\\Entry\n{\n protected static $static_ext = array();\n\n protected static $aliases = array(\n ...
php
chosen
[ { "from": "system", "value": "Fix running unit tests on Windows\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Tests\\Unit\\Translator\\Framework;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass HelperTest extends TestCase\n{\n /** @var string */\n private $te...
php
chosen
[ { "from": "system", "value": "Improve shaun test error messages\n" }, { "from": "human", "value": "<?php\n\nuse igorw\\edn;\n\nclass ShaunTest extends \\PHPUnit_Framework_TestCase {\n /** @dataProvider provideValidEdnFile */\n function testParseWithValidEdn($ednFile) {\n $edn = file...
php
chosen
[ { "from": "system", "value": "Update user table seeder to assign roles\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Auth\\Authenticatable;\nuse Illuminate\\Auth\\Passwords\\CanResetPassword;\n\nclass UsersTableSeeder extends Seeder\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Remove extra bracket in permission layout file" }, { "from": "human", "value": "@extends(Config::get('entrust-gui.layout'))\n\n@section('heading', 'Create Permission'))\n\n@section('content')\n<form action=\"{{ route('entrust-gui::permissions.store') }}\" method=\"p...
php
chosen
[ { "from": "system", "value": "Clean up base table parser method\n" }, { "from": "human", "value": "<?php\n\nnamespace Maghead\\TableParser;\n\nuse PDO;\nuse SQLBuilder\\Driver\\BaseDriver;\nuse Maghead\\QueryDriver;\nuse Maghead\\Schema\\DeclareSchema;\nuse Maghead\\Runtime\\Connection;\n\nabstr...
php
chosen
[ { "from": "system", "value": "Add a future repsonse class for handle dispatcher for asynchronous command\n" }, { "from": "human", "value": "<?php\nnamespace M6Web\\Bundle\\CassandraBundle\\Cassandra;\n\nuse Cassandra\\Future;\nuse M6Web\\Bundle\\CassandraBundle\\EventDispatcher\\CassandraEvent;\...
php
chosen
[ { "from": "system", "value": "Fix printing template when value is an array.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title>Print Table</title>\n <meta charset=\"UTF-8\">\n <meta name=description content=\"\">\n <meta name=\...
php
chosen
[ { "from": "system", "value": "Add test for relation options\n" }, { "from": "human", "value": "<?php\n\nclass RelationTest extends DatabaseTestCase {\n\n\tpublic function testGetOtherModel() {\n\t\t\n\t}\n\n\tpublic function testSetOtherModel() {\n\n\t}\n}\n" }, { "from": "gpt", "val...
php
chosen
[ { "from": "system", "value": "Add TWC date format parameter\n" }, { "from": "human", "value": "<?php\r\n\r\nreturn array(\r\n\t'admin' => array(\r\n\t\t'models' =>array(\r\n\t\t),\r\n\t\t'parameters' => array(\r\n\t\t\t'social-patreon-name' => array(\r\n\t\t\t\t'displayName' => 'Patreon Name',\r...
php
chosen
[ { "from": "system", "value": "ENHANCEMENT: Add edit tools path so that no hardcoding is required\n" }, { "from": "human", "value": "<?php\n// make links sortable\n//SortableDataObject::add_sortable_class('Link');\n\n// enabled the extension, need the FooterLinksFolder method to be available\nObj...
php
chosen
[ { "from": "system", "value": "Add support to the Security controller\n\nFixes #27" }, { "from": "human", "value": "<?php\ndefine('MOBILE_DIR', 'mobile');\n\nSiteConfig::add_extension('MobileSiteConfigExtension');\nContentController::add_extension('MobileSiteControllerExtension');\nSiteTree::add_...
php
chosen
[ { "from": "system", "value": "Use div instead of h1 for site title" }, { "from": "human", "value": "<?php\n/**\n * Header top template\n *\n * @package ZnWP Bootstrap Theme\n */\n\nglobal $znwp_theme;\n?>\n\n <div class=\"container\">\n <div class=\"row\">\n <div...
php
chosen
[ { "from": "system", "value": "Load the correct config for new Symfony environment\n" }, { "from": "human", "value": "<?php\n\nuse Sylius\\Bundle\\CoreBundle\\Application\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse SitemapPlugin\\SitemapPlugin;\n\nfinal class AppKernel...
php
chosen
[ { "from": "system", "value": "Change verbiage around refresh command.\n" }, { "from": "human", "value": "<?php namespace Anomaly\\AddonsModule\\Listener;\n\nuse Anomaly\\Streams\\Platform\\Application\\Event\\SystemIsRefreshing;\nuse Anomaly\\Streams\\Platform\\Console\\Kernel;\n\n/**\n * Class ...
php
chosen
[ { "from": "system", "value": "Add followup when close the ticket\n" }, { "from": "human", "value": "<?php\n\ninclude (\"../../../inc/includes.php\");\n\n// Close the ticket\nif (!isset($_POST['id'])) {\n Html::back();\n}\n\n$ticket = new Ticket();\nif ($ticket->getFromDB($_POST['id'])) {\n $...
php
chosen
[ { "from": "system", "value": "Adjust markup of subscribe 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 charset to HTML5 doc (and make more XHTML friendly)" }, { "from": "human", "value": "<!doctype html>\n<?php\n/*\n * fileopen.php\n * To be used with ext-server_opensave.js for SVG-edit\n *\n * Licensed under the MIT License\n *\n * Copyright(c) 2010 Alexis Dever...
php
chosen
[ { "from": "system", "value": "Fix parameter documentation in `IPlaceholderFormField`\n\nSee #2509\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\n\n/**\n * Represents a form field that supports a placeholder value.\n * \n * @author\tMatthias Schmidt\n * @c...
php
chosen
[ { "from": "system", "value": ":white_check_mark: Add test if signer not implements signer interace.\n" }, { "from": "human", "value": "<?php\n\nnamespace Risan\\OAuth1\\Test\\Unit;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Risan\\OAuth1\\OAuth1Factory;\nuse Risan\\OAuth1\\OAuth1Interface;\n\ncla...
php
chosen
[ { "from": "system", "value": "Make the fingerprint method compatible with Lumen.\n" }, { "from": "human", "value": "<?php\n\nnamespace Laravel\\Lumen\\Http;\n\nuse Illuminate\\Support\\Arr;\nuse Illuminate\\Http\\Request as BaseRequest;\n\nclass Request extends BaseRequest\n{\n /**\n * Ge...
php
chosen
[ { "from": "system", "value": "Make POST request when updating object\n" }, { "from": "human", "value": "<?php\n\n/**\n * Abstraction of an instance resource from the Twilio API.\n *\n * @category Services\n * @package Services_Twilio\n * @author Neuman Vong <neuman@twilio.com>\n * @license h...
php
chosen
[ { "from": "system", "value": "Make code compatible with PHP < 8\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types = 1);\nnamespace Rebing\\GraphQL\\Tests\\Unit\\Console;\n\nuse Rebing\\GraphQL\\Console\\SchemaConfigMakeCommand;\nuse Rebing\\GraphQL\\Tests\\Support\\Traits\\MakeCom...
php
chosen
[ { "from": "system", "value": "Return types in manager tests\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an...
php
chosen
[ { "from": "system", "value": "Fix parameter name in `IAutoCompleteFormField`\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\n\n/**\n * Represents a form field that supports the `autocomplete` attribute.\n * \n * @author Matthias Schmidt\n * @copyright...
php
chosen
[ { "from": "system", "value": "Add locale_group by default to elements\n\nCloses #60\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass ElementsTable extends Migration\n{\n /**\n * Run the migr...
php
chosen
[ { "from": "system", "value": "Fix translation tag for hook for openid provider\n" }, { "from": "human", "value": "<?php\n/**\n * Hook to add the OpenID provider to the authentication tab.\n *\n * @param array &$links The links on the frontpage, split into sections.\n */\nfunction openidProvider...
php
chosen
[ { "from": "system", "value": "Fix CLI run with symlinked core directory under Windows\n\n\nFormer-commit-id: 9dea9591bf36665df39e3277222df3f1f8af24f0\nFormer-commit-id: 88bc301efba74d2352f703366fe64b0c4b599a21" }, { "from": "human", "value": "<?php\n$DIR_BASE_CORE = dirname(__DIR__);\ndefine('DI...
php
chosen
[ { "from": "system", "value": "Add extra padding before event-stream output\n" }, { "from": "human", "value": "<?php\nnamespace HomoChecker\\View;\n\nclass ServerSentEventView implements ViewInterface {\n public $event;\n\n public function __construct($event) {\n $this->event = $even...
php
chosen
[ { "from": "system", "value": "CRM-2628: Optimize Static segments\n - fix migration for mySQL\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SegmentBundle\\Migrations\\Schema\\v1_3;\n\nuse Psr\\Log\\LoggerInterface;\n\nuse Oro\\Bundle\\EntityBundle\\ORM\\DatabaseDriverInterfa...
php
chosen
[ { "from": "system", "value": "Enhance compatibility with Symfony 5.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015-2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * ...
php
chosen
[ { "from": "system", "value": "Validate the test github request\n" }, { "from": "human", "value": "<?php\n/**\n* Created by PhpStorm.\n* User: Danny\n* Date: 15/06/2017\n* Time: 06:37 PM\n*/\n\nnamespace App\\Http\\Controllers;\n\n\nuse App\\Notifications\\ReviewerNotifier;\nuse App\\SlackToken;\...
php
chosen