conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use \"meta\" block for logging variables\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Services;\n\nuse Illuminate\\Support\\Facades\\Log;\nuse Softonic\\GraphQL\\ClientBuilder;\n\nclass GraphQL\n{\n /**\n * Build a new GraphQL client.\n */... | php | chosen |
[
{
"from": "system",
"value": "Read the debug_mode setting from the env file\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Application Debug Mode\n\t|-------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Correct spelling mistake in 'generic_error'"
},
{
"from": "human",
"value": "<?php\n/**\n * Messages for Registration\n *\n * @author Ushahidi Team <team@ushahidi.com>\n * @package Ushahidi\\Application\\Messages\n * @copyright Ushahidi - http://www.ushahidi... | php | chosen |
[
{
"from": "system",
"value": "Use DIRECTORY_SEPARATOR in manually created string paths for comparison, so it will work on Windows platforms.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tighten\\Linters\\Concerns;\n\ntrait LintsNonConfigFiles\n{\n public static function appliesToPath... | php | chosen |
[
{
"from": "system",
"value": "Fix minor issue with the FS registry\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace BlizzardGalaxy\\ApiSupervisor\\Registry;\n\nuse BlizzardGalaxy\\ApiSupervisor\\Exception\\ApiSupervisorException;\n\n/**\n * Offers methods for easily reading in configurati... | php | chosen |
[
{
"from": "system",
"value": "Check on type rather than method exist\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpSpec\\Formatter\\Html;\n\nuse PhpSpec\\Formatter\\Presenter\\StringPresenter;\nuse Exception;\n\nclass HtmlPresenter extends StringPresenter\n{\n public function prese... | php | chosen |
[
{
"from": "system",
"value": "Add kill condition if php does not have GMP extension installed\n"
},
{
"from": "human",
"value": "<?php namespace Brave\\Core\\Providers;\n\nuse Brave\\API;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Facades\\Config;\n\nclass CoreApiServic... | php | chosen |
[
{
"from": "system",
"value": "Add more tests to see where fault is.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for true Mimic library function.\n *\n * @since 0.1.0\n *\n * @todo Need to ... | php | chosen |
[
{
"from": "system",
"value": "Fix reliance on case-sensitive filesystem\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'PHPUnit/Framework.php';\nrequire_once 'FeedTests.php';\nrequire_once 'ContentTests.php';\nrequire_once 'Content/AllTests.php';\n\nclass Atom10_AllTests\n{\n\tpublic s... | php | chosen |
[
{
"from": "system",
"value": "Add missing function in service provider\n"
},
{
"from": "human",
"value": "<?php namespace JTGrimes\\LaravelDB2;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DB2ServiceProvider extends ServiceProvider\n{\n public function boot()\n {\n $this->a... | php | chosen |
[
{
"from": "system",
"value": "Make Mail Queueable by default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FlyingLuscas\\BugNotifier\\Drivers;\n\nuse Illuminate\\Support\\Facades\\Mail;\nuse FlyingLuscas\\BugNotifier\\Message;\n\nclass MailDriver extends Driver implements DriverInterface... | php | chosen |
[
{
"from": "system",
"value": "Remove return Reminder object from createReminder\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CalendarReminder;\n\ninterface ReminderRepository\n{\n /**\n * @param string $date\n * @param string $content\n * @return Reminder\n */\n pu... | php | chosen |
[
{
"from": "system",
"value": "[Validator] Allow DateTime objects as valid DateTimes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Sy... | php | chosen |
[
{
"from": "system",
"value": "Add test for environment location\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Frontend_EnvironmentTest extends CMTest_TestCase {\n\n public function testGetters() {\n $site = CM_Site_Abstract::factory();\n $user = CM_Model_User::createStati... | php | chosen |
[
{
"from": "system",
"value": "Enforce directs non-permitted users to Forbidden.php instead of LoginShopper.php\n"
},
{
"from": "human",
"value": "<?php\n require_once 'database.php';\n\n function rbacCheck($username, $url) {\n $params = [$username, $url];\n $rows = query(\n \"SELECT... | php | chosen |
[
{
"from": "system",
"value": "Add organizer_name and organizer to guarded since they're generated, not actually columns\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Event extend... | php | chosen |
[
{
"from": "system",
"value": "Change from 'float' to 'double' to reduce rounding\n\nSee discussion http://openenergymonitor.org/emon/node/11774#comment-39508\r\nThe imprecision of the float value means that the small increments in the 'power to kWh' process continually get rounded, and therefore never incre... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 7.4 syntax in Sylius components\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 distr... | php | chosen |
[
{
"from": "system",
"value": "Add checks and trim trailing slash.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Resource;\n\n/**\n * Generic resource containing just a relative path.\n */\nclass GenericResource implements Resource\n{\n /**\n * Resource path.\... | php | chosen |
[
{
"from": "system",
"value": "Add support for resolving the types\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPCfg\\Visitor;\n\nuse PHPCfg\\Visitor;\nuse PHPCfg\\Op;\nuse PHPCfg\\Block;\nuse PHPCfg\\Operand;\n\nclass CallFinder implements Visitor {\n \n protected $calls = [];\n... | php | chosen |
[
{
"from": "system",
"value": "Make less verbose as going to try running sep too\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace phpSmug\\Tests;\n\n/**\n * @class\n * Test properties of our codebase rather than the actual code.\n */\nclass PsrComplianceTest extends \\PHPUnit_Framework_TestC... | php | chosen |
[
{
"from": "system",
"value": "Remove a useless method declaration.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Predis\\Commands;\n\nclass InfoV24x extends Info {\n public function canBeHashed() { return false; }\n public function getId() { return 'INFO'; }\n public function p... | php | chosen |
[
{
"from": "system",
"value": "Fix test case bug.return statement is necessary.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GrowthBeatUnOfficial\\Tests\\GrowthAnalytics;\n\nclass ClientTagsTest extends \\PHPUnit_Framework_TestCase\n{\n public function setup()\n {\n }\n\n pub... | php | chosen |
[
{
"from": "system",
"value": "Add \"гугли\" google search query\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Middlewares;\n\nuse App\\Message;\nuse App\\Gitter\\Middleware\\MiddlewareInterface;\n\n/**\n * Class GoogleSearchMiddleware\n * @package App\\Gitter\\Middleware\n */\nclass G... | php | chosen |
[
{
"from": "system",
"value": "Reduce reprocessing factor from 90% to 86%."
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Jobs;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\Sho... | php | chosen |
[
{
"from": "system",
"value": "Read self dir for config\n"
},
{
"from": "human",
"value": "<?php\nrequire_once(__DIR__.'/classes/task.class.php');\n\n$tasks = [];\n\n// Load tasks from json\n$tasks_arr = json_decode(file_get_contents('tasks.json'), true);\nforeach ($tasks_arr as $task_arr) {\n\t$... | php | chosen |
[
{
"from": "system",
"value": "Handle exceptions without app instantiated\n"
},
{
"from": "human",
"value": "<?php\r\n/*\r\n\tpwm Password Manager\r\n\tCopyright Owen Maule 2015\r\n\to@owen-m.com\r\n\thttps://github.com/owenmaule/pwm\r\n\r\n\tLicense: GNU Affero General Public License v3\r\n\r\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix level not returned in getLevel()."
},
{
"from": "human",
"value": "<?php\n\nnamespace MinePlus\\VoterBundle;\n\nclass VoteDispatcher\n{\n \n protected $voters;\n \n public function hasVoters()\n {\n // An empty array cast's into false\n ... | php | chosen |
[
{
"from": "system",
"value": "[Customer][Core] Rename DashboardStatistic customers count() method to countCustomers()\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,... | php | chosen |
[
{
"from": "system",
"value": "Update ServiceProvider & build tools\n"
},
{
"from": "human",
"value": "<?php namespace Dashboard;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DashboardServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if loading of the provider is de... | php | chosen |
[
{
"from": "system",
"value": "Add comment explaining extension boot process\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha... | php | chosen |
[
{
"from": "system",
"value": "Align docblock, remove wrong comment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Surfnet\\SamlBundle\\Tests\\SAML2;\n\nuse PHPUnit_Framework_TestCase as UnitTest;\nuse Surfnet\\SamlBundle\\SAML2\\AuthnRequest;\nuse Surfnet\\SamlBundle\\SAML2\\AuthnRequestF... | php | chosen |
[
{
"from": "system",
"value": "Revert \"FIX: Download of files named \"true\" or \"false\" impossible\"\n\nThis reverts commit d2d71c8797f7e7b51e55bec4217738faaf6a08ca.\nwhich was accidentally commited\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n* ownCloud - ajax frontend\n*\n* @author Robin... | php | chosen |
[
{
"from": "system",
"value": "Load content snippets conditionally and add pagination links\n"
},
{
"from": "human",
"value": "<?php get_header(); ?>\n\n<div class=\"container\">\n <?php // get_template_part(SNIPPETS_DIR . '/header/page', 'header'); ?>\n\n <div id=\"primary\" class=\"conten... | php | chosen |
[
{
"from": "system",
"value": "Set the app base path\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Media\\Tests;\n\nuse Orchestra\\Testbench\\TestCase;\n\nabstract class MediaTestCase extends TestCase\n{\n protected function getPackageProviders($app)\n {\n return [\n ... | php | chosen |
[
{
"from": "system",
"value": "Set session id + Save connection to session\n\nIn order for additional PHP files to make requests to Twitter without\nopening an entirely new connection (e.g, includes requested via AJAX),\nthe initial connection must be stored somewhere. This is best handled\nby session variab... | php | chosen |
[
{
"from": "system",
"value": "BAP-1027: Upgrade Symfony to version 2.3\n- fix code style\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\DataAuditBundle\\Entity\\Repository;\n\nuse Gedmo\\Loggable\\Entity\\Repository\\LogEntryRepository;\nuse Gedmo\\Tool\\Wrapper\\EntityWrappe... | php | chosen |
[
{
"from": "system",
"value": "Remove debug kit from unit tests\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Test\\TestCase;\n\nuse Cake\\Core\\Configure;\nuse Cake\\Core\\Plugin;\nuse Cake\\TestSuite\\TestCase;\n\nclass AppTest extends TestCase\n{\n /**\n * @dataProvider plugi... | php | chosen |
[
{
"from": "system",
"value": "Exclude search fields from pivot models\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Transformers\\Outbound\\Collections\\Traits;\n\ntrait HidesDefaultFields\n{\n\n protected function getIds()\n {\n return [];\n }\n\n protected funct... | php | chosen |
[
{
"from": "system",
"value": "Correct the name of the test class\n\nWas different from the filename\n"
},
{
"from": "human",
"value": "<?php\n\nuse Lfj\\ZfRenderer\\Service\\Renderer;\nuse Zend\\View\\Resolver;\n\nclass StackTest extends PHPUnit_Framework_TestCase\n{\n public function testRen... | php | chosen |
[
{
"from": "system",
"value": "Make sendRequest public and add $templatePrefix option\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emergence\\Site;\n\n\nabstract class RequestHandler extends \\RequestHandler implements IRequestHandler\n{\n protected static function sendResponse(IRespo... | php | chosen |
[
{
"from": "system",
"value": "Fix custom color scheme example\n"
},
{
"from": "human",
"value": "<?php\n\nuse MikeyMike\\CliMenu\\CliMenu;\nuse MikeyMike\\CliMenu\\MenuItem\\TextItem;\n\nrequire_once(__DIR__ . '/../vendor/autoload.php');\n\nini_set('display_errors', 1);\n\n$menu = new CliMenu(\n... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if topic cannot be found.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\Controllers;\n\nuse FluxBB\\Models\\Post;\nuse FluxBB\\Repositories\\Topics;\nuse FluxBB\\Services\\CreateReply;\nuse FluxBB\\Services\\CreateReplyObserver;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Make front page load using API v2.1\n"
},
{
"from": "human",
"value": "<?php\nnamespace Joindin\\Model\\Collection;\n\nclass Event\n{\n public function retrieve($filter = 'all', $limit = 10, $page = 1)\n {\n $events = (array)json_decode(\n fi... | php | chosen |
[
{
"from": "system",
"value": "Comment out active round check in round:sStart\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Console\\Commands;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Console\\Command;\nuse OpenDominion\\Models\\Round;\nuse OpenDominion\\Models\\RoundLeague;\... | php | chosen |
[
{
"from": "system",
"value": "Initialize working directory with root directory\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lauft\\Behat\\BashExtension\\Context;\n\n/**\n * BashContext context for Behat BDD tool.\n * Provides bash base step definitions.\n */\nclass BashContext extends R... | php | chosen |
[
{
"from": "system",
"value": "Add prefix to has table call for MySQL.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Database\\Schema;\n\nclass MySqlBuilder extends Builder {\n\n\t/**\n\t * Determine if the given table exists.\n\t *\n\t * @param string $table\n\t * @return bool... | php | chosen |
[
{
"from": "system",
"value": "Fix inverted longitude and latitude when saving the coordinates to the DB\n"
},
{
"from": "human",
"value": "<?php\nnamespace geotime\\helpers;\nuse geotime\\models\\CalibrationPoint;\nuse geotime\\models\\CoordinateLatLng;\nuse geotime\\models\\CoordinateXY;\nuse L... | php | chosen |
[
{
"from": "system",
"value": "Add piwik visitor tracking to tracking parameters.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neuron\\Net;\n\n/**\n * Class QueryTrackingParameters\n * @package Neuron\\Net\n */\nclass QueryTrackingParameters\n{\n\t/**\n\t * @return QueryTrackingParameter... | php | chosen |
[
{
"from": "system",
"value": "Fix BC for older PHPCodeCoverage versions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Paraunit\\Proxy\\Coverage;\n\nuse Paraunit\\Configuration\\OutputFile;\nuse SebastianBergmann\\CodeCoverage\\Report\\Text;\n\n/**\n * Class TextResult\n * @package Paraun... | php | chosen |
[
{
"from": "system",
"value": "Enable default costructor for plugins instantiation"
},
{
"from": "human",
"value": "<?php\n/**\n * @package api\n * @subpackage objects\n */\nclass KalturaJobData extends KalturaObject\n{\n\t/**\n\t * Extended by job data objects to reflect plugin enum values \n\t ... | php | chosen |
[
{
"from": "system",
"value": "Make sure to pass int group id\n\nPHP somehow allows string parameter passed to a function which requires int...\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//... | php | chosen |
[
{
"from": "system",
"value": "Reset key parameter on profile path redirect\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.\... | php | chosen |
[
{
"from": "system",
"value": "Add test injection in xml asserter\n"
},
{
"from": "human",
"value": "<?php\nnamespace mageekguy\\atoum\\xml;\n\nuse mageekguy\\atoum;\nuse mageekguy\\atoum\\observable;\nuse mageekguy\\atoum\\runner;\nuse mageekguy\\atoum\\test;\n\nclass extension implements atoum\... | php | chosen |
[
{
"from": "system",
"value": "[UPDATE] Add a filter on shipping modes, fix the importa of the dynamic list\n"
},
{
"from": "human",
"value": "<?php\n/**\n * shipping_patch_0360\n * @package modules.shipping\n */\nclass shipping_patch_0360 extends patch_BasePatch\n{\n// by default, isCodePatch()... | php | chosen |
[
{
"from": "system",
"value": "Disable error messages for production.\n"
},
{
"from": "human",
"value": "<?php\n\nini_set('display_errors', '1');\nerror_reporting(E_ALL);\n\nrequire_once dirname(__FILE__).'/system/Application.php';\nApplication::run();\n\n?>\n"
},
{
"from": "gpt",
"va... | php | chosen |
[
{
"from": "system",
"value": "Use proper namespace prefix for ldp\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once \"vendor/autoload.php\";\n\n$valid_types = [\n \"text/turtle\" => \"turtle\",\n \"application/ld+json\" => \"jsonld\",\n \"application/n-triples\" => \"ntriples\"];... | php | chosen |
[
{
"from": "system",
"value": "Return types in manager tests\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Remove class active from pagination\n\nactive class should be on the first page, not on the prev button\n"
},
{
"from": "human",
"value": "<?php include '_include/head.php'; ?>\n\n <div class=\"site\">\n <?php include '_include/header.php'; ?>\n\n <... | php | chosen |
[
{
"from": "system",
"value": "Make verification required field optional\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Optio... | php | chosen |
[
{
"from": "system",
"value": "Add dynamic 'column' key for foreign constraints"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Database\\Schema;\n\nuse Illuminate\\Support\\Str;\n\nclass ForeignIdColumnDefinition extends ColumnDefinition\n{\n /**\n * The schema builder blu... | php | chosen |
[
{
"from": "system",
"value": "Increase default buffer size (incoming MTU)"
},
{
"from": "human",
"value": "<?php\n\nnamespace Datagram;\n\n/** @event message */\n// interface similar to Stream\n// TODO: implment EventEmitter only here?\nclass SocketReadable extends Socket\n{\n public $bufferS... | php | chosen |
[
{
"from": "system",
"value": "Allow to disable deviceCapabilities adapter (i.e. use none)\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Model_DeviceCapabilities extends CM_Model_Abstract {\n\n\tconst TYPE = 20;\n\n\t/**\n\t * @param string $userAgent\n\t */\n\tpublic function __construct(... | php | chosen |
[
{
"from": "system",
"value": "Use bin/node instead of node\n\nbecause node requirement is handled by composer-extra-asset and\ntherefore always existing.\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Trl_Parser_JsParser\n{\n public static function parseContent($content)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Set even more stable point.\n\nDelete unconfigured DTRBundle's directory.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controlle... | php | chosen |
[
{
"from": "system",
"value": "Add test for Brazilian states count\n"
},
{
"from": "human",
"value": "<?php\n\nuse Galahad\\LaravelAddressing\\AdministrativeAreaCollection;\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class AdministrativeAreaCollectionTest\n *\n * @author Junior Grossi <j... | php | chosen |
[
{
"from": "system",
"value": "Add a default time zone\n"
},
{
"from": "human",
"value": "<?php\nif ( ! defined('COOKIE_SESSION') ) {\n ini_set('session.use_cookies', '0');\n ini_set('session.use_only_cookies',0);\n ini_set('session.use_trans_sid',1); \n}\n\nerror_reporting(E_ALL & ~E_NO... | php | chosen |
[
{
"from": "system",
"value": "Update theme name, licence and author"
},
{
"from": "human",
"value": "<?php\n/**\n * i-MSCP - internet Multi Server Control Panel\n * Copyright (C) 2010-2015 by i-MSCP Team\n *\n * This program is free software; you can redistribute it and/or\n * modify it under th... | php | chosen |
[
{
"from": "system",
"value": "Check for existence of config.php and exit with error when missing.\n"
},
{
"from": "human",
"value": "<?php\n\ndate_default_timezone_set('Africa/Cairo');\n\nrequire('src/PingLogger.php');\n\nrequire('config.php');\n\nrequire('auth.php');\n"
},
{
"from": "gp... | php | chosen |
[
{
"from": "system",
"value": "Add default request instance to IoC/DI container\n\n\nFormer-commit-id: 024c89811dbe07f39944e667d24ec09a9a4d2673\nFormer-commit-id: 934a70c6061598ca47f4d3fb638121e943b7b793"
},
{
"from": "human",
"value": "<?php \nnamespace Concrete\\Core\\Http;\nuse \\Concrete\\Cor... | php | chosen |
[
{
"from": "system",
"value": "Add a couple of things to console support provider.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Foundation\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ConsoleSupportServiceProvider extends ServiceProvider {\n\n\t/**\n\t * The... | php | chosen |
[
{
"from": "system",
"value": "Add acf sections to data\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template Name: Homepage\n */\n\n$data = Timber::get_context();\n$data['post'] = new TimberPost();\nTimber::render('home.twig', $data);\n"
},
{
"from": "gpt",
"valu... | php | chosen |
[
{
"from": "system",
"value": "Fix broken cron start command\n"
},
{
"from": "human",
"value": "<?php namespace GrahamCampbell\\Queuing\\Commands;\n\n/**\n * This file is part of Laravel Queuing by Graham Campbell.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ... | php | chosen |
[
{
"from": "system",
"value": "Resolve database for indication unique\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Http\\Controllers;\nuse App\\User;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Facades\\I... | php | chosen |
[
{
"from": "system",
"value": "CRM-5838: Migrate integration's logic from JMSJobQueue to message queue\n\n - Fixing topics names\n"
},
{
"from": "human",
"value": "<?php\nnamespace Oro\\Bundle\\IntegrationBundle\\Async;\n\nclass Topics\n{\n const SYNC_INTEGRATION = 'integration.sync_integratio... | php | chosen |
[
{
"from": "system",
"value": "Save player stats every minute"
},
{
"from": "human",
"value": "<?php\n\nnamespace TimeRanks;\n\nuse pocketmine\\Server;\nuse pocketmine\\scheduler\\PluginTask;\nuse pocketmine\\utils\\Config;\n\nclass minuteSchedule extends PluginTask{\n \n\tpublic function __cons... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if unknown command in used in control console command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phobetor\\RabbitMqSupervisorBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\... | php | chosen |
[
{
"from": "system",
"value": "Test delete does in fact delete requested row\n\ncloses #13\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Tests deleting existing rows from a CSV file.\n *\n * http://github.com/g105b/phpcsv\n * @copyright Copyright Ⓒ 2015 Bright Flair Ltd. (http://brightflair.c... | php | chosen |
[
{
"from": "system",
"value": "Add test : fetching info for a non-existent image\n"
},
{
"from": "human",
"value": "<?php\nnamespace geotime\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse geotime\\Fetch;\n\nclass FetchTest extends \\PHPUnit_Framework_TestCase {\n public function testGetCommons... | php | chosen |
[
{
"from": "system",
"value": "Fix mailchimp test which depends on how many people are on our mailchimp testing list\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(... | php | chosen |
[
{
"from": "system",
"value": "Use plugin directory define for loading\n"
},
{
"from": "human",
"value": "<?php\n// Early loader for APC Cache\ninclude __DIR__ . \"/plugins/apc-cache/plugin.php\";"
},
{
"from": "gpt",
"value": "<?php\n// Early loader for APC Cache\ninclude(YOURLS_PLUG... | php | chosen |
[
{
"from": "system",
"value": "Fix Cancel button when no access to LIST\n\nWhen creating an entry, if the user has no access to LIST, the cancel button should not redirect user to LIST.\r\n\r\nIn this PR i propose we use:\r\n\r\n`url()->previous()`\r\n\r\nThis will redirect the user to whatever page the user... | php | chosen |
[
{
"from": "system",
"value": "Enable support for modern Sculpin projects.\n"
},
{
"from": "human",
"value": "<?php\n\nclass SculpinValetDriver extends BasicValetDriver\n{\n /**\n * Determine if the driver serves the request.\n *\n * @param string $sitePath\n * @param string... | php | chosen |
[
{
"from": "system",
"value": "Remove unused link to cookie.js\nupdate SVN external\n\ngit-svn-id: d66344a971a0a943c9b1d460f97ab888aaee4784@27864 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php\r\n \r\n\t\tfunction get_nested_set_manager($model, $field, $root = 0)... | php | chosen |
[
{
"from": "system",
"value": "Add service flag for NODE_NETWORK_LIMITED (BIP159)\n"
},
{
"from": "human",
"value": "<?php\n\nfunction format_bytes( $size, $precision = 2 ) {\n $base = log( $size, 1024 );\n $suffixes = array( '', 'KB', 'MB', 'GB', 'TB' );\n\n return round( pow( 1024, $ba... | php | chosen |
[
{
"from": "system",
"value": "Use KDatabaseTableAbstract::getBehavior() to create behaviors using the behavior name instead of the full identifier. Component specific behaviors can now also be loaded using behavior names instead of identifier strings.\n"
},
{
"from": "human",
"value": "<?php\n/*... | php | chosen |
[
{
"from": "system",
"value": "Update category stats when moving a thread\n"
},
{
"from": "human",
"value": "<?php namespace Riari\\Forum\\Models\\Observers;\n\nuse Carbon\\Carbon;\nuse Riari\\Forum\\Models\\Thread;\nuse Riari\\Forum\\Support\\Stats;\n\nclass ThreadObserver\n{\n public functio... | php | chosen |
[
{
"from": "system",
"value": "Make sure the APP_ENV is \"testing\" when switching db for tests\n"
},
{
"from": "human",
"value": "<?php\nnamespace Criterion;\nclass Application\n{\n public static $app;\n\n public $config = false;\n public $config_file = false;\n public $mongo = false... | php | chosen |
[
{
"from": "system",
"value": "Create rocketeer plugins file with minimum stability dev/prefer-stable true\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Rocketeer\n *\n * (c) Maxime Fabre <ehtnam6@gmail.com>\n *\n * For the full copyright and license information, please ... | php | chosen |
[
{
"from": "system",
"value": "Handle timezone_string not being set\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WPMissing;\n\nclass Util {\n static function excerpt($text, $length, $more='…') {\n\n $text = strip_shortcodes( $text );\n\n $text = apply_filters('the_content', $text)... | php | chosen |
[
{
"from": "system",
"value": "Fix the bug of initializing the active plugin array.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Google\\Site_Kit\\Modules\\Analytics\\Plugin_Detector\n *\n * @package Google\\Site_Kit\\Modules\\Analytics\n * @copyright 2019 Google LLC\n * @license h... | php | chosen |
[
{
"from": "system",
"value": "Make calendar schedule options translatable\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n"
},
{
"from": "human",
"value": "<?php\nstyle('dav', 'schedule-response');\n?>\n\n<div class=\"update\">\n\t<form action=\"\" method=\... | php | chosen |
[
{
"from": "system",
"value": "Update to rabbitMQ 3 informations\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RabbitMQ\\Management\\Entity;\n\nclass Exchange extends AbstractEntity\n{\n public $name;\n public $vhost;\n public $type;\n public $durable = false;\n public $aut... | php | chosen |
[
{
"from": "system",
"value": "Update modal now includes SemVer specifics\n"
},
{
"from": "human",
"value": "<div class=\"modal fade\" id=\"update\" tabIndex=\"-1\" role=\"dialog\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\... | php | chosen |
[
{
"from": "system",
"value": "FIX: Change of interface, removing the static method\n"
},
{
"from": "human",
"value": "<?php\nclass FlickrTagElasticaIndexingExtension extends Extension implements ElasticaIndexingHelperInterface {\n\n\t/**\n\t * Add a mapping for the location of the photograph\n\t... | php | chosen |
[
{
"from": "system",
"value": "Remove the created_at date from the list view\n"
},
{
"from": "human",
"value": "<div id=\"list\" ng-controller=\"ListCtrl\">\n <div class=\"unpacked\">\n <ul class=\"packing-list\">\n <li ng-repeat=\"item in items | filter:{packed:false}\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Add the constructor and inject Twig\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DrupalVmGenerator\\Command;\n\nuse DrupalVmGenerator\\Style\\DrupalVmStyle;\nuse Symfony\\Component\\Console\\Command\\Command as BaseCommand;\nuse Symfony\\Component\\Console\... | php | chosen |
[
{
"from": "system",
"value": "Allow to use laravie/api without internal request support.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravel\\Lumen\\Routing;\n\nuse Orchestra\\Routing\\VersionedHe... | php | chosen |
[
{
"from": "system",
"value": "Remove 'Forgot password' from sign in form'\n"
},
{
"from": "human",
"value": "<form name=\"loginform\" action=\"<?php bloginfo(\"wpurl\");?>/wp-login.php\" method=\"post\">\n\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo esc_url($_SERVER['REQUEST_... | php | chosen |
[
{
"from": "system",
"value": "Add more information on the server connection failure exception\n\nUse `$e->getErrorMessage()` to get more information on the error\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Elephant.io package\n *\n * For the full copyright and lice... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.