conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Replace the filter because of php compatibility\n" }, { "from": "human", "value": "<?php\n\nif ( ! function_exists( 'whip_wp_check_versions' ) ) {\n\t/**\n\t * Facade to quickly check if version requirements are met.\n\t *\n\t * @param array $requirements The requir...
php
chosen
[ { "from": "system", "value": "Make all methods call instanced methods\n" }, { "from": "human", "value": "<?php\nnamespace CfdiUtils\\VersionDiscovery;\n\nuse \\DOMDocument;\nuse \\DOMElement;\nuse CfdiUtils\\Nodes\\NodeInterface;\nuse CfdiUtils\\Utils\\Xml;\n\n/**\n * @internal Use for compatibi...
php
chosen
[ { "from": "system", "value": "Extend example to also send messages from STDIN" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/../vendor/autoload.php';\n\n$loop = React\\EventLoop\\Factory::create();\n\n$factory = new React\\Dns\\Resolver\\Factory();\n$resolver = $factory->create...
php
chosen
[ { "from": "system", "value": "Change visibility from protected to public\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\...
php
chosen
[ { "from": "system", "value": "Fix \"Trying to get property of non-object\"\n" }, { "from": "human", "value": "@component('mail::message')\n\n# Dear {{ '@' . $user->username }}, moderator of [#{{ $category->name }}](https://voten.co/c/{{ $category->name }}?ref=email)\n\nDuring the beta phase, to ...
php
chosen
[ { "from": "system", "value": "Increase theme zip file upload limit to 10MB" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Superdesk Web Publisher Core Bundle.\n *\n * Copyright 2017 Sourcefabric z.ú. and contributors.\n *\n * For the full co...
php
chosen
[ { "from": "system", "value": "III-940: Add the fixed list of permissions\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\Role\\ValueObjects;\n\nuse ValueObjects\\Enum\\Enum;\n\nclass Permission extends Enum\n{\n \n}\n" }, { "from": "gpt", "value": "<?php\n\...
php
chosen
[ { "from": "system", "value": "Add a header to the movie reviews single file.\n" }, { "from": "human", "value": " <article <?php post_class('row'); ?>>\n <figure class=\"movie-review-poster col-md-3\">\n <?php the_post_thumbnail('movie-poster'); ?>\n </figure>\n <section class=\"mo...
php
chosen
[ { "from": "system", "value": "BB-4106: Refactor ThemeExtension\n- add space\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Component\\Layout\\Extension;\n\nuse Oro\\Component\\Layout\\Extension\\Theme\\PathProvider\\PathProviderInterface;\n\nabstract class AbstractLayoutUpdateLoaderE...
php
chosen
[ { "from": "system", "value": "Add table prefix to Alter table" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass AlterLastReadInParticipantsTable extends Migration\n{\n /**\n * Run the migration...
php
chosen
[ { "from": "system", "value": "Add speed constraint to tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Endroid\\Tests\\Sudoku;\n\nuse Endroid\\Sudoku\\Puzzle;\n\nclass PuzzleTest extends \\PHPUnit_Framework_TestCase\n{\n public function testSolveEasy()\n {\n // An easy pu...
php
chosen
[ { "from": "system", "value": "Fix issue where title was incorrectly used - it's name\n" }, { "from": "human", "value": "<?php namespace Anomaly\\UsersModule\\Role\\Table;\n\nuse Anomaly\\Streams\\Platform\\Ui\\Table\\TableBuilder;\n\n/**\n * Class RoleTableBuilder\n *\n * @link http://p...
php
chosen
[ { "from": "system", "value": "Add fullname validation if it's presented.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Foundation\\Validation;\n\nuse Orchestra\\Support\\Validator;\n\nclass Authentic...
php
chosen
[ { "from": "system", "value": "Remove class name from docs" }, { "from": "human", "value": "<?php\n\nnamespace SearchApi\\Builders;\n\nuse SearchApi\\Builders\\QueryBuilder;\n\n/**\n * Class SolrQueryBuilder - Responsible for building a query string for SolrSearch\n */\nclass SolrQueryBuilder imp...
php
chosen
[ { "from": "system", "value": "Use default config_handlers to load custom file" }, { "from": "human", "value": "<?php\n\nclass sfRavenPluginConfiguration extends sfPluginConfiguration\n{\n const CONFIG_PATH = 'config/raven.yml';\n\n protected $errorHandler;\n\n /**\n * Initializes the plugin...
php
chosen
[ { "from": "system", "value": "Check that the method value is correct\n" }, { "from": "human", "value": "<?php\n\nnamespace JeroenNoten\\LaravelAdminLte\\Menu\\Filters;\n\nuse JeroenNoten\\LaravelAdminLte\\Menu\\Builder;\n\nclass SearchFilter implements FilterInterface\n{\n public function tra...
php
chosen
[ { "from": "system", "value": "Add a banner ad here too.\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@3612 46e82423-29d8-e211-989e-002590a4cdd4\n" }, { "from": "human", "value": "<?php if ( !defined( \"_COMMON_PHP\" ) ) return; ?>\n<?php\n\t#\n\t# $Id: header.php,v 1.1.2.4 2005-03-31...
php
chosen
[ { "from": "system", "value": "Revert last test. Better to test raw cli output instead of add dirty workarounds.\n\nRevert \"better test for `ext` command output since binary strings cant be tested with regex #242 #253\"\n\nThis reverts commit 1a99f9de6413866800eed909c2286053aaa97ec6.\n" }, { "from":...
php
chosen
[ { "from": "system", "value": "Add command testing util methods\n\nMost of the time the command tester will be used, based on commands\nthat should be available inside the Scaffold Application\n" }, { "from": "human", "value": "<?php\n\n/**\n * Base Integration Test\n *\n * The core test-class fo...
php
chosen
[ { "from": "system", "value": "Allow new directories to fully respect umask.\n\n(Prior to this patch, the group and other bytes would *never* be writeable. With this patch, they'll be writeable if the umask has been set appropriately.)\n" }, { "from": "human", "value": "<?php\nnamespace CRM\\Civi...
php
chosen
[ { "from": "system", "value": "Add a route for phpinfo\n" }, { "from": "human", "value": "<?php\n\nuse Maduser\\Minimal\\Framework\\Facades\\Router;\n\nRouter::get('/', function () {\n return 'Hello from Minimal!';\n});\n" }, { "from": "gpt", "value": "<?php\n\nuse Maduser\\Minimal...
php
chosen
[ { "from": "system", "value": "Add Twig as service provider and move parameters to constructor call for parent\n" }, { "from": "human", "value": "<?php\n\nnamespace Flint;\n\nuse Flint\\Provider\\FlintServiceProvider;\nuse Silex\\Provider\\TwigServiceProvider;\n\n/**\n * @package Flint\n */\nclas...
php
chosen
[ { "from": "system", "value": "Add unit tests for Formatter\n" }, { "from": "human", "value": "<?php\n\nnamespace OpgTest\\Lpa\\DataModel\\Lpa;\n\nuse InvalidArgumentException;\nuse Opg\\Lpa\\DataModel\\Lpa\\Formatter;\nuse PHPUnit\\Framework\\TestCase;\n\nclass FormatterTest extends TestCase\n{\...
php
chosen
[ { "from": "system", "value": "Enable hard_wrap for Markdown parser to match Diaspora parsing\n" }, { "from": "human", "value": "<?php\n//# Install PSR-0-compatible class autoloader\n//spl_autoload_register(function($class){\n//\trequire preg_replace('{\\\\\\\\|_(?!.*\\\\\\\\)}', DIRECTORY_SEPAR...
php
chosen
[ { "from": "system", "value": "Update extension registry references to blueprints\n" }, { "from": "human", "value": "<?php\n\ninclude_once('plugin/comments.php');\ninclude_once('plugin/comment.php');\ninclude_once('plugin/comments-email.php');\ninclude_once('plugin/comments-status.php');\n\n/**\n...
php
chosen
[ { "from": "system", "value": "[Tests] Add a registration test for \\Bolt\\Extension\\Manager\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Tests\\Extension;\n\nuse Bolt\\Tests\\BoltUnitTest;\n\n/**\n * Class to test Bolt\\Extension\\Manager.\n *\n * @author Gawain Lynch <gawain.lyn...
php
chosen
[ { "from": "system", "value": "Add tests for boundary conditions in HttpClient timeouts\n" }, { "from": "human", "value": "<?php\nuse MessageBird\\Client;\nuse MessageBird\\Common\\HttpClient;\n\nclass HttpClientTest extends PHPUnit_Framework_TestCase\n{\n public function testHttpClient()\n ...
php
chosen
[ { "from": "system", "value": "Revert \"Bugfix defineWidth for List Carousel Image due float\"\n\nThis reverts commit 7be1cc54181636a8d7bb8037e9ab38facd41f58f.\n" }, { "from": "human", "value": "<?php\nclass Kwc_List_Carousel_Image_Component extends Kwc_Basic_Image_Component\n{\n public static...
php
chosen
[ { "from": "system", "value": "Replace arguments list with array\n" }, { "from": "human", "value": "<?php\n\nnamespace System {\n\n\tuse System, System\\Utils\\Map, DB, Request, Url;\n\n\tclass Dispatcher extends System {\n\n\t\t# Dispatcher handle method\n\n\t\tpublic function handle() {\n\n\t\t...
php
chosen
[ { "from": "system", "value": "Add user_id index to conversions table\n- To speed up search when finding new/renew conversions\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\...
php
chosen
[ { "from": "system", "value": "Add a test to create an stream from an string\n" }, { "from": "human", "value": "<?php\n\nnamespace Http\\FactoryTest;\n\nuse Interop\\Http\\Factory\\StreamFactoryInterface;\nuse PHPUnit_Framework_TestCase as TestCase;\nuse Psr\\Http\\Message\\StreamInterface;\n\ncl...
php
chosen
[ { "from": "system", "value": "Correct configuration root & remove unnecessary $rootNode variable\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of CacheToolBundle.\n *\n * (c) Samuel Gordalina <samuel.gordalina@gmail.com>\n *\n * For the full copyright and license informati...
php
chosen
[ { "from": "system", "value": "Implement GroupFixtureInterface in fixture class\n" }, { "from": "human", "value": "<?php\n\n/**\n * (c) FSi sp. z o.o. <info@fsi.pl>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code....
php
chosen
[ { "from": "system", "value": "Add Topic Updates to upgrader script\n" }, { "from": "human", "value": "<?php\n// 2.0.0 pr-7 to 2.0.0 pr-8 updater\ntry {\n $db_engine = Config::get('mysql/engine');\n} catch (Exception $e) {\n // unable to retrieve from config\n echo $e->getMessage() . '<b...
php
chosen
[ { "from": "system", "value": "Add default string for river update\n" }, { "from": "human", "value": "<?php\n\n$Spanish = Array(\n\t\t\t\t 'informe:group_ap' => 'Agente de Proyecto',\n\t\t\t\t 'informe:group_pa' => 'Promotor Acesor', \n\t\t\t\t 'informe:error:missing:meeting_manager' => 'Falta el...
php
chosen
[ { "from": "system", "value": "Fix message interface parameter name\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\n/**\n * An SMS library.\n *\n * @copyright Copyright (c) 2017 Andreas Nilsson\n * @license MIT\n */\n\nnamespace AnSms\\Message;\n\nuse AnSms\\Message\\Addres...
php
chosen
[ { "from": "system", "value": "Convert Pantheon plugin from spaces to tabs for indentation\n" }, { "from": "human", "value": "<?php\n// Only in Test and Live Environments...\nif ( in_array( $_ENV['PANTHEON_ENVIRONMENT'], Array('test', 'live') ) ) {\n //\n // Disable Core Updates EVERYWHERE (use...
php
chosen
[ { "from": "system", "value": "Gather startDate parameter and pass into controller\n" }, { "from": "human", "value": "<?php\n/**\n * mbp-logging-reports.php\n *\n * A producer to create reports based on logged data in mb-logging-api.\n */\n\nuse DoSomething\\MBP_LoggingReports\\MBP_LoggingReports...
php
chosen
[ { "from": "system", "value": "Change header column widths and add search box support\n\nThe header now allows for the a search box to be configured, see the\narticle on the tekeye.uk website.\n" }, { "from": "human", "value": "<div class=\"row\">\n <div class=\"one columns\">\n <?php\n...
php
chosen
[ { "from": "system", "value": "Refactor tagged service IDs sorter.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015-2018, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and ...
php
chosen
[ { "from": "system", "value": "Complete tuning of phine init\n" }, { "from": "human", "value": "<?php\n\nnamespace Phine\\Console;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass InitCommand extends Command\n{\n private $files;\n\n ...
php
chosen
[ { "from": "system", "value": "Update quote on the Blog page\n" }, { "from": "human", "value": "<div class=\"page-header\">\n <h2 class=\"text-center text-orange\">\n <?php echo i4web_title(); ?>\n </h2>\n\n <?php\n\n if ( is_post_type_archive('i4web_portfolio') ){ //If the page displayed ...
php
chosen
[ { "from": "system", "value": "Clarify a comment regarding a FALSE value for the result of wp404_report_data\n" }, { "from": "human", "value": "<?php\n/**\n * Core plugin functionality.\n *\n * @package WP404\n * @author Steve Grunwell\n */\n\nnamespace WP404\\Core;\n\n/**\n * Capture details ab...
php
chosen
[ { "from": "system", "value": "CHANGE number max of posts\n\nAdd argument to the function to allow 9 posts per page\n" }, { "from": "human", "value": "<?php\n/**\n * Template Name: Gallery\n * The template for displaying the galleries.\n *\n * @package Pu-ente\n */\n\nget_header(); ?>\n<!-- page-...
php
chosen
[ { "from": "system", "value": "Change \"required\" field type option (true -> false)\n" }, { "from": "human", "value": "<?php\n/**\n * ContentType\n */\nnamespace Wizin\\Bundle\\SimpleCmsBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterfa...
php
chosen
[ { "from": "system", "value": "Add a safety check that newrelic_add_custom_parameter exists\n" }, { "from": "human", "value": "<?php\n/**\n * @package New Relic Insights attributes for WordPress\n * @version 0.1\n */\n/*\nPlugin Name: New Relic Insights attributes for WordPress\nPlugin URI: http:...
php
chosen
[ { "from": "system", "value": "Remove maxlength on textarea form field type\n\n" }, { "from": "human", "value": "<?php if ($this->previewMode) { ?>\n <p class=\"form-control-static\"><?= $field->value ? e($field->value) : '&nbsp;' ?></p>\n<?php } else { ?>\n <textarea\n name=\"<?= $f...
php
chosen
[ { "from": "system", "value": "Order group stages by id (more or less creation date)\n" }, { "from": "human", "value": "<?php\nnamespace InsaLan\\TournamentBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Doctrine\\ORM\\Query\\ResultSetMapping;\nuse InsaLan\\TournamentBundle\\Entity;\...
php
chosen
[ { "from": "system", "value": "Update return docbblock and reorder plainText method\n" }, { "from": "human", "value": "<?php\r\nnamespace PhpWatson\\Sdk\\Language\\ToneAnalyser\\V3;\r\n\r\nuse PhpWatson\\Sdk\\Service;\r\n\r\nclass ToneAnalyserService extends Service\r\n{\r\n /**\r\n * Base...
php
chosen
[ { "from": "system", "value": "Use new messages endpoint to allow sms concatenation/chunking\n" }, { "from": "human", "value": "<?php\n\nclass Services_Twilio_Rest_SmsMessages\n extends Services_Twilio_ListResource\n{\n public function __construct($client, $uri) {\n $uri = preg_repla...
php
chosen
[ { "from": "system", "value": "Use is_null to check if a state isn't available.\n" }, { "from": "human", "value": "<?php \n/**\n * @version $Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Sections\n * @copyright Copyright (C) 2011 Timble CVBA and Contributors. (http...
php
chosen
[ { "from": "system", "value": "Load libraries from all namespaces' client-vendor directories (not static anymore)\n" }, { "from": "human", "value": "<?php\n\nclass CM_Response_Resource_Javascript_Vendor extends CM_Response_Resource_Javascript_Abstract {\n\n\tprotected function _process() {\n\t\ts...
php
chosen
[ { "from": "system", "value": "Fix bug getting the post\n" }, { "from": "human", "value": "<?php\n\nnamespace Atsys\\Blog\\Http\\Controllers\\Blog;\n\nuse App\\Http\\Controllers\\Controller;\nuse Atsys\\Blog\\Post;\n\nclass PostsController extends Controller\n{\n public function index()\n {...
php
chosen
[ { "from": "system", "value": "Check for db connection or connect\n" }, { "from": "human", "value": "<?php\n\nnamespace Purekid\\Mongodm\\Test\\TestCase;\n\nuse Phactory\\Mongo\\Phactory;\nuse Purekid\\Mongodm\\MongoDB;\n\n/**\n * Test Case Base Class for using Phactory *\n */\nabstract class Pha...
php
chosen
[ { "from": "system", "value": "Correct handler for 404 errors\n" }, { "from": "human", "value": "<?php\nsession_start();\ninclude_once '../app/init.php';\n\nuse Aluc\\Service\\AdministradorSrv;\nuse Aluc\\Service\\ErrorSrv;\nuse Aluc\\Tools\\Urls;\n\n$_SESSION['id'] = '1234';\n$_SESSION['type'] =...
php
chosen
[ { "from": "system", "value": "Add immediate checkbox to admin form\n" }, { "from": "human", "value": "<?php\nnamespace Mapbender\\CoreBundle\\Element\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolve...
php
chosen
[ { "from": "system", "value": "Add first test for testing the organism details\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . DIRECTORY_SEPARATOR . 'config.php';\n\nclass OrganismsTest extends PHPUnit_Framework_TestCase\n{\n public function testExecute()\n {\n list(...
php
chosen
[ { "from": "system", "value": "Fix pagination so get users runs.\n" }, { "from": "human", "value": "<?php\nnamespace Ionic\\Helpers;\n\nclass Pagination {\n var $page = 0;\n var $pageSize = 10;\n var $currentPage = 0;\n var $currentSize = 0;\n function isEnd() {\n return ($t...
php
chosen
[ { "from": "system", "value": "Fix newlines to work independently of Git configuration" }, { "from": "human", "value": "<?php\n\nuse Mockery as m;\nuse Illuminate\\View\\Engines\\PhpEngine;\n\nclass ViewPhpEngineTest extends PHPUnit_Framework_TestCase {\n\n\tpublic function tearDown()\n\t{\n\t\tm...
php
chosen
[ { "from": "system", "value": "Add methodize and between collection macros\n" }, { "from": "human", "value": "<?php\n\nnamespace SebastiaanLuca\\Helpers\\Collections;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Support\\Collection;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass CollectionHelperS...
php
chosen
[ { "from": "system", "value": "Change debug info function from var_dump to var_export\n" }, { "from": "human", "value": "<div id=\"content\">\n <div class=\"browser-<?=browser_name_to_class_name($browser['browser_name'])?>\"></div>\n <h1><?=$browser['browser_name'].' '.$browser['browser_ver...
php
chosen
[ { "from": "system", "value": "Simplify DateTime JMS Serializer Subscriber\n" }, { "from": "human", "value": "<?php\n\nnamespace TheDonHimself\\GremlinOGM\\Serializer\\Handler;\n\nuse DateTime;\nuse DateTimeZone;\nuse JMS\\Serializer\\Context;\nuse JMS\\Serializer\\GraphNavigator;\nuse JMS\\Seria...
php
chosen
[ { "from": "system", "value": "Add explicit exception when using withFactories() without\nlaravel/legacy-factories.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Orchestra\\Testbench\\Concerns;\n\nus...
php
chosen
[ { "from": "system", "value": "Fix revision ID of an alternate-language document.\n" }, { "from": "human", "value": "<?php\n\ndeclare (strict_types = 1);\n\nnamespace Crell\\Document\\Document;\n\n\ntrait DocumentTrait\n{\n /**\n * UUID of this document.\n *\n * @var string\n *...
php
chosen
[ { "from": "system", "value": "Change property visibility, use NonInvokableException" }, { "from": "human", "value": "<?php\r\n\r\nnamespace oopapi;\r\n\r\nclass Invokation extends RequestHandler {\r\n const CLASS_VARIABLE = '__CLASS__';\r\n private $class;\r\n\r\n public function __cons...
php
chosen
[ { "from": "system", "value": "UPDATE age of account Is now printing out !!\n" }, { "from": "human", "value": "<h2>My Regular Savings Accounts</h2>\n<hr>\n<?php\nif (isset($records)) : foreach ($records as $row) : ?>\n <h2>Account Name</h2>\n <p><?php echo $row->bank_name; ?></p>\n <h2>I...
php
chosen
[ { "from": "system", "value": "Add capture method to charge\n" }, { "from": "human", "value": "<?php\n\nclass Stripe_Charge extends Stripe_ApiResource\n{\n public static function constructFrom($values, $apiKey=null)\n {\n $class = get_class();\n return self::_scopedConstructFrom($class, $...
php
chosen
[ { "from": "system", "value": "Add request param on index action\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass DefaultController extends Controller\n{\n public ...
php
chosen
[ { "from": "system", "value": "Fix bug with site 2fa enabled/disabled status\n" }, { "from": "human", "value": "<?php\n\n// Display blog enabled/disabled status in list\n\nadd_filter('wpmu_blogs_columns', function ($columns) {\n $columns['2fa'] = '2FA';\n return $columns;\n});\n\nadd_action('ma...
php
chosen
[ { "from": "system", "value": "Use a tokenless client by default.\n" }, { "from": "human", "value": "<?php\n/**\n * AbstractTask.php\n *\n * @author Frederic Dewinne <frederic@continuousphp.com>\n * @copyright Copyright (c) 2015 Continuous S.A. (http://continuousphp.com)\n * @license http://...
php
chosen
[ { "from": "system", "value": "Allow the cache to be turned off\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright (C) 2016 Stratadox\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Soft...
php
chosen
[ { "from": "system", "value": "Allow chargeToken to be null un paymentForm\n" }, { "from": "human", "value": "<?php\n\nnamespace PureBilling\\Bundle\\SDKBundle\\Store\\V1\\Charge;\n\nuse PureBilling\\Bundle\\SDKBundle\\Store\\Base\\Element;\nuse Symfony\\Component\\Validator\\Constraints as Asser...
php
chosen
[ { "from": "system", "value": "Make Calendar events and recurrence types optional.\n" }, { "from": "human", "value": "<?php\n\nnamespace Plummer\\Calendar;\n\nclass Calendar\n{\n\tprotected $name;\n\n\tprotected $events;\n\n\tprotected $recurrenceTypes;\n\n\tprotected function __construct($name, ...
php
chosen
[ { "from": "system", "value": "Remove deprecated compiler pass dependency\n" }, { "from": "human", "value": "<?php\n\nnamespace P2\\Bundle\\BootstrapBundle;\n\nuse P2\\Bundle\\BootstrapBundle\\DependencyInjection\\Compiler\\ThemePass;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder...
php
chosen
[ { "from": "system", "value": "Fix the route after password change\n\nFix #196\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Foundation\\Auth\\ResetsPasswords;\n\nclass ResetPasswordController extend...
php
chosen
[ { "from": "system", "value": "Remove \"bin/celerity\" dependency on database setup\n\nSummary: Ref PHI2157. Like other low-level tools, \"bin/celerity\" does not need databases configured in order to execute.\n\nTest Plan: Ran `bin/celerity map` with and without the database available.\n\nDifferential Revis...
php
chosen
[ { "from": "system", "value": "Test handling http errors resolving job website\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\ApiBundle\\Tests\\Command\\Job\\ResolveWebsiteCommand;\n\nuse SimplyTestable\\ApiBundle\\Tests\\ConsoleCommandTestCase;\n \nabstract class CommandTe...
php
chosen
[ { "from": "system", "value": "[REF] Optimize (only look for DOCTYPE at the start of the string)\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@61820 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS ...
php
chosen
[ { "from": "system", "value": "Delete test that is no longer needed\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view the...
php
chosen
[ { "from": "system", "value": "Use new method to log error\n" }, { "from": "human", "value": "<?php\n\nnamespace notFloran\\SecurityChecker;\n\nuse SensioLabs\\Security\\SecurityChecker;\n\nuse Task;\nuse Project;\nuse BuildException;\n\nclass PhingTask extends Task\n{\n /**\n * The compos...
php
chosen
[ { "from": "system", "value": "Update command signature so it is easier to use\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Console\\Commands;\n\nuse Rogue\\Models\\Tag;\nuse Rogue\\Models\\Post;\nuse Illuminate\\Console\\Command;\n\nclass TagPosts extends Command\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add check for content directory.\n\nNothing will run if it doesn't exist.\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__.'/bootstrap.php';\n\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$app->mount(\n\t\t'/'.$app['config']['admin_path'],\n\...
php
chosen
[ { "from": "system", "value": "Send Http 404 Not Found header from proxy accordingly\n" }, { "from": "human", "value": "<?php\n// error_reporting(0);\n// @ini_set('display_errors', 0);\n\n// THREAD REQUEST\n\nif(isset($_POST['url'])) {\n\t$url = $_POST['url'];\n}\nelse {\n\t$url = $_GET['url'];\n...
php
chosen
[ { "from": "system", "value": "BAP-8152: Make random_id = true by default for all FormTypes\n\n - functional and unit tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\LayoutBundle\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\For...
php
chosen
[ { "from": "system", "value": "Return events for the next week in data api\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Response_Api_Data extends Denkmal_Response_Api_Abstract {\n\n\tpublic function __construct(CM_Request_Get $request) {\n\t\tparent::__construct($request);\n\t}\n\n\t...
php
chosen
[ { "from": "system", "value": "Add test for ISBN-10 checksum calculation\n" }, { "from": "human", "value": "<?php \n\nrequire_once __DIR__ . '/../ISBN.class.php';\n\nclass testEuroTax extends PHPUnit_Framework_TestCase\n{\n protected $isbn;\n \n public function setUp()\n {\n $t...
php
chosen
[ { "from": "system", "value": "Update rebuildIndex() method signature to allow different ways to call it\n" }, { "from": "human", "value": "<?php\n\nclass Asm_Solr_Model_Resource_Indexer_Cms extends Mage_Core_Model_Resource_Db_Abstract\n{\n\n\t/**\n\t * Resource initialization\n\t */\n\tprotected...
php
chosen
[ { "from": "system", "value": "Remove widget specific code from soap data source\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace ATPViz\\DataSource;\r\n\r\nclass SOAP extends AbstractDataSource\r\n{\r\n\tpublic function getData()\r\n\t{\r\n\t\t$options = $this->getOptions();\r\n\t\t$url...
php
chosen
[ { "from": "system", "value": "Add missing column to cache table\n" }, { "from": "human", "value": "<?php\n\n/**\n * Migration: 0\n * Started: 20/05/2021\n *\n * @package Nails\n * @subpackage module-geo-ip\n * @category Database Migration\n * @author Nails Dev Team\n */\n\nnamespace...
php
chosen
[ { "from": "system", "value": "Call correct extract method for extract FQCN handler\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace ApiClients\\Foundation\\Hydrator\\CommandBus\\Handler;\n\nuse ApiClients\\Foundation\\Hydrator\\CommandBus\\Command\\ExtractFQCNComman...
php
chosen
[ { "from": "system", "value": "Fix login with active dominion not being redirect to status screen\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Http\\Controllers\\Auth;\n\nuse Illuminate\\Foundation\\Auth\\AuthenticatesUsers;\nuse Illuminate\\Http\\Request;\nuse OpenDominion...
php
chosen
[ { "from": "system", "value": "Add new option --only & --direction flags\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Modules\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass ListCommand extends Command {\n\n /**\n * The console command name.\n *\n * @var st...
php
chosen
[ { "from": "system", "value": "Load new configs in bundle extension.\n" }, { "from": "human", "value": "<?php\n\nnamespace Darvin\\ImageBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Compon...
php
chosen
[ { "from": "system", "value": "Fix typo when displaying individual category details\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Models\\Category;\nuse Cache;\n\nclass CategoriesController extends Controller\n{\...
php
chosen
[ { "from": "system", "value": "CRM-3533: Add autocomplete for to, cc, bcc fields with possibility to type new email address\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Provider;\n\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\n\nuse Oro\\B...
php
chosen
[ { "from": "system", "value": "Change type to shipment in dispatching.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass EcontDispatching extends Migration\n{\n /**\n * Run the migrations.\n ...
php
chosen
[ { "from": "system", "value": "Update the name of the app" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Output...
php
chosen
[ { "from": "system", "value": "Fix an issue where the unit test fails on PHP 5.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Dakatsuka\\MonologFluentHandler\\Tests;\n\nuse Dakatsuka\\MonologFluentHandler\\FluentHandler;\nuse Monolog\\Logger;\n\nclass FluentHandlerTest extends \\PHPUnit_...
php
chosen
[ { "from": "system", "value": "Add @Resource annotation to test model\n" }, { "from": "human", "value": "<?php\n\nnamespace Tystr\\RestOrm\\Model;\n\nuse Tystr\\RestOrm\\Annotation\\Id;\n\nclass BlogInvalidIdentifierMapping\n{\n /**\n * @Id()\n */\n public $id;\n\n /**\n * @I...
php
chosen
[ { "from": "system", "value": "Add testcase for WorkCalendar contructor\n\nAdd testcase for WorkCalendar contructor" }, { "from": "human", "value": "<?php\nclass WorkCalendarTest extends PHPUnit_Framework_TestCase\n{\n private $params = [];\n\n public function testWorkCalendar()\n { ...
php
chosen