conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use phpcs as a library.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev', $returnStatus);\nif ($returnStatus !== 0) {\n exit(1);\n}\n\nrequire 'vendor/autoload.php';\n\npasst... | php | chosen |
[
{
"from": "system",
"value": "Add handle method in order to delegate to fire method for Laravel 5.5"
},
{
"from": "human",
"value": "<?php\n\nnamespace Torann\\Currency\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass Cleanup extends Command\n{\n /**\n * The name and signature of t... | php | chosen |
[
{
"from": "system",
"value": "Enable auto creating translation category\n"
},
{
"from": "human",
"value": "<?php\n\n namespace papalapa\\yiistart\\models;\n\n use papalapa\\yiistart\\modules\\i18n\\models\\SourceMessage;\n use papalapa\\yiistart\\modules\\i18n\\models\\SourceMessageCate... | php | chosen |
[
{
"from": "system",
"value": "Set mongo.native_long only under 64bit PHP build\n"
},
{
"from": "human",
"value": "<?php\n/**\n * RockMongo startup\n *\n * In here we define some default settings and start the configuration files\n * @package rockmongo\n */\n\n/**\n* Defining version number and e... | php | chosen |
[
{
"from": "system",
"value": "Use Whoops middleware on frontend front controller, too\n"
},
{
"from": "human",
"value": "<?php\n\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse Zend\\Diactoros\\Server;\nuse Zend\\Stratigili... | php | chosen |
[
{
"from": "system",
"value": "Fix Twitter engine variable reference."
},
{
"from": "human",
"value": "<?php\n\nnamespace Borfast\\Socializr;\n\nuse ZendService\\Twitter\\Twitter;\n\nclass TwitterEngine implements SocializrInterface\n{\n protected $twitter = null;\n\n\n public function __co... | php | chosen |
[
{
"from": "system",
"value": "Add comment with the value of the hashed password"
},
{
"from": "human",
"value": "<?php\n\nuse Faker\\Generator as Faker;\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|---------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix \"strtoupper expect string but array given\" error\n"
},
{
"from": "human",
"value": "<?php\nnamespace GuzzleHttp\\Command\\Guzzle\\ResponseLocation;\n\nuse GuzzleHttp\\Command\\Guzzle\\Parameter;\nuse GuzzleHttp\\Command\\ResultInterface;\nuse Psr\\Http\\Messag... | php | chosen |
[
{
"from": "system",
"value": "Enable Natural History Services connector. Runs monthly.\n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1440 baf6b65b-9124-4dc3-b1c0-01155b4af546\n"
},
{
"from": "human",
"value": "<?php\n/* connector for Natural History Services\nestimated execution time: ... | php | chosen |
[
{
"from": "system",
"value": "Load class is return by reference rather than returning copy\n"
},
{
"from": "human",
"value": "<?php\n\n if (!function_exists('loadClass'))\n {\n function loadClass($className, $package='library', $vendors=[APP_PATH, SYSTEM_PATH])\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Put remove to the first column and changed the text for adding a url\n"
},
{
"from": "human",
"value": "<html>\n<body>\n<?php\nrequire 'includes/url-list.inc';\n\n$file = $_SERVER[\"DOCUMENT_ROOT\"] . \"/kiosk/sites\";\n$file_list = get_url_list($file);\n$list_count... | php | chosen |
[
{
"from": "system",
"value": "Add capability restriction for banned domains\n"
},
{
"from": "human",
"value": "<?php\nnamespace WPPC\\Capabilities;\n\n/**\n * Callback removes publishing capabilities if current user meets restriction criteria\n *\n * @param $all_caps\n * @param $caps\n * @param ... | php | chosen |
[
{
"from": "system",
"value": "Return false in case one of the values is null\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2014 Lukas Reschke <lukas@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-READM... | php | chosen |
[
{
"from": "system",
"value": "Define a setter for roles to ensure the array is always unique."
},
{
"from": "human",
"value": "<?php\nnamespace Bolt\\Storage\\Entity;\n\n/**\n * Entity for User.\n */\nclass Users extends Entity\n{\n protected $id;\n protected $username;\n protected $pas... | php | chosen |
[
{
"from": "system",
"value": "Replace $model->quantity to $model->getQuantity() !?!?!?\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\n\n?>\n\n<?= Html::beginForm('update-quantity', 'post', ['id' => $model->id]) ?>\n\n <?= Html::hiddenInput('id', $model->id) ?>\n <?php... | php | chosen |
[
{
"from": "system",
"value": "Disable loading apps before starting tests\n\nThe tests it self should load the app if needed\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/../lib/base.php';\n\nif(!class_exists('PHPUnit_Framework_TestCase')) {\n\trequire_once('PHPUnit/Autoload.... | php | chosen |
[
{
"from": "system",
"value": "Add Solr enable/disable commands tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pantheon\\Terminus\\Tests\\Functional;\n\nuse Pantheon\\Terminus\\Tests\\Traits\\LoginHelperTrait;\nuse Pantheon\\Terminus\\Tests\\Traits\\SiteBaseSetupTrait;\nuse Pantheon\... | php | chosen |
[
{
"from": "system",
"value": "Add FormErrors decorator in a better way\n\nThanks to lubs in IRC for pointing this out.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EdpUser\\Form;\n\nuse Zend\\Form\\Form,\n EdpCommon\\Form\\ProvidesEventsForm,\n EdpUser\\Module;\n\nclass Login exte... | php | chosen |
[
{
"from": "system",
"value": "Fix the obvious issue with the link element\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: chewe\r\n * Date: 02/04/2018\r\n * Time: 12:19 AM\r\n */\r\n\r\nnamespace Chewett\\CacheNCrunch;\r\n\r\n\r\nclass CNCHtmlHelper\r\n{\r\... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Add require for global installation\"\n\nThis reverts commit 586d35539e88ce7ade09c8b38ae501e3b81c74d7.\n"
},
{
"from": "human",
"value": "<?php\n\nif ( !defined( 'WP_CLI' ) ) return;\n\nrequire_once 'src/ViewOne/Environment.php';\n\nglobal $argv;\n\n$env = ... | php | chosen |
[
{
"from": "system",
"value": "Change bootstrap to loading routes from config\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ouzo;\n\nclass Bootstrap\n{\n public function __construct()\n {\n error_reporting(E_ALL);\n putenv('environment=prod');\n }\n\n public functi... | php | chosen |
[
{
"from": "system",
"value": "Use $_ENV, for compatibility with PHP's built-in webserver\n"
},
{
"from": "human",
"value": "<?php\n// Bootstrap the framework DO NOT edit this\nrequire COREPATH.'bootstrap.php';\n\n\\Autoloader::add_classes(array(\n\t// Add classes you want to override here\n\t// ... | php | chosen |
[
{
"from": "system",
"value": "Rename test method for clarity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ArrayHelpers;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ArrayHasTest extends TestCase\n{\n public function testWillReturnFalseIfNotAvailable()\n {\n $data = [];\n ... | php | chosen |
[
{
"from": "system",
"value": "Return pool information through the info method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WyriHaximus\\React\\ChildProcess\\Pool;\n\nuse React\\ChildProcess\\Process;\nuse React\\EventLoop\\LoopInterface;\nuse React\\Promise\\PromiseInterface;\nuse WyriH... | php | chosen |
[
{
"from": "system",
"value": "Add implicit `$this` binding to the debug shortcut"
},
{
"from": "human",
"value": "<?php\n\nnamespace Psy;\n\n/**\n * Command to return the eval-able code to startup PsySH.\n *\n * eval(\\Psy\\sh());\n *\n * @return string\n */\nfunction sh()\n{\n return \"e... | php | chosen |
[
{
"from": "system",
"value": "Correct the layouts directory path in docblock.\n\nChanged \"/app/Template/Layout\" to \"/src/Template/Layout\"."
},
{
"from": "human",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation... | php | chosen |
[
{
"from": "system",
"value": "Replace SpoonFileCSV with ForkCMS\\Utility\\Csv\\Writer implementation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Profiles\\Actions;\n\nuse Backend\\Core\\Engine\\Base\\ActionAdd as BackendBaseActionAdd;\n\n/**\n * This is the add-action... | php | chosen |
[
{
"from": "system",
"value": "Fix property access mistake\nBootstrapping should work now\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Herzen\\Admission\\Orm;\n\nuse \\Doctrine\\ORM\\Tools\\Setup;\nuse \\Doctrine\\ORM\\EntityManager;\n\nabstract class Bootstrapper {\n protected static... | php | chosen |
[
{
"from": "system",
"value": "Change Default Setting For User_Id_Type\n\nAccording to the default setting in Laravel"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n \n /*\n |--------------------------------------------------------------------------\n | Users Model\n |--------... | php | chosen |
[
{
"from": "system",
"value": "Update page to correct name in sample\n"
},
{
"from": "human",
"value": "<?php\n\n\t//https://developers.facebook.com/apps/\n\tdefine(\"FB_APP_ID\", \"replace_me\");\n\tdefine(\"FB_APP_SECRET\", \"replace_me\");\n\n\t// Live Streams for testing\n\t// https://www.fac... | php | chosen |
[
{
"from": "system",
"value": "Fix checker for console calls\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PragmaRX\\Health\\Checkers;\n\nclass FilesystemChecker extends BaseChecker\n{\n /**\n * @param $resources\n * @return bool\n */\n public function check($resources)\... | php | chosen |
[
{
"from": "system",
"value": "Add http protocol to host config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\ApcBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension;\nuse Symfony... | php | chosen |
[
{
"from": "system",
"value": "Allow environment variables to be accessed via `getenv()` function.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Config;\n\n/**\n * PHP $_ENV loader for protecting sen... | php | chosen |
[
{
"from": "system",
"value": "Remove comments template from pages\n\n"
},
{
"from": "human",
"value": "<?php\nget_header();\n?>\n\n<?php\nif(have_posts()) {\n the_post();\n?>\n\n<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\n <h1><?php the_title(); ?></h1>\n\n <?php ... | php | chosen |
[
{
"from": "system",
"value": "Remove stric standard notice far calling dynamic method statically.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('Fiskalizator.php');\n$fis = new Fiskalizator();\n\n$fis->certPath = 'path/to/demo/demo.pfx';\n$fis->certPass = 'mypass';\n$fis->CisUrl = 'ht... | php | chosen |
[
{
"from": "system",
"value": "Add tests for npm license formats\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Fxp Composer Asset Plugin package.\n *\n * (c) François Pluchino <francois.pluchino@gmail.com>\n *\n * For the full copyright and license information, pleas... | php | chosen |
[
{
"from": "system",
"value": "Use PSR container interface where possible.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015-2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n ... | php | chosen |
[
{
"from": "system",
"value": "Use table helper for output\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n * Contains \\Drupal\\AppConsole\\Command\\ConfigDebugCommand.\n */\n\nnamespace Drupal\\AppConsole\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony... | php | chosen |
[
{
"from": "system",
"value": "Allow OpenSSL extension to be used.\n\nThe issues I was experiencing was due to a misconfiguration on my machine. By allowing the use of the OpenSSL extension, things are sped up considerably.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace KevinGH\\Box\\Helpe... | php | chosen |
[
{
"from": "system",
"value": "Fix autoload path in example"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"cs-CZ\">\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n\t<meta name=\"viewport\" content=\"width=device-width, in... | php | chosen |
[
{
"from": "system",
"value": "Update HomeController\n-- renamed Home -> HomeController\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class Home\n *\n * Please note:\n * Don't use the same name for class and method, as this might trigger an (unintended) __construct of the class.\n * This is... | php | chosen |
[
{
"from": "system",
"value": "Add an ID to sign-in form for testing.\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('content')\n <h3>Sign In</h3>\n\n {{ Form::open(['route'=> ['sessions.store']]) }}\n {{ Form::label('email', 'Email') }}\n {{ Form::error('email', $error... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with empty object\n\nthrowing error\n"
},
{
"from": "human",
"value": "<?php namespace PHRETS\\Parsers\\GetMetadata;\n\nuse GuzzleHttp\\Message\\ResponseInterface;\nuse Illuminate\\Support\\Collection;\nuse PHRETS\\Session;\n\nclass Object extends Base\n{\... | php | chosen |
[
{
"from": "system",
"value": "Fix first test - Get root page successfully\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Fix CS errors. Damn you jippi\n"
},
{
"from": "human",
"value": "<?php\n\nApp::uses ('DebugPanel', 'DebugKit.Lib');\n\n/**\n * Crud debug panel in DebugKit\n *\n * Licensed under The MIT License\n * Redistributions of files must retain the above copyright notice.\n ... | php | chosen |
[
{
"from": "system",
"value": "Refactor deprecated Twig_Function_Method to Twig_SimpleFunction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ob\\CmsBundle\\Twig;\n\nclass TwigExtensions extends \\Twig_Extension\n{\n private $configs;\n\n /**\n * @param array $configs\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Refactor (Security Controller): Define security acces level\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\Form\\Type\\LoginType;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\... | php | chosen |
[
{
"from": "system",
"value": "Remove Google+ from Social Sharing Bundle (2)\n\nSigned-off-by: Marius Blüm <38edb439dbcce85f0f597d90d338db16e5438073@lineone.io>"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>\n *\n * @author Lukas ... | php | chosen |
[
{
"from": "system",
"value": "Rename and reorder CreateIndexes tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MongoDB\\Tests\\Operation;\n\nuse MongoDB\\Operation\\CreateIndexes;\n\nclass CreateIndexesTest extends TestCase\n{\n /**\n * @expectedException MongoDB\\Exception\\I... | php | chosen |
[
{
"from": "system",
"value": "Set the view content based on the content in the response.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version\t\t$Id$\n * @package Nooku_Server\n * @subpackage Application\n * @copyright\tCopyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://w... | php | chosen |
[
{
"from": "system",
"value": "Fix blog custom field error in blog api\n"
},
{
"from": "human",
"value": "<?php \n\nnamespace Blog\\Extensions;\n\nuse League\\Fractal\\TransformerAbstract;\n\nuse Blog\\Model\\Blog;\n\nclass BlogTransformer extends TransformerAbstract\n{\n\n\tpublic function trans... | php | chosen |
[
{
"from": "system",
"value": "walking-skeleton: Use bcrypt for encrypting password\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass UsersTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public ... | php | chosen |
[
{
"from": "system",
"value": "Fix search results in small screens.\n"
},
{
"from": "human",
"value": "@section('content')\n<div class=\"row\">\n<div class=\"col-xs-8\">\n<h3>{{ $search }} </h3>\n<ul style=\"list-style: none; padding-left: 0px;\">\n@foreach ($items as $item)\n<li>\n<a href=\"{{ r... | php | chosen |
[
{
"from": "system",
"value": "[Admin] Tweak the filters and some UI of the product catalog\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 ... | php | chosen |
[
{
"from": "system",
"value": "Save option added to form builder\n"
},
{
"from": "human",
"value": "<?php\nnamespace AppBundle\\Form\\Type;\n/**\n * Created by PhpStorm.\n * User: kolbusz\n * Date: 08.03.15\n * Time: 14:16\n */\nuse \\Symfony\\Component\\Form\\AbstractType;\nuse \\Symfony\\Compon... | php | chosen |
[
{
"from": "system",
"value": "Return empty menu when no group context available.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bkstg\\CoreBundle\\Menu\\Builder;\n\nuse Bkstg\\CoreBundle\\Context\\GroupContextProvider;\nuse Bkstg\\CoreBundle\\Event\\ProductionMenuCollectionEvent;\nuse Knp... | php | chosen |
[
{
"from": "system",
"value": "Create Club Secretary roles for each club seeded\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\Club;\nuse App\\Models\\Venue;\nuse Illuminate\\Database\\Seeder;\n\nclass ClubsTableSeeder extends Seeder\n{\n public function run(): void\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix static and private combination\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Part of CodeIgniter Simple and Secure Twig\n *\n * @author Kenji Suzuki <https://github.com/kenjis>\n * @license MIT License\n * @copyright 2015 Kenji Suzuki\n * @link ... | php | chosen |
[
{
"from": "system",
"value": "Add return tag to cancel()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Promise;\n\ninterface CancellablePromiseInterface\n{\n public function cancel();\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace React\\Promise;\n\ninterfac... | php | chosen |
[
{
"from": "system",
"value": "Use configuration to test IndexController\n\nThis test assumed a final deployment and a released version. Instead\nuse our configuration to check that we’re getting the file we think\nwe’re getting.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ilios\\WebBu... | php | chosen |
[
{
"from": "system",
"value": "Fix benjamin facade safetypay method call\n"
},
{
"from": "human",
"value": "<?php\n\nclass Ebanx_Gateway_Model_Peru_Safetypay extends Ebanx_Gateway_Payment\n{\n\tprotected $_code = 'ebanx_safetypay';\n\n\tprotected $_formBlockType = 'ebanx/form_safetypay';\n\tprote... | php | chosen |
[
{
"from": "system",
"value": "Use better version comparing code\n"
},
{
"from": "human",
"value": "<?php\n\nfunction checkVersion() {\n $current = file_get_contents(\"version\");\n $current = str_replace(\".\", \"\", $current);\n // Add 1 to the string so update checking definitely work... | php | chosen |
[
{
"from": "system",
"value": "Use the new language extension skeleton.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the French Extension for Flarum.\n *\n * (c) Maël Soucaze <maelsoucaze@gmail.com>\n *\n * For the full copyright and license information, please view the L... | php | chosen |
[
{
"from": "system",
"value": "Fix product re-crawl to use correct method from interface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Handles product re-crawl requests to Nosto via the API.\n */\nclass NostoProductReCrawl\n{\n\t/**\n\t * Sends a product re-crawl request to nosto.\n\t *\n\t... | php | chosen |
[
{
"from": "system",
"value": "Make rad entity repository concrete\n\nThis allows us to configure doctrine to use it as default repository\n(see 759bcc44ca1ec5a13c7dbf8727d8edd587c35e46).\n\nThe default alias generation method has been rewritten using the\ndoctrine's inflector.\n"
},
{
"from": "human... | php | chosen |
[
{
"from": "system",
"value": "Improve detection of complete deployment\n"
},
{
"from": "human",
"value": "<?php\nnamespace Guttmann\\NautCli\\Service;\n\nuse GuzzleHttp\\Client;\n\nclass DeployLogService\n{\n\n public function streamLog(Client $client, $streamLink)\n {\n /** @var \\... | php | chosen |
[
{
"from": "system",
"value": "Add tests for closing connections\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Forestry\\Orm;\n\nclass StorageTest extends \\PHPUnit_Framework_TestCase {\n\n /**\n * Create basic SQLite connection.\n */\n public function testSetSQLiteConnectio... | php | chosen |
[
{
"from": "system",
"value": "Remove array key that has no function\n"
},
{
"from": "human",
"value": "<?php\n\nuse SimpleSAML\\Locale\\Translate;\nuse SimpleSAML\\Module;\nuse SimpleSAML\\XHTML\\Template;\n\n/**\n * Hook to add the cron module to the config page.\n *\n * @param \\SimpleSAML\\XH... | php | chosen |
[
{
"from": "system",
"value": "Fix column default value for MySQL database\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace boltabandoned\\bootstrapcolorpicker\\Field;\n\nuse Bolt\\Storage\\Field\\Type\\FieldTypeBase;\n\nclass BootstrapColorPickerPickerField extends FieldTypeBase\n{\n\n p... | php | chosen |
[
{
"from": "system",
"value": "Return proper reponse in JSON layer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aztech\\Layers\\Elements;\n\nuse Aztech\\Layers\\Responses\\JsonResponse;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n... | php | chosen |
[
{
"from": "system",
"value": "Split line to less than 80 chars so PHPCS stops bitching\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LNCD\\OAuth2server;\n\nclass AccessToken\n{\n public function __construct()\n {\n\n }\n\n public function get(int $sessionId)\n {\n /... | php | chosen |
[
{
"from": "system",
"value": "Fix non informative exception text \n\nError always throw `Stash\\Driver\\AbstractDriver is not available` insead of point what dirver not allowed."
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Stash package.\n *\n * (c) Robert Hafner <te... | php | chosen |
[
{
"from": "system",
"value": "Replace static with dynamic content\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The footer for our theme.\n *\n * Displays all of the footer section following the page content and sidebar\n *\n * @package Simple Blog Theme\n */\n?></div>\n<!-- /.row -->\n\n<hr... | php | chosen |
[
{
"from": "system",
"value": "Allow Tenant job to be configurable.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Tenanti\\Migrator;\n\nuse Illuminate\\Contracts\\Queue\\Job;\nuse Illuminate\\Support\... | php | chosen |
[
{
"from": "system",
"value": "Work on trailing whitespace in code blocks.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\Markdown\\Node;\n\nuse FluxBB\\Markdown\\Common\\Collection;\nuse FluxBB\\Markdown\\Common\\Text;\n\nclass CodeBlock extends Block implements NodeInterface, Nod... | php | chosen |
[
{
"from": "system",
"value": "Add questions methods in category interface\n\nSigned-off-by: Jérémy jégou <06340b1fff1825df2bd0b37e531a5b17f09dfe36@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Qcm\\Component\\Category\\Model;\n\n/**\n * Interface CategoryInterface\n */\ninterf... | php | chosen |
[
{
"from": "system",
"value": "Fix van mij was niet juist, opnieuw gefixed\n"
},
{
"from": "human",
"value": "<?php\nclass CustomTplHelper extends SpotTemplateHelper {\n\n\tfunction cat2color($spot) {\n\t\tswitch( (int) $spot['category']) {\n\t\t\tcase 0: return 'blue'; break;\n\t\t\tcase 1: retu... | php | chosen |
[
{
"from": "system",
"value": "Remove unused use statement, remove extra newline\n"
},
{
"from": "human",
"value": "<?php\nnamespace BryanCrowe\\ApiPagination\\Test;\n\nuse BryanCrowe\\ApiPagination\\Controller\\Component\\ApiPaginationComponent;\nuse Cake\\Controller\\ComponentRegistry;\nuse Cak... | php | chosen |
[
{
"from": "system",
"value": "Update pagination views for use with Bootstrap 5.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Pagination\\Paginator;\nuse Illuminate\\Support\\Facades\\Blade;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppService... | php | chosen |
[
{
"from": "system",
"value": "Replace string submit with SubmitType.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DJBlaster\\BlasterBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsRes... | php | chosen |
[
{
"from": "system",
"value": "Fix navbar for adding options.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Inquisition/admin/components/Option/Edit.php';\nrequire_once 'CME/admin/components/Option/include/CMEOptionHelper.php';\n\n/**\n * @package CME\n * @copyright 2014 silverorang... | php | chosen |
[
{
"from": "system",
"value": "Change 'resolver' argument to 'resolve'\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace GraphQLGen\\Generator\\FragmentGenerators;\n\n\nuse GraphQLGen\\Generator\\Formatters\\StubFormatter;\nuse GraphQLGen\\Generator\\InterpretedTypes\\Nested\\TypeUsageInter... | php | chosen |
[
{
"from": "system",
"value": "Fix middleware if cookie does not exist.\n"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Forum\\Middleware;\n\nuse Flarum\\Support\\Actor;\nuse Flarum\\Core\\Models\\AccessToken;\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Psr\\Http\\Mess... | php | chosen |
[
{
"from": "system",
"value": "Update the namespace during inflection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cerbero\\FluentApi\\Inflectors;\n\n/**\n * Resource inflector using the PSR-4 standard.\n *\n * @author Andrea Marco Sartori\n */\nclass Psr4ResourceInflector implements ... | php | chosen |
[
{
"from": "system",
"value": "Update so you can override the transform date function"
},
{
"from": "human",
"value": "<?php\n\nnamespace JDT\\Api\\Transformers;\n\nuse Carbon\\Carbon;\nuse League\\Fractal\\TransformerAbstract;\n\n/**\n * Class AbstractTransformer.\n */\nabstract class AbstractTr... | php | chosen |
[
{
"from": "system",
"value": "Add get authors to author model\n"
},
{
"from": "human",
"value": "<?php\nclass Author_model extends CI_Model {\n\n public function __construct() {\n $this->load->database();\n }\n\n public function add_author($image = \"\") {\n \t$data = array(\n... | php | chosen |
[
{
"from": "system",
"value": "RUN-316: Move magento extensions into a dedicated directory\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nuse LizardsAndPumpkins\\MagentoConnector\\Api\\Api;\n\nrequire __DIR__ . '/vendor/autoload.php';\nrequire 'app/Mage.php';\nMage::app();\n\ncla... | php | chosen |
[
{
"from": "system",
"value": "Fix 'key was too long' error.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aurora\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap any application services.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Add inner class to tests\n"
},
{
"from": "human",
"value": "<?php\n\nclass ClassWithPrivateData\n{\n /**\n * emulate secret const for php < 7.1, just to ensure that constant still can be read\n */\n const SECRET_CONST = 'SECRET_CONST_VALUE';\n\n /**... | php | chosen |
[
{
"from": "system",
"value": "Use constant to display version\n"
},
{
"from": "human",
"value": "<div class=\"copyright\">\n © 2017 <a href=\"javascript:void(0);\">Ostium CMS | Template by AdminBSB</a>.\n</div>\n<div class=\"version\">\n <b>Version: </b> 0.0.0\n</div>\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Include level, channel, and datetime in extra data sent to Rollbar.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Monolog\\Handler;\n\nuse RollbarNotifier;\nuse Exception;\n\n/**\n * Sends errors to Rollbar\n *\n * @author Paul Statezny <paulstatezny@gmail.c... | php | chosen |
[
{
"from": "system",
"value": "Refactor add cache clear commands compiler pass.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Alexander Volodin <mr-stanlik@yandex.ru>\n * @copyright Copyright (c) 2020, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full c... | php | chosen |
[
{
"from": "system",
"value": "Check for subclasses of ElementpageExtension as well\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package elemental\n */\nclass ElementalArea extends WidgetArea {\n\n\tpublic function Elements() {\n\t\t$result = $this->getComponents('Widgets');\n\n\t\t$list ... | php | chosen |
[
{
"from": "system",
"value": "Add incr to retry job\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by mcfedr on 11/06/2016 11:12\n */\n\nnamespace Mcfedr\\QueueManagerBundle\\Queue;\n\nabstract class AbstractRetryableJob extends AbstractJob implements RetryableJob\n{\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Handle create account command after the form is submitted\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace PerFi\\PerFiBundle\\Controller;\n\nuse PerFi\\PerFiBundle\\Form\\AccountType;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configu... | php | chosen |
[
{
"from": "system",
"value": "Remove default param on slm locale for redirect error\n"
},
{
"from": "human",
"value": "<?php\n/**\n * SlmLocale Configuration\n *\n * If you have a ./config/autoload/ directory set up for your project, you can\n * drop this config file in it and change the values ... | php | chosen |
[
{
"from": "system",
"value": "Fix config if no list sort defined\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AlterPHP\\EasyAdminExtensionBundle\\Configuration;\n\nuse EasyCorp\\Bundle\\EasyAdminBundle\\Configuration\\ConfigPassInterface;\n\n/**\n * Initializes the configuration for all... | php | chosen |
[
{
"from": "system",
"value": "Set the default timeout to null\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Instruments Driver\n\t|--------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Update PHPUnit Testing for Date\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class DateTest\n * @extends PHPUnit_Framework_TestCase\n *\n * @author John P O'Grady <natedrake>\n * @date 07-07-15\n **/\n\nuse NateDrake\\DateHelper\\Date;\n\nrequire_once dir... | php | chosen |
[
{
"from": "system",
"value": "Add check for current locale\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Blog\\Tests;\n\nclass EloquentTagRepositoryTest extends BaseBlogTestCase\n{\n /** @test */\n public function it_finds_a_tag_by_name()\n {\n // Prepare\n $... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.