conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Index on magefm_cdn_cache table (path limited to 512)"
},
{
"from": "human",
"value": "<?php\n\n$this->startSetup();\n\n$this->run(\"\nCREATE TABLE `{$this->getTable('magefm_cdn/cache')}` (\n id integer UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,\n store_id ... | php | chosen |
[
{
"from": "system",
"value": "Index forks only after their description has been set\n"
},
{
"from": "human",
"value": "<?php\nnamespace phorkie;\n\nclass Forker\n{\n public function forkLocal($repo)\n {\n $new = $this->fork($repo->gitDir);\n \\copy($repo->gitDir . '/descripti... | php | chosen |
[
{
"from": "system",
"value": "Add a stub for more mailchimp sync tests in PeoplePlant\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('tests/php/base.php');\nrequire_once('framework/php/classes/plants/PeoplePlant.php');\n\nclass PeoplePlantTests extends UnitTestCase {\n\tfunction testPe... | php | chosen |
[
{
"from": "system",
"value": "Revert \"CloudStorage Adapter only needs Read-Write access scopes\"\n\nThis reverts commit ea0516b5415c0ea994e127f8da74efa97f7a0beb.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Websight\\GcsProvider;\n\nuse ErrorException;\nuse Google_Auth_AssertionCredent... | php | chosen |
[
{
"from": "system",
"value": "[FrameworkBundle][5.4] Remove fileLinkFormat property from DebugHandlersListener\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 licen... | php | chosen |
[
{
"from": "system",
"value": "Replace \"reloadPage\" AJAX response class constructor argument with \"redirectUrl\".\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-... | php | chosen |
[
{
"from": "system",
"value": "Fix `getBlockFields` in article inbound transformer [API-332]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Transformers\\Inbound\\Web;\n\nuse App\\Transformers\\Datum;\nuse App\\Transformers\\Inbound\\WebTransformer;\n\nclass Article extends WebTransfo... | php | chosen |
[
{
"from": "system",
"value": "Tweak icon button forms to avoid trailing question mark in URLs\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Pages\\Components\\Forms;\n\nuse Pages\\IViewable;\n\nfinal class IconButtonFormComponent implements IViewable{\n priva... | php | chosen |
[
{
"from": "system",
"value": "Switch to Request filled() method\n\nBehaviour of Request has() method changed in Laravel 5.5. filled() now\nhas the old behaviour.\n\nhttps://laravel.com/docs/5.5/requests#retrieving-input\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Http\\Requests;... | php | chosen |
[
{
"from": "system",
"value": "Fix Nest Leafs on Energy page\n\nRemove GROUP BY date(date) ORDER BY date ASC\r\nOld sql included a group by date that resulted in there always being one leaf per day (if any)"
},
{
"from": "human",
"value": "<?php\n$ini = parse_ini_file(\"params.ini\", true);\ndate... | php | chosen |
[
{
"from": "system",
"value": "Add test for Set constructor\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Vinnia\\Util\\Tests;\n\n\nuse PHPUnit\\Framework\\TestCase;\nuse Vinnia\\Util\\Set;\n\nclass SetTest extends TestCase\n{\n public function testHashesObj... | php | chosen |
[
{
"from": "system",
"value": "Add LDAP settings to default config."
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.\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": "Fix (Register controller): PHP code should follow PSR-1 basic coding standard\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\Entity\\User;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Test - one more reproduction for implicit phpDoc issues\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MethodPhpDocsNamespace;\n\nuse SomeNamespace\\Amet as Dolor;\n\ninterface FooInterface\n{\n\n\t/**\n\t * @return void\n\t */\n\tpublic function phpDocVoidMe... | php | chosen |
[
{
"from": "system",
"value": "FIX Use userforms template for member list field, fixes display rule issue\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Creates an editable field that displays members in a given group\n *\n * @package userforms\n */\n\nclass EditableMemberListField extends Edi... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in interface name\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Artscore Studio Framework package.\n *\n * (c) Nicolas Claverie <info@artscore-studio.fr>\n *\n * For the full copyright and license information, please view the LIC... | php | chosen |
[
{
"from": "system",
"value": "Make the cursor as pointer for quick notifications\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template file for notifications\n * \n * @package Dragooon:WeNotif\n * @author Shitiz \"Dragooon\" Garg <Email mail@dragooon.net> <Url http://smf-media.com>\n * @cop... | php | chosen |
[
{
"from": "system",
"value": "Migrate \"Jenkins API Token\" config setting from masked to hidden\n\nRelated to \"T6518-harbormaster-notify-jenkins-step\" branch, but can't put it in there because \"setHidden\" method was added only to master recently (see ebebeb8f7cb7f1691fd65d3a5579efd26376afe4).\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Clean up dd() helper method\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Dump the passed variable(s) and end the script.\n *\n * @param dynamic mixed\n * @return void\n */\nif (! function_exists('dd')) {\n function dd()\n {\n echo '<pre>'.\"\\n... | php | chosen |
[
{
"from": "system",
"value": "Modify helper message with Plasticbrain\\FlashMessages\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('set_message')) {\n function set_message($text, $type = 'success') {\n $CI =& get_instance();\n $CI->messages->add($text, $type);... | php | chosen |
[
{
"from": "system",
"value": "Validate the Command UUID to be UUIDv4\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo... | php | chosen |
[
{
"from": "system",
"value": "Add documentation menu to the front page.\n\n\nsvn commit r1956\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'DemoPage.php';\n\n/**\n * The front page of the demo application\n *\n * This page displays a quick introduction to the Swat Demo Application\n ... | php | chosen |
[
{
"from": "system",
"value": "Add further style changes to the IRC display\n"
},
{
"from": "human",
"value": "@section('content')\n\t<iframe src=\"https://kiwiirc.com/client/irc.rizon.net/#r/a/dio\"\n\t\tstyle=\"border:0; width:100%; height:700px; margin: 60px 5px 0 5px;\"\n\t></iframe>\n@stop\n... | php | chosen |
[
{
"from": "system",
"value": "Update tests for settigs service\n"
},
{
"from": "human",
"value": "<?php\nnamespace HtSettingsModulerTest\\Service;\n\nuse HtSettingsModule\\Service\\SettingsService;\nuse HtSettingsModule\\Options\\ModuleOptions;\n\nclass SettingsServiceTest extends \\PHPUnit_Fram... | php | chosen |
[
{
"from": "system",
"value": "Remove nonexistent and unused variable\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\nnam... | php | chosen |
[
{
"from": "system",
"value": "Update default value of confirmation code\n"
},
{
"from": "human",
"value": "<?php\n\nclass UsersTableSeeder extends Seeder {\n\n public function run()\n {\n DB::table('users')->delete();\n\n\n $users = array(\n array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Comment out file we dont need\n"
},
{
"from": "human",
"value": "<?php\nnamespace phpSmug;\n\nuse phpSmug\\Api\\ApiInterface;\nuse phpSmug\\Exception\\InvalidArgumentException;\nuse phpSmug\\Exception\\BadMethodCallException;\nuse phpSmug\\HttpClient\\HttpClient;\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix transaction url showing in customer order view\n"
},
{
"from": "human",
"value": "<?php\n\nclass Sign2pay_Payment_Block_Info_Sign2pay extends Mage_Payment_Block_Info\n{\n protected function _prepareSpecificInformation($transport = null)\n {\n if (nu... | php | chosen |
[
{
"from": "system",
"value": "Add an optional second parameter to cache, used to conditionaly enable/disable caching\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! function_exists('cache') )\n{\n function cache($key, Closure $closure)\n {\n $content = Cache::get($key);\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix BC break in Faker\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Blackfire Player package.\n *\n * (c) Fabien Potencier <fabien@blackfire.io>\n *\n * For the full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "system",
"value": "Fix HTTP redirects to be absolute\n"
},
{
"from": "human",
"value": "<?php\n include_once 'models/dependencies.php';\n include_once 'header.php';\n\n if ( isset( $_GET[ 'resource' ] ) ) {\n $resource = $_GET[ 'resource' ];\n }\n else {\n ... | php | chosen |
[
{
"from": "system",
"value": "Change check for honey pot\n"
},
{
"from": "human",
"value": "<?php\nrequire 'vendor/autoload.php';\nrequire 'lib/readConfig.php';\n\n// Read config file\n$config = readConfig('config');\n\nif ($config === FALSE) {\n die('Config file not found');\n}\n\n// Start S... | php | chosen |
[
{
"from": "system",
"value": "Add viewport meta data and use small button\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <title>Sligen Online Demo</title>\n <style>\n body {\n font-size: 1.5em;\n }\n </style>\n <link re... | php | chosen |
[
{
"from": "system",
"value": "Validate even when we don't detect a mapper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace NS\\ImportBundle\\Validators;\n\nuse NS\\ImportBundle\\Converter\\ColumnChooser;\nuse NS\\ImportBundle\\Entity\\Column;\nuse Symfony\\Component\\Validator\\Constraint;\... | php | chosen |
[
{
"from": "system",
"value": "Fix docblock issues noticed by Scrutinizer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tactician\\CommandBus;\n\nuse Tactician\\Exception\\CanNotInvokeHandlerException;\nuse Tactician\\Handler\\MethodNameInflector\\MethodNameInflector;\nuse Tactician\\Hand... | php | chosen |
[
{
"from": "system",
"value": "Use oneline phpdocs for property type info\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 di... | php | chosen |
[
{
"from": "system",
"value": "Load site interface translation by default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Localization\\Translator\\Adapter\\Zend\\Translation\\Loader\\Gettext;\n\nuse Concrete\\Core\\Localization\\Translator\\Translation\\Loader\\AbstractTran... | php | chosen |
[
{
"from": "system",
"value": "Check config for jukebox mode\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners;\n\nuse App\\Events\\SomeEvent;\nuse App\\Events\\SongChanged;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\n\nclass Son... | php | chosen |
[
{
"from": "system",
"value": "Fix Scheduling\\Event tests on Windows\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Console\\Scheduling\\Event;\n\nclass EventTest extends PHPUnit_Framework_TestCase\n{\n public function testBuildCommand()\n {\n $event = new Event('php -i... | php | chosen |
[
{
"from": "system",
"value": "Add empty path utility method\n\nA quick way of deleting content inside a given directory\n"
},
{
"from": "human",
"value": "<?php\n\nuse Codeception\\Configuration;\nuse Codeception\\Util\\Debug;\n\n/**\n * Output Path\n *\n * @author Alin Eugen Deac <aedart@gmail.... | php | chosen |
[
{
"from": "system",
"value": "Change TestCase for PHP 7\n"
},
{
"from": "human",
"value": "<?php\n\nClass Globals {\n\t\n\tpublic static $VIDEO_FILE = \"\";\n\tpublic static $NOVIDEO_FILE = \"\";\n\tpublic static $CONFIG = array();\n\t\n}\n\nGlobals::$VIDEO_FILE = dirname(__FILE__) . \"/../asset... | php | chosen |
[
{
"from": "system",
"value": "Fix KnpLabs case in repo urls"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nset_time_limit(0);\n\n$vendorDir = __DIR__.'/../../vendor';\nif (!is_dir($vendorDir)) {\n mkdir($vendorDir);\n}\n\n$deps = array(\n array('symfony', 'git://github.com/sym... | php | chosen |
[
{
"from": "system",
"value": "Fix HMVC Loader issue with CodeIgniter 3.1.3\n"
},
{
"from": "human",
"value": "<?php (defined('BASEPATH')) OR exit('No direct script access allowed');\r\n\r\n/* load the MX_Loader class */\r\nrequire APPPATH.\"third_party/MX/Loader.php\";\r\n\r\nclass MY_Loader ext... | php | chosen |
[
{
"from": "system",
"value": "Change the from to not be a noreply\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Mail\\Attendance;\n\nuse App\\AttendanceExport;\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Mail\\Mailable;\nuse Illuminate\\Queue\\Seria... | php | chosen |
[
{
"from": "system",
"value": "Remove highlighted title on page so it doesn't conflict with nav.\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('content')\n <div class=\"wrapper\">\n <h1 class=\"highlighted\">{{{ $page->title }}}</h1>\n\n {{ $page->content_html }}\n </d... | php | chosen |
[
{
"from": "system",
"value": "Update register if user exists\n"
},
{
"from": "human",
"value": "<?php\n if($_SERVER['SERVER_NAME'] == 'builder.osmand.net') {\n \tinclude '../reports/db_conn.php';\n \t$dbconn = db_conn();\n $visiblename = pg_escape_string($dbconn, $_GET[\"visibleName\"]);\n... | php | chosen |
[
{
"from": "system",
"value": "Add mock user object in order to test the index page.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public fu... | php | chosen |
[
{
"from": "system",
"value": "Set construct parameter as optional\n\nThis class could be call without parameter\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace App\\Form;\r\n\r\nuse Symfony\\Component\\Form\\AbstractType;\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\nuse Sy... | php | chosen |
[
{
"from": "system",
"value": "[VarDumper] Fix dumping of non-nested stubs\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 LICEN... | php | chosen |
[
{
"from": "system",
"value": "Add easter_date function for HHVM\n"
},
{
"from": "human",
"value": "<?php\nnamespace Skybluesofa\\OnThisDay\\Data\\Region\\En\\Us\\Helpers;\n\nuse Carbon\\Carbon;\n\nclass Easter {\n public static function getFatTuesdayDate(Carbon $date) {\n return Carbon::crea... | php | chosen |
[
{
"from": "system",
"value": "Use decoration for translatable factory and fixes after review\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\... | php | chosen |
[
{
"from": "system",
"value": "Fix Route Declaration of Settings\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelFlare\\Settings;\n\nuse Illuminate\\Routing\\Router;\nuse LaravelFlare\\Flare\\Admin\\Modules\\ModuleAdmin;\n\nclass SettingsModule extends ModuleAdmin\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Order by tagId in hipster paging, for robust tests\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Paging_Tag_Venue_Hipster extends Denkmal_Paging_Tag_Abstract {\n\n /**\n * @param Denkmal_Model_Venue $venue\n * @param DateTime|null $creat... | php | chosen |
[
{
"from": "system",
"value": "Fix link for Ajax JS\n\nHighscores page\n"
},
{
"from": "human",
"value": "<script src=\"ajax.js\"></script>\n<body onload=\"ajaxFunction(); top10();\">\n<input type=\"hidden\" value=\"10\" id=\"limit\"/>\n\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<div... | php | chosen |
[
{
"from": "system",
"value": "Add default event `oneauth.logged` to login the user\n"
},
{
"from": "human",
"value": "<?php\n\nAutoloader::namespaces(array(\n\t'OneAuth\\\\Auth' => Bundle::path('oneauth').'libraries'.DS.'auth',\n\t'OneAuth\\\\OAuth' => Bundle::path('oneauth').'libraries'.DS.'... | php | chosen |
[
{
"from": "system",
"value": "Add white space to email\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Nieuwe status voor uw vondst</title>\n</head>\n<body>\n <p>\n De vondst, {{ $title }} werd behandeld door een ... | php | chosen |
[
{
"from": "system",
"value": "Add class to enable loader\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenOrchestra\\UserBundle\\EventSubscriber;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\Form\\FormEvent;\nuse Symfony\\Component\\Form... | php | chosen |
[
{
"from": "system",
"value": "Fix test creating crawl job\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SimplyTestable\\ApiBundle\\Tests\\Command\\Task\\AssignmentSelectionCommand;\n\nuse SimplyTestable\\ApiBundle\\Tests\\BaseSimplyTestableTestCase;\n\nclass UrlDiscoverySelectionTest ext... | php | chosen |
[
{
"from": "system",
"value": "Add SlateAdmin class to git config"
},
{
"from": "human",
"value": "<?php\n\nGit::$repositories['slate-admin'] = [\n 'remote' => 'https://github.com/SlateFoundation/slate-admin.git',\n 'originBranch' => 'develop',\n 'workingBranch' => 'develop',\n 'trees... | php | chosen |
[
{
"from": "system",
"value": "Fix getting view path name.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ouzo;\n\nuse Ouzo\\Utilities\\Path;\n\nclass ViewPathResolver\n{\n public static function resolveViewPath($name)\n {\n return Path::join(ROOT_PATH, 'application', 'view', $n... | php | chosen |
[
{
"from": "system",
"value": "Set equal height on cards in contacts\n"
},
{
"from": "human",
"value": "@if (!$hideTitle && !empty($postTitle))\n @typography([\n 'id' => 'mod-text-' . $ID .'-label',\n 'element' => 'h4', \n 'variant' => 'h2', \n 'classList... | php | chosen |
[
{
"from": "system",
"value": "Fix typo that causes auth error"
},
{
"from": "human",
"value": "<?php namespace Customerio;\n\nclass Api {\n\n protected $siteId;\n\n protected $apiSecret;\n\n protected $request;\n\n public function __construct($siteId, $apiSecret, Request $request)\n ... | php | chosen |
[
{
"from": "system",
"value": "Use the filetime of the actual file instead of that of the parameters.yml file for caching assets\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\Core\\Header;\n\nuse DateTimeImmutable;\n\nfinal class Asset\n{\n /** @var string */\n private $file... | php | chosen |
[
{
"from": "system",
"value": "[Bundle] Make getPath() less error prone by allowing both backward and forward slashes\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the ... | php | chosen |
[
{
"from": "system",
"value": "Change method visibility to adhere with parent class.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\View;\n\nuse Orchestra\\View\\Theme\\Finder;\nuse Orchestra\\View\\Th... | php | chosen |
[
{
"from": "system",
"value": "Add a make child of method\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Menu\\Entities;\n\nuse Dimsav\\Translatable\\Translatable;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Modules\\Menu\\Support\\NestedCollection;\n\nclass Menuitem extends Mod... | php | chosen |
[
{
"from": "system",
"value": "Use S3 Static website hosting instead\n\nAs best practice on AWS, you should use the static website hosting feature instead of making your bucket become public. With the static website hosting feature, you could also utilise its redirection feature to utilise CDN like AWS Cloud... | php | chosen |
[
{
"from": "system",
"value": "Add composer loader for production\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This script is intended to be run as the inbuilt webserver's \"router\" script.\n * Procedural code below is necessary when triggered from inbuilt webserver\n * as this script is th... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Changed Baseurl to /Blog only\"\n\nThis reverts commit 9ce70e80a7b65c20a242b400cdcca661c9603515.\n"
},
{
"from": "human",
"value": "<?php\n/**\n* Index Controller\n*\n* @author happyoniens\n* @author coeci\n*\n*/\n\nclass indexController{\n public static f... | php | chosen |
[
{
"from": "system",
"value": "Read More module: removed MainController check\n\nWe don’t actually care if the controller is Main or not, since Admin\nalso has a feed attribute that we can test.\n"
},
{
"from": "human",
"value": "<?php\n class ReadMore extends Modules {\n public functio... | php | chosen |
[
{
"from": "system",
"value": "Remove unused NoScoreIdx methods from index interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ehann\\RediSearch;\n\nuse Ehann\\RediSearch\\Document\\BuilderInterface as DocumentBuilderInterface;\nuse Ehann\\RediSearch\\Document\\Document;\nuse Ehann\\R... | php | chosen |
[
{
"from": "system",
"value": "Make sure there is a connection before testing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Indigo\\Supervisor\\Test\\Connector;\n\nuse Indigo\\Supervisor\\Connector\\UnixSocketConnector;\n\n/**\n * @coversDefaultClass \\Indigo\\Supervisor\\Connector\\UnixS... | php | chosen |
[
{
"from": "system",
"value": "Add way to unset static logger\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kronos\\Log;\n\nuse Kronos\\Log\\Writer\\TriggerError;\n\nclass LogLocator\n{\n\n /**\n * @var \\Psr\\Log\\LoggerInterface\n */\n private static $logger;\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Use Null object for a non-existant speaker.\n"
},
{
"from": "human",
"value": "<?php namespace PHPMinds\\Model\\Event;\n\n\nclass NullTalk implements TalkInterface\n{\n\n public function getTitle()\n {\n return '';\n }\n\n public function getDescr... | php | chosen |
[
{
"from": "system",
"value": "Add missing asset name when we throw an exception\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Mannequin.\n *\n * (c) 2017 Last Call Media, Rob Bayliss <rob@lastcallmedia.com>\n *\n * This source file is subject to the MIT license that is ... | php | chosen |
[
{
"from": "system",
"value": "Use facade instead of alias\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the EmailChecker package.\n *\n * (c) Matthieu Moquet <matthieu@moquet.net>\n *\n * This source file is subject to the MIT license that is bundled\n * with this sourc... | php | chosen |
[
{
"from": "system",
"value": "Fix (Dashboard Account): add newline end of file\n"
},
{
"from": "human",
"value": "<?php\nnamespace AppBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\... | php | chosen |
[
{
"from": "system",
"value": "III-316: Include past events and events with an embargo date by default\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\SearchAPI2;\n\nuse CultuurNet\\Auth\\Guzzle\\OAuthProtectedService;\nuse CultuurNet\\Search\\Guzzle\\P... | php | chosen |
[
{
"from": "system",
"value": "Update role create name validation rule\n"
},
{
"from": "human",
"value": "<?php namespace Aliukevicius\\LaravelRbac\\Http\\Requests;\n\nclass CreateRoleRequest extends Request {\n\n protected $translationFile = 'aliukevicius/laravelRbac::lang.role';\n\n /**\n... | php | chosen |
[
{
"from": "system",
"value": "Use regex patterns that were pre-generated\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 informat... | php | chosen |
[
{
"from": "system",
"value": "Fix entity name to avoid caching metadata twice for SongHistory.\n\n"
},
{
"from": "human",
"value": "<?php\nnamespace AzuraCast\\Sync;\n\nuse Doctrine\\ORM\\EntityManager;\n\nclass HistoryCleanup extends SyncAbstract\n{\n /** @var EntityManager */\n protected... | php | chosen |
[
{
"from": "system",
"value": "Use the ID from the URL\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once $_SERVER['DOCUMENT_ROOT'] . '/includes/autoloader.php';\n\n$database = new Database;\n$db = $database->connect();\n\n$business = new Business;\n$business->db = $db;\n$business->id = '05... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for Text provider\n"
},
{
"from": "human",
"value": "<?php\nnamespace Faker\\Test\\Provider;\n\nuse Faker\\Provider\\en_US\\Text;\nuse Faker\\Generator;\n\nclass TextTest extends \\PHPUnit_Framework_TestCase\n{\n public function testTextMaxLength()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add a test for listMembers\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('tests/php/base.php');\n\nclass CashSeedTests extends UnitTestCase {\n\tfunction testS3Seed(){\n\t\t$settings = new S3Seed(1,1);\n\t\t$this->assertIsa($settings, 'S3Seed');\n\t}\n\tf... | php | chosen |
[
{
"from": "system",
"value": "[Notifier] Return SentMessage from the Notifier message handler\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, ple... | php | chosen |
[
{
"from": "system",
"value": "Fix bug: api exceptions can occurs with some versions of PHP\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Api;\n\n/**\n * File API controller\n *\n * @package api\n * @author Frederic Guillot\n */\nclass File extends Base\n{\n public function getFile(... | php | chosen |
[
{
"from": "system",
"value": "Fix documentation error. Added link to Example\n"
},
{
"from": "human",
"value": "@extends ('layouts.master')\n\n @section('meta_title') Documentation @stop\n\n @section('content')\n\n <h3>General Information</h3>\n <p>Before you start, please be aware o... | php | chosen |
[
{
"from": "system",
"value": "Fix access to page size\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mini\\Model;\n\nuse PDOStatement;\n\nclass PaginatingStore extends Store {\n /**\n * The default page size\n * @var int\n */\n private $pageSize;\n\n function __constr... | php | chosen |
[
{
"from": "system",
"value": "Reformat code, remove auth hack\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nclass Controller_Auth extends Controller_Template {\n public $template = 'templates/public';\n public function action_index()\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix read articles by tag test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\IntegrationTestCase;\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrat... | php | chosen |
[
{
"from": "system",
"value": "Return 400 response on login fail\n"
},
{
"from": "human",
"value": "<?php\nnamespace OpenCFP\\Controller;\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass SecurityController\n{\n public function indexAction(Request $req, Appl... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Fix array syntax for old PHP versions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace N98\\Magento\\Command;\n\nuse N98\\Magento\\Command\\PHPUnit\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass ListCommandTest extends TestCa... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect border color in custom config component\n"
},
{
"from": "human",
"value": "<div class=\"border-2 border-smoke rounded mb-8\">\n <div class=\"md:flex\">\n <div class=\"flex-1 bg-smoke-lighter border-b-2 md:border-b-0 md:border-r-2 border-smoke... | php | chosen |
[
{
"from": "system",
"value": "Remove reference to bootstrap.php.cache file\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = require dirname(__DIR__).'/app/config/bootstrap.php';\ninclude_once __DIR__.'/../var/bootstrap.php.cache';\n\n// En... | php | chosen |
[
{
"from": "system",
"value": "Replace usages of 'bindShared' with 'singleton'\n"
},
{
"from": "human",
"value": "<?php namespace Bosnadev\\Database;\n\nuse Bosnadev\\Database\\Connectors\\ConnectionFactory;\nuse Illuminate\\Database\\DatabaseManager;\n\n/**\n * Class DatabaseServiceProvider\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add HTTP headers to API errors\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once $_SERVER['DOCUMENT_ROOT'] . '/includes/autoloader.php';\n\n/*\n * If there's a 7-character ID, use that\n */\nif ( isset($_GET['id']) && strlen($_GET['id']) == 7)\n{\n $id = $... | php | chosen |
[
{
"from": "system",
"value": "Change TimeRange interface to use \\DateTime objects\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package johnpancoast/php-common\n * @copyright (c) 2015-2018 John Pancoast\n * @license MIT\n */\n\nnamespace Pancoast\\Common\\Entity;\n\n/**\n * Con... | php | chosen |
[
{
"from": "system",
"value": "Fix attaching new user to Membersrole\n"
},
{
"from": "human",
"value": "<?php namespace GeneaLabs\\LaravelGovernor\\Listeners;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreatedListener\n{\n /**\n * @Sup... | php | chosen |
[
{
"from": "system",
"value": "Use decode from the encoder\n"
},
{
"from": "human",
"value": "<?php\nnamespace Nats;\n\n/**\n * Class EncodedConnection\n * @package Nats\n */\nclass EncodedConnection extends Connection {\n\n /**\n * @var Encoder|null\n */\n private $encoder = null;\... | php | chosen |
[
{
"from": "system",
"value": "Implement copy of existing password hashes to new value table\n"
},
{
"from": "human",
"value": "<?php\n/* @var $installer Ikonoshirt_Pbkdf2_Model_Mysql4_Setup */\n$installer = $this;\n\n$installer->startSetup();\n\n$installer->getConnection()->modifyColumn(\n $i... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.