conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add indexes to munkiinfo migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Munkiinfo extends Migration... | php | chosen |
[
{
"from": "system",
"value": "Make sure JSON request bodies are parsed as array.\n\nRefs #533."
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICEN... | php | chosen |
[
{
"from": "system",
"value": "Add gridQuery property. Implements ReportGridQueryInterface. Add dateReferenceColumn method.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SedpMis\\BaseReport\\GridQuery;\n\nclass ColumnedReportGridQuery extends BaseReportGridQuery\n{\n protected $columns... | php | chosen |
[
{
"from": "system",
"value": "Allow audio and video as well as images"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Starbs Yeh.\n *\n * (c) Graham Campbell <graham@mineuk.com>\n * (c) Chip Wolf <hello@chipwolf.uk>\n *\n * For the full copyright and license information, pl... | php | chosen |
[
{
"from": "system",
"value": "Add remove button in template for pivot fields\n"
},
{
"from": "human",
"value": "<script id=\"realtionship-edit-add\" type=\"text/x-jquery-template\">\n<tr>\n <td>\n <select class=\"form-control select2\" name=\"{{ $row->field }}[]\">\n @foreac... | php | chosen |
[
{
"from": "system",
"value": "Use github auth token for api.github.com\n"
},
{
"from": "human",
"value": "<?php\nnamespace PharIo\\Phive;\n\nclass CurlConfigBuilder {\n\n /**\n * @var Environment\n */\n private $environment;\n\n /**\n * @var PhiveVersion\n */\n privat... | php | chosen |
[
{
"from": "system",
"value": "Add new params for image exporter\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'pdf' => [\n 'phantom' => [\n 'debug' => false,\n 'ignore-ssl-errors' => true,\n 'load-images' => true,\n 'ssl-protocol' =>... | php | chosen |
[
{
"from": "system",
"value": "Make taxonomy template pagination more modular\n"
},
{
"from": "human",
"value": "$taxonomy_slug = 'news-type';\n$term_slug = \\Taco\\Term\\Factory::create(get_queried_object())->get('slug');\n\n$current_page = (get_query_var('paged')) ?: 1;\n$per_page = get_option(... | php | chosen |
[
{
"from": "system",
"value": "Improve non-empty check on array.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Halfpastfour\\PHPChartJS\\Renderer;\n\n/**\n * Class Json\n *\n * @package Halfpastfour\\PHPChartJS\\Renderer\n */\nclass Json extends Renderer\n{\n /**\n * Render the nec... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace in import of ProfilerInterface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author @fabfuel <fabian@fabfuel.de>\n * @created 14.11.14, 06:57 \n */\nnamespace Fabfuel\\Prophiler\\Adapter;\n\nuse Mongo\\Profiler\\ProfilerInterface;\n\nabstract clas... | php | chosen |
[
{
"from": "system",
"value": "Test asset: interfaces implemented in third level class inheritance child\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BetterReflectionTest\\ClassWithInterfaces {\n use BetterReflectionTest\\ClassWithInterfacesOther\\B as ImportedB;\n use BetterReflec... | php | chosen |
[
{
"from": "system",
"value": "Add Avatar & UserModel classes to the view\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2016, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; ... | php | chosen |
[
{
"from": "system",
"value": "Add IP access for custom dev envs.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com/doc/current... | php | chosen |
[
{
"from": "system",
"value": "Fix in expected attribute value.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Bear CMS addon for Bear Framework\n * https://bearcms.com/\n * Copyright (c) 2016 Amplilabs Ltd.\n * Free to use under the MIT license.\n */\n\n$onClick = 'none';\nif ($component->onCl... | php | chosen |
[
{
"from": "system",
"value": "Replace method getName() in form types with \"getBlockPrefix()\".\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * Fo... | php | chosen |
[
{
"from": "system",
"value": "Use notification ID in syncWithoutDetaching\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Mship;\n\nuse Auth;\nuse Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany;\nuse Session;\nuse Redirect;\n\nclass Notification extends \\... | php | chosen |
[
{
"from": "system",
"value": "Add function for getting all organisms\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Organisms with given ids\n */\nclass Organisms extends \\WebService {\n\n /**\n * @param $quer... | php | chosen |
[
{
"from": "system",
"value": "Add habitats category in GTU\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This class has been auto-generated by the Doctrine ORM Framework\n */\nclass TagGroups extends BaseTagGroups\n{\n private static $groups = array(\n 'administrative area' => 'Admi... | php | chosen |
[
{
"from": "system",
"value": "Fix for Nelmio API Doc\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n/*\n * This file is part of the Bukashk0zzzTimestampTypeBundle\n *\n * (c) Denis Golubovskiy <bukashk0zzz@gmail.com>\n *\n * For the full copyright and license information, p... | php | chosen |
[
{
"from": "system",
"value": "Change the category from skin to other\n"
},
{
"from": "human",
"value": "<?php\nif(!defined('MEDIAWIKI')) die;\n\n$dir = __DIR__;\n$ext = 'HideUnwanted';\n\n$wgExtensionCredits['skin'][] = array(\n 'path' => __FILE__,\n 'name' => $ext,\n 'v... | php | chosen |
[
{
"from": "system",
"value": "Add required service provider method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hemp\\Presenter;\n\nuse Illuminate\\Support\\Collection;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass PresenterServiceProvider extends ServiceProvider\n{\n public fu... | php | chosen |
[
{
"from": "system",
"value": "Set correct noDevMode in composer"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fiddler\\Composer;\n\nuse Fiddler\\Build;\nuse Composer\\Composer;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Plugin\\PluginInterface;\nuse Composer\\Script\\Event;\nuse Compos... | php | chosen |
[
{
"from": "system",
"value": "Replace str_contains with strpos method to support PHP 7\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * fi... | php | chosen |
[
{
"from": "system",
"value": "Update searchable column for articles that are currently in robots.txt\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass ArticleSearchable extends AbstractMigration\n{\n /**\n * Up Method.\n\t */\n public functio... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong serviceLocator property name"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Evgeny Shpilevsky <evgeny@shpilevsky.com>\n */\n\nnamespace EnliteMonolog\\Service;\n\nuse Monolog\\Logger;\nuse RuntimeException;\nuse Zend\\ServiceManager\\ServiceLocato... | php | chosen |
[
{
"from": "system",
"value": "Remove create link for CKL\n"
},
{
"from": "human",
"value": "<div class=\"col-md-4 col-xs-12\">\n\t<div class=\"panel panel-default\">\n\t\t<div class=\"panel-heading\">{{ trans('admin.checklist_management') }}</div>\n\t\t<div class=\"list-group\">\n\t\t\t<a href=\... | php | chosen |
[
{
"from": "system",
"value": "Update cello to use Orchestra\\Model\\Role::admin()\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nclass Cello_Seed_Acl {\n\n\t/**\n\t * Start Orchestra during construct\n\t *\n\t * @retur... | php | chosen |
[
{
"from": "system",
"value": "Change php tests and they are all failing\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($servi... | php | chosen |
[
{
"from": "system",
"value": "Add inline doc to config file\n"
},
{
"from": "human",
"value": "<?php\n\n$config['magic_replace'] = array();\n\n$config['js_debug'] = FALSE;\n$config['css_debug'] = FALSE;\n$config['minify_js_ext'] = '.min.js';\n$config['minify_css_ext'] = '.min.css';\n\n$config['o... | php | chosen |
[
{
"from": "system",
"value": "Use the title from the CPT to create unique review link.\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Single Re Google Review\n *\n * @package Google Review\n */\n\n?>\n<?php get_header(); ?>\n<?php\n$place_id = get_option( 're_google_review_place_id' );\n?>\... | php | chosen |
[
{
"from": "system",
"value": "Set primary key and adjust types\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace OCA\\B2shareBridge\\Migration;\n\nuse Closure;\nuse OCP\\DB\\ISchemaWrapper;\nuse OCP\\Migration\\SimpleMigrationStep;\nuse OCP\\Migration\\IOutput;\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix `bake all` ignores AppController::$theme\n"
},
{
"from": "human",
"value": "<?php\nApp::uses('AppShell', 'Console/Command');\nApp::uses('AppController', 'Controller');\n\nclass ThemeAppShell extends Shell\n{\n\tpublic function initialize() {\n\t\tif ($this insta... | php | chosen |
[
{
"from": "system",
"value": "Fix Verify endpoint doesn't use user tranformer\n\nClose https://github.com/NamelessMC/Nameless/issues/2714\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @param int $id The NamelessMC user's ID\n * @param string $code The NamelessMC user's reset code, used to ... | php | chosen |
[
{
"from": "system",
"value": "Disable news by default (not included anymore)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bpocallaghan\\Titan\\Http\\Controllers\\Website;\n\nuse App\\Http\\Requests;\nuse Bpocallaghan\\Titan\\Models\\News;\n\nclass HomeController extends WebsiteControlle... | php | chosen |
[
{
"from": "system",
"value": "Update URLs to be Vantiv"
},
{
"from": "human",
"value": "<?php\n\nclass Litle_LEcheck_Model_URL\n{\n\tpublic function toOptionArray()\n\t{\n\t\treturn array(\n\n\t\t\t\tarray(\n\t\t 'value' => \"https://www.testlitle.com/sandbox/communicator/online\... | php | chosen |
[
{
"from": "system",
"value": "Throw BacFunctionCallException in our sequence\n\n"
},
{
"from": "human",
"value": "<?php\n\ninclude_once 'BottomlineWrapperBase.php';\n\nclass BottomlineWrapper extends BottomLineWrapperBase\n{\n /**\n * @var mixed $value\n */\n private $value;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Make sure usergroups appear in the top of the suggestion list.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SV\\UserMentionsImprovements\\XF\\Pub\\View\\Member;\n\nclass Find extends XFCP_Find\n{\n\tpublic function renderJson()\n\t{\n\t\t$response = parent:... | php | chosen |
[
{
"from": "system",
"value": "Handle API change for StorageURL"
},
{
"from": "human",
"value": "<?php\r\nfinal class DVRUI_Vars \r\n{\r\n\tconst DVRUI_version\t=\"0.2.6\";\r\n\tconst DVRUI_name\t=\"HDHomeRun DVR UI\";\r\n\tconst DVRUI_git\t\t=\"https://github.com/demonrik/HDHR-DVRUI.git\";\r\n\t... | php | chosen |
[
{
"from": "system",
"value": "Enhance debug:echo with --color and --uppercase options\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Droid\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Conso... | php | chosen |
[
{
"from": "system",
"value": "Clean command and output of DATA_DIR\n"
},
{
"from": "human",
"value": "<?php\nnamespace Criterion\\Helper;\n\nclass Command\n{\n public $response = null;\n public $command = null;\n public $output = null;\n\n public function execute($command)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use id() instead of increments('id')\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\... | php | chosen |
[
{
"from": "system",
"value": "Remove method implemented in parent.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Inquisition/admin/components/Option/Order.php';\nrequire_once 'CME/admin/components/Option/include/CMEOptionHelper.php';\n\n/**\n * @package CME\n * @copyright 2014 silv... | php | chosen |
[
{
"from": "system",
"value": "Fix typo. when safemode is enabled we experienced the problem with ini_get arguments number\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>... | php | chosen |
[
{
"from": "system",
"value": "Change title on home page\n"
},
{
"from": "human",
"value": "<?php /* Template Name: Home Page Template */ ?>\n\n<?php get_header(); ?>\n\n<!-- Content Panel -->\n<div class=\"home_callout row\">\n <div class=\"large-8 medium-8 small-10 small-offset-1 medium-offset... | php | chosen |
[
{
"from": "system",
"value": "Add mkdn extension to markdown extension list\n\nSee: https://github.com/sculpin/sculpin/commit/c3b9cbe8827977b4d7759f94a971bb13cc00a226\n"
},
{
"from": "human",
"value": "<?php\nnamespace Bcremer\\Sculpin\\Bundle\\CommonMarkBundle\\DependencyInjection;\n\nuse Symfo... | php | chosen |
[
{
"from": "system",
"value": "Rewrite fix for fake archive\n"
},
{
"from": "human",
"value": "<?php\nnamespace WordpressLib\\Posts;\n\nabstract class FakeArchive extends FakePage {\n\n\tprotected $templateName = 'archive';\n\n\tpublic function __construct($slug, $title) {\n\t\tparent::__construc... | php | chosen |
[
{
"from": "system",
"value": "Fix for Datetime field format\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pum\\Core\\Extension\\Core\\Type;\n\nuse Pum\\Core\\AbstractType;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolverInterface;\n\nclass DatetimeType extends AbstractType\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add header to prevent sniff\n"
},
{
"from": "human",
"value": "<?php\n$start_ts = microtime(true);\ninclude getenv('KISS_CORE');\nApp::start();\n$Response = Response::create(200);\n$View = App::process(Request::create(), $Response)\n ->prepend('_head')\n ->append(... | php | chosen |
[
{
"from": "system",
"value": "Add docblock for fromIncomingIrcMessage function\n\nSigned-off-by: Yoshi2889 <77953cd64cc4736aae27fa116356e02d2d97f7ce@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\tWildPHP - a modular and easily extendable IRC bot written in PHP\n\tCopyright (C) 2016... | php | chosen |
[
{
"from": "system",
"value": "Add git-php in composer file\n"
},
{
"from": "human",
"value": "<?php\nreturn [ \"cdn\" => [ \"jquery\" => \"https://code.jquery.com/jquery-3.3.1.min.js\",\n\t\t\"bootstrap\" => [ \"css\" => \"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\",\... | php | chosen |
[
{
"from": "system",
"value": "Check if $images exists in gallery upload view.\n"
},
{
"from": "human",
"value": "<div id=\"{{ $id or 'gallery-upload' }}\" class=\"gallery-upload {{ $class or ''}}\">\n <p>\n <button type=\"button\" class=\"btn btn-default\">{{ $button or 'Upload' }}</bu... | php | chosen |
[
{
"from": "system",
"value": "Add the method to enable converting user input markdown into html.\n"
},
{
"from": "human",
"value": "<?php namespace App\\Services;\n\nclass Markdown {\n\n public function __construct()\n {\n\n }\n\n public function convertHtmlToMarkdown($html)\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Undo the change that was made- doesn't work\n"
},
{
"from": "human",
"value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_P... | php | chosen |
[
{
"from": "system",
"value": "Reformat in line with coding standards.\n"
},
{
"from": "human",
"value": "<?php \nnamespace Gothick\\AkismetClient;\n\nclass Exception extends \\Exception\n{\n public function __construct($message, $code = 0, \\Exception $previous = null)\n {\n parent:... | php | chosen |
[
{
"from": "system",
"value": "Mark audio driver as unconfigured\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mpociot\\BotMan\\Drivers;\n\nuse Mpociot\\BotMan\\BotMan;\nuse Mpociot\\BotMan\\Message;\n\nclass TelegramAudioDriver extends TelegramDriver\n{\n const DRIVER_NAME = 'Telegram... | php | chosen |
[
{
"from": "system",
"value": "Throw error to console if app fails to boot\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <title>{{ $title }}</title>\n <meta name=\"descripti... | php | chosen |
[
{
"from": "system",
"value": "Fix check for beanstalkd tube"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlmQueueBeanstalkd\\Worker;\n\nuse Exception;\nuse Pheanstalk_Pheanstalk as Pheanstalk;\nuse SlmQueue\\Job\\JobInterface;\nuse SlmQueue\\Queue\\QueueInterface;\nuse SlmQueue\\Worker\\A... | php | chosen |
[
{
"from": "system",
"value": "Set layout object to block\n\nIt is required for creating another block in block\n"
},
{
"from": "human",
"value": "<?php\n\nclass SomethingDigital_Modal_Model_Container_Modal extends Enterprise_PageCache_Model_Container_Abstract\n{\n protected function _getCache... | php | chosen |
[
{
"from": "system",
"value": "Add PEAR into the include_path\n"
},
{
"from": "human",
"value": "<?php\n// Define path to application directory\ndefine('ROOT_PATH', dirname(dirname(dirname(__FILE__))));\ndefine('APPLICATION_PATH', ROOT_PATH . DIRECTORY_SEPARATOR .\n ... | php | chosen |
[
{
"from": "system",
"value": "Change the search field resolving logic\n"
},
{
"from": "human",
"value": "<?php \n\nnamespace AstritZeqiri\\LaravelSearchable\\Traits;\n\nuse AstritZeqiri\\LaravelSearchable\\Search;\nuse AstritZeqiri\\LaravelSearchable\\Exceptions\\SearchException;\n\ntrait Search... | php | chosen |
[
{
"from": "system",
"value": "Fix config: jcommunity module is missing from script.php\n\nWe need it to call commands from cli to register the first user.\n"
},
{
"from": "human",
"value": ";<?php die(''); ?>\n;for security reasons , don't remove or modify the first line\n\nstartModule=jelix\nst... | php | chosen |
[
{
"from": "system",
"value": "Fix public name displayment when logged in\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Calendar\\View\\Helper\\Cell\\Render;\r\n\r\nuse Square\\Entity\\Square;\r\nuse Zend\\View\\Helper\\AbstractHelper;\r\n\r\nclass Occupied extends AbstractHelper\r\n{... | php | chosen |
[
{
"from": "system",
"value": "Fix an issue with being able to update statuses\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Github\\Api\\Repository;\n\nuse Github\\Api\\AbstractApi;\nuse Github\\Exception\\MissingArgumentException;\n\n/**\n * @link http://developer.github.com/v3/repos/... | php | chosen |
[
{
"from": "system",
"value": "Add currency's symbol to dashboard\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('body')\n <h1>Dashboard</h1>\n <div class=\"box spacing-bottom-large\">\n <div class=\"box__section\">\n <span style=\"font-size: 18px;\">Ear... | php | chosen |
[
{
"from": "system",
"value": "Remove fixing result of games.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: stas\n * Date: 28.05.16\n * Time: 17:39\n */\n\nnamespace CoreBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nu... | php | chosen |
[
{
"from": "system",
"value": "Add wrapper functions for \"X\" classes.\n"
},
{
"from": "human",
"value": "<?php\n\n/* Escape a string for interpolation in HTML. Note that this does NOT encode\n * double quotes (`\"`). */\nfunction html($str) {\n\treturn htmlspecialchars($str, ENT_NOQUOTES | ENT_... | php | chosen |
[
{
"from": "system",
"value": "Add logClient() to system tests to log requests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Desk\\Test\\Helper;\n\nuse Desk\\Test\\Helper\\TestCase;\n\nabstract class SystemTestCase extends TestCase\n{\n}\n"
},
{
"from": "gpt",
"value": "<?php\... | php | chosen |
[
{
"from": "system",
"value": "Add label for page level rating\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @type int $review A number between 0 and 5\n * @type bool $starsOnly Should editing be disabled\n */\n?>\n<div class=\"star-rating <?= $selector = uniqid('rating') ?>\" data-name=\"rev... | php | chosen |
[
{
"from": "system",
"value": "Add Parameters to Route Closures\n\nUse 'HttpKernel\\Controller\\ControllerResolver::getArguments' to get the\nparameter arguments mapped properly to the closure function arguments\n\nFunction arguments must have the same name as the route parameters but\ncan be in any order.\n... | php | chosen |
[
{
"from": "system",
"value": "Set updated and created fields in migration\n"
},
{
"from": "human",
"value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass AddAttachmentType extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is availa... | php | chosen |
[
{
"from": "system",
"value": "Use strpos instead of Xpath\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Http\\HttplugBundle\\Tests\\Functional;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass ProfilerTest extends WebTestCase\n{\n public function testShowProfiler()... | php | chosen |
[
{
"from": "system",
"value": "Fix write path for generate command secret.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tymon\\JWTAuth\\Commands;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass JWTGenerate... | php | chosen |
[
{
"from": "system",
"value": "Print output on success/failure & catch exceptions.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Console\\Commands;\n\nuse Carbon\\Carbon;\nuse DoSomething\\Gateway\\Blink;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Collection;\... | php | chosen |
[
{
"from": "system",
"value": "Allow nullable order by to clear out the order"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Latitude\\QueryBuilder\\Query\\Capability;\n\nuse Latitude\\QueryBuilder\\ExpressionInterface;\nuse Latitude\\QueryBuilder\\StatementInterfac... | php | chosen |
[
{
"from": "system",
"value": "Change distance type to double\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MssPhp\\Schema\\Response;\n\nuse JMS\\Serializer\\Annotation\\Type;\n\nclass Geolocation {\n /**\n * @Type(\"double\")\n */\n public $latitude;\n\n /**\n * @Typ... | php | chosen |
[
{
"from": "system",
"value": "Fix type in Payment call\n"
},
{
"from": "human",
"value": "<?php\n\nclass Ontic_NoFraud_Model_Sales_Order_Observer\n{\n /*\n * Observer for the order saved event\n */\n public function sales_order_place_after( $observer )\n {\n\ttry\n\t{\n\t $or... | php | chosen |
[
{
"from": "system",
"value": "Include custom config IF present\n\nReverted the logic:\r\n- `config.php` could not exists\r\n- `config.dist.php` should exists by design instead"
},
{
"from": "human",
"value": "<?php\nfinal class app\n{\n protected static $_instance = null;\n\n protected $_d... | php | chosen |
[
{
"from": "system",
"value": "Modify function name for test\n"
},
{
"from": "human",
"value": "<?php\n\nuse PHPUnit\\Framework\\TestCase as TestCase;\n\nrequire_once dirname(__DIR__) . '/listfactory/ListLink.php';\n\n/**\n * AbstractFactory ListLink Test\n */\nfinal class AbstractFactoryListLink... | php | chosen |
[
{
"from": "system",
"value": "Sort bills by next due\n"
},
{
"from": "human",
"value": "<?php namespace Bdgt\\Http\\Controllers;\n\nuse Bdgt\\Resources\\Bill;\n\nclass BillController extends Controller\n{\n /**\n * Create a new controller instance.\n *\n * @return void\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Use token() instead of getToken() since it is \"deprecated\"\n"
},
{
"from": "human",
"value": "<?php namespace Contentify\\ServiceProviders;\n\nuse Collective\\Html\\HtmlServiceProvider as OriginalHtmlServiceProvider;\nuse Contentify\\HtmlBuilder;\nuse Contentify\\... | php | chosen |
[
{
"from": "system",
"value": "Add description and correct link url.\n\n"
},
{
"from": "human",
"value": "<rss version=\"2.0\">\n\t<channel>\n\t\t<title><?php echo $this->calendar->name; ?> Events</title>\n\t\t<link><?php UNL_UCBCN_Frontend::formatURL(array('calendar'=>$this->calendar->id)); ?></... | php | chosen |
[
{
"from": "system",
"value": "Implement basic stats for the dashboard\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Add @since annotation and add missing new line\n\nSigned-off-by: Tobia De Koninck <30ab0c47cfc828a21d603b636d2e1c114f52a7e7@ledfan.be>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OCP\\Contacts\\ContactsMenu;\n\nuse OCP\\IUser;\n\ninterface IContactsStore {... | php | chosen |
[
{
"from": "system",
"value": "Add error message for 401\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2015 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed in the hopes of\n * attracting more community contributions to the core ecosystem of osu!... | php | chosen |
[
{
"from": "system",
"value": "Add test for getting help for invalid commands\n"
},
{
"from": "human",
"value": "<?php\n\nuse Ockcyp\\WpTerm\\Command\\HelpCommand;\n\nclass HelpCommandTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n $this->helpCommand = new ... | php | chosen |
[
{
"from": "system",
"value": "tests: Fix tests of router console\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Composer\\Autoload\\ClassLoader;\n\nif (!class_exists('ComposerMock', false)) {\n class ComposerMock extends ClassLoader\n {\n public function... | php | chosen |
[
{
"from": "system",
"value": "Set game id for live.\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('../htdocs/config.inc');\nrequire_once(LIB . 'Default/Globals.class.inc');\n\nrequire_once(get_file_loc('ChessGame.class.inc'));\n\nSmrSession::$game_id = 2;\n\n$db = new SmrMySqlDatabase()... | php | chosen |
[
{
"from": "system",
"value": "Use WP query for relationship field to get Timber posts\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template Name: Homepage\n */\n\n$data = Timber::get_context();\n$data['post'] = new TimberPost();\n$data['carousel'] = get_field('acf_carouse... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal error when Timber is not installed\n"
},
{
"from": "human",
"value": "<?php\n\nclass Maera_Development {\n\n\tfunction __construct() {\n\n\t\tif ( self::dev_mode() ) {\n\t\t\t$this->jetpack_dev_mode();\n\t\t\t$this->no_timber_caching();\n\t\t}\n\n\t}\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Allow dynamicObject update only when session is of type admin\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package plugins.metadata\n * @subpackage model\n */\nclass MetadataDynamicObjectPeer extends MetadataPeer implements IMetadataPeer\n{\n public static ... | php | chosen |
[
{
"from": "system",
"value": "Add pull to load remote chagnes in before\n"
},
{
"from": "human",
"value": "<?php namespace Kironuniversity\\Git\\Controllers;\n\nuse BackendMenu;\nuse Backend\\Classes\\Controller;\nuse GitWrapper\\GitWrapper;\nuse Flash;\n/**\n * Deploy Back-end Controller\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to, create cards as a purchase action\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\PaymentExpress\\Message;\n\n/**\n * PaymentExpress PxPost Create Credit Card Request\n */\nclass PxPayCreateCardRequest extends PxPayAuthorizeRequest... | php | chosen |
[
{
"from": "system",
"value": "III-680: Fix serialization issue in CachedDefaultSearchService (continued).\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Offer;\n\ninterface OfferIdentifierInterface extends \\JsonSerializable\n{\n /**\n * @return string\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix error on PHP >= 5.5"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace PhpToZephir\\CodeCollector;\n\nclass DirectoryCodeCollector implements CodeCollectorInterface\n{\n\t/**\n\t * @var array\n\t */\n\tprivate $directories;\n\n\t/**\n\t * @param array $code\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unsupported transchoice translation option\n\nFor now the i18n extension does not support translate options.\n"
},
{
"from": "human",
"value": "<?php\nnamespace OpenConext\\EngineBlockBundle\\Twig\\Extensions\\Extension;\n\nuse Twig_Extensions_Extension_I18n;... | php | chosen |
[
{
"from": "system",
"value": "Fix documentation for method getLastError\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gelf\\Transport;\n\nuse Gelf\\MessageInterface as Message;\n\n/**\n * A wrapper for any AbstractTransport to ignore any kind of errors\n * @package Gelf\\Transport\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Allow matching the same regex id multiple times\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laurentvw\\Scrapher\\Selectors;\n\nclass RegexSelector extends Selector\n{\n public function getMatches()\n {\n $matches = array();\n\n preg_mat... | php | chosen |
[
{
"from": "system",
"value": "Add slash to symbol characters\n\nPasswords which only contain a slash as symbol currently do fail the validateSymbols category. Therefore the missing slash has been added to the symbols regex"
},
{
"from": "human",
"value": "<?php\n\nnamespace Schuppo\\PasswordStre... | php | chosen |
[
{
"from": "system",
"value": "Make EOF LineFeed run last"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the PHP CS utility.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in... | php | chosen |
[
{
"from": "system",
"value": "Add featured image to home list\n"
},
{
"from": "human",
"value": " <article @php(post_class('p-2'))>\n <a href=\"{{ get_permalink() }}\">\n <header>\n <h2 class=\"entry-title mt-0\">{{ get_the_title() }}</h2>\n @include('partials/entry-meta')\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.