conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix incorrect return type definition\n" }, { "from": "human", "value": "<?php\n\nnamespace IrishDan\\NotificationBundle\\Formatter;\n\nuse IrishDan\\NotificationBundle\\Notification\\NotificationInterface;\nuse Nexmo\\Message\\MessageInterface;\n\n/**\n * Interface ...
php
chosen
[ { "from": "system", "value": "Add tags support for app creation.\n" }, { "from": "human", "value": "<?php\n\nclass Pushed_App\n\n{\n\n\tpublic function __construct(Pushed $master)\n\n\t{\n\n\t\t$this->master = $master;\n\n\t}\n\n\tpublic function newApp($params = [])\n\n\t{\n\n\t\t$mandatory_par...
php
chosen
[ { "from": "system", "value": "Add a <reviewer, revision> key to the reviewers table\n\nSummary:\nRef T10967. I'm not 100% sure we need this, but the old edge table had it and I recall an issue long ago where not having this key left us with a bad query plan.\n\nOur data doesn't really provide a way to test ...
php
chosen
[ { "from": "system", "value": "Update the admin interface and demo site generator\n\nUpdate the admin interface to feature a fully responsive, fully retina, cleaned up look and feel based on Bootstrap 3. Simultaniously updated the generated demo site to be more in line with what we use as a starting point fo...
php
chosen
[ { "from": "system", "value": "Use new static methods to load libs as well as perform notification.\nNeed to find out the best practice for notification.\nDev manual notions towards e_module.php\n" }, { "from": "human", "value": "<?php\nif ( ! defined('e107_INIT')) {\n\texit;\n}\nrequire __DIR__ ...
php
chosen
[ { "from": "system", "value": "Fix for writing to .transifexrc\n" }, { "from": "human", "value": "<?php\r\n\r\nif (!getenv('TRAVIS')) {\r\n\techo \"Must be run in Travis-CI environment\";\r\n\texit(1);\r\n}\r\n\r\n$password = getenv('TRANSIFEX_PASSWORD');\r\nif (!$password) {\r\n\techo \"Transife...
php
chosen
[ { "from": "system", "value": "Add sub-info class and comments link.\n" }, { "from": "human", "value": "<?php get_header(); ?>\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<div class=\"col-md-8 col-md-offset-2\">\n\t\t\t<?php while ( have_posts() ) : the_post(); ?>\n\t\t\t\t<div class=\...
php
chosen
[ { "from": "system", "value": "Rename datetime to dateTime to keep consistency.\n" }, { "from": "human", "value": "<?php\n\nnamespace CatLab\\Requirements\\Enums;\n\n/**\n * Interface PropertyType\n * @package CatLab\\RESTResource\\Contracts\n */\nclass PropertyType\n{\n const INTEGER = 'integ...
php
chosen
[ { "from": "system", "value": "Add test to create a plain setting\n" }, { "from": "human", "value": "<?php namespace Modules\\Setting\\Tests;\n\nclass EloquentSettingRepositoryTest extends BaseSettingTest\n{\n public function setUp()\n {\n parent::setUp();\n }\n\n /** @test */\...
php
chosen
[ { "from": "system", "value": "Fix issue with header IN wrap.\n" }, { "from": "human", "value": "<?php\n\nuse Roots\\Sage\\Config;\nuse Roots\\Sage\\Wrapper;\n\n?>\n<!doctype html>\n<html class=\"no-js\" <?php language_attributes(); ?>>\n <?php get_template_part('templates/head'); ?>\n <body <?...
php
chosen
[ { "from": "system", "value": "Throw an exception if there are no more IdFrames\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenConext\\Component\\EngineBlockFixtures;\n\nuse OpenConext\\Component\\EngineBlockFixtures\\DataStore\\AbstractDataStore;\n\n/**\n * Ids\n * @package OpenConext...
php
chosen
[ { "from": "system", "value": "Test for behaviour when badge does not exist\n" }, { "from": "human", "value": "<?php\n\nnamespace UoMCS\\OpenBadges\\Backend;\n\nclass BadgeTest extends DatabaseTestCase\n{\n const BADGE_EXISTS_ID = 1;\n const BADGE_DOES_NOT_EXIST_ID = 99999;\n\n public function...
php
chosen
[ { "from": "system", "value": "Update example code to utilize the exception that may be provided by samlresponse->is_valid()\n" }, { "from": "human", "value": "<?php\n\n error_reporting(E_ALL);\n\n require 'settings.php';\n\n require 'lib/onelogin/saml.php';\n\n $samlresponse = new SamlRespon...
php
chosen
[ { "from": "system", "value": "Fix kick bug causing crash\n" }, { "from": "human", "value": "<?php namespace Dan\\Irc\\Packets; \n\nuse Dan\\Contracts\\PacketContract;\n\nclass PacketKick implements PacketContract {\n\n public function handle($from, $data)\n {\n $user = user($from);\...
php
chosen
[ { "from": "system", "value": "Add config tag for config publish\n" }, { "from": "human", "value": "<?php\n\nnamespace Sztyup\\Authsch;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AuthschServiceProvider extends ServiceProvider\n{\n public function register()\n {\n $this->ap...
php
chosen
[ { "from": "system", "value": "Add pinentry mode loopback to gpg command\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the DB Backup utility.\n *\n * (c) Tom Adam <tomadam@instantiate.co.uk>\n *\n * This source file is subject to the MIT license that is bundled\n * with th...
php
chosen
[ { "from": "system", "value": "Add support for emails notifications\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nuse App\\Entities\\Lead;\nuse Core\\Controllers\\EmailController as Email;\nuse Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface;\n\nclass Lead...
php
chosen
[ { "from": "system", "value": "Remove email parameter. The email address will be used to login, $username will be the email address, so no need for a separate $email variable\n" }, { "from": "human", "value": "<?php\n\t\n\t\t\t//Set database login parameters\n\t\t\tdefine('HOST', 'localhost');\n\...
php
chosen
[ { "from": "system", "value": "Add maximum and minimum time.\n" }, { "from": "human", "value": "<?php\n$cmd = \"wget {$argv[1]} --no-check-certificate --delete-after -q --output-document=/dev/null\";\n\n$avg = 0;\n$iterations = 10;\n\nfor ($i =0; $i < $iterations; $i++) {\n $start = microtime(tr...
php
chosen
[ { "from": "system", "value": "Add 'cos_get_field' and 'cos_the_field' to mimic ACF's get_field and the_field\n" }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: Culture Object Sync\n * Plugin URI: http://www.gladdy.co.uk/projects/culture-object-sync\n * Description: A framework as a p...
php
chosen
[ { "from": "system", "value": "Move the taxonomy table definition into a class" }, { "from": "human", "value": "<?php\nnamespace Bolt\\Database\\Table;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Table for taxonomy data.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass Taxo...
php
chosen
[ { "from": "system", "value": "Update Job to use laravel 5.3's traits\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Iep\\Legacy\\Commands;\n\nuse File;\nuse App\\Jobs\\Job;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contra...
php
chosen
[ { "from": "system", "value": "Replace Japanese comment by English\n" }, { "from": "human", "value": "<?php\n //URLの引数を見て、適切なphpコードを呼び出す。\n\n if(isset($_GET['pid']) or isset($_GET['vid']) or isset($_GET['sid'])) {\n //オブジェクト詳細表示\n require_once('idetail.php');\n } elseif(isset($_GET['aid'...
php
chosen
[ { "from": "system", "value": "Revert \"Ensure that comparison time isn't affected by different string lengths\"\n\nThis reverts commit 3b67e0c2c953727b203a9caafb227b62b4b4c39a.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @copyright Frederic G. Østby\n * @license http://www.makoframew...
php
chosen
[ { "from": "system", "value": "Fix a bad call to \"writeInfo()\" in \"bin/phd stop\" with no PHABRICATOR_INSTANCE defined\n\nSummary: See <https://discourse.phabricator-community.org/t/phd-status-calls-to-undefined-method-when-theres-no-instance/2918>. This call should be `logInfo()`.\n\nTest Plan:\n - Purg...
php
chosen
[ { "from": "system", "value": "Rename test to use class convention\n" }, { "from": "human", "value": "<?php\n\nuse Rawebone\\Tapped\\Comparator;\nuse Rawebone\\Tapped\\Extension;\nuse Rawebone\\Tapped\\Extensions;\nuse function Rawebone\\Tapped\\test;\n\n\ntest('Extensions can be registered and e...
php
chosen
[ { "from": "system", "value": "Fix config key in ModuleOptions factory\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Riskio\\IdempotencyModule\\Container;\n\nuse Interop\\Container\\ContainerInterface;\nuse Riskio\\IdempotencyModule\\ModuleOptions;\n\nclass Modul...
php
chosen
[ { "from": "system", "value": "Check if ip is in whitelist and not in blacklist\n\nThis can be useful when we define a subnet as whitelist but we want\nto exclude a particular ip, for example:\n\nwhitelist 192.168.0.*\nblacklist 192.168.0.50\n" }, { "from": "human", "value": "<?php\nnamespace Ove...
php
chosen
[ { "from": "system", "value": "Make curl follow redirects to prevent relocation in the future\n" }, { "from": "human", "value": "<?php\n\nnamespace Raffle;\n\nclass RandomService\n{\n /**\n * Base URL\n */\n const BASE_URL = 'https://www.random.org/integer-sets/?sets=1&min=%d&max=%d...
php
chosen
[ { "from": "system", "value": "Allow instantiation of the Barlesque object to be overridden.\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2012 Mo McRoberts.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian...
php
chosen
[ { "from": "system", "value": "Rename sql directory to migrations\n" }, { "from": "human", "value": "<?php\n\nuse Wedeto\\DB\\Query\\Builder AS QB;\nuse Wedeto\\DB\\Schema\\Table;\nuse Wedeto\\DB\\Schema\\Column;\nuse Wedeto\\DB\\Schema\\Index;\n\n$table = new Table(\n \"db_version\",\n new...
php
chosen
[ { "from": "system", "value": "Add designer photo and location to designer page.\n" }, { "from": "human", "value": "@extends('layout.app', [\n 'title' => $designer->getTranslation()->name . ' - Designer',\n 'body_id' => 'designer-page',\n 'body_class' => 'designer-page',\n])\n\n@section(...
php
chosen
[ { "from": "system", "value": "Update Tasks - Date : 25/10/2016\n" }, { "from": "human", "value": "<?php\n$pdo = new PDO('mysql:host=localhost;dbname=annahda', 'root', '');" }, { "from": "gpt", "value": "<?php\n$pdo = new PDO('mysql:host=mysql.hostinger.co.uk;dbname=u897984522_immo', ...
php
chosen
[ { "from": "system", "value": "Remove esacpe method at driver (use bind instead)\n\n" }, { "from": "human", "value": "<?php\n namespace DB\\Driver;\n\n /**\n * Interface for all database driver. Any database driver must implement\n * this class.\n *\n * @package DB\\Driver\n...
php
chosen
[ { "from": "system", "value": "Drop usage of Import model's type field in views\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('title', __('models.imports'))\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2 class=\"mb-3\">{{ __('models.imports') }}</h2>\n ...
php
chosen
[ { "from": "system", "value": "Add missing spaces, re-indent HTML\n" }, { "from": "human", "value": "\n<?php echo $head; ?>\n <div class=\"pure-g\">\n <h2><?php echo _('Facebook login successful!') ?></h2>\n <div class=\"pure-u-1 pure-u-md-1-3\">\n <p> <?php\n e...
php
chosen
[ { "from": "system", "value": "Change 'test' checkboxes to radio buttons. Rename form field from 'tests' to 'test'.\n" }, { "from": "human", "value": "<?php if ($tests): ?>\n\t\n<?=form_open($form_action); ?>\n<ul class=\"addons_index\">\t\n\n<?php foreach ($tests AS $addon): ?>\n\t<li class=\"ex...
php
chosen
[ { "from": "system", "value": "Remove unnecessary method on Home controller\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nclass HomeController extends BaseController\n{\n public function index($request, $response)\n {\n\t return $this->view->render($response,...
php
chosen
[ { "from": "system", "value": "Add more photoshopper tool functions\n\nNew function to resize to height\nGet dimensions now supported\n" }, { "from": "human", "value": "<?php\n/**\n * @license MIT\n * Full license text in LICENSE file\n */\n\nnamespace VLibrary\\Core\\Tool;\n\ninterface Photoshop...
php
chosen
[ { "from": "system", "value": "Use Laravel's app_path() to be able to check if a speaker exists instead of absolute path.\n" }, { "from": "human", "value": "<?php\n\nclass NewsController extends BaseController {\n\n /**\n * The events implementation.\n *\n * @var Static\n */\n protected $ev...
php
chosen
[ { "from": "system", "value": "Add explanatory comments regarding odd Jenkins behaviour\n" }, { "from": "human", "value": "<?php\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\n\n\nif (getenv('IS_JENKINS') === 'true') {\n $jenkinsNeedsThese = array(\n 'Stripe' => '/stripe/str...
php
chosen
[ { "from": "system", "value": "Use manual route definition over the route resource shortcut\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Routing\\Router;\n\n/** @var Router $router */\n\n$router->group(['prefix' =>'/block'], function (Router $router) {\n $router->bind('block...
php
chosen
[ { "from": "system", "value": "Add About RR to Front-Page\n" }, { "from": "human", "value": "<?php\n/*\nTemplate Name: Home Template\n*/\n?>\n<?php //get_template_part('templates/page', 'header'); ?>\n\n<div class=\"row\">\n <div class=\"col col-lg-12\">\n <?php get_template_part('templates/c...
php
chosen
[ { "from": "system", "value": "Fix count check of clusters in $grid\n" }, { "from": "human", "value": "<?php\n#\n# Retrieves and parses the XML output from gmond. Results stored\n# in global variables: $clusters, $hosts, $hosts_down, $metrics.\n# Assumes you have already called get_context.php.\n...
php
chosen
[ { "from": "system", "value": "Add function `single` and `log`\n" }, { "from": "human", "value": "<?php\n\nuse Upfor\\App;\n\nif (!function_exists('app')) {\n /**\n * Get the specified app instance\n *\n * @param string $name\n * @return \\Upfor\\App\n */\n function app...
php
chosen
[ { "from": "system", "value": "Revert \"Speed up non-existent class detection by not using exceptions\"\n\nThis reverts commit 5f79bf46ceb3644b69bdb100139d537c21b9da85.\n" }, { "from": "human", "value": "<?php\n\n\tclass PostgresDbWrapper extends PostgresDb {\n\t\t/**\n\t\t * Execute where method...
php
chosen
[ { "from": "system", "value": "Add wrappedApp property to cache wrapped app closure\n" }, { "from": "human", "value": "<?php\nnamespace Pux;\nuse ReflectionClass;\nuse Closure;\n\nclass Compositor\n{\n protected $stacks = array();\n\n protected $app;\n\n protected $mapApp;\n\n public ...
php
chosen
[ { "from": "system", "value": "Replace class with new name.\n\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 the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Use correct UserDTO parameter when searching\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Service;\n\nuse App\\Classes\\ElasticSearchBase;\nuse App\\Entity\\User;\n\nclass Search extends ElasticSearchBase\n{\n /**\n * @param array $params\n ...
php
chosen
[ { "from": "system", "value": "Update tool version to 0.9.2\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2016 Bitban Technologies, S.L.\n * Todos los derechos reservados.\n */\n\nnamespace Bitban\\PhpCodeQualityTools;\n\nclass PhpCodeQualityTools\n{\n const APP_NAME = 'Bitban ...
php
chosen
[ { "from": "system", "value": "Fix spec in which order of loading was different in travis server\n" }, { "from": "human", "value": "<?php\n\nnamespace Spec\\PHPSpec\\Loader;\n\nuse \\PHPSpec\\Loader\\DirectoryLoader,\n \\PHPSpec\\Util\\SpecIterator;\n\nclass DescribeDirectoryLoader extends \\P...
php
chosen
[ { "from": "system", "value": "Improve method to check if user is logged in\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\User;\n\nuse Session;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\n\nclass LoginController extends Controller\n{\n...
php
chosen
[ { "from": "system", "value": "Fix undefined variable $importedFrom when splitting a product from an item\n" }, { "from": "human", "value": "<?php\n/** @var \\WEEEOpen\\Tarallo\\User $user */\n/** @var \\WEEEOpen\\Tarallo\\ProductIncomplete|\\WEEEOpen\\Tarallo\\Product|null $base */\n\n$base = $b...
php
chosen
[ { "from": "system", "value": "Remove multiImpuestos, it should never exists\n" }, { "from": "human", "value": "<?php\nnamespace CfdiUtils\\Elements\\Pagos10;\n\nuse CfdiUtils\\Elements\\Common\\AbstractElement;\n\nclass Pago extends AbstractElement\n{\n public function addDoctoRelacionado(arr...
php
chosen
[ { "from": "system", "value": "Add abstract parse method to basetype\n" }, { "from": "human", "value": "<?php\nnamespace GetOptionKit\\ValueType;\n\nabstract class BaseType\n{\n public function __construct()\n {\n // code...\n }\n\n /**\n * Test a value to see if it fit the...
php
chosen
[ { "from": "system", "value": "Include global fields to PageInterface.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Type\\InterfaceType;\n\nuse Youshido\\GraphQL\\Type\\InterfaceType\\AbstractInterfaceType;\nuse ProcessWire\\GraphQL\\Type\\Object\\TemplatedPageType;...
php
chosen
[ { "from": "system", "value": "Switch to new namespaced master branch of XMLSecLibs\n" }, { "from": "human", "value": "<?php\n\nGit::$repositories['xmlseclibs'] = [\n 'remote' => 'https://github.com/robrichards/xmlseclibs.git',\n 'originBranch' => '1.4',\n 'workingBranch' => '1.4',\n ...
php
chosen
[ { "from": "system", "value": "Make slide start and end optional\n" }, { "from": "human", "value": "<?php\n\nnamespace Zeropingheroes\\Lanager\\Requests;\n\nclass StoreSlideRequest extends Request\n{\n use LaravelValidation;\n\n /**\n * Whether the request is valid\n *\n * @retu...
php
chosen
[ { "from": "system", "value": "Revert fixtures changes from 27547f7\n" }, { "from": "human", "value": "<?php\n/**\n * /core/app fixtures for mongodb app collection.\n */\n\nnamespace Graviton\\I18nBundle\\DataFixtures\\MongoDB;\n\nuse Doctrine\\Common\\DataFixtures\\FixtureInterface;\nuse Doctrin...
php
chosen
[ { "from": "system", "value": "Split signup/login into different links\n" }, { "from": "human", "value": "<li {{ Request::segment(1) == '' ? 'class=\"active\"' : '' }}><a href=\"{{ url('/') }}\">Home</a></li>\n\n@if (Auth::check())\n\t\n\t<li{{ Request::segment(1) == 'my-account' ? ' class=\"acti...
php
chosen
[ { "from": "system", "value": "Update core my_controller add blank after ','\n" }, { "from": "human", "value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\nrequire APPPATH.'/libraries/REST_Controller.php';\n\n/**\n * CodeIgniter Parsing Controller\n * \n * url请求...
php
chosen
[ { "from": "system", "value": "Add forced alias in config\n" }, { "from": "human", "value": "<?php\n/**\n * HiDev plugin for license generation.\n *\n * @link https://github.com/hiqdev/hidev-license\n * @package hidev-license\n * @license BSD-3-Clause\n * @copyright Copyright (c) 2015-20...
php
chosen
[ { "from": "system", "value": "Update file to version laravel 5.2\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware stack.\n ...
php
chosen
[ { "from": "system", "value": "Remove trailing line at end of file\n" }, { "from": "human", "value": "<?php\n\n/**\n * Application configuration for the production environment.\n */\n\n$app['db.options'] = include __DIR__ . '/../../db/prod.php';\n\n//$app['debug'] = true;\n$app['monolog.level'] =...
php
chosen
[ { "from": "system", "value": "Add descriptions for the ROTATION_* constants\n" }, { "from": "human", "value": "<?php\n/**\n * Box packing (3D bin packing, knapsack problem).\n *\n * @author Doug Wright\n */\ndeclare(strict_types=1);\n\nnamespace DVDoug\\BoxPacker;\n\n/**\n * An item to be packed...
php
chosen
[ { "from": "system", "value": "DONE: Drop testWithoutWhere because already tested in CM_Db_Query_AbstractTest\n" }, { "from": "human", "value": "<?php\n\nclass CM_Db_Query_CountTest extends CMTest_TestCase {\n\n\tpublic function testAll() {\n\t\t$query = new CM_Db_Query_Count('t`est', array('foo'...
php
chosen
[ { "from": "system", "value": "Fix temporary problem with GeneratedPuliFactory\n" }, { "from": "human", "value": "<?php\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\nuse Composer\\Autoload\\ClassLoader;\n\n/**\n * @var ClassLoader $loader\n */\n$loader = require __DIR__.'/../vendor/a...
php
chosen
[ { "from": "system", "value": "Allow submits from LostPasswordForm through\n" }, { "from": "human", "value": "<?php\n\n/**\n * Description of MemberLoginFilter\n *\n * @author marcus\n */\nclass MemberLoginFilter implements RequestFilter\n{\n \n public function postRequest(\\SS_HTTPRequest ...
php
chosen
[ { "from": "system", "value": "Remove unneeded abstract `handle()` method" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of CodeIgniter 4 framework.\n *\n * (c) CodeIgniter Foundation <admin@codeigniter.com>\n *\n * For the full copyright and license information, please view\...
php
chosen
[ { "from": "system", "value": "Add ability to check for multiple roles (using OR)\n" }, { "from": "human", "value": "<?php namespace Bican\\Roles;\n\ntrait HasRole {\n\n /**\n * User belongs to many roles.\n *\n * @return mixed\n */\n public function roles()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add missing docblock to concat helper\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace MattyG\\Handlebars\\Helper;\n\nclass ConcatHelper\n{\n public function __invoke(...$args)\n {\n $options = array_pop($args);\n r...
php
chosen
[ { "from": "system", "value": "Adjust test to new settings.\n" }, { "from": "human", "value": "<?php\n\nuse UWDOEM\\Framework\\Etc\\Settings;\n\nclass MockSettings extends Settings {\n\n public static function clear() {\n static::$settings = [];\n }\n}\n\n\nclass SettingsTest extends...
php
chosen
[ { "from": "system", "value": "Make quick iteration testing easier\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Contracts\\Console\\Kernel;\nuse Symfony\\Component\\Console\\Output\\ConsoleOutput;\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n$app = require __DIR__ . '/app.php...
php
chosen
[ { "from": "system", "value": "Support earlier versions of laravel that don't have ControllerMiddlewareOptions\n" }, { "from": "human", "value": "<?php\n\nnamespace Silber\\Bouncer\\Middleware;\n\nuse Illuminate\\Routing\\ControllerMiddlewareOptions;\n\ntrait AuthorizesResources\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Disable HTML entity encoding in some tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Functional;\n\nuse App\\Models\\User;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\ncla...
php
chosen
[ { "from": "system", "value": "Prepend js, improving load times\n" }, { "from": "human", "value": "<?php class Analytics_PageTool extends PageTool {\n/**\n * Google Analytics.\n * This simple PageTool doesn't have any functionality in the go() method.\n * Instead, pass the tracking code into the ...
php
chosen
[ { "from": "system", "value": "Fix lowercase reference to $WP_User->ID on roots_entry_meta()\n" }, { "from": "human", "value": "<?php\n\n// Return post entry meta information\nfunction roots_entry_meta() {\n echo '<time class=\"updated\" datetime=\"'. get_the_time('c') .'\" pubdate>'. sprintf(__...
php
chosen
[ { "from": "system", "value": "Fix an assertion due to a related view rename\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illumi...
php
chosen
[ { "from": "system", "value": "Use tabs instead of spaces to indent docblock\n\nsvn commit r15184\n" }, { "from": "human", "value": "<?php\n\n/* vim: set noexpandtab tabstop=4 shiftwidth=4 foldmethod=marker: */\n\nrequire_once 'Swat/SwatEntry.php';\n\n/**\n * A single line search entry widget\n *...
php
chosen
[ { "from": "system", "value": "Create dir only if it does not exit, not if the file does not exist\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace PhpSchool\\PhpWorkshop\\Logger;\n\nuse Psr\\Log\\AbstractLogger;\nuse Psr\\Log\\LoggerInterface;\n\nclass Logger ext...
php
chosen
[ { "from": "system", "value": "Clean up the profiles index action\n" }, { "from": "human", "value": "<?php\n\nnamespace Frontend\\Modules\\Profiles\\Actions;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was ...
php
chosen
[ { "from": "system", "value": "[TASK] Add a few unit tests for transaction handling\n" }, { "from": "human", "value": "<?php\nnamespace AndreasWolf\\DebuggerClient\\Tests\\Unit\\Protocol;\n\nuse AndreasWolf\\DebuggerClient\\Protocol\\DebugSession;\nuse AndreasWolf\\DebuggerClient\\Tests\\Unit\\Un...
php
chosen
[ { "from": "system", "value": "Add sql statement for creating the table that will store the deb data\n" }, { "from": "human", "value": "<?php include ('theme/header.php'); ?>\n\n<div class=\"row install-wrapper\">\n <div class=\"small-3 small-centered columns install-form\">\n <h1>Installatio...
php
chosen
[ { "from": "system", "value": "Set fieldset name for standard adjustments\nnecessary to be able to extend fieldset with form fields\n" }, { "from": "human", "value": "<?php\nclass Kwc_Basic_BackgroundWindowWidth_Form extends Kwc_Abstract_Composite_Form\n{\n protected function _initFields()\n ...
php
chosen
[ { "from": "system", "value": "Remove irrelvant methods in the test model\n" }, { "from": "human", "value": "<?php\n\nclass MockJsonModel extends Illuminate\\Database\\Eloquent\\Model\n{\n use \\ModelJsonColumn\\JsonColumnTrait;\n\n protected $json_columns;\n\n public function __construc...
php
chosen
[ { "from": "system", "value": "Fix namespace on solid ajax.\n" }, { "from": "human", "value": "<?php\n\nnamespace Solid\\Ajax\\Controllers;\n\nuse Illuminate\\Routing\\Controller as BaseController;\n\nclass Controller extends BaseController\n{\n /**\n * Execute an action on the controller....
php
chosen
[ { "from": "system", "value": "Fix issue releated to create and update of the version\n" }, { "from": "human", "value": "<?php\n\nnamespace Jira\\Service;\n\n\nuse Jira\\HttpClient;\n\nclass Version\n{\n /**\n * @var HttpClient\n */\n protected $client;\n\n /**\n * Project c...
php
chosen
[ { "from": "system", "value": "Revert \"Adjust default build directory for `elixir`\"\n\nThis reverts commit f38c2e156dfe61d2e55d98c8a59d5629d8e7cf1c.\n" }, { "from": "human", "value": "<?php\n\nif (! function_exists('public_path')) {\n /**\n * Get the path to the public folder.\n *\n ...
php
chosen
[ { "from": "system", "value": "Fix counting of non-countable versions for PHP 7.2" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sami utility.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * This source file is subject to the MIT license that is bundled\n * wi...
php
chosen
[ { "from": "system", "value": "Replace echo with `p` or `print_unescaped`\n\nUsing echo instead of `p` or `print_unescaped` is a bad style, to prevent people from copying it I've adjusted it." }, { "from": "human", "value": "<form action=\"<?php echo OC_Helper::linkToRoute('core_lostpassword_res...
php
chosen
[ { "from": "system", "value": "Fix warnings in widget form\n" }, { "from": "human", "value": "<?php\n\n/**\n * sfWidgetFormDuration is a text field that parses a duration (\"1:15\") into an integer\n * \n * @package limetracker\n * @subpackage widget\n * @author Michael Nutt <michael@nuttn...
php
chosen
[ { "from": "system", "value": "Throw exception when trying to access undefined property\n" }, { "from": "human", "value": "<?php\nnamespace Fathomminds\\Rest;\n\nuse Fathomminds\\Rest\\Contracts\\ISchema;\nuse Fathomminds\\Rest\\Schema\\TypeValidators\\ValidatorFactory;\nuse Fathomminds\\Rest\\Ex...
php
chosen
[ { "from": "system", "value": "Change type geting posts info\n" }, { "from": "human", "value": "<?php \nnamespace core\\site\\models;\nrequire_once __DIR__.'/../../common/BaseModel.php';\n\nuse \\core\\common\\BaseModel;\n\nclass PostModel extends BaseModel\n{\n public function getListOfPosts(...
php
chosen
[ { "from": "system", "value": "Allow whitespace after multiline code open dash\n" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\Lexer\\Scanner;\n\nuse Phug\\Lexer\\ScannerInterface;\nuse Phug\\Lexer\\State;\nuse Phug\\Lexer\\Token\\CodeToken;\nuse Phug\\Lexer\\Token\\TextToken;\n\nclas...
php
chosen
[ { "from": "system", "value": "Hide actions not allowed from menu\n" }, { "from": "human", "value": "<?php\nnamespace Anavel\\Crud\\View\\Composers;\n\nuse Anavel\\Crud\\Contracts\\Abstractor\\ModelFactory as ModelAbstractorFactory;\nuse Route;\n\nclass SidebarComposer\n{\n protected $modelFac...
php
chosen
[ { "from": "system", "value": "Edit text for installer page\n" }, { "from": "human", "value": "<?php $this->pageTitle = Yii::app()->name . '- Further Steps'; ?>\n\n<h1><?php echo CHtml::encode(Yii::app()->name); ?> - Further Steps</h1>\n\n<p><b>Success! The database has been set up and Metadata G...
php
chosen
[ { "from": "system", "value": "Fix country ISO code (2) validation rule to match exactly 2 chars long\n" }, { "from": "human", "value": "<?php namespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\nuse App\\Contact;\nuse App\\Business;\nuse Session;\nuse Input;\n\nclass ContactFormR...
php
chosen
[ { "from": "system", "value": "Fix Pocopay test against test url\n" }, { "from": "human", "value": "<?php\n\nnamespace RKD\\BanklinkTests;\n\n/**\n * Test suite for LHV banklink.\n *\n * @author Rene Korss <rene.korss@gmail.com>\n */\nclass PocopayTest extends SEBTest\n{\n protected $bankClas...
php
chosen
[ { "from": "system", "value": "Fix displaying legend for fieldset" }, { "from": "human", "value": "<?php\n\nnamespace Jasny\\FormBuilder;\n\n/**\n * Representation of an HTML <fieldset>.\n * \n * @option legend <legend> of the fieldset\n */\nclass Fieldset extends Group\n{\n /**\n * @var ...
php
chosen
[ { "from": "system", "value": "Prepare a new test for checking root item creation\n" }, { "from": "human", "value": "<?php namespace Modules\\Menu\\Tests;\n\nclass MenuRepositoryTest extends BaseMenuTest\n{\n /** @test */\n public function it_creates_menu()\n {\n $menu = $this->cr...
php
chosen