conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add missing method to interface\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\n/*\n * This file is part of the FeatureToggle package.\n *\n * (c) Jad Bitar <jadbitar@mac.com>\n *\n * For the full copyright and license information, please view t... | php | chosen |
[
{
"from": "system",
"value": "Update Sharing Tweet message (add emojis too :))\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public Lic... | php | chosen |
[
{
"from": "system",
"value": "Add page and it's method when displaying 404 response\n"
},
{
"from": "human",
"value": "<?php\n\n class Loader\n {\n private $instance = array();\n\n public function page($name, $method='index')\n {\n if ($name==='')\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix evalsha signature, catch zlib/deserialize errors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace sitkoru\\cache\\ar;\n\nuse yii\\redis\\Connection;\n\n/**\n * Class CacheHelper\n *\n * @package common\\components\\cache\n */\nclass CacheHelper\n{\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Make compatible with Laravel 5.3"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spatie\\FailedJobMonitor;\n\nuse Illuminate\\Queue\\Events\\JobFailed;\nuse Illuminate\\Queue\\QueueManager;\nuse Spatie\\FailedJobMonitor\\Senders\\Sender;\n\nclass FailedJobNotifi... | php | chosen |
[
{
"from": "system",
"value": "Set resource to public in LogicboxesComodo.\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelLb;\n\nuse LaravelLb\\LogicBoxes;\n\nclass LogicBoxesActions extends LogicBoxes {\n\n public function __construct()\n {\n parent::__construct();\n... | php | chosen |
[
{
"from": "system",
"value": "Add the themes path config value\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n | The prefix that'll be used for the administration\n |-------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix cookie options parser for php 5.4\n"
},
{
"from": "human",
"value": "<?php\nnamespace SimplyTestable\\WebClientBundle\\Services\\TestOptions\\Adapter\\Request\\FeatureParser;\n\nclass CookieOptionsParser extends OptionsParser {\n\n private $requiredNonBlankFi... | php | chosen |
[
{
"from": "system",
"value": "Fix first id being 0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\ContentBlocks\\ContentBlock;\n\nuse Backend\\Core\\Language\\Locale;\nuse Doctrine\\ORM\\EntityRepository;\nuse Doctrine\\ORM\\Query;\n\nclass ContentBlockRepository extends... | php | chosen |
[
{
"from": "system",
"value": "Extend the right TaxonomyChoiceType class"
},
{
"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": "Change the home list name.\n"
},
{
"from": "human",
"value": "<!-- Sidebar -->\n<div class=\"sidebar\" data-active-color=\"gray\" data-active-color=\"purple\">\n <div class=\"sidebar-wrapper\">\n <div class=\"logo\">\n <a href=\"{{ url('/') }}\"... | php | chosen |
[
{
"from": "system",
"value": "Add test cases for matching strategies\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Scheb\\Tombstone\\Analyzer\\Matching;\n\nuse Scheb\\Tombstone\\Analyzer\\Model\\TombstoneIndex;\nuse Scheb\\Tombstone\\Core\\Model\\Tombstone;\nu... | php | chosen |
[
{
"from": "system",
"value": "Enforce no caching of login page with CSRF token by browser\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Http\\Requests\\Auth\\LoginRequest;\nuse App\\Providers\\RouteService... | php | chosen |
[
{
"from": "system",
"value": "Make verify function false by default\n"
},
{
"from": "human",
"value": "<?php\n\nclass SV_WordCountSearch_XenForo_DataWriter_Discussion_Thread extends XFCP_SV_WordCountSearch_XenForo_DataWriter_Discussion_Thread\n{\n protected function _getFields()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix seeding to respect existing records"
},
{
"from": "human",
"value": "<?php\n\nuse GeneaLabs\\LaravelGovernor\\Action;\nuse GeneaLabs\\LaravelGovernor\\Entity;\nuse GeneaLabs\\LaravelGovernor\\Ownership;\nuse GeneaLabs\\LaravelGovernor\\Permission;\nuse GeneaLabs... | php | chosen |
[
{
"from": "system",
"value": "Add first and surname fields for profile table\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\db\\Migration;\n\n/**\n * Handles the creation for table `profile`.\n */\nclass m160622_095150_create_profile extends Migration\n{\n /**\n * @inheritdoc\n ... | php | chosen |
[
{
"from": "system",
"value": "Replace double quotes with single"
},
{
"from": "human",
"value": "<?php\n\n/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Implement both classes in the wp facade\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! function_exists( 'whip_wp_check_versions' ) ) {\n\t/**\n\t * Facade to quickly check if version requirements are met.\n\t *\n\t * @param array $requirements The requirements t... | php | chosen |
[
{
"from": "system",
"value": "Add missing newline for linting.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire(\"./vendor/autoload.php\");\n\nuse Ihsw\\Toxiproxy\\Toxiproxy;\nuse Ihsw\\Toxiproxy\\ToxicTypes;\nuse Ihsw\\Toxiproxy\\StreamDirections;\n\n$toxiproxy = new Toxiproxy(\"http://toxip... | php | chosen |
[
{
"from": "system",
"value": "Fix smushing of multiple values in Projects \"Additional Hashtags\" field\n\nSummary: Ref T10168. When we render this control, we currently don't put commas into the value correctly if there are multiple alternative hashtags.\n\nTest Plan: Edited a project with multiple alterna... | php | chosen |
[
{
"from": "system",
"value": "Correct routing if URI is not\n\nwhen index.php is not routed on / of the website you could get errors like: \r\nhipay.WARNING: No route found for \"GET /some/place/on/the/server/index.php\" [] []"
},
{
"from": "human",
"value": "<?php\n/**\n * Main entry point\n *\... | php | chosen |
[
{
"from": "system",
"value": "Fix locale, plus better fallback.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'vendor/autoload.php';\n\nclass RelativeDate {\n\n protected $carbon;\n\n public function __construct($date) {\n $this->carbon = new Carbon\\Carbon($date);\n Carbon\\Carbon... | php | chosen |
[
{
"from": "system",
"value": "Improve code + readability & use NOWDOC\n"
},
{
"from": "human",
"value": "<?php\n/**\n * File created by Pierre-Henry Soria <hi@ph7.me>\n */\n\nnamespace PFBC\\Element;\n\nclass Range extends Textbox\n{\n public function render()\n {\n $this->attribute... | php | chosen |
[
{
"from": "system",
"value": "Fix insufficient loading for processing Differential mail\n\nSummary: Some actions (notably, `!accept`) require more information than we currently load.\n\nTest Plan: Piped in some `!accept` mail using `bin/mail receive-test`.\n\nReviewers: btrahan\n\nReviewed By: btrahan\n\nSu... | php | chosen |
[
{
"from": "system",
"value": "Add support for Gift Upgrades 1.4.1\n"
},
{
"from": "human",
"value": "<?php\n\nclass SV_SandboxPaypal_NixFifty_GiftUpgrades_Model_GiftUpgrade extends XFCP_SV_SandboxPaypal_NixFifty_GiftUpgrades_Model_GiftUpgrade\n{\n public function validateRequest(&$errorString... | php | chosen |
[
{
"from": "system",
"value": "Remove restrictable requirement and root url routing\n"
},
{
"from": "human",
"value": "<?php\n\nDirector::addRules(40, array(\n\t''\t\t\t\t\t\t=> 'DashboardController',\n\t'dashboard'\t\t\t\t=> 'DashboardController',\n));\n\nObject::add_extension('Member', 'Dashboa... | php | chosen |
[
{
"from": "system",
"value": "Bring auth-exception-bubbling fix to master\n\nI'm concerned that this try-catch that got removed on develop (6f7ccb7d0c28da416831fcaac27e0a4e5d242bee) is impeding debugging issues people are having on master as well, because Auth exceptions show up through the middleware there... | php | chosen |
[
{
"from": "system",
"value": "Make code of Qrcode unique\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateQrcodesTable extends Migration\n{\n /**\n * Run the migrations.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP HHVM 'A void return value is being used'...\n"
},
{
"from": "human",
"value": "<?php\nnamespace CrudGenerator\\Tests\\General\\FileManager;\n\nuse CrudGenerator\\Utils\\FileManager;\n\nclass FilePutsContentTest extends \\PHPUnit_Framework_TestCase\n{\n pu... | php | chosen |
[
{
"from": "system",
"value": "Use a variadic call instead of call_user_func_array().\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Bundle\\MenuBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Argument\\IteratorArgument;\nuse Symfony\\Component\\... | php | chosen |
[
{
"from": "system",
"value": "[PATCH] Use more precise null and type checks\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * (c) Christian Gripp <mail@core23.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distri... | php | chosen |
[
{
"from": "system",
"value": "Fix Updatescript if no memcache exists\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Update_20150728Legacy38017 extends Kwf_Update\n{\n protected $_tags = array('kwc');\n\n public function update()\n {\n //clear all view caches, required for 7a... | php | chosen |
[
{
"from": "system",
"value": "Check config option before forgetting route parameters\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Middleware;\n\nuse Closure;\n\nclass ForgetLocaleRouteParameter\n{\n /**\n * Handle an incoming ... | php | chosen |
[
{
"from": "system",
"value": "Use fetch column to be independent from the alias\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\Tests\\DBAL\\Functional;\n\nuse Doctrine\\Tests\\DbalFunctionalTestCase;\n\nfinal class LikeWildcardsEscapingTest extends DbalFunctionalTestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add missing save statement in update script\n\nwithout this save nothing at all will be updated\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_List_ChildPages_Teaser_Update_20150309Legacy00002 extends Kwf_Update\n{\n public function postUpdate()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix ending slash in dir\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Based on Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler\n * @see https://github.com/sensio/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php\n */\n\nnamespace BoltSk... | php | chosen |
[
{
"from": "system",
"value": "Tidy up Component Type Seed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Metrique\\Building\\Database\\Seeds;\n\nuse Illuminate\\Database\\Seeder;\n\nclass ComponentTypesSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @retu... | php | chosen |
[
{
"from": "system",
"value": "Fix path - backslashes in paths don't work on linux\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n *\tCopyright 2015 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 ... | php | chosen |
[
{
"from": "system",
"value": "Clear proxy dir before generating new proxies\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Isolate\\Symfony\\IsolateBundle\\Command;\n\nuse Isolate\\LazyObjects\\Proxy\\Adapter\\OcramiusProxyManager\\Factory\\LazyObjectsFactory;\nuse Isolate\\LazyObjects\\P... | php | chosen |
[
{
"from": "system",
"value": "Modify the test for the new function name on RisFieldsMapping\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Funstaff\\RefLibRis\\Tests;\n\nuse Funstaff\\RefLibRis\\RisFieldsMapping;\n\n/**\n * RisFieldsMappingTest\n *\n * @author Bertrand Zuchuat <bertrand.z... | php | chosen |
[
{
"from": "system",
"value": "Set ServiceProvider to be eagerly loaded (not deferred)\n"
},
{
"from": "human",
"value": "<?php namespace Felixkiss\\UniqueWithValidator;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Validation\\Factory;\n\nclass UniqueWithValidatorServiceProvider ... | php | chosen |
[
{
"from": "system",
"value": "Return month numbers in the season"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jaybizzle;\n\nclass Seasons\n{\n /**\n * Seasons.\n * \n * @var array\n */\n public $seasons = array(\n 'Winter',\n 'Spring',\n 'Summer'... | php | chosen |
[
{
"from": "system",
"value": "Update register sidebar function name"
},
{
"from": "human",
"value": "<?php\n/**\n * \n *\n * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.\n *\n * @package podium\n */\n\nfunction podium_widgets_init() {\n\tregister_sidebar( ... | php | chosen |
[
{
"from": "system",
"value": "Throw exception when access login action and module is not enabled.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace thinkerg\\IshtarGate\\controllers;\n\nuse Yii;\nuse thinkerg\\IshtarGate\\models\\LoginForm;\n\n/**\n * \n * @author Thinker_g\n * \n * @propert... | php | chosen |
[
{
"from": "system",
"value": "Fix admin level in system config.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Opwifi\\System;\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Pagination\\Paginator;\n\nuse App\\Models\\OwSys... | php | chosen |
[
{
"from": "system",
"value": "Use formatted price instead of price\n"
},
{
"from": "human",
"value": "<?php\n\n\nclass Product\n{\n private $_name;\n private $_price;\n private $_url;\n\n public function __construct($data)\n {\n $this->_parseData($data);\n }\n\n publi... | php | chosen |
[
{
"from": "system",
"value": "Fix currency converter. Use multiply."
},
{
"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 distribut... | php | chosen |
[
{
"from": "system",
"value": "Set default timezone before tests\n"
},
{
"from": "human",
"value": "<?php\n// @codeCoverageIgnoreStart\nob_start();\nrequire './autoload.inc';\nrequire './block-exit.inc';\nrequire './stubs.inc';\n\n$_SERVER['SERVER_NAME'] = 'example.com';\n$_SERVER['REQUEST_URI'] ... | php | chosen |
[
{
"from": "system",
"value": "Add ServiceListener factory to tests bootstrap\n"
},
{
"from": "human",
"value": "<?php\n\nuse Zend\\ServiceManager\\ServiceManager;\nuse Zend\\Mvc\\Service\\ServiceManagerConfig;\nuse CdliTwoStageSignupTest\\Framework\\TestCase;\nuse CdliTwoStageSignupTest\\Framewo... | php | chosen |
[
{
"from": "system",
"value": "Fix for repository query() response returning model class\n"
},
{
"from": "human",
"value": "<?php\nnamespace Czim\\CmsModels\\Repositories;\n\nuse Czim\\CmsModels\\Contracts\\Repositories\\ModelRepositoryInterface;\nuse Czim\\Repository\\ExtendedRepository;\nuse Il... | php | chosen |
[
{
"from": "system",
"value": "Fix register() method visibility in service provider"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelTrailingSlash;\n\nuse Illuminate\\Routing\\RoutingServiceProvider as BaseRoutingServiceProvider;\nuse LaravelTrailingSlash\\UrlGenerator;\n\nclass Routing... | php | chosen |
[
{
"from": "system",
"value": "Remove reference to deprecated TicketDB class\n"
},
{
"from": "human",
"value": "<?php\nini_set('display_errors', 1);\nerror_reporting(E_ALL);\nrequire_once('class.TicketAdminPage.php');\nrequire_once('class.FlipsideTicketDB.php');\n$page = new TicketAdminPage('Burn... | php | chosen |
[
{
"from": "system",
"value": "Fix api demo link to link to html version\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\ViewComposers;\n\nuse Illuminate\\Contracts\\View\\View;\n\nclass Header\n{\n protected $sections = [\n [\n 'routeKey' => 'developers',\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct UK and EU Widgets.js URLs"
},
{
"from": "human",
"value": "<?php\n\n // Be sure your webserver is configured to never display the contents of this file under any circumstances.\n // The secret_key value below should be protected and never shared with a... | php | chosen |
[
{
"from": "system",
"value": "Use new function names. Pass required data rather than debug file reading values directly.\n"
},
{
"from": "human",
"value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version Functions\ninclude 'functions/getVersion.php';\ni... | php | chosen |
[
{
"from": "system",
"value": "Fix startup error message when vendor directory not found\n"
},
{
"from": "human",
"value": "<?php\n\nuse app\\core\\router\\Router;\nuse josegonzalez\\Dotenv\\Loader;\nuse app\\core\\logging\\Logger;\n\ndefine('APP_ROOT_DIR', realpath('..'));\ndefine('APP_LIB_DIR',... | php | chosen |
[
{
"from": "system",
"value": "Add sorting by link title to NavigationMenu.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A single navigtion menu\n * @author Jon Johnson <jon.johnson@ucsf.edu>\n * @license http://jazzee.org/license.txt\n * @package foundation\n * @subpackage navigation\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Create the nav bar div before anything else\n"
},
{
"from": "human",
"value": "<?php\n\t\n\tsession_start();\n\n\tif (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin'] == true)\n\t{\n\t\techo \"you're an admin\";\n\t}\n\telse{\n\t\t\t\t\n\t\theader(\"Location: sta... | php | chosen |
[
{
"from": "system",
"value": "Check if a key exists in an array, so it doesn't raise an error\n"
},
{
"from": "human",
"value": "<?php\ninclude_once('phpviddler.php');\n\nclass Php5viddler extends Phpviddler { \n function sendRequest($method=null,$args=null,$postmethod='get',$tryagain=true) { ... | php | chosen |
[
{
"from": "system",
"value": "Fix links in public view\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('title')\n {{ $collection->name }}\n @parent\n@stop\n\n@section('main-navigation')\n<!-- Skip -->\n@stop\n\n@section('content')\n<div class=\"container pt-5 mt-5... | php | chosen |
[
{
"from": "system",
"value": "Add test for a basic render\n"
},
{
"from": "human",
"value": "<?php\nclass SparkTest extends PHPUnit_Framework_TestCase\n{\n private $_spark;\n\n protected function setUp() {\n $this->_spark = new Spark\\Core\\Spark();\n }\n \n public function testLo... | php | chosen |
[
{
"from": "system",
"value": "Add a test case of DispatcherBootstrap with other request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Bootstrap\\Test;\n\nuse App\\Bootstrap\\DispatcherBootstrap;\nuse PHPUnit\\Framework\\TestCase;\nuse Zend\\Diactoros\\ServerRequest;\n\nclass Dispatc... | php | chosen |
[
{
"from": "system",
"value": "Refresh the database on tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Unit\\Pages\\Help;\n\nuse Tests\\TestCase;\nuse Tests\\CreatesUser;\nuse Tests\\InteractsWithDatabase;\n\nclass HelpIndexPageTest extends TestCase\n{\n use InteractsWithDat... | php | chosen |
[
{
"from": "system",
"value": "Save the settings from the database step.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ForkCMS\\Bundle\\InstallerBundle\\Form\\Handler;\n\nuse Symfony\\Component\\Form\\Form;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Validates and saves t... | php | chosen |
[
{
"from": "system",
"value": "Add one alternative to feed validator\n\nThis evening, it seems that validator.w3.org is down. Using feedvalidator.org, it adds one alternative.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace j0k3r\\FeedBundle\\Validator\\Constraints;\n\nuse Symfony\\Componen... | php | chosen |
[
{
"from": "system",
"value": "Add the sample class for the base event listener\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners;\n\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\n\nabstract class Listener\n{\n //\n}\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Fix path for publishes array\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SoapBox\\SignedRequests;\n\nuse Illuminate\\Support\\ServiceProvider as IlluminateServiceProvider;\n\nclass ServiceProvider extends IlluminateServiceProvider\n{\n /**\n * Publi... | php | chosen |
[
{
"from": "system",
"value": "Update demo to show interfaces and traits for Example class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2012, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.or... | php | chosen |
[
{
"from": "system",
"value": "Add function for run code source\n"
},
{
"from": "human",
"value": "<?php\nclass Controller{\n\t\n\tprotected $tpl;\n\tprotected $path;\n\tprotected $content = 'index.html';\n\n\tfunction __construct($path) {\n\t\t$this->path = $path;\n \t$this->tpl = new Tpl(LAY... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with UTCDateTime constructor.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Console\\Commands;\n\nuse Northstar\\Models\\User;\nuse MongoDB\\BSON\\UTCDateTime;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Collection;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Add mutator generation to assemble command.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace R\\Hive\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass AssembleCommand extends Command\n{\n protect... | php | chosen |
[
{
"from": "system",
"value": "Add default parameter value as [].\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Testbench\\Traits;\n\nuse Illuminate\\Contracts\\Console\\Kernel as ConsoleK... | php | chosen |
[
{
"from": "system",
"value": "Update full directory for PHP include file\n"
},
{
"from": "human",
"value": "<?php\n\n include(\"/secure/data_db_settings.php\");\n\n # Read GET variables\n $stime = $_POST['stime'];\n $etime = $_POST['etime'];\n $moves = $_POST['moves'];\n\n $con... | php | chosen |
[
{
"from": "system",
"value": "Update to accept partner credentials.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ShippingEasy_Object\n{\n public function request($meth, $path, $params=null, $payload = null)\n {\n $requestor = new ShippingEasy_ApiRequestor();\n return $requestor->req... | php | chosen |
[
{
"from": "system",
"value": "Add general seeder to artisan\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": "[FIX] Update sequence of compile-all change command\n"
},
{
"from": "human",
"value": "<?php\nclass commands_CompileAll extends c_ChangescriptCommand\n{\n\t/**\n\t * @return String\n\t */\n\tfunction getUsage()\n\t{\n\t\treturn \"\";\n\t}\n\t\n\tfunction getAlias()\... | php | chosen |
[
{
"from": "system",
"value": "Add id to translation of designer.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateDesignerTable extends Migration\n{\n /**\n * Run the migrations.\n ... | php | chosen |
[
{
"from": "system",
"value": "Disable Web Profiler for CLI SAPI\n"
},
{
"from": "human",
"value": "<?php\n\nuse Silex\\Provider\\MonologServiceProvider;\nuse Silex\\Provider\\WebProfilerServiceProvider;\n\nerror_reporting(E_ALL ^ E_STRICT);\nini_set('display_errors', 1);\n\n// enable the debug m... | php | chosen |
[
{
"from": "system",
"value": "Fix date of DPA activity properly\n"
},
{
"from": "human",
"value": "<?php\n\nclass CRM_Speakcivi_Logic_Consent {\n public $publicId;\n public $version;\n public $language;\n public $date;\n public $createDate;\n public $level;\n public $method;\n public $me... | php | chosen |
[
{
"from": "system",
"value": "Fix file not found bug\n"
},
{
"from": "human",
"value": "<?php namespace Way\\Generators\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass Controlle... | php | chosen |
[
{
"from": "system",
"value": "Use SilexUser's UserInterface instead of the Symfony Security Component one\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AWurth\\SilexUser\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symf... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with guzzle service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aptoma\\Silex\\Provider;\n\nuse GuzzleHttp\\Client as HttpClient;\nuse GuzzleHttp\\HandlerStack;\nuse Pimple\\Container;\nuse Pimple\\ServiceProviderInterface;\n\n/**\n * Ex... | php | chosen |
[
{
"from": "system",
"value": "Use the browser to send the request\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of ReactGuzzleRing.\n *\n ** (c) 2014 Cees-Jan Kiewiet\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distrib... | php | chosen |
[
{
"from": "system",
"value": "Allow custom translation loader for resources.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Devture\\Bundle\\LocalizationBundle\\Translation;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass ResourceLoader {\n\n private $translator;\n private ... | php | chosen |
[
{
"from": "system",
"value": "Disable auto links by default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fenrizbes\\TypographBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterf... | php | chosen |
[
{
"from": "system",
"value": "Update phpdoc notation on DAO\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nectary;\n\nuse PDO;\n\n/**\n * Just a common class for all daos to extend\n *\n * @package Dao\n */\nabstract class Dao {\n\tpublic $db;\n\n\t/**\n\t * Set up the PDO\n\t *\n\t * ... | php | chosen |
[
{
"from": "system",
"value": "Load the .env file only if the environment variables are not set\n"
},
{
"from": "human",
"value": "<?php\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\nuse Composer\\Autoload\\ClassLoader;\n\nerror_reporting(error_reporting() & ~E_USER_DEPRECATED);\n\n/... | php | chosen |
[
{
"from": "system",
"value": "Allow running outside from a phar archive"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nerror_reporting(E_ALL);\n\nfunction gtk_die($message) {\n $dialog = new \\GtkMessageDialog(null, 0, \\Gtk::MESSAGE_ERROR, \\Gtk::BUTTONS_OK, $message);\n $dia... | php | chosen |
[
{
"from": "system",
"value": "Create seed class for Categories\n"
},
{
"from": "human",
"value": "<?php\n\nclass DatabaseSeeder extends Seeder {\n\n\t/**\n\t * Run the database seeds.\n\t *\n\t * @return void\n\t */\n\tpublic function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('U... | php | chosen |
[
{
"from": "system",
"value": "Sort imported properties by order_column.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nonoesp\\Folio\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Process\\Process;\nuse Symfony\\Component\\Process\\Exception\\ProcessFailedExcept... | php | chosen |
[
{
"from": "system",
"value": "Make result on own line.\n"
},
{
"from": "human",
"value": "<html>\n<head>\n<title>Number Counter</title>\n</head>\n<body>\n\t<?php\n\t\t\tfor ($num=0;\n\t\t\t$num<255;\n\t\t\t$num++)\n\t\t\t{\n\t\t\techo $num;\n\t\t\techo \"<br>\";\n\t\t\t}\n\t?>\n</body>\n</html>\... | php | chosen |
[
{
"from": "system",
"value": "Update Test for static instance variable\n"
},
{
"from": "human",
"value": "<?php\n\n\n/**\n * Include tested classes - required or phpunit fails :-( Should not be the case!\n */\nrequire __DIR__.'/../code/EventDispatcher.php';\n\n/**\n * Class EventTests\n */\ncla... | php | chosen |
[
{
"from": "system",
"value": "Update docblock return type for search against backend\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Imbo\\MetadataSearch\\Interfaces;\n\n/**\n * Metadata search backend interface\n *\n * @author Kristoffer Brabrand <kristoffer@brabrand.net>\n */\ninterface ... | php | chosen |
[
{
"from": "system",
"value": "BAP-108: Implement basic sorter interface\n- removed getQueryBuilder() from interface\n- added sorter to demo bundle\n- added sorter service\n- implemented sorters processing from request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Acme\\Bundle\\DemoGridBu... | php | chosen |
[
{
"from": "system",
"value": "Fix DummyCaptcha use AbstractType class\n"
},
{
"from": "human",
"value": "<?php\nnamespace NyroDev\\UtilityBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\n\nclass DummyCaptchaType extends AbstractType {\n\t\n\tpublic function getParent() {\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Add Legends of Everfree movie support\n"
},
{
"from": "human",
"value": "<?php\n\n\tif (!regex_match(new RegExp('^([a-z\\-]+|\\d+)$'),$data))\n\t\tCoreUtils::NotFound();\n\n\t$assoc = array('friendship-games' => 3);\n\t$flip_assoc = array_flip($assoc);\n\n\tif (!is_... | php | chosen |
[
{
"from": "system",
"value": "Test Directory::create on all adapters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Tests\\Filesystem\\Adapters;\n\nuse React\\EventLoop\\LoopInterface;\nuse React\\Filesystem\\ChildProcess;\nuse React\\Filesystem\\Eio;\nuse React\\Filesystem\\Filesy... | php | chosen |
[
{
"from": "system",
"value": "Add missing validation of radio button form field value\n\nSee #2509\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\n\n/**\n * Implementation of a radio buttons form field for selecting a single value.\n * \n * @author\tMatthi... | php | chosen |
[
{
"from": "system",
"value": "Add optional name and description to task mock\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Aedart\\Scaffold\\Contracts\\Tasks\\ConsoleTask;\nuse M... | php | chosen |
[
{
"from": "system",
"value": "Add caption and alt_text fields to image table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateImagesTable extends Migration {\n\n\t/**\n\t * Run the migrations... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.