conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add schema constraints + documentation\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'specificationBuildMode' => env('OPARL_BUILD_MODE', 'native'),\n\n 'versions' => [\n 'specification' => [\n 'stable' => '~1.0',\n 'latest... | php | chosen |
[
{
"from": "system",
"value": "Add colon after Upcoming Events:\n\n"
},
{
"from": "human",
"value": "<h4 class=\"upcoming-header\">Upcoming Events</h4>\n<?php\n UNL_UCBCN::displayRegion($this->output);\n echo '<p id=\"feeds\">\n <a id=\"icsformat\" title=\"ics format for upcoming... | php | chosen |
[
{
"from": "system",
"value": "Add different function to manage recursivity\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'vendor/autoload.php';\n\nBootstrap::boot();\n\n$a = Csv::csv2array('example.csv');\n\nforeach ($a as $k => $member) {\n if (Member::where('email', $member[2])->count... | php | chosen |
[
{
"from": "system",
"value": "Add id to delete route\n"
},
{
"from": "human",
"value": "<?php \n\nuse Core\\Route;\n\nRoute::get('/', 'PageController@index');\n\nRoute::get('phpinfo', function() {\n phpinfo();\n});\n\nRoute::post('login', 'SessionController@login');\nRoute::get('logout', 'Ses... | php | chosen |
[
{
"from": "system",
"value": "Fix the compiled path for Laravel 5.0.16+\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('LARAVEL_START', microtime(true));\n\n/*\n|--------------------------------------------------------------------------\n| Register The Composer Auto Loader\n|----------------... | php | chosen |
[
{
"from": "system",
"value": "Use no protocol to fetch Lato font\n\nWhen using https://example.com, the welcome page design looks off due to fetching the Lato font on http://.\n\nRef: https://github.com/laravel/framework/issues/7159\n\nBetter yet, instead of https:// or http://, //\n"
},
{
"from": "... | php | chosen |
[
{
"from": "system",
"value": "Add dockblock about when to use each issue type\n"
},
{
"from": "human",
"value": "<?php\nnamespace CFDIReader\\PostValidations;\n\nclass IssuesTypes\n{\n const ERROR = 'ERROR';\n const WARNING = 'WARNING';\n}\n"
},
{
"from": "gpt",
"value": "<?php... | php | chosen |
[
{
"from": "system",
"value": "Change number of blog items on overview page.\n"
},
{
"from": "human",
"value": "<?php\n\n/* -----------------------------------------------------------------------------\nArchive pagination\n--------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Convert left over 5.4 closing bracket\n\nStumbled against another wrong closing bracket."
},
{
"from": "human",
"value": "<?php\nnamespace Aura\\Html;\n\nreturn array(\n 'anchor' => function () { return new Helper\\Anchor; },\n 'attr' => functi... | php | chosen |
[
{
"from": "system",
"value": "Use \\Page instead of Concrete\\Core\\Page\\Page\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Page\\Type\\Composer\\Control\\CorePageProperty;\n\nuse Core;\nuse UserInfo;\nuse Concrete\\Core\\Page\\Page;\n\nclass UserCorePageProperty extends... | php | chosen |
[
{
"from": "system",
"value": "Fix comment replies being duplicated during S/R\n\nTurns out it was quite simple: the reply GUIDs weren't being tracked by\nPHP and sent to the Javascript frontend, so when the frontend created a\nnew reply and updated the entire list of replies, it sent a list with no\nGUIDs i... | php | chosen |
[
{
"from": "system",
"value": "Add nullable to signature column in DB\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddSignatureToWorkflowActivityLogTab... | php | chosen |
[
{
"from": "system",
"value": "Include schdule css into barebone template\n\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n\n <meta charset=\"utf-8\" />\n\n <title>Joutes - Schedule</title>\n\n <link href=\"{{ asset('css/app.css') }}\" rel=\"styleshee... | php | chosen |
[
{
"from": "system",
"value": "UPDATE: Make cache include extension consistent with SS api\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class CacheIncludeSiteTreeExtension\n */\nclass CacheIncludeSiteTreeExtension extends DataExtension\n{\n /**\n * @return array\n */\n public... | php | chosen |
[
{
"from": "system",
"value": "Add title and description to the task.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class DataObjectAnnotatorTask\n *\n * Task to add or remove annotations from a module or dataobject.\n *\n * @package IDEAnnotator/Tasks\n */\nclass DataObjectAnnotatorTask ex... | php | chosen |
[
{
"from": "system",
"value": "Fix array structure in @var annotation"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Codeception\\Subscriber;\n\nuse Codeception\\Event\\TestEvent;\nuse Codeception\\Events;\nuse Codeception\\ResultAggregator;\nuse Symfony\\Componen... | php | chosen |
[
{
"from": "system",
"value": "Fix interface that cannot reference to self\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-201... | php | chosen |
[
{
"from": "system",
"value": "Load local autoloader, if present\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WP_CLI_Login;\n\nif (! class_exists('WP_CLI')) {\n return;\n}\n\nLoginCommand::setPackage(new Package(__DIR__));\n\n\\WP_CLI::add_command('login', LoginCommand::class);\n\n"
... | php | chosen |
[
{
"from": "system",
"value": "Add confirmation before running init command in existing project\n\nugh, another useless commit\n\nUndo temp file\n"
},
{
"from": "human",
"value": "<?php namespace TightenCo\\Jigsaw\\Console;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse TightenCo\... | php | chosen |
[
{
"from": "system",
"value": "Test Controller: add skeleton test\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace engine\\controllers;\r\n\r\nuse Walrus\\core\\WalrusFrontController as WalrusFrontController;\r\n\r\nclass HelloController extends WalrusFrontController\r\n{\r\n\r\n publ... | php | chosen |
[
{
"from": "system",
"value": "Fix flash message on test add\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Egzaminer\\Exam;\n\nuse Egzaminer\\Admin\\Dashboard as Controller;\n\nclass ExamAdd extends Controller\n{\n public function addAction()\n {\n if (isset($_POST['add'])) {... | php | chosen |
[
{
"from": "system",
"value": "Attach doctrine to variables environement\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MirMigration\\Lib;\n\n\nuse Doctrine\\DBAL\\Configuration;\nuse Doctrine\\DBAL\\Connection;\nuse Doctrine\\DBAL\\DriverManager;\n\nclass Doctrine\n{\n private static $... | php | chosen |
[
{
"from": "system",
"value": "Create a standard enum for Exception Codes\n"
},
{
"from": "human",
"value": "<?hh //strict\nenum HTTP: string as string {\n GET = 'GET';\n POST = 'POST';\n PUT = 'PUT';\n DELETE = 'DELETE';\n PATCH = 'PATCH';\n}\nenum AppEnv: string as string {\n API = 'API';... | php | chosen |
[
{
"from": "system",
"value": "Fix logout logger no username\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: rahman\n * Date: 11/5/14\n * Time: 8:47 AM\n */\n\nEvent::listen('auth.login', function($user)\n{\n Event::fire('logger', array(array('login',array('use... | php | chosen |
[
{
"from": "system",
"value": "Return immediately if request is not json\n\nFetching the contents before this check may result in OutOfMemory excpetion if the request is multipart with files."
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the qandidate/symfony-json-request-... | php | chosen |
[
{
"from": "system",
"value": "Remove entitymanagerawaretrait as it's extending abstractservicelocatoraware\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace InfinityBase\\Mapper;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse InfinityBase\\ServiceManager\\AbstractServiceLocatorAware;\n\nabstra... | php | chosen |
[
{
"from": "system",
"value": "Add widget search, change form check bank, remove index.php for url\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace app\\packages\\services\\widgets;\r\n\r\nuse yii\\base\\Widget;\r\nuse yii\\helpers\\ArrayHelper;\r\nuse app\\packages\\services\\models\\Se... | php | chosen |
[
{
"from": "system",
"value": "Update company logos if they didn't previously have one but they do now\n"
},
{
"from": "human",
"value": "<?php\nnamespace GoRemote\\Model;\n\nclass CompanyModel\n{\n\tpublic $id = 0;\n\tpublic $name;\n\tpublic $url = '';\n\tpublic $twitter;\n\tpublic $logo;\n\n\tp... | php | chosen |
[
{
"from": "system",
"value": "Fix model name in subscriptions/postDelete\n"
},
{
"from": "human",
"value": "<?php\nnamespace CodeDay\\Clear\\Controllers\\Manage\\Event;\n\nuse \\CodeDay\\Clear\\Models;\n\nclass SubscriptionsController extends \\Controller {\n public function getIndex()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Improve tag usage in logging helper\n\nTags can be now specified before the message. Nice logger automatically\nrecognices tags specified as a string or as an array.\n\nCloses #2\n"
},
{
"from": "human",
"value": "<?php\n\nclass Log {\n\n public static function eme... | php | chosen |
[
{
"from": "system",
"value": "Add check/override for ignoring recaptcha\n"
},
{
"from": "human",
"value": "<?php\nnamespace Laranix\\AntiSpam\\Middleware;\n\nuse Closure;\nuse Laranix\\AntiSpam\\Sequence\\Sequence;\nuse Laranix\\AntiSpam\\Recaptcha\\Recaptcha;\nuse Laranix\\Support\\Request\\Mid... | php | chosen |
[
{
"from": "system",
"value": "Introduce -d, -v options to list command\n\n-d, --dir, show directories\n-v, --variants, show variants\n"
},
{
"from": "human",
"value": "<?php\nnamespace PhpBrew\\Command;\n\nuse PhpBrew\\Config;\nuse PhpBrew\\VariantParser;\n\nclass ListCommand extends \\CLIFramew... | php | chosen |
[
{
"from": "system",
"value": "Set DB conn data to blank for publication.\n"
},
{
"from": "human",
"value": "<?php\n/**\n*Application settings\n*/\n\ndefine(\"db_user\", \"root\");\ndefine(\"db_pass\", \"\");\ndefine(\"db_host\", \"localhost\");\ndefine(\"db_name\", \"qdi\");\ndefine(\"db_table\"... | php | chosen |
[
{
"from": "system",
"value": "Add dummmy default values in config\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n // Basic author information\n 'site_name' => 'Site Name',\n 'user' => 'John Doe',\n 'email' => 'email@provider.com',\n 'theme' => 'default',\n 'status' => 'l... | php | chosen |
[
{
"from": "system",
"value": "Add the lake header back into the rotation, it looks fine.\n\ngit-svn-id: 71ac0145df79e26b076d62e50011532b62ebd840@97 9841916d-1f77-4d57-ab71-7f08b6dd89e2\n"
},
{
"from": "human",
"value": "<?php\n\n\t$headers = array(\n\t\tarray(\n\t\t\t'img' => 'images/headers/hea... | php | chosen |
[
{
"from": "system",
"value": "Implement a better way of validating incoming requests.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dingo\\Api\\Http;\n\nuse Illuminate\\Http\\Request as IlluminateRequest;\... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Index aangepast zodat deze via ajax Sauna.php ophaalt\"\"\n\nThis reverts commit e3bd68e4342ff3e9a14c193ccf5e1801d17f39e4.\n"
},
{
"from": "human",
"value": "<?php\n\nheader('Location: Sauna.php');\n?>\n"
},
{
"from": "gpt",
"value": "<... | php | chosen |
[
{
"from": "system",
"value": "Add line numbers to yams output\n\nThe error message shows the line number that contains the error\n"
},
{
"from": "human",
"value": "#!/opt/local/bin/php56\n<?php\n\t$input = stream_get_contents(STDIN);\n\n\t$data = yaml_parse($input);\n\n\tif($data !== FALSE) {\n\... | php | chosen |
[
{
"from": "system",
"value": "Update e2e site verification plugin.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: E2E Tests Site Verification Plugin\n * Plugin URI: https://github.com/google/site-kit-wp\n * Description: Utility plugin for bypassing site verification during E2E t... | php | chosen |
[
{
"from": "system",
"value": "Update source directory in coveralls configuration.\n"
},
{
"from": "human",
"value": "<?php\n\nuse mageekguy\\atoum\\reports;\n\n$runner\n\t->addTestsFromDirectory(__DIR__ . '/tests/units/classes')\n\t->disallowUndefinedMethodInInterface()\n;\n\n$travis = getenv('T... | php | chosen |
[
{
"from": "system",
"value": "Handle difference between File and UploadedFile APIs.\n"
},
{
"from": "human",
"value": "<?php namespace VotingApp\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Cache;\n\nclass Setting extends Model\n{\n\n public static function boot()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Mardi 4 Juillet, Matin 1: Correction depreciation\"\n\nThis reverts commit 3f4f94057631c9cbea5f3a0fe4acbe996c1bf409."
},
{
"from": "human",
"value": "<?php\n\n/*\n * To change this license header, choose License Headers in Project Properties.\n * To change ... | php | chosen |
[
{
"from": "system",
"value": "Replace app() helper with the instance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neves\\Events;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\n\nclass EventServiceProvider extends ServiceP... | php | chosen |
[
{
"from": "system",
"value": "Call Segment::init from the service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CachetHQ\\Segment;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass SegmentServiceProvider extends ServiceProvider\n{\n /**\n * Boot the service provider.\... | php | chosen |
[
{
"from": "system",
"value": "Support checkboxes with no value specified\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Brick\\Form\\Element\\Input;\n\nuse Brick\\Form\\Attribute\\CheckedAttribute;\nuse Brick\\Form\\Attribute\\RequiredAttribute;\nuse Brick\\Form\\Attribute\\ValueAttribute... | php | chosen |
[
{
"from": "system",
"value": "Use Email type for `$user->email` field.\n"
},
{
"from": "human",
"value": "<?php namespace ProcessWire\\GraphQL\\Type;\n\nuse GraphQL\\Type\\Definition\\ObjectType;\nuse GraphQL\\Type\\Definition\\Type;\nuse ProcessWire\\GraphQL\\Cache;\n\nclass UserType\n{\n publ... | php | chosen |
[
{
"from": "system",
"value": "Add some help to the daenerys console command.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types = 1);\n\nnamespace LotGD\\Core\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInte... | php | chosen |
[
{
"from": "system",
"value": "Connect the GoogleAdapter with the EventApi\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the CalendArt package\n *\n * For the full copyright and license information, please view the LICENSE file\n * that was distributed with this source co... | php | chosen |
[
{
"from": "system",
"value": "Update test to work with latest classes.\n"
},
{
"from": "human",
"value": "<?php\n\n\nclass SyntaxErrorTest extends \\PHPUnit_Framework_TestCase\n{\n\n /**\n * @expectedException FluxBB\\CommonMark\\Exception\\SyntaxError\n * @expectedExceptionMessage [l... | php | chosen |
[
{
"from": "system",
"value": "Set to false for now."
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Simple honeypot\n |--------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add extra line to password changed message.\n"
},
{
"from": "human",
"value": "<?php\nnamespace tpl;\n\nrequire_once('centerContent.tpl.php');\n\nfunction passwordSuccessfullyChangedMessage() {\n $title = 'Password Changed';\n\n $centerContent = <<<ENDTPL\n ... | php | chosen |
[
{
"from": "system",
"value": "Clean up the tags index action\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Tags\\Actions;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was distribu... | php | chosen |
[
{
"from": "system",
"value": "Use curl instead of file_get_contents\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace KeenIO\\Http\\Adaptor;\n\nuse Buzz\\Browser;\n\n/**\n * Class Buzz\n * @package KeenIO\\Http\\Adaptor\n */\nfinal class Buzz implements AdaptorInterface\n{\n\n private $ap... | php | chosen |
[
{
"from": "system",
"value": "Add the net ApiRoutes method\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Setting\\Providers;\n\nuse Modules\\Core\\Providers\\RoutingServiceProvider as CoreRoutingServiceProvider;\n\nclass RouteServiceProvider extends CoreRoutingServiceProvider\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Make sure that we're testing properly"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2016 RhubarbPHP.\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": "Use getOption to get length for integer (with default)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zizaco\\FactoryMuff\\Kind;\n\nuse Zizaco\\FactoryMuff\\Kind;\n\nclass Integer extends Kind\n{\n public function generate()\n {\n $length = substr($this-... | php | chosen |
[
{
"from": "system",
"value": "Edit base url to use root relative urls\n"
},
{
"from": "human",
"value": "<?php \n//paths\ndefine('ROOT_PATH', dirname(__FILE__, 2).'/');\ndefine('INC_PATH', ROOT_PATH.'inc/');\ndefine('VIEWS_PATH', INC_PATH.'views/');\ndefine('CONTROLLERS_PATH', INC_PATH.'controll... | php | chosen |
[
{
"from": "system",
"value": "Fix: Reduce visibility of provideData from public to protected\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Copyright (c) 2016 Refinery29, Inc.\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distributed with t... | php | chosen |
[
{
"from": "system",
"value": "Remove TODO about steps, coming soon!\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CachetHQ\\Cachet\\Http\\Controllers;\n\nuse CachetHQ\\Cachet\\Models\\Component;\nuse Illuminate\\Routing\\Controller;\nuse Illuminate\\Support\\Facades\\View;\n\nclass Dashb... | php | chosen |
[
{
"from": "system",
"value": "Add default values for form fields\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/**\r\n * @project: Intern Portal.\r\n * @author: nkmathew\r\n * @date: 20/06/2016\r\n * @time: 17:09\r\n */\r\n \r\n/* @var $this yii\\web\\View */\r\n\r\nuse yii\\helpers\\Html;\r\n... | php | chosen |
[
{
"from": "system",
"value": "Use assertInternalType instead of assertTrue\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * These are the test for the core files.\n *\n * @package Open Source Evangelist Agnostic Package\n * @author Surajudeen AKANDE <surajudeen.akande@andela.com>\n * @license... | php | chosen |
[
{
"from": "system",
"value": "Add methods to the validation factory contract."
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Contracts\\Validation;\n\ninterface Factory {\n\n\t/**\n\t * Create a new Validator instance.\n\t *\n\t * @param array $data\n\t * @param array $rules\n\... | php | chosen |
[
{
"from": "system",
"value": "Work on MySQL schema builder.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Database\\Schema;\n\nclass MySqlBuilder extends Builder\n{\n /**\n * Determine if the given table exists.\n *\n * @param string $table\n * @return bo... | php | chosen |
[
{
"from": "system",
"value": "Remove old parameters. Only supporting now --file.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Jean Silva <me@jeancsil.com>\n * @license MIT\n */\nnamespace Jeancsil\\FlightSpy\\Validator;\n\nuse Jeancsil\\FlightSpy\\Command\\Entity\\Parameter;\nuse Sy... | php | chosen |
[
{
"from": "system",
"value": "Add eol id to expectation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Details;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass OrganismTest extends WebserviceTestCase\... | php | chosen |
[
{
"from": "system",
"value": "Fix for fixtures populator entity array\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\FixturesBundle\\Populator;\n\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Kunstmaan\\FixturesBundle\\Populator\\Methods\\MethodInterface;\n\nclass... | php | chosen |
[
{
"from": "system",
"value": "Make sluggable behavior use model's displayField\n"
},
{
"from": "human",
"value": "<?php\nclass SluggableBehavior extends ModelBehavior {\n \n public function setup(Model $Model, $settings = array()) {\n if (!isset($this->settings[$Model->alias])) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add isUser method to the security helper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\DoctrineUserBundle\\Templating\\Helper;\n\nuse Symfony\\Component\\Templating\\Helper\\Helper;\nuse Bundle\\DoctrineUserBundle\\Model\\User;\nuse Symfony\\Componen... | php | chosen |
[
{
"from": "system",
"value": "TASK: Replace RouteComponent::class matchResults with ServerRequestAttributes::ROUTING_RESULTS"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\Flow\\Mvc;\n\nuse Neos\\Flow\\Annotations as Flow;\nuse Neos\\Flow\\Http\\Component\\ComponentContext;\nuse Neos\\F... | php | chosen |
[
{
"from": "system",
"value": "Fix cookie cleanup sometimes not working\n\nMake sure domain and path matches while removing cookies.\nWhy the function doesn't accept Cookie object while setCookie accepts (requires) one is a bit beyond me.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Cop... | php | chosen |
[
{
"from": "system",
"value": "Add minimum of 1 minute before cleanup cron job notifies driver of order.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Crunchbutton_Cron_Job_DriverFixNotify extends Crunchbutton_Cron_Log {\n\n\tpublic function run(){\n\n\t\t$q = '\n\t\tselect `order`.* from `or... | php | chosen |
[
{
"from": "system",
"value": "Set default string length to work around key too long errors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Providers;\n\nuse Laravel\\Dusk\\DuskServiceProvider;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProv... | php | chosen |
[
{
"from": "system",
"value": "Fix registration of sync command\n"
},
{
"from": "human",
"value": "<?php\n\n$config = \\OC::$server->getConfig();\n$dbConnection = \\OC::$server->getDatabaseConnection();\n$userManager = OC::$server->getUserManager();\n$config = \\OC::$server->getConfig();\n\n/** @... | php | chosen |
[
{
"from": "system",
"value": "Allow inside behaviors inside auth controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace frenna\\auth\\controllers;\n\nuse Yii;\nuse yii\\web\\Controller;\nuse yii\\filters\\VerbFilter;\nuse yii\\filters\\AccessControl;\nuse frenna\\auth\\models\\LoginFor... | php | chosen |
[
{
"from": "system",
"value": "Include ObjectURL in the result for CopyObject.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Aws\\S3\\Subscriber;\n\nuse GuzzleHttp\\Command\\Event\\ProcessEvent;\nuse GuzzleHttp\\Event\\SubscriberInterface;\n\n/**\n * Injects ObjectURL into the result model ... | php | chosen |
[
{
"from": "system",
"value": "Fix successful responses generating errors\n"
},
{
"from": "human",
"value": "<?php namespace ThreadMeUp\\Slack;\n\nuse Guzzle\\Http\\Message\\Response as GuzzleResponse;\n\nclass Response\n{\n protected $rawResponse;\n protected $response;\n protected $err... | php | chosen |
[
{
"from": "system",
"value": "Format translation of \"Delete Attribute\" for javascript\n"
},
{
"from": "human",
"value": "<?php\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n?>\n\n<div style=\"display: none\">\n<div id=\"ccm-dialog-delete-attribute\" class=\"ccm-ui\">\n <form method=\"... | php | chosen |
[
{
"from": "system",
"value": "Disable cache header for Apache2 web servers\n\nIf the \"headers\" module is active, disable all cache information during\nmaintenance mode\n"
},
{
"from": "human",
"value": "<?php\nnamespace Corley\\MaintenanceBundle\\Command;\n\nuse Corley\\MaintenanceBundle\\Main... | php | chosen |
[
{
"from": "system",
"value": "Set up composer env by downloading the latest composer.phar\n"
},
{
"from": "human",
"value": "<?php\nclass ComposerShell extends AppShell {\n\tpublic $pharDir;\n\t\n\tpublic function initialize(){\n\t\tif (empty($this->pharDir)){\n\t\t\tif (Configure::read('Compose... | php | chosen |
[
{
"from": "system",
"value": "Move stuff so it looks prettier..\n"
},
{
"from": "human",
"value": "<?php\r\n// Imports\r\nuse ProjectRena\\Lib\\SessionHandler;\r\nuse Slim\\Slim;\r\nuse Slim\\Views\\Twig;\r\nuse Zeuxisoo\\Whoops\\Provider\\Slim\\WhoopsMiddleware;\r\n\r\n// Error display\r\nini_s... | php | chosen |
[
{
"from": "system",
"value": "Fix the findCompany to only fetch active companies"
},
{
"from": "human",
"value": "<?php\nnamespace common\\commands;\n\nuse Yii;\nuse common\\models\\Company;\nuse yii\\helpers\\Url;\n\nclass CompanyDropdown\n{\n public function getMenuDropdown(){\n $com... | php | chosen |
[
{
"from": "system",
"value": "Fix logout logger no username\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: rahman\n * Date: 11/5/14\n * Time: 8:47 AM\n */\n\nEvent::listen('auth.login', function($user)\n{\n Event::fire('logger', array(array('login',array('use... | php | chosen |
[
{
"from": "system",
"value": "Complete the information for the help-plugin\n"
},
{
"from": "human",
"value": "<?php\nclass screenshot extends Script\n{\n\tpublic function run()\n\t{\n\t\treturn $this->send('http://screenshotlayer.com/php_helper_scripts/scl_api.php?url=' . $this->matches[1], 'ima... | php | chosen |
[
{
"from": "system",
"value": "Add missing @Type annotations from test model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tystr\\RestOrm\\Model;\n\nuse Tystr\\RestOrm\\Annotation\\Id;\nuse Tystr\\RestOrm\\Annotation\\Resource;\n\n/**\n * @Resource(\"blogs\")\n */\nclass Blog\n{\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Fix error reported by PHP CS\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BlueChip\\Security\\Tests\\Integration;\n\nclass TestCase extends \\WP_UnitTestCase\n{\n\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace BlueChip\\Security\\Tests\\... | php | chosen |
[
{
"from": "system",
"value": "Use utf8 unicode for collation set\n"
},
{
"from": "human",
"value": "<?php\n\nclass SV_EmailQueue_Listener\n{\n const AddonNameSpace = 'SV_EmailQueue';\n\n public static function install($installedAddon, array $addonData, SimpleXMLElement $xml)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Check that itemAltLabel is string\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Wikidata;\n\nuse Wikidata\\Property;\n\nclass Entity\n{\n /**\n * @var string Entity Id\n */\n public $id;\n\n /**\n * @var string Entity language\n */\n public $lang... | php | chosen |
[
{
"from": "system",
"value": "Make the guzzle client an instance variable during instantiation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace duncan3dc\\Proxy;\n\nuse GuzzleHttp\\Client;\nuse Psr\\Http\\Message\\ResponseInterface;\n\nclass App\n{\n public function run(): void\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix include for group inbox class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Table Definition for group_inbox\n */\nrequire_once 'classes/Memcached_DataObject';\n\nclass Group_inbox extends Memcached_DataObject\n{\n ###START_AUTOCODE\n /* the code below... | php | chosen |
[
{
"from": "system",
"value": "Add ability to set cookies\n"
},
{
"from": "human",
"value": "<?php\nnamespace Solleer\\User;\n\nclass SigninStatus {\n public function setSigninID($id) {\n $_SESSION['user_id'] = $id;\n return true;\n }\n\n public function getSigninID() {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add native return type declaration (array) to Twig functions extension\n"
},
{
"from": "human",
"value": "<?php\n/**\n * User: Simon Libaud\n * Date: 19/03/2017\n * Email: simonlibaud@gmail.com.\n */\nnamespace Sil\\RouteSecurityBundle\\Twig;\n\nuse Sil\\RouteSecuri... | php | chosen |
[
{
"from": "system",
"value": "Add default timezone in examples configuration\nlike bootstrap.php for testing\n"
},
{
"from": "human",
"value": "<?php\ndefine('CMIS_BROWSER_URL', 'http://my.alfresco.tld:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser');\ndefine('CMIS_BROWSER_USER', '... | php | chosen |
[
{
"from": "system",
"value": "Add class name as argument.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHAN... | php | chosen |
[
{
"from": "system",
"value": "Update user table seeder to give proper MM/DD/YYYY string.\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": "Make toMail method compatible with the base class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Base\\Auth;\n\nuse Illuminate\\Auth\\Notifications\\ResetPassword as BaseResetPassword;\nuse Illuminate\\Notifications\\Messages\\MailMessage;\n\nclass Reset... | php | chosen |
[
{
"from": "system",
"value": "Set default timezone to avoid issue with hhvm on travis\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sonata package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license information, p... | php | chosen |
[
{
"from": "system",
"value": "Support return of live channel"
},
{
"from": "human",
"value": "<?php\n/**\n * @package api\n * @subpackage objects.factory\n */\nclass KalturaEntryFactory\n{\n\t/**\n\t * @param int $type\n\t * @param bool $isAdmin\n\t * @return KalturaBaseEntry\n\t */\n\tstatic fu... | php | chosen |
[
{
"from": "system",
"value": "Add null default to getList options param\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Nexylan packages.\n *\n * (c) Nexylan SAS <contact@nexylan.com>\n *\n * For the full copyright and license information, ... | php | chosen |
[
{
"from": "system",
"value": "Reorder items in the config\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Sharding\n |------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add Api token to request"
},
{
"from": "human",
"value": "<?php\n\nnamespace OrgManager\\ApiClient;\n\nuse GuzzleHttp\\Client;\n\nclass OrgManager\n{\n /** @var \\GuzzleHttp\\Client */\n protected $client;\n\n /** @var string */\n protected $baseUrl;\n\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.