conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add unit test to verify properly returned Location\n"
},
{
"from": "human",
"value": "<?php\n\nuse Psr7Middlewares\\Middleware;\n\nclass HttpsTest extends Base\n{\n public function HttpsProvider()\n {\n return [\n ['http://localhost', true, 3... | php | chosen |
[
{
"from": "system",
"value": "Add return types - batch 6/n\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 composer autoload for tests\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once dirname(__DIR__) . '/library/CM/Bootloader.php';\ndefine('DIR_TESTS', __DIR__ . DIRECTORY_SEPARATOR);\ndefine('DIR_TEST_DATA', DIR_TESTS . 'data' . DIRECTORY_SEPARATOR);\n\n$boo... | php | chosen |
[
{
"from": "system",
"value": "Check for autoloader file before trying to include it\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * A (quick and dirty) scanner to scanning all (linked) pages of an https-enabled website for Mixed Content\n * @author Bramus! <bramus@bram.us>\n * @version 1.0\n... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on country joint\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WBB\\BarBundle\\Repository;\n\nuse WBB\\BarBundle\\Entity\\Ad;\nuse WBB\\CoreBundle\\Repository\\EntityRepository;\n\n/**\n * AdRepository\n *\n * This class was generated by the Doctrine... | php | chosen |
[
{
"from": "system",
"value": ":white_check_mark: Add a test for teams page 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 TestC... | php | chosen |
[
{
"from": "system",
"value": "Add field name to the enrollments export list\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<table>\n <tr>\n <th>Course</th>\n <th>Student ID</th>\n <th>Student Name</th>\n <th>Student E-mail</th>\n <th>Enrollment ... | php | chosen |
[
{
"from": "system",
"value": "Add book appointment User button\n"
},
{
"from": "human",
"value": "@extends('app')\n\n@section('content')\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<div class=\"col-md-10 col-md-offset-1\">\n\t\t\t<div class=\"panel panel-default\">\n\n\t\t\t\t<div cla... | php | chosen |
[
{
"from": "system",
"value": "Add links to single image view\n"
},
{
"from": "human",
"value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n\t<head>\n\t\t<?php UI::PrintHeader() ?>\n\t</head>\n\t<body>\n\t\t<div class... | php | chosen |
[
{
"from": "system",
"value": "Fix migration to create cookie token table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass CreateCookieTokens extends AbstractMigration{\n\t\tpublic function change(){\n\t\t\ttry {\n\t\t\t\t$sql = '';\n\t\t\t\t$sql = $sq... | php | chosen |
[
{
"from": "system",
"value": "Add Interest Form For Weekend\n\n+ fix email body and subject\n"
},
{
"from": "human",
"value": "{{ $interest_form->firstname }} {{ $interest_form->lastname }} is interested\nin joining the {{ $interest_form->vision ? ' Vision ' : \"\" }}\n{{ $interest_form->vision_... | php | chosen |
[
{
"from": "system",
"value": "Update model test to include variants\n"
},
{
"from": "human",
"value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with empty content type header in request builder\n"
},
{
"from": "human",
"value": "<?php\n/**\n * HTTP request object factory\n *\n * This factory should be used in index.php for request object initialization.\n * Example:\n *\n * $validator = (new Valid... | php | chosen |
[
{
"from": "system",
"value": "Add $why var for parse exceptions.\n\ngit-svn-id: 71b65f7ff3646a85e1ba76c778efde6466075005@285075 c90b9560-bf6c-de11-be94-00142212c4b1\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PEAR2_Pyrus_ChannelRegistry_ParseException\n * \n * PHP version 5\n * \n * @categ... | php | chosen |
[
{
"from": "system",
"value": "Allow hook controller to redirect\n"
},
{
"from": "human",
"value": "<?php\nnamespace CI\\UI\\Controller;\n\nclass HookController\n{\n public function hook(\\Silex\\Application $app)\n {\n \t$client= new \\GearmanClient();\n\t\t$client->addServer('127.0.0.1... | php | chosen |
[
{
"from": "system",
"value": "Clean up the code a little\n"
},
{
"from": "human",
"value": "<div class=\"day_cal\">\n<?php\nif (is_a($context->output,'UNL_UCBCN_EventListing')) {\n if ($dt = strtotime($context->query)) {\n echo '<h1 class=\"results\">Search results for events dated <sp... | php | chosen |
[
{
"from": "system",
"value": "Enable the user confirmation by default\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'route' => [\n 'prefix' => 'authorization',\n ],\n\n 'database' => [\n 'connection' => config('database.default'),\n ],\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix spaces inserted by scrobble proxy\n"
},
{
"from": "human",
"value": "<?php\n\n/* Libre.fm -- a free network service for sharing your music listening habits\n\n Copyright (C) 2009 Libre.fm Project\n\n This program is free software: you can redistribute it and... | php | chosen |
[
{
"from": "system",
"value": "Add CSRF protection as default in all routes.\n"
},
{
"from": "human",
"value": "<?php\n\nclass BaseController extends Controller {\n\n\t/**\n\t * Retrieve the current theme's identifier.\n\t *\n\t * @return string\n\t */\n\tprotected function getTheme()\n\t{\n\t\t/... | php | chosen |
[
{
"from": "system",
"value": "[CoreBundle] Update getEm function in the core controller to use the getDoctrine function instead\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the CSBillCoreBundle package.\n *\n * (c) Pierre du Plessis <info@customscripts.co.za>\n *\n * F... | php | chosen |
[
{
"from": "system",
"value": "Remove password minimum length limit\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\nuse Illuminate\\Validation\\Rule;\n\nclass AccountDeleteRequest extends FormRequest\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix old media from not being removed\n"
},
{
"from": "human",
"value": "<?php namespace Torann\\MediaSort\\Disks;\n\nuse File;\nuse Config;\nuse Storage;\nuse Exception;\n\nabstract class AbstractDisk {\n\n /**\n * The current media object being processed.\n ... | php | chosen |
[
{
"from": "system",
"value": "Change Discogs URL from http to https"
},
{
"from": "human",
"value": "<?php\n\nnamespace HWI\\Bundle\\OAuthBundle\\OAuth\\ResourceOwner;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolverInterface;\n\nclass DiscogsResourceOwner extends GenericOAuth1Resourc... | php | chosen |
[
{
"from": "system",
"value": "Include brand name when finding product\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\n\n$term= $_REQUEST['term'];\n\n$products= array();\n\nif (!$term) {\n die_jsonp([ 'error' => \"Need to supply some search terms.\",\n 'results' => []... | php | chosen |
[
{
"from": "system",
"value": "Duplicate pages before other components\n\nIs needed when components rely on pages (e.g. editableItems-Model)\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Root_Category_Admin extends Kwc_Abstract_Admin\n{\n public function getDuplicateProgressSteps($source... | php | chosen |
[
{
"from": "system",
"value": "Return types in routing and news bundle\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n *\n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n *\n * For the full copy... | php | chosen |
[
{
"from": "system",
"value": "Add file path to json\n"
},
{
"from": "human",
"value": "<?php\n// reads files from specified path and returns them as an json-array\n// takes one argument from GET variables, does not work without it\n// the argument should come from http call to directories.php\nh... | php | chosen |
[
{
"from": "system",
"value": "Remove unused request as parameter in API controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\Config\\Definition\\Exception\\Exception;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Set language part global accesible"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Config;\nuse Illumi... | php | chosen |
[
{
"from": "system",
"value": "Fix bug, name of config param\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * PaymentCoreBundle for Symfony2\n *\n * This Bundle is part of Symfony2 Payment Suite\n *\n * @author Marc Morera <yuhu@mmoreram.com>\n * @package PaymentCoreBundle\n *\n * Marc Morera ... | php | chosen |
[
{
"from": "system",
"value": "Support piping code with PHP open tag\n"
},
{
"from": "human",
"value": "<?php namespace xp\\runtime;\n\nuse util\\cmd\\Console;\n\n/**\n * Evaluates sourcecode\n *\n */\nclass Evaluate extends \\lang\\Object {\n \n /**\n * Main\n *\n * @param string[] arg... | php | chosen |
[
{
"from": "system",
"value": "Remove skip in type juggling.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nclass TypeJugglingTest extends PHPUnit_Framework_TestCase\r\n{\r\n public function testFromFalseOrNullToArray()\r\n {\r\n foreach (array(false, null) as $testValue) {\r\n ... | php | chosen |
[
{
"from": "system",
"value": "Change a way of generating session ids\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Perfumer\\Component\\Session;\r\n\r\nuse Stash\\Pool as Cache;\r\n\r\nclass Core\r\n{\r\n /**\r\n * @var \\Stash\\Pool\r\n */\r\n protected $cache;\r\n\r\n... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Correct capitalisation for LLoydsTSB bank according to our internal DB\nformat.\n"
},
{
"from": "human",
"value": "<?php\nrequire '../../util.php';\n\nif (count($argv) < 3) \n{\n echo \"php import_csv.php [bank_name] [CSV]\\n\";\n exit(-1);\n}\n$bank_n... | php | chosen |
[
{
"from": "system",
"value": "Comment out authentification checkker in order to remove failures from PHP tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\Config\\Definition... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/EventSubscriber/ResponseSubscriber.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\EventSubscriber;\... | php | chosen |
[
{
"from": "system",
"value": "Add a new category: Estabelecimentos comerciais\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Bens Penhorados, an undergraduate capstone project.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n *\n * For the full copyright and license inf... | php | chosen |
[
{
"from": "system",
"value": "Allow leading space in lazy continuation lines.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\CommonMark\\Parser\\Block;\n\nuse FluxBB\\CommonMark\\Common\\Text;\nuse FluxBB\\CommonMark\\Node\\Blockquote;\nuse FluxBB\\CommonMark\\Node\\Container;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add auto_reload to twig templates\n"
},
{
"from": "human",
"value": "<?php\n\nuse LastCall\\Mannequin\\Core\\MannequinConfig;\nuse LastCall\\Mannequin\\Html\\HtmlExtension;\nuse LastCall\\Mannequin\\Twig\\TwigExtension;\nuse Symfony\\Component\\Finder\\Finder;\n\n$h... | php | chosen |
[
{
"from": "system",
"value": "application: Add warning about db connection issues to the fork class\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Process forking implementation\n * @author M2Mobi, Heinz Wiesinger\n */\nclass Fork\n{\n\n /**\n * Constructor\n */\n public funct... | php | chosen |
[
{
"from": "system",
"value": "Change comments to reflect changes in PSR\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\nnamespace Onion\\Framework\\Http\\Middleware;\n\nuse Interop\\Http\\Middleware\\DelegateInterface;\nuse Interop\\Http\\Middleware\\ServerMiddlewareInterface... | php | chosen |
[
{
"from": "system",
"value": "Fix ContentType middleware to return array for empty body\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Tacit package.\n *\n * Copyright (c) Jason Coward <jason@opengeek.com>\n *\n * For the full copyright and license information, please ... | php | chosen |
[
{
"from": "system",
"value": "Move things around on the settings controller\n"
},
{
"from": "human",
"value": "<?hh\n\nclass SettingsController extends BaseController {\n public static function getPath(): string {\n return '/settings';\n }\n\n public static function getConfig(): Controller... | php | chosen |
[
{
"from": "system",
"value": "Fix the doc for bootstrap 3\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('title')Documentation @stop\n\n@section('content')\n\t<div class=\"wrapper\">\n\t <header>\n\t <h1>{{ Config::get('docs.title', 'Documentation') }}</h1>\n\t </... | php | chosen |
[
{
"from": "system",
"value": "Make query tracking parameters configurable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neuron\\Net;\n\n/**\n * Class QueryTrackingParameters\n * @package Neuron\\Net\n */\nclass QueryTrackingParameters\n{\n\t/**\n\t * @return QueryTrackingParameters\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Allow action message customization by service\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PragmaRX\\Health\\Notifications\\Channels;\n\nuse Request;\n\nabstract class BaseChannel implements Contract\n{\n /**\n * @return mixed\n */\n protected... | php | chosen |
[
{
"from": "system",
"value": "Remove string helper from math class\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Hashids.\n *\n * (c) Ivan Akimov <ivan@barreleye.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Make Essence autoloader not attempt to load non-Essence classes.\n\nHere we make sure that the Essence autoloader only attempts to load classes that\nbegin with Essence\\...\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n *\t@author Félix Girault <felix.girault@gm... | php | chosen |
[
{
"from": "system",
"value": "Add clear method to interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A very basic cache interface.\n */\ninterface Wpup_Cache {\n\t/**\n\t * Get cached value.\n\t *\n\t * @param string $key\n\t * @return mixed|null\n\t */\n\tfunction get($key);\n\n\t/**\n... | php | chosen |
[
{
"from": "system",
"value": "Remove the check to see if the url is set\n"
},
{
"from": "human",
"value": "@component('mail::message')\n\n# Hi {{ $name }}!\n\nThanks for using {{ config('app.name') }}. This is an invoice for your recent purchase.\n\n@component('mail::invoice.attributes', ['total... | php | chosen |
[
{
"from": "system",
"value": "Change TerminalNotifier's test image to be a URL\n"
},
{
"from": "human",
"value": "<?php\nuse BryanCrowe\\Growl\\Builder\\TerminalNotifierBuilder;\n\nclass TerminalNotifierBuilderTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add default value parameter when getting an input variable\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Input handler\n *\n * Very basic input handler\n *\n * @author Adric Schreuders\n */\nclass Input {\n private $vars;\n public function Input($vars) {\n... | php | chosen |
[
{
"from": "system",
"value": "Modify configuration set to allow additions\n\nEnables the user to add custom config to the default set.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spark\\Configuration;\n\nuse Auryn\\Injector;\n\nclass ConfigurationSet implements ConfigurationInterface\n... | php | chosen |
[
{
"from": "system",
"value": "Remove bash windows that no longer works\n"
},
{
"from": "human",
"value": "<html>\n<head>\n<?php include(\"header.php\"); ?>\n</head>\n<body>\n<div id=\"main\">\n<h2>Setting up your PHP/MySql Devlopment Environment</h2>\n<p>\nIn this page, you will install a progra... | php | chosen |
[
{
"from": "system",
"value": "Add interface method as abstract to trait\n\nCode quality: while trait is supposed to go together with the interface,\nit makes sense to add interface method used by trait as an abstract method. This\nway implementors will not be caught by surprise if method definition is\neve... | php | chosen |
[
{
"from": "system",
"value": "Fix order and display of areas.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kula\\HEd\\Bundle\\GradingBundle\\Field;\n\nuse Kula\\Core\\Component\\Field\\Field;\n\nclass AreaName extends Field {\n \n public function select($schema, $param) {\n \n $... | php | chosen |
[
{
"from": "system",
"value": "Add getNodes method to fetch the list of nodes from chef.\n"
},
{
"from": "human",
"value": "<?php\nnamespace DominionEnterprises\\Chef;\n\nuse Jenssegers\\Chef\\Chef as ChefApi;\n\nclass Chef\n{\n /**\n * @var \\Jenssegers\\Chef\\Chef The chef API\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Fix issue where get was picking up form input on non-linked attempts\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\UsersModule\\User\\Password;\n\nuse Anomaly\\Streams\\Platform\\Ui\\Form\\FormCriteria;\nuse Illuminate\\Contracts\\Cache\\Repository;\nu... | php | chosen |
[
{
"from": "system",
"value": "Update route to become optional.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| Her... | php | chosen |
[
{
"from": "system",
"value": "Replace load_config call with load call\n\nReplaced the load_config call with load call in the get_setting function"
},
{
"from": "human",
"value": "<?php\r\nnamespace tomlib\\auth\\config;\r\n\r\ninclude_once dirname(__FILE__) . \"/config.php\";\r\ninclude_once dir... | php | chosen |
[
{
"from": "system",
"value": "Make a unit test compatible with php 7.0\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @param ?array $a\n * @param array{key:?string} $a2\n * @param string $offset\n */\nfunction example471Isset($a, array $a2, string $offset) {\n if (isset($a[$offset])) {\n... | php | chosen |
[
{
"from": "system",
"value": "Sort the Editor plugins alphabetically.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Controller\\SinglePage\\Dashboard\\System\\Basics;\n\nuse Concrete\\Core\\Page\\Controller\\DashboardSitePageController;\n\nclass Editor extends DashboardSitePage... | php | chosen |
[
{
"from": "system",
"value": "Fix plugin dir setting for updated Smarty.\n"
},
{
"from": "human",
"value": "<?php\nerror_reporting(E_ALL|E_STRICT);\n\nrequire_once(__DIR__ . '/../lib/smarty/Smarty.class.php');\n\n//\n// Global application state\n//\nglobal $APP;\n$APP = new StdClass();\n\n$APP->... | php | chosen |
[
{
"from": "system",
"value": "Modify /r6/patch_notes to be a bit more reliable by parsing the sub-forum instead\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse Vinelab\\Rss\\Rss;\nuse App\\Helpers\\H... | php | chosen |
[
{
"from": "system",
"value": "Patch to prevent being included via ping\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @property Controller $owner\n */\nclass JqueryControllerExtension extends Extension {\n\n public function onBeforeInit() {\n if (\n !$this->isCMS() ... | php | chosen |
[
{
"from": "system",
"value": "Fix CromCommandCompilerPass to check correct service\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) 2013-2017 Pierre du Plessis <info@customscripts.co.za>\n *\n * This source file... | php | chosen |
[
{
"from": "system",
"value": "Include correct Paweł's email :camel:\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 distrib... | php | chosen |
[
{
"from": "system",
"value": "Fix typo and missing acces modifier\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Qandidate\\Toggle;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage;\n\n/**\n * A condition written as a symfony language expression that gets evaluated agains... | php | chosen |
[
{
"from": "system",
"value": "Add a constant for the ruggedy scanner app\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Entities;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * App\\Entities\\ScannerApp\n *\n * @ORM\\Entity(repositoryClass=\"App\\Repositories\\ScannerAppRepository\... | php | chosen |
[
{
"from": "system",
"value": "Align with changes in abc-table-detail.\n"
},
{
"from": "human",
"value": "<?php\n//----------------------------------------------------------------------------------------------------------------------\nnamespace SetBased\\Abc\\Core\\TableRow\\System;\n\nuse SetBas... | php | chosen |
[
{
"from": "system",
"value": "Isolate the contributions count number\n"
},
{
"from": "human",
"value": "<?php\n\n$githubProfile = file_get_contents('https://github.com/controversial');\n$contributionsIndex = preg_match(\n '/contributions\\s+in the last year/',\n $githubProfile,\n $matches,\n ... | php | chosen |
[
{
"from": "system",
"value": "Comment out DustPress for development.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Initialize the theme settings loading.\n */\n// Include Dustpress. Because of provider we don't use autoloaders.\ninclude('dustpress/dustpress.php');\n// Use dustpress\ndustpres... | php | chosen |
[
{
"from": "system",
"value": "Fix preview route for trashbin\n"
},
{
"from": "human",
"value": "<?php\n/** @var $this \\OCP\\Route\\IRouter */\n$this->create('core_ajax_trashbin_preview', '/preview')->action(\nfunction() {\n\trequire_once __DIR__ . '/../ajax/preview.php';\n});\n\n$this->create('... | php | chosen |
[
{
"from": "system",
"value": "Set exception code to status of HTTP response\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\CouchDB\\HTTP;\n\n/**\n * Base exception class for package Doctrine\\ODM\\CouchDB\\HTTP\n *\n * @license http://www.opensource.org/licenses/lgpl-license... | php | chosen |
[
{
"from": "system",
"value": "Unify handling of arrival and departure prognosis\n\nIn response to #113\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Transport\\Entity\\Schedule;\n\nclass Prognosis\n{\n public $platform;\n public $arrival;\n public $departure;\n public $capaci... | php | chosen |
[
{
"from": "system",
"value": "Add public visibility to constructors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\AdminBundle\\EventListener;\n\nuse FOS\\UserBundle\\Event\\FilterUserResponseEvent;\nuse FOS\\UserBundle\\Model\\UserManager;\n\n/**\n * Set password_changed prope... | php | chosen |
[
{
"from": "system",
"value": "Add test for prefix handling\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\nnamespace Tests\\Router;\n\nuse Onion\\Framework\\Router\\PrefixRoute;\n\nclass PrefixRouteTest extends \\PHPUnit_Framework_TestCase\n{\n private $route;\n public f... | php | chosen |
[
{
"from": "system",
"value": "Update channel to use static functions\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Lawstands\\Hermes;\r\n\r\n/**\r\n * Created by BrainMaestro\r\n * Date: 28/1/2017\r\n * Time: 2:20 PM\r\n */\r\nclass Channel\r\n{\r\n /**\r\n * @var array\r\n ... | php | chosen |
[
{
"from": "system",
"value": "Update of the test to support PHP 7\n\nManually used some functions from the phpunit-validation package within\nthe test because full PHP 7 support is not available from the package\nas it has some name conflicts with reserved words.\n"
},
{
"from": "human",
"value"... | php | chosen |
[
{
"from": "system",
"value": "Allow elements to be cast to strings\n\nThis returns their nodeValue, and is useful to avoid checking that an element exists\nbefore attempting to get it's nodeValue\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace duncan3dc\\DomParser;\n\ntrait Element\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Make usertagging in comments case insensitive\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Api;\n\nuse App\\LaraBin\\Helpers\\UserCache;\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Control... | php | chosen |
[
{
"from": "system",
"value": "Remove probably outdated error suppression\n\nhttps://bugs.php.net/bug.php?id=50688 was closed as fixed\nin 2017 when PHP 7.0 was only supported upstream.\nWe already require PHP 7.2.\n\nChange-Id: Ie9801e38915da634e31c91ebdcb61226e0ae5712\n"
},
{
"from": "human",
"... | php | chosen |
[
{
"from": "system",
"value": "Use new language pack helper.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the French Language Pack for Flarum.\n *\n * @author Maël Soucaze <https://www.maelsoucaze.com>\n * @license https://opensource.org/licenses/MIT MIT License\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Make page content show on posts page with page ID\n"
},
{
"from": "human",
"value": "<?php\n\nif ( is_category() || is_home() ) :\n\n\t$queried_object = get_queried_object();\n\t\n\tif ( get_field( 'header_image', $queried_object ) ) :\n\n\t\tget_template_part('temp... | php | chosen |
[
{
"from": "system",
"value": "[1.4][sfSympalPlugin][0.7] Fix so we only enable markdown editor for Markdown slot types\n\n\ngit-svn-id: a12887034337be3812df6d060455f26cce89a7aa@25946 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php include_stylesheets_for_form($form)... | php | chosen |
[
{
"from": "system",
"value": "Use ::class keyword when possible\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": "Fix a coding style violation\n"
},
{
"from": "human",
"value": "<?php\nnamespace ProjectLint\\ExpressionLanguage;\n\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage as BaseExpressionLanguage;\n\nclass ExpressionLanguage extends BaseExpressionLanguage\... | php | chosen |
[
{
"from": "system",
"value": "Use sprintf for string construction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dock\\System\\Environ;\n\nuse Dock\\IO\\ProcessRunner;\nuse Symfony\\Component\\Process\\Process;\n\nclass BashEnvironManipulator implements EnvironManipulator\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Change route param to GET or POST param"
},
{
"from": "human",
"value": "<?php\r\nnamespace CodeDay\\Clear\\Http\\Controllers\\Api;\r\n\r\nuse \\CodeDay\\Clear\\Models;\r\nuse \\CodeDay\\Clear\\ModelContracts;\r\n\r\nclass TokenController extends ApiController {\r\n... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with currency symbol\n"
},
{
"from": "human",
"value": "<?php namespace Pixiu\\Commerce\\Classes;\n\nuse Pixiu\\Commerce\\Models\\CommerceSettings;\n\nclass CurrencyHandler\n{\n public $currencySymbol;\n public $decimalSymbol;\n public $format;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove the day suffix from day heading\n\nCloses #78"
},
{
"from": "human",
"value": "<?php $formattedDate = $context->getDateTime()->format('l, F jS'); ?>\n<h1 class=\"day-heading\">\n <?php echo $formattedDate ?>\n <a class=\"permalink\" href=\"<?php echo $c... | php | chosen |
[
{
"from": "system",
"value": "Add the table to the template\n"
},
{
"from": "human",
"value": "@component('mail::message')\n\n# Hi Name!\n\nThanks for using [Product Name]. This is an invoice for your recent purchase.\n\n@component('mail::invoice.attributes', ['total' => $total, 'dueDate' => $du... | php | chosen |
[
{
"from": "system",
"value": "Move iCheck and jQuery libs to CDN"
},
{
"from": "human",
"value": "</div>\r\n<!-- /.login-box -->\r\n\r\n<!-- jQuery 2.2.3 -->\r\n<script src=\"plugins/jQuery/jquery-2.2.3.min.js\"></script>\r\n<!-- Bootstrap 3.3.6 -->\r\n<script src=\"https://maxcdn.bootstrapcdn.c... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect override function signatures\n"
},
{
"from": "human",
"value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\... | php | chosen |
[
{
"from": "system",
"value": "Add request validation and authorization functionality for controllers\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Controllers;\n\nuse Illuminate\\Routing\\Controller;\nuse Rinvex\\Fort\\Traits\\GetsMid... | php | chosen |
[
{
"from": "system",
"value": "Fix download driver for CI3\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2013 Pierre Schmitz <pierre@archlinux.de>\n *\n * Licensed under AGPLv3\n * (see COPYING for ful... | php | chosen |
[
{
"from": "system",
"value": "Add cache resource provider to toolbox\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ob_Ivan\\DropboxProxy;\n\nuse Ob_Ivan\\DropboxProxy\\ResourceProvider\\DropboxResourceProvider;\nuse Ob_Ivan\\ResourceContainer\\ResourceContainer;\n\nclass ToolboxFactory\n{\... | php | chosen |
[
{
"from": "system",
"value": "Set the Renderer in the View Helper Manager\n\nThis would have been done in the EngineFactory - however - that creates\na circular dependency.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcTwig\\Service;\n\nuse ZfcTwig\\View\\Renderer;\nuse Zend\\ServiceM... | php | chosen |
[
{
"from": "system",
"value": "Remove unused traits in Article Get Most Recent Integration Test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RCatlin\\Blog\\Test\\Integration\\Controller\\Api;\n\nuse League\\FactoryMuffin\\Facade as FactoryMuffin;\nuse RCatlin\\Blog\\Entity;\nuse RCatlin\... | php | chosen |
[
{
"from": "system",
"value": "Revert back breadcrumbs escaping, this is handled individually as we may pass HTML intentionally\n"
},
{
"from": "human",
"value": "@if (count($breadcrumbs))\n\n <ol class=\"breadcrumb\">\n @foreach ($breadcrumbs as $breadcrumb)\n\n @if ($breadc... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.