conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Implement the ypdate form controller\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\mailingUsers;\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\n\nclass MailingController extends Controller\n{\n /**\n *...
php
chosen
[ { "from": "system", "value": "Add caret to signify dropdown menu\n\nSorry, don't know how to merge commits! :P" }, { "from": "human", "value": "@inject('user', 'Illuminate\\Contracts\\Auth\\Authenticatable')\n\n@if(get_meta('navigation::usernav', true))\n<ul class=\"nav navbar-nav navbar-right\"...
php
chosen
[ { "from": "system", "value": "Set CI_ENVIRONMENT before return false if uri is /index.php\n" }, { "from": "human", "value": "<?php\n/**\n * CodeIgniter PHP-Development Server Rewrite Rules\n *\n * This script works with serve.php to help run a seamless\n * development server based around PHP's b...
php
chosen
[ { "from": "system", "value": "Add more rules in the documentation router.\n" }, { "from": "human", "value": "<?php\n\nuse Hoa\\Router;\n\n$router = new Router\\Http();\n$router\n ->get(\n 'c',\n '(?<vendor>)/(?<chapter>)\\.html'\n )\n ->get(\n 'hack',\n '(?<c...
php
chosen
[ { "from": "system", "value": "Remove syslog entries which used an invalid first parameter.\n" }, { "from": "human", "value": "<?php\n\n\t# $Id: logout.php,v 1.3 2011-10-02 18:58:36 dan Exp $\n\t#\n\t# Copyright (c) 1998-2003 DVL Software Limited\n\n\trequire_once($_SERVER['DOCUMENT_ROOT'] . '/.....
php
chosen
[ { "from": "system", "value": "Load in the mockery trait\n" }, { "from": "human", "value": "<?php\n\nnamespace Bugsnag\\BugsnagLaravel\\Tests\\Request;\n\nuse Bugsnag\\BugsnagLaravel\\Request\\LaravelRequest;\nuse Bugsnag\\BugsnagLaravel\\Request\\LaravelResolver;\nuse Bugsnag\\Request\\NullReque...
php
chosen
[ { "from": "system", "value": "Remove ul class from search form\n" }, { "from": "human", "value": "<header>\n <div class=\"top-bar\">\n <div class=\"top-bar-title\">\n <span data-responsive-toggle=\"responsive-menu\" data-hide-for=\"medium\">\n <!-- <button class=\"menu-icon dark\" typ...
php
chosen
[ { "from": "system", "value": "Mark class abstract as it contains abstract methods\n" }, { "from": "human", "value": "<?php\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\n\nclass Kwf_SymfonyKernel extends Kernel\n{\n public function __cons...
php
chosen
[ { "from": "system", "value": "Validate user exists before sending its info out\n" }, { "from": "human", "value": "<?php\n$u = new User();\n$ui = UserInfo::getByID($u->getUserID());\n\n$userInfo = [\n 'name' => $u->getUserName(),\n 'firstName' => $ui->getAttribute('first_name')\n];\n\n// Captur...
php
chosen
[ { "from": "system", "value": "Update initial test to have APIKey\n" }, { "from": "human", "value": "<?php\nnamespace phpSmug\\Tests;\n\nuse phpSmug\\Client;\n\nclass ClientTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @test\n */\n public function shouldNotHaveToPassHttpCli...
php
chosen
[ { "from": "system", "value": "Add node column to assessments table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateAssessmentsTable extends Migration\n{\n\t/**\n\t * Run the migrations.\n\t ...
php
chosen
[ { "from": "system", "value": "Move Charts loading up to the parent template\n" }, { "from": "human", "value": "<!-- resources/views/gendata/hvl.blade.php -->\n<table class=\"table table-striped table-hover\">\n <thead>\n <tr>\n <th>kV</th>\n <th>HVL</th>\n ...
php
chosen
[ { "from": "system", "value": "Fix count of array rank\n\n15 was on my local computer." }, { "from": "human", "value": "<?php\n\nnamespace Chay22\\RecSelMeter\\Tests;\n\nuse Chay22\\RecSelMeter\\Config;\n\nclass ConfigTests extends \\PHPUnit_Framework_TestCase\n{\n\tpublic $config;\n\t/**\n\t * T...
php
chosen
[ { "from": "system", "value": "[MultipleBundles] Clean up the rest of repositories\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 th...
php
chosen
[ { "from": "system", "value": "Add test for callback combination in WhenQueue\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp\\Test;\n\nclass Promise {\n use \\Amp\\Internal\\Placeholder {\n resolve as public;\n fail as public;\n }\n}\n\nclass PromiseTest extends \\A...
php
chosen
[ { "from": "system", "value": "Use real rancher instance for tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Rancher\\Tests;\n\nuse Rancher\\Client;\n\nclass ClientTest extends \\PHPUnit_Framework_TestCase\n{\n public function testGetClient()\n {\n $client = new Client(nu...
php
chosen
[ { "from": "system", "value": "Add Dotenv variable loading to the test bootstrapper.\n\nWhen loading tests, load the variables from .env.test if it exists.\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nif (!defined('sugarEntry')) {\n define('suga...
php
chosen
[ { "from": "system", "value": "Configure error logging to use the correct log level\n" }, { "from": "human", "value": "<?php\n\nnamespace REBELinBLUE\\Deployer\\Bootstrap;\n\nuse Illuminate\\Contracts\\Foundation\\Application;\nuse Illuminate\\Foundation\\Bootstrap\\ConfigureLogging as BaseLoggin...
php
chosen
[ { "from": "system", "value": "Create specific method and view for searching a hashtag\n" }, { "from": "human", "value": "<?php\nnamespace App\\Controllers;\n\nuse App\\Framework\\Mvc\\Controller\\BasicController;\nuse App\\Services\\Instagram\\InstagramService;\n\n\nclass HomeController extends ...
php
chosen
[ { "from": "system", "value": "Test Register email and login\n" }, { "from": "human", "value": "<?php \n$I = new ApiTester($scenario);\n$I->wantTo('Email login');\n$I->haveHttpHeader('Content-Type', 'application/x-www-form-urlencoded');\n\n$I->sendPOST('oauth/password', [\n 'username' => 'wat0...
php
chosen
[ { "from": "system", "value": "Fix some redundant @return phpdoc\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 * fil...
php
chosen
[ { "from": "system", "value": "Use addProvider method instead of constructor\n" }, { "from": "human", "value": "<?php\n\nnamespace DisposableEmailChecker\\Tests;\n\nuse DisposableEmailChecker\\Checker;\nuse DisposableEmailChecker\\Provider\\ChainProvider;\nuse DisposableEmailChecker\\Provider\\In...
php
chosen
[ { "from": "system", "value": "Update parameters for deleting projects\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\API\\Delete;\n\nuse AppBundle\\AppBundle;\nuse AppBundle\\Entity\\WebuserData;\nuse AppBundle\\Entity\\FennecUser;\nuse AppBundle\\Service\\DBVersion;\n\n/**\n *...
php
chosen
[ { "from": "system", "value": "Fix issues in artisan command.\n" }, { "from": "human", "value": "<?php\n\nnamespace ConceptByte\\TimeTraveller\\Console;\n\nuse DateTime;\nuse Illuminate\\Console\\Command;\n\nclass ClearRevisionsCommand extends Command\n{\n /**\n * The name and signature of...
php
chosen
[ { "from": "system", "value": "Add method to generate a site hash for a domain\n" }, { "from": "human", "value": "<?php\n\n/**\n * Solr data helper\n *\n * @category Asm\n * @package Asm_Solr\n * @author Ingo Renner <ingo@infielddesign.com>\n */\nclass Asm_Solr_Helper_Data extends Mage_Core_Helpe...
php
chosen
[ { "from": "system", "value": "Update content in default blocker page.\n" }, { "from": "human", "value": "<?php\n use yii\\helpers\\Url;\n use yii\\helpers\\Html;\n/* @var $this yii\\web\\View */\n ?>\n<div class=\"ishtar-default-index\">\n <h1><?= $this->context->action->uniqueId ?></h1...
php
chosen
[ { "from": "system", "value": "ADD exemple vmlist for admin" }, { "from": "human", "value": "<?php\n\n/**\n * @var yii\\widgets\\ActiveForm $form\n * @var dektrium\\user\\models\\User $user\n */\n\n?>\n\n<?= $form->field($user, 'username')->textInput(['maxlength' => 25]) ?>\n<?= $form->field($...
php
chosen
[ { "from": "system", "value": "Add test to check failed status return failed\n" }, { "from": "human", "value": "<?php\n\nnamespace Maenbn\\Tests\\GitlabCiBuildStatus;\n\nuse Maenbn\\GitlabCiBuildStatus\\Client;\n\nclass ClientTest extends \\PHPUnit_Framework_TestCase\n{\n public function testS...
php
chosen
[ { "from": "system", "value": "Use assertContains instead of assertTrue + strpos\n" }, { "from": "human", "value": "<?php\n\nuse Valet\\PhpFpm;\nuse Illuminate\\Container\\Container;\n\nclass PhpFpmTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n $_SERVER['S...
php
chosen
[ { "from": "system", "value": "Check default and suffix parameters uniqueness\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n\nnamespace Apitte\\Core\\Annotation\\Controller;\n\nuse Doctrine\\Common\\Annotations\\Annotation\\Target;\nuse Doctrine\\Common\\Annotations\\Annota...
php
chosen
[ { "from": "system", "value": "Fix exception when SSH key is not found\n" }, { "from": "human", "value": "<?php\nnamespace Platformsh\\Cli\\Command\\SshKey;\n\nuse Platformsh\\Cli\\Command\\CommandBase;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Inpu...
php
chosen
[ { "from": "system", "value": "Change the order of execution of various commands" }, { "from": "human", "value": "<?php\n\nnamespace Rafni\\LaravelToolkit\\Console\\Scaffolding;\n\nuse Illuminate\\Console\\Command;\n\nclass PackageBuilder extends Command\n{\n /**\n * The name and signature...
php
chosen
[ { "from": "system", "value": "Test for ttl invalidation for Memcache live\n" }, { "from": "human", "value": "<?php\nclass MemcacheCacheLiveTest extends BaseCacheTest\n{\n\n\tpublic function setUp()\n\t{\n\t\tparent::setUp();\n\t\t$memcache = new Memcache();\n\t\t$memcache->connect('localhost', 1...
php
chosen
[ { "from": "system", "value": "Load fixture in test setUp\n" }, { "from": "human", "value": "<?php\n\nnamespace Nmc\\DynamicPageBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public function testInd...
php
chosen
[ { "from": "system", "value": "BB-4395: Create entity MenuUpdate that extends MenuUpdate model\n- improve tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\NavigationBundle\\Tests\\Unit\\Entity;\n\nuse Oro\\Component\\Testing\\Unit\\EntityTestCaseTrait;\n\nuse Oro\\Bundle\\...
php
chosen
[ { "from": "system", "value": "Add header for cross-domain requests\n" }, { "from": "human", "value": "<?php \n\nnamespace Exchange;\n\nini_set('display_errors', 1);\n\nrequire 'vendor/autoload.php';\nrequire 'exchange.php';\n\nuse \\Flight;\n\n\\mb_internal_encoding('UTF-8');\n\\mb_http_output('...
php
chosen
[ { "from": "system", "value": "Store + Shipping + Menus\n\n* Using new Store feature from Elcodi\n* Added Store management in Admin\n* Changed all definitions that was depending on such implementation\n* Removed under construction logic and tests\n\n* Removed menu fixtures\n* Defined them as dynamic content....
php
chosen
[ { "from": "system", "value": "Remove opt-in checkbox from sign in form.\n" }, { "from": "human", "value": " {{ Form::label('first_name', 'First Name') }}\n {{ form_error('first_name', $errors) }}\n {{ Form::text('first_name', null, ['placeholder' => 'What\\'s your name?']) }}\n\n {{ Form::la...
php
chosen
[ { "from": "system", "value": "Replace Media Error Exception with a less site breaking alternative\n" }, { "from": "human", "value": "<?php namespace media;\n\nuse spitfire\\storage\\database\\Table;\n\nclass MissingThumbModel extends ThumbModel\n{\n\t// Disable database access\n\tpublic function...
php
chosen
[ { "from": "system", "value": "Fix add_data in Kohana_HAPI_Response_Encoder classes to be recursive\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * @license http://www.opensource.org/licenses/mit-license.php MIT\n * @author Ando Roots <ando...
php
chosen
[ { "from": "system", "value": "Test that output is being passed to load method\n" }, { "from": "human", "value": "<?php\n\nclass CM_Provision_LoaderTest extends CMTest_TestCase {\n\n public function testLoad() {\n $serviceManager = new CM_Service_Manager();\n\n $script = $this->m...
php
chosen
[ { "from": "system", "value": "Change giphy method from random to search and select a random image of the result.\n" }, { "from": "human", "value": "<?php\nnamespace Bitjo\\Commands;\n\nuse Slim\\Http\\Request;\nuse Slim\\Http\\Response;\nuse rfreebern\\Giphy;\nuse Monolog\\Logger;\n\nclass Giphy...
php
chosen
[ { "from": "system", "value": "Modify Parameter trait to get all not null properties\n" }, { "from": "human", "value": "<?php\n\nnamespace AdobeConnectClient\\Traits;\n\nuse \\AdobeConnectClient\\Helper\\StringCaseTransform as SCT;\nuse \\AdobeConnectClient\\Helper\\BooleanTransform as B;\n\n/**\...
php
chosen
[ { "from": "system", "value": "Fix remarkup \"NOTE\" block syntax\n\nSummary: Currently, HTML in NOTE blocks gets escaped, because the \"rtrim()\" applies to a PhutilSafeHTML object and implicitly converts it to (unsafe) string. Instead, trim first.\n\nTest Plan: Typed `NOTE: **x**` into remarkup, saw bold \...
php
chosen
[ { "from": "system", "value": "Allow js requests from any website\n" }, { "from": "human", "value": "<?php\n\n//\n// NOTE!\n// Этот PHP скриптик вытаскивает все картинки с расписанием со странички:\n// http://lumenfilm.com/gusev/affishe\n//\n// и возвращает JSON, который затем используется в kino...
php
chosen
[ { "from": "system", "value": "Store the Etherpad API key as a secret.\n\nCurrently, the Etherpad API key were public, with the rationale the\ninstallation is a public one, everybody can anonymously or with a name\nmake edits, destroy pads, create new pads, etc.\n\nNasqueron is interested to get the potentia...
php
chosen
[ { "from": "system", "value": "Add superadmin trait to user with superadmin email\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\User;\nuse Illuminate\\Http\\Request;\n\nclass APIController extends Controller\n{\n public function NoAPIResponse(Reque...
php
chosen
[ { "from": "system", "value": "Add link to contributors graph\n" }, { "from": "human", "value": "<?php\n/**\n * The template for displaying the footer.\n *\n * Contains the closing of the #content div and all content after\n *\n * @package socket.io-website\n */\n?>\n\n\t</div><!-- #content -->\n...
php
chosen
[ { "from": "system", "value": "Connect securely with web irc\n" }, { "from": "human", "value": "@section('content')\n\t<div class=\"container main content\">\n\t\t<iframe src=\"https://kiwiirc.com/client/irc.rizon.net/?theme=cli#r/a/dio\"\n\t\t\tstyle=\"border:0; width:100%; height:700px;\"\n\t\t...
php
chosen
[ { "from": "system", "value": "Use random_int() instead of rand()\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHP Copy/Paste Detector (PHPCPD).\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license infor...
php
chosen
[ { "from": "system", "value": ":white_check_mark: Add a test for org settings data\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\nuse App\\Org;\nuse App\\User;\n\nclass DataTest extends Tes...
php
chosen
[ { "from": "system", "value": "Add finder to retrieve register files\n" }, { "from": "human", "value": "<?php\n\nnamespace Chris\\Composer\\AutoregisterClassmapPlugin;\n\nuse Chris\\Composer\\AutoregisterClassmapPlugin\\Container\\ModuleContainer;\nuse Composer\\Composer;\nuse Composer\\IO\\IOInt...
php
chosen
[ { "from": "system", "value": "Revert \"check multiple acheteurs popup formulaire validation parcellaire\"\n\nThis reverts commit 8c66cde56f88d699a468d6515a1d8c8e9e1df8b2.\n" }, { "from": "human", "value": "<?php\n\nclass ParcellaireValidationForm extends acCouchdbObjectForm {\n\n public funct...
php
chosen
[ { "from": "system", "value": "Fix syntax error in PHP 5\n" }, { "from": "human", "value": "<?php\n\nnamespace Bugsnag\\BugsnagLaravel\\Tests;\n\nuse Bugsnag\\BugsnagLaravel\\BugsnagServiceProvider;\nuse GrahamCampbell\\TestBench\\AbstractPackageTestCase;\n\nabstract class AbstractTestCase extend...
php
chosen
[ { "from": "system", "value": "Add favicon tag to header.\n\ngit-svn-id: 245d8f85226f8eeeaacc1269b037bb4851d63c96@867 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n" }, { "from": "human", "value": "<?php session_start(); ?>\n<!DOCTYPE html>\n\n<head>\n\t<title>ClinicCases - Online Case Management Softwar...
php
chosen
[ { "from": "system", "value": "Remove an meta model if the corresponding value is considered empty\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE...
php
chosen
[ { "from": "system", "value": "Remove redundant @version tag + fix typos\n" }, { "from": "human", "value": "<?php\n/***************************************************************************\n * @title PH7 Template Engine\n * @desc We define functions (and helpers).\n * ...
php
chosen
[ { "from": "system", "value": "Update foreign language spam detector\n" }, { "from": "human", "value": "<?php\nnamespace Lio\\Content;\n\nclass ForeignLanguageSpamDetector implements SpamDetector\n{\n /** @inheritdoc */\n public function detectsSpam($value)\n {\n return (bool) pre...
php
chosen
[ { "from": "system", "value": "Make dough_currency as twig filter instead of the function.\n\nAnd the filter returns a raw value of the Money instead of\nformatted string. This allows use chain filters.\n" }, { "from": "human", "value": "<?php\n\nnamespace Dough\\Twig;\n\nuse Dough\\Bank\\BankInt...
php
chosen
[ { "from": "system", "value": "Enable cache for user online paging\n" }, { "from": "human", "value": "<?php\n\nclass CM_Paging_User_Online extends CM_Paging_User_Abstract {\n\n public function __construct() {\n $source = new CM_PagingSource_Sql('userId', 'cm_user_online');\n\n pa...
php
chosen
[ { "from": "system", "value": "Add edit and delete buttons by default in an abstractgrid\n" }, { "from": "human", "value": "<?php\n\nnamespace Opifer\\CrudBundle\\Datagrid\\Grid;\n\nuse Opifer\\CrudBundle\\Datagrid\\DatagridBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolv...
php
chosen
[ { "from": "system", "value": "Refresh user-specific cache should have all users selectable\n" }, { "from": "human", "value": "<?php\nclass Pleesher_AdminPage extends Pleesher_SpecialPage\n{\n\tpublic function __construct()\n\t{\n\t\tparent::__construct('AchievementsAdmin', PleesherExtension::ADM...
php
chosen
[ { "from": "system", "value": "Update test to use the type of date string we see on Prod\n" }, { "from": "human", "value": "<?php\n\nuse Northstar\\Models\\User;\n\nclass StandardizeBirthdatesTest extends TestCase\n{\n /** @test */\n public function it_should_fix_birthdates()\n {\n ...
php
chosen
[ { "from": "system", "value": "Bump version number to 0.2.2\n" }, { "from": "human", "value": "<?php\n\t// General\n\tdefine(\"DEPLOYMENT\", \"production\"); // development/testing/production\n\tdefine(\"API_NAME\", \"BOLT_LIVE\");\n\n\t// Versioning\n\tdefine(\"VERSION_INTERNAL_BOLT\", \"v0.2.1\...
php
chosen
[ { "from": "system", "value": "Remove static reference to make sure the code stays php 5.2.4 compatible\n" }, { "from": "human", "value": "<?php defined('SYSTEM_PATH') or exit('No direct script access allowed');\n\nclass Config {\n \n public static $items = array();\n \n public static ...
php
chosen
[ { "from": "system", "value": "Fix Flashmessage return int instead of Message array\n\ngit-svn-id: a31028ace08b9bd728961381d3e3adab14c71477@50 85223511-97c2-6742-acd2-766018259031\n" }, { "from": "human", "value": "<?php\r\nnamespace FMUP\\FlashMessenger\\Driver;\r\n\r\nuse FMUP\\FlashMessenger\\...
php
chosen
[ { "from": "system", "value": "Fix typo in test class name\n" }, { "from": "human", "value": "<?php\n\nnamespace CodeZero\\BrowserLocale\\Tests\\Filters;\n\nuse CodeZero\\BrowserLocale\\Filters\\LocaleFilter;\nuse CodeZero\\BrowserLocale\\Locale;\nuse PHPUnit\\Framework\\TestCase;\n\nclass Browse...
php
chosen
[ { "from": "system", "value": "Update error class to have better default messages\n" }, { "from": "human", "value": "<?php\n\nnamespace GoPayWin\\ApiClient\\Exceptions;\n\nclass Base extends \\Exception\n{\n\n protected $_Configuration;\n\n public function __construct(\\GoPayWin\\ApiClient\\Con...
php
chosen
[ { "from": "system", "value": "Use JS as content-type due to mimesniffing" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2013 Lukas Reschke <lukas@statuscode.ch>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README fil...
php
chosen
[ { "from": "system", "value": "Add token to perform a full content swap\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Backup\\ContentImporter\\Importer\\Routine;\n\nuse Concrete\\Core\\Attribute\\Type;\nuse Concrete\\Core\\Block\\BlockType\\BlockType;\nuse Concrete\\Core\\Pa...
php
chosen
[ { "from": "system", "value": "Remove accidental leftover deserialize() on abstract base class\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\Role\\Events;\n\nuse Broadway\\Serializer\\SerializableInterface;\nuse ValueObjects\\Identity\\UUID;\n\nabstract class AbstractEve...
php
chosen
[ { "from": "system", "value": "Add some check on setters\n" }, { "from": "human", "value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Model;\n\n/**\n * Allow easy generation of unique javascript variable for any class model that required it\n *\n * @author GeLo <geloen.eric@gmail.com>\n */\nabst...
php
chosen
[ { "from": "system", "value": "Remove implementation of final method\n\nRelated to #4\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension\\royallthefourth\\CodeHighlightBolt;\n\nuse Bolt\\Asset\\File\\JavaScript;\nuse Bolt\\Asset\\Snippet\\Snippet;\nuse Bolt\\Asset\\File\\Styles...
php
chosen
[ { "from": "system", "value": "Initialize routers to be an array not null\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Simovative\\Zeus\\Handler;\n\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Server\\RequestHandlerInterface;\nuse Simovativ...
php
chosen
[ { "from": "system", "value": "Add tests for the performance logger\n" }, { "from": "human", "value": "<?php namespace Larapress\\Tests\\Services;\n\nuse Config;\nuse Helpers;\nuse Lang;\nuse Mockery;\nuse Larapress\\Tests\\TestCase;\nuse View;\n\nclass HelpersTest extends TestCase\n{\n\n /*\n...
php
chosen
[ { "from": "system", "value": "Fix bug with sidebar in search results\n" }, { "from": "human", "value": "@extends('layouts.blog')\n\n@section('content')\n\n <div class=\"col-sm-8 blog-main\">\n\n <ol class=\"breadcrumb\">\n <li><a href=\"/blog\">Blog</a></li>\n ...
php
chosen
[ { "from": "system", "value": "Fix translation of notify slack\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Fixhub.\n *\n * Copyright (C) 2016 Fixhub.org\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with t...
php
chosen
[ { "from": "system", "value": "Fix route definitions of cloud_federation_api\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n/**\n * @copyright Copyright (c) 2020 Joas Schilling <coding@...
php
chosen
[ { "from": "system", "value": "Add tests for dependency injection\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file belongs to Kreta.\n * The source code of application includes a LICENSE file\n * with all information about license.\n *\n * @author benatespina <benatespina@gmail.com>\...
php
chosen
[ { "from": "system", "value": "Set sortMap as an optional param\n" }, { "from": "human", "value": "<?php\n\nnamespace Alchemy\\Rest\\Request;\n\ninterface SortOptions\n{\n\n const SORT_ASC = 'asc';\n\n const SORT_DESC = 'desc';\n\n /**\n * @param array $sortMap\n * @return Sort[]...
php
chosen
[ { "from": "system", "value": "Add homepage to plugin details" }, { "from": "human", "value": "<?php namespace Romanov\\ClearCacheWidget;\n\nuse System\\Classes\\PluginBase;\n\nclass Plugin extends PluginBase\n{\n\n public function pluginDetails()\n {\n return [\n 'name' ...
php
chosen
[ { "from": "system", "value": "Fix bug that prevented images from being stored.\n" }, { "from": "human", "value": "<?php\n\nnamespace Nohex\\Eix\\Modules\\Catalog\\Model;\n\nuse Nohex\\Eix\\Services\\Data\\Sources\\ImageStore as DataSource;\nuse Nohex\\Eix\\Modules\\Catalog\\Model\\Image;\n/**\n ...
php
chosen
[ { "from": "system", "value": "BAP-9998: Create a processor to build form\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ApiBundle\\Processor\\Shared;\n\nuse Oro\\Component\\ChainProcessor\\ContextInterface;\nuse Oro\\Component\\ChainProcessor\\ProcessorInterface;\nuse Oro\\Bu...
php
chosen
[ { "from": "system", "value": "Adjust event listener classifier to support lumen\n\nLumen doesn't offer getProvider() therefore the structure has to be hacked together from the dispatcher itself.\n" }, { "from": "human", "value": "<?php\n\nnamespace Wnx\\LaravelStats\\Classifiers;\n\nuse Wnx\\Lar...
php
chosen
[ { "from": "system", "value": "Fix incorrect namespace for test class\n" }, { "from": "human", "value": "<?php\nnamespace Moxio\\Sniffs\\Tests\\PHP;\n\nuse Moxio\\CodeSniffer\\MoxioSniffs\\Sniffs\\PHP\\DisallowUniqidWithoutMoreEntropySniff;\nuse Moxio\\CodeSniffer\\MoxioSniffs\\Sniffs\\Tests\\Abs...
php
chosen
[ { "from": "system", "value": "Rename $data to $dataset and constructor must be an array" }, { "from": "human", "value": "<?php\n\nnamespace XLSXExporter;\n\nclass ProviderArray implements ProviderInterface\n{\n private $data;\n private $index;\n\n public function __construct($data)\n ...
php
chosen
[ { "from": "system", "value": "Redefine namespace for 'RDSTation';\nAdd use statement to reference the guzzle v5 library structure\n" }, { "from": "human", "value": "<?php namespace Rluders\\RDStation;\n\nuse namespace Guzzle\\Http\\Exception\\RequestException;\n\nclass RDException exnteds Reques...
php
chosen
[ { "from": "system", "value": "Add type hint on Exception contructor\n" }, { "from": "human", "value": "<?php\n\nnamespace Bauhaus\\Container;\n\nuse Interop\\Container\\Exception\\ContainerException;\n\nabstract class ContainerItemException extends \\Exception implements ContainerException\n{\n ...
php
chosen
[ { "from": "system", "value": "Make tests match actual expected format for user-locators\n\nEchoAttributeManager::getUserCallable casts to array,\nwhich means that even a non-array value (e.g. a simple callback)\nbecomes an array and NotificationController::evaluateUserCallable\nwill handle it just fine. But...
php
chosen
[ { "from": "system", "value": "Remove var_dump on media template" }, { "from": "human", "value": "<?php\r\n$image_id\t = $instance[ 'image' ];\r\n$image\t\t = wp_get_attachment_image( $image_id, 'full', false, array( 'class' => 'mtalents-media-img' ) );\r\n?>\r\n<div class=\"mtalents-media\">\r\n...
php
chosen
[ { "from": "system", "value": "Fix fatal in rendering Phriction \"Moved Away\" stories\n\nSummary:\nRef T13202. See PHI881. These stories have bad rendering methods, but they didn't previously render into the timeilne (since Phriction documents didn't have a timeline).\n\nUpdate the rendering to work.\n\nThe...
php
chosen
[ { "from": "system", "value": "Fix users access zone comment description\n\ngit-svn-id: 4cd2d1688610a87757c9f4de95975a674329c79f@1148 b8ca103b-dd03-488c-9448-c80b36131af2\n" }, { "from": "human", "value": "<?\n\n$access_zone = $sub0;\nif($access_zone)\n $zone = sql::row(\"ks_access_zones\", co...
php
chosen
[ { "from": "system", "value": "Change router method for route exemple\n" }, { "from": "human", "value": "<?php\n\nuse Core\\Router;\n\n/**\n * Le chemin d'accès à une page est configuré comme étant\n * Controller/action qui lui correspond avec éventuellement quelque paramettres\n * En utilisant l...
php
chosen
[ { "from": "system", "value": "Fix for smartmap parsing with multiple levels\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nuse Cake\\Utility\\Hash as Hash;\n\nclass SmartMap_AddressFeedMeFieldType extends BaseFeedMeFieldType\n{\n // Templates\n // ===========================...
php
chosen
[ { "from": "system", "value": "Check that the .doc and .pdf files exist before we blindly set the asset path to the file.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass Document {\n\n private static function getFiles ($path, $type, $extension = null)...
php
chosen
[ { "from": "system", "value": "BAP-12479: Create new widget controller buttonsAction\n - CR fixes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ScopeBundle\\Tests\\Functional;\n\nuse Oro\\Bundle\\ScopeBundle\\Entity\\Scope;\nuse Oro\\Bundle\\ScopeBundle\\Tests\\Unit\\Stub\\St...
php
chosen
[ { "from": "system", "value": "Add header to allow AJAX call\n" }, { "from": "human", "value": "<?php\n\n//response array with status code and message\n$response_array = array();\n\n/*//check the name field\nif(empty($_POST['name'])){\n\n //set the response\n $response_array['status'] = 'er...
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": "Handle compatibility for symfony <= 2.5\n" }, { "from": "human", "value": "<?php\n\nnamespace JBen87\\ParsleyBundle\\Form\\Extension;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Symfony\\Component\\Form\...
php
chosen
[ { "from": "system", "value": "Use memcache for API data\n" }, { "from": "human", "value": "<?php\n\nuse Pheal\\Core\\Config;\n\nclass PhealHelper {\n\t\n\tpublic static function configure()\n\t{\n\t\tConfig::getInstance()->cache = new \\Pheal\\Cache\\FileStorage(APPPATH.'cache/api/');\n\t\tConfi...
php
chosen