conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Replace readonly with psalm-immutable at class level\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Brick\\Geo\\Engine;\n\nuse Brick\\Geo\\Geometry;\n\n/**\n * Represents a geometry parameter sent to the database engine.\n *\n * Th... | php | chosen |
[
{
"from": "system",
"value": "Improve date handling (with JS date format)\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\Relations\\HasMany;\n\nclass MeetingDay extends Mode... | php | chosen |
[
{
"from": "system",
"value": "Check patterns only on master request"
},
{
"from": "human",
"value": "<?php\n\nnamespace M6Web\\Bundle\\FirewallBundle\\EventListener;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent;\nuse M6Web\\B... | php | chosen |
[
{
"from": "system",
"value": "Allow whitelisting when correct passwort is given via POST\n"
},
{
"from": "human",
"value": "<?php\nrequire('auth.php');\n\nif(!isset($_POST['domain'], $_POST['list'], $_POST['token'])) {\n log_and_die(\"Missing POST variables\");\n}\n\ncheck_cors();\ncheck_csrf... | php | chosen |
[
{
"from": "system",
"value": "Fix dot reporter not resetting the current line length\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace pho\\Reporter;\n\nuse pho\\Console\\Console;\nuse pho\\Suite\\Suite;\nuse pho\\Runnable\\Spec;\n\nclass DotReporter extends AbstractReporter implements Repor... | php | chosen |
[
{
"from": "system",
"value": "Add method for listing agents\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GrooveHQ\\Service;\n\nclass AgentsDescription extends BasicServiceDescription\n{\n\n protected function getServiceDescription()\n {\n return [\n 'operations' ... | php | chosen |
[
{
"from": "system",
"value": "Simplify markup on front page\n\nNow that we no longer depend on Lettering.js\n"
},
{
"from": "human",
"value": "<?php\n\nget_header(); ?>\n\n\t<div id=\"primary\" class=\"content-area\">\n\t\t<main id=\"main\" class=\"site-main\" role=\"main\">\n\n\t\t\t<section cl... | php | chosen |
[
{
"from": "system",
"value": "Use IP instead of hostname for functionnal tests\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'host' => 'localhost',\n 'port' => '61613',\n 'login' => 'admin',\n 'passcode' => 'password',\n 'vhost' => 'apollo',\n);\n"
},... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to configure commissioner name/email\n"
},
{
"from": "human",
"value": "<?php\nreturn array(\n 'app' => array(\n 'base_url' => 'http://lightdatasys.com/app/#',\n ),\n);\n"
},
{
"from": "gpt",
"value": "<?php\nreturn array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Add read more section to bottom of single posts\n"
},
{
"from": "human",
"value": "@extends('layouts.base')\n\n@section('content')\n @while(have_posts()) @php(the_post())\n @include('partials/content-single-'.get_post_type())\n @endwhile\n@endsection\n\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Fix markup for button as search box add-on\n"
},
{
"from": "human",
"value": "<?php\n?>\n<!-- \n<div class=\"search form-wrapper form-group\">\n\t<form method=\"get\" id=\"searchform\" class=\"form-inline form-search\" action=\"<?php echo esc_url( home_url( '/' ) );... | php | chosen |
[
{
"from": "system",
"value": "Add config and changeConfig to interface\n"
},
{
"from": "human",
"value": "<?php namespace Performance\\Lib;\n\n/**\n * Created by PhpStorm.\n * User: bvanhoekelen\n * Date: 13-03-17\n * Time: 21:35\n */\ninterface PerformanceInterface\n{\n /*\n * Set measur... | php | chosen |
[
{
"from": "system",
"value": "Add support for proper aliasing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Elasticsearch;\n\nuse App\\Console\\Helpers\\Indexer;\n\nclass UninstallSearch extends Command\n{\n\n use Index... | php | chosen |
[
{
"from": "system",
"value": "Remove method from pages controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\nuse \\GuzzleHttp\\Client as Guzzle;\n\nclass PagesController extends Controller\n{\n\tpubli... | php | chosen |
[
{
"from": "system",
"value": "Implement draft of config validation for phpunit\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phpcq\\Config\\BuildConfigInterface;\nuse Phpcq\\Plugin\\ConfigurationPluginInterface;\n\nreturn new class implements ConfigurationPluginInterface {\n public function... | php | chosen |
[
{
"from": "system",
"value": "Add array notifier and ability to change existent notifier\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the pinepain/php-weak PHP extension.\n *\n * Copyright (c) 2016 Bogdan Padalko <zaq178miami@gmail.com>\n *\n * Licensed under the MIT l... | php | chosen |
[
{
"from": "system",
"value": "Call set_include_path() to allow tests to run out of the box.\n\ngit-svn-id: b6e219894c353fb1d215c78b2075057d8daadfba@569 44c647ce-9c0f-0410-b52a-842ac1e357ba\n"
},
{
"from": "human",
"value": "<?php\nif (!defined('PHPUnit2_MAIN_METHOD')) {\n define('PHPUnit2_MAI... | php | chosen |
[
{
"from": "system",
"value": "Fix crash due to missing uses\n"
},
{
"from": "human",
"value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvider extends Servi... | php | chosen |
[
{
"from": "system",
"value": "Fix an override in a test.\n\nNot that it made a difference, the test uses the current defaults\nanyway.\n"
},
{
"from": "human",
"value": "<?php\n\n$config = Configuration::getInstance();\n$config->override('auth_module', 'single');\n$config->override('user.default... | php | chosen |
[
{
"from": "system",
"value": "Add missing bundle registration for the SensioBuzzBundle.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function regi... | php | chosen |
[
{
"from": "system",
"value": "Revert memory_limit change from previous commit\n\nCaused Travis builds to fail"
},
{
"from": "human",
"value": "<?php\nini_set('memory_limit', '128M');\n\nrequire __DIR__ . '/../vendor/autoload.php';\n"
},
{
"from": "gpt",
"value": "<?php\nini_set('memo... | php | chosen |
[
{
"from": "system",
"value": "Add a helper function for building translated route links so you can do something like this: linkTo(\"routes.route-name\", array(\"arrays of parameters, slugs\"));\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! function_exists('localization')) {\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Return empty array instead of null\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PostRenderer.php\n *\n * Created By: jonathan\n * Date: 24/09/2017\n * Time: 22:17\n */\n\nnamespace Stati\\Reader;\n\nuse Stati\\Entity\\Page;\nuse Stati\\Entity\\Sass;\nuse Symfon... | php | chosen |
[
{
"from": "system",
"value": "Fix composer autoload for tests\n"
},
{
"from": "human",
"value": "<?php\nrequire_once \"PHPUnit/Extensions/Database/Autoload.php\";\n\nabstract class DataDatabaseTestCase extends PHPUnit_Extensions_Database_TestCase {\n\n\tpublic function getConnection() {\n\t\t$db... | php | chosen |
[
{
"from": "system",
"value": "Add order by start date\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Project\\AppBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * LessonRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custom\n * repository met... | php | chosen |
[
{
"from": "system",
"value": "Add service name for algorithm configuration\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the PcdxParameterEncryptionBundle package.\n *\n * (c) picodexter <https://picodexter.io/>\n *\n * For the full copyright and license information, pl... | php | chosen |
[
{
"from": "system",
"value": "Change all Exception classes with Exceptions suffix\n\nAllow array to be set as method argument in URITemplate\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Examples\\blog\\APP\\Controllers;\n\nuse Phramework\\Phramework;\nuse Phramework\\Validate\\Validate;... | php | chosen |
[
{
"from": "system",
"value": "Fix typo: implemenation > implementation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DesignPatterns\\Structural\\Bridge\\Tests;\n\nuse DesignPatterns\\Structural\\Bridge\\HelloWorldService;\nuse DesignPatterns\\Structural\\Bridge\\HtmlFormatter;\nuse Desig... | php | chosen |
[
{
"from": "system",
"value": "Fix possible list param exploit\n\nSanitize list parameter, so that only the whitelist or blacklist are able to be read."
},
{
"from": "human",
"value": "<?php\nif(!isset($_GET['list']))\n die();\n\n$type = $_GET['list'];\n$rawList = file_get_contents(\"/etc/piho... | php | chosen |
[
{
"from": "system",
"value": "Change client login route to avoid conflicting with laravel bootstrap route\n"
},
{
"from": "human",
"value": "<?php\n$this->router->get('admin/login', [\n 'as' => 'admin.login',\n 'uses' => 'Admin\\Auth\\LoginController@showLoginForm',\n]);\n\n$this->router->post... | php | chosen |
[
{
"from": "system",
"value": "Make sure view names work with prefixed namespaces.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\View;\n\nuse Illuminate\\Contracts\\View\\Factory;\n\nclass View implements ViewInterface\n{\n protected $factory;\n\n\n public function __constru... | php | chosen |
[
{
"from": "system",
"value": "Add persian_arabic_analyzer for title and content\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n 'index' => 'sites',\n 'body' => [\n 'mapping' => [\n 'default' => [\n 'properties' => [\n 'title' ... | php | chosen |
[
{
"from": "system",
"value": "Fix issue when we want to redirect to schemed URL\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bono\\Http;\n\nclass Response extends \\Slim\\Http\\Response {\n\n protected $template = '';\n protected $data = array();\n\n public function set($key, $... | php | chosen |
[
{
"from": "system",
"value": "Improve output of up helper\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseMigrations project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\DatabaseMigrations\\Co... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Reverting to phpunit again\"\n\nThis reverts commit 1159cdeab2c539472e442193199e1ed88683477c.\n\n# Conflicts:\n#\t.travis.yml\n"
},
{
"from": "human",
"value": "<?php\nreturn array (\n 'app_version' => 'v2.0-pre',\n 'hash_version' => 'v2.0-pre-beta-33-g91... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on unterminated multi-line comment\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n// Doctrine (db)\r\n$app['db.options'] = array(\r\n 'driver' => 'pdo_pgsql',\r\n 'charset' => 'utf8',\r\n 'host' => 'ec2-54-83-57-86.compute-1.amazonaws.com',\... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal error on unauthorized page.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aurora\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\n\nclass CheckRole\n{\n /**\n * The Guard implementation.\n *\n * @var Guard... | php | chosen |
[
{
"from": "system",
"value": "Add some missing translation phases\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: antiprovn\n * Date: 12/31/14\n * Time: 2:00 AM\n */\n\nnamespace Application\\Helper;\n\n\nclass Common {\n\n public function __construct()\n {... | php | chosen |
[
{
"from": "system",
"value": "Fix Notification is already in use error"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelDoctrine\\ORM\\Notifications;\n\nuse Doctrine\\Common\\Persistence\\ManagerRegistry;\nuse Illuminate\\Notifications\\Notification;\nuse LaravelDoctrine\\ORM\\Exceptio... | php | chosen |
[
{
"from": "system",
"value": "Remove useless Twig_Loader_String (overloaded via Confgen anyway)"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clue\\Confgen;\n\nuse Twig_Loader_String;\nuse Twig_Environment;\nuse JsonSchema\\Validator;\n\nclass Factory\n{\n public function createConfgen(... | php | chosen |
[
{
"from": "system",
"value": "Update user table seeder to account for table changes.\n"
},
{
"from": "human",
"value": "<?php\n\nclass UsersTableSeeder extends Seeder {\n\n public function run()\n {\n $faker = Faker\\Factory::create();\n\n User::truncate();\n\n User::create([\n '... | php | chosen |
[
{
"from": "system",
"value": "Add check to ensure is in use (stopping the CLI from breaking)\n"
},
{
"from": "human",
"value": "<?php\r\n$curUrl = explode(\"?\",$_SERVER['REQUEST_URI']);\r\n\r\nif(\r\n ($curUrl[0] == Director::baseURL() . 'admin/' ||\r\n $curUrl[0] == Director::baseURL() ... | php | chosen |
[
{
"from": "system",
"value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40392 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa... | php | chosen |
[
{
"from": "system",
"value": "Fix filter New and Users BE\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function run()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove deprecated --dev composer arg\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev', $returnStatus);\nif ($returnStatus !== 0) {\n exit(1);\n}\n\npassthru(\n './vendor/b... | php | chosen |
[
{
"from": "system",
"value": "Add the explanation for the autoloading of doctrine entities\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Extension... | php | chosen |
[
{
"from": "system",
"value": "Fix issue where entry was required when it shouldn't be\n"
},
{
"from": "human",
"value": "<?php\n\nuse Anomaly\\Streams\\Platform\\Database\\Migration\\Migration;\n\n/**\n * Class AnomalyModuleFilesCreateFilesStream\n *\n * @link http://pyrocms.com/\n * @a... | php | chosen |
[
{
"from": "system",
"value": "Enforce InnoDB engine for users table\nIt's required for foreign key constraints by users_* tables\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Fa... | php | chosen |
[
{
"from": "system",
"value": "Fix to send extra padding to prevent from buffering\n"
},
{
"from": "human",
"value": "<?php\nnamespace HomoChecker\\View;\n\nclass ServerSentEventView implements ViewInterface {\n public $event;\n\n public function __construct($event) {\n $this->event ... | php | chosen |
[
{
"from": "system",
"value": "Remove unused reference to the serializer.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP version 5.6\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace Hexagonal\\Doctrine2\\DomainEvents;... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Remove twig loader override to use StringLoader. The loader always returns true for template existence checks and it's deprecated. Shouldn't be too big of a problem as we are already project fixture directory.\n"
},
{
"from": "human",
"value": "<?php\nnamesp... | php | chosen |
[
{
"from": "system",
"value": "Complete the information for the help-plugin\n"
},
{
"from": "human",
"value": "<?php\nclass qr extends Script\n{\n public function run()\n {\n return $this->send('https://chart.googleapis.com/chart?chs=547x547&cht=qr&chl=' . urlencode($this->matches[1]... | php | chosen |
[
{
"from": "system",
"value": "Update global for Readiness Trigger\n\nNo longer just a failure\n"
},
{
"from": "human",
"value": "<?php\n\t/**\n\t * thinkerfw/globals.php\n\t * Creates application-specific global variables\n\t *\n\t * @author Cory Gehr\n\t */\n\n// General settings\ndefine('BASE_... | php | chosen |
[
{
"from": "system",
"value": "Put auth object to static var\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rudolf\\Modules\\A_admin;\nuse Rudolf\\Abstracts\\AModel,\n\tRudolf\\Auth\\Auth;\n\nclass AdminModel extends AModel {\n\n\t/**\n\t * Returns Auth object \n\t * \n\t * @return Auth\n\... | php | chosen |
[
{
"from": "system",
"value": "Set the ENV as 'LOCAL'\n"
},
{
"from": "human",
"value": "<?php\n\n$env = $app->detectEnvironment(function() {\n\n return getenv('APP_ENV') ?: 'LOCAL';\n\n});\n\n"
},
{
"from": "gpt",
"value": "<?php\n\n$env = $app->detectEnvironment(function() {\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40401 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa... | php | chosen |
[
{
"from": "system",
"value": "Make sure language code isset before trying to get it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ContentTranslator\\Entity;\n\nabstract class Translate\n{\n protected $lang;\n protected $db;\n\n public function __construct()\n {\n globa... | php | chosen |
[
{
"from": "system",
"value": "Fix bind shared with singleton when registering the HTML service provider\n"
},
{
"from": "human",
"value": "<?php namespace Aginev\\Datagrid;\n\nuse Collective\\Html\\FormFacade;\nuse Collective\\Html\\HtmlFacade;\nuse Collective\\Html\\HtmlServiceProvider;\nuse Il... | php | chosen |
[
{
"from": "system",
"value": "Use Request::isMethodSafe() according to standard\n\nhttps://tools.ietf.org/html/rfc7231#section-4.2.1\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\EventListener;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Comp... | php | chosen |
[
{
"from": "system",
"value": "Add aliases to the contracts.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rymanalu\\LaravelSimpleUploader;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass UploaderServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the... | php | chosen |
[
{
"from": "system",
"value": "Fix en el archivo de redirección\n"
},
{
"from": "human",
"value": "<?php\n\n# Redirect to the main page \nheader(\"Location: html/home.html\");\ndie();"
},
{
"from": "gpt",
"value": "<?php\n\n# Redirect to the main page \nheader(\"Location: html/login.h... | php | chosen |
[
{
"from": "system",
"value": "Support send to other backend\n"
},
{
"from": "human",
"value": "<?php\n // Outputs all POST parameters to a text file. The file name is the date_time of the report reception\n $fileName = date('Y-m-d_H-i-s').'.txt';\n $file = fopen($fileName,'w') or die('C... | php | chosen |
[
{
"from": "system",
"value": "Remove unused rest-client-url GET param\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Show Wordpress page template.\n * Embed Wordpress page in an iframe.\n *\n * @package PTTRC\n * @subpackage views\n */\n\n// Add iframe parameter.\n$url = $args['url'];\n\nif (... | php | chosen |
[
{
"from": "system",
"value": "Support the app_dev.php front controller"
},
{
"from": "human",
"value": "<?php\n\nclass ContaoValetDriver extends ValetDriver\n{\n /**\n * Determine if the driver serves the request.\n *\n * @param string $sitePath\n * @param string $siteName... | php | chosen |
[
{
"from": "system",
"value": "Allow dev env from my home network\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\... | php | chosen |
[
{
"from": "system",
"value": "Make the theme compatible with the new version of RN tagcloud.\n\ngit-svn-id: d0e296eae3c99886147898d36662a67893ae90b2@2286 653ae4dd-d31e-0410-96ef-6bf7bf53c507\n"
},
{
"from": "human",
"value": "\t</div>\r\n\t<div id=\"bottom-secondary\">\r\n\t\t<div id=\"tags\"><?... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in exception text\n\nSee #2509\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\nuse wcf\\system\\form\\builder\\IFormNode;\n\n/**\n * Implementation of a form field for disabling an object.\n * \n * @author\tMatthias S... | php | chosen |
[
{
"from": "system",
"value": "Revert thumbnail URL change as it costs too much bandwidth for 52Poké\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Lazyload class\n */\n\nclass Lazyload {\n public static function LinkerMakeExternalImage(&$url, &$alt, &$img) {\n global $wgRequest;\n ... | php | chosen |
[
{
"from": "system",
"value": "Resolve session from container, not from request.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\Auth;\n\nuse FluxBB\\Core;\nuse Illuminate\\Auth\\EloquentUserProvider;\nuse Illuminate\\Auth\\Guard;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Add has logger compiler pass and remove redundant one\n"
},
{
"from": "human",
"value": "<?php\n\nuse Heystack\\Core\\DependencyInjection\\CompilerPass;\n\nreturn [\n new CompilerPass\\EventDispatcher(),\n new CompilerPass\\InputProcessorHandler(),\n new Co... | php | chosen |
[
{
"from": "system",
"value": "Use the extracted method, not the original helper.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DoSomething\\Gateway\\Common;\n\nclass Introspector\n{\n /**\n * Returns all traits used by a class, its subclasses and trait of their traits.\n * @se... | php | chosen |
[
{
"from": "system",
"value": "Migrate public test to phpunit 5\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license information, please view the ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace in twig extension\n"
},
{
"from": "human",
"value": "<?php\nrequire '../vendor/autoload.php';\nnamespace Mini\\Twig\\Extension;\n\nclass GeshiExtension extends \\Twig_Extension\n{\n public function getFilters()\n {\n return array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Change param name to match parent\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\Bundle\\MongoDBBundle\\Tests\\Mapping\\Driver;\n\nuse Doctrine\\Bundle\\MongoDBBundle\\Mapping\\Driver\\XmlDriver;\n\nclass XmlDriverTest ex... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"update to remove client type hinting\"\"\n\nThis reverts commit 4442314687fb05190a7dd6dfeb58ae4a6c4e87e9.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace hceudevs\\RateLimitBundle\\Service\\Storage;\n\nuse Noxlogic\\RateLimitBundle\\Service\\... | php | chosen |
[
{
"from": "system",
"value": "Move DB Str import to single line so it can be completely cleaned up on site generation\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Str;\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n ... | php | chosen |
[
{
"from": "system",
"value": "Add helper method to create document IDs\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_Helper_Abstr... | php | chosen |
[
{
"from": "system",
"value": "Replace curly brace class with name of seed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laracasts\\Generators\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\nuse Symfony\\Component\\Console\\Input\\InputOption;\n\nclass SeedMakeCommand extends Ge... | php | chosen |
[
{
"from": "system",
"value": ":lipstick: Fix coding style - lowercase keywords\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clippings\\Freezable;\n\n/**\n * @author Haralan Dobrev <hkdobrev@gmail.com>\n * @copyright 2014, Clippings Ltd.\n * @license http://spdx.org/licenses/BSD-3-C... | php | chosen |
[
{
"from": "system",
"value": "Fix to a bug in the template attribute creation\n"
},
{
"from": "human",
"value": "<?php\n\nApp::uses('AppModel', 'Model');\n\n/**\n * TemplateElementAttribute Model\n *\n*/\nclass TemplateElementAttribute extends AppModel {\n\tpublic $actsAs = array('Containable');... | php | chosen |
[
{
"from": "system",
"value": "Add privacy link in footer\n"
},
{
"from": "human",
"value": "<hr>\n<footer>\n\t<div class=\"row\">\n\t\t<div class=\"col-md-6\">\n\t\t\t<p>© Happy City</p>\n\t\t</div>\n\t\t<div class=\"col-md-6\">\n\t\t\t<p class=\"text-right\">made with ♥ at <a href=\"http:/... | php | chosen |
[
{
"from": "system",
"value": "Add tests for whether or not it is a context.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Eadrax\\Core\\Context;\n\ntrait Core {}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\Eadrax\\Core\\Context;\n\ntrait Core {\n functi... | php | chosen |
[
{
"from": "system",
"value": "Add note about admin review link\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Http\\Transformers;\n\nuse Rogue\\Models\\Post;\nuse League\\Fractal\\TransformerAbstract;\n\nclass PhoenixGalleryTransformer extends TransformerAbstract\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with static variables without initializers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPCfg\\Op\\Terminal;\n\nuse PHPCfg\\Block;\nuse PHPCfg\\Operand;\nuse PHPCfg\\Op\\Terminal;\n\nclass StaticVar extends Terminal {\n public $var;\n publi... | php | chosen |
[
{
"from": "system",
"value": "Use all 8 decimal places currency details\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emailme\\Currency;\n\n\nuse Exception;\nuse Emailme\\Debug\\Debug;\n\n/*\n* CurrencyUtil\n*/\nclass CurrencyUtil\n{\n\n const SATOSHI = 100000000;\n\n /////////////... | php | chosen |
[
{
"from": "system",
"value": "Fix translations not loaded in test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Error\\Tests\\Action;\n\nuse Backend\\Core\\Language\\Language;\nuse Backend\\Core\\Tests\\BackendWebTestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Client;\... | php | chosen |
[
{
"from": "system",
"value": "Update Request::is() to support subdomain handling\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "@section('orchestra/story::primary_menu')\n\n<?php\n\nuse Illuminate\\Support\\Facades\\HTML;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Add run from command line help on the frontpage\n"
},
{
"from": "human",
"value": "@extends('_layouts.main')\n\n@section('content')\n\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-6 col-lg-offset-3\">\n <h1><a class=\"\"... | php | chosen |
[
{
"from": "system",
"value": "Exclude Windows XP from testing\n"
},
{
"from": "human",
"value": "<?php\n\nreturn call_user_func(function () {\n $all_caps = json_decode(file_get_contents(__DIR__ . '/browsers.json'), true);\n return $all_caps;\n});\n"
},
{
"from": "gpt",
"value":... | php | chosen |
[
{
"from": "system",
"value": "Change mass to bulk action\n\nRefactor bulk delete action\n\nFixes\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 LICE... | php | chosen |
[
{
"from": "system",
"value": "Refactor the stock titles for buttons.\n\n\nsvn commit r187\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Swat\n * @license http://opensource.org/licenses/gpl-license.php GNU Public License\n * @copyright silverorange 2004\n */\nrequire_once('Swat/SwatC... | php | chosen |
[
{
"from": "system",
"value": "Add test for current Str::words behavior with leading and trailing spaces.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Str;\n\nclass SupportStrTest extends PHPUnit_Framework_TestCase\n{\n\n\t/**\n\t* Test the Str::words method.\n\t*\n\t* @gr... | php | chosen |
[
{
"from": "system",
"value": "Check if migration exists before publishing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kyranb\\Footprints;\n\nuse Kyranb\\Footprints\\Facades\\FootprintsFacade;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Add fallback array map trim for all input fields by default\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * NOTICE OF LICENSE\n *\n * Part of the Rinvex Support Package.\n *\n * This source file is subject to The MIT License (MIT)\n * that is bundled with this pa... | php | chosen |
[
{
"from": "system",
"value": "Consolidate quotation of HTML attributes in dumps\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gobie\\Debug\\Dumpers;\n\nuse Gobie\\Debug\\DumperManager\\IDumperManager;\nuse Gobie\\Debug\\Helpers;\n\n/**\n * Dumper řetězce.\n */\nclass StringDumper extends... | php | chosen |
[
{
"from": "system",
"value": "Handle cases where we can’t validate a tax ID\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab Payments project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace ... | php | chosen |
[
{
"from": "system",
"value": "Load apps before minimizing the core css and js\n"
},
{
"from": "human",
"value": "<?php\n\nif ($service == 'core.css'){\n\t$minimizer = new OC_Minimizer_CSS();\n\t$files = $minimizer->findFiles(OC_Util::$core_styles);\n\t$minimizer->output($files);\n}\nelse if ($se... | php | chosen |
[
{
"from": "system",
"value": "Update - removed redundant constants from class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\").\n * You may not use th... | php | chosen |
[
{
"from": "system",
"value": "Simplify the buttons beneath the login form\n"
},
{
"from": "human",
"value": "@title('Login')\n\n@extends('layouts.small')\n\n@section('small-content')\n {!! Form::open(['route' => 'login.post']) !!}\n @formGroup('username')\n {!! Form::label('... | php | chosen |
[
{
"from": "system",
"value": "Add APC cache clean function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Webtown\\KunstmaanExtensionBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Template;\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.