conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add form success message + cast amount profile to integer\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General P... | php | chosen |
[
{
"from": "system",
"value": "Apply numeric array conversion to every JSON request as well\n"
},
{
"from": "human",
"value": "<?php\n/* Copyright (C) NAVER <http://www.navercorp.com> */\n\nclass JSONDisplayHandler\n{\n\n\t/**\n\t * Produce JSON compliant content given a module object.\\n\n\t * @... | php | chosen |
[
{
"from": "system",
"value": "Fix user controller at route"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| Here is wh... | php | chosen |
[
{
"from": "system",
"value": "Fix the incorrect URL being generated\n"
},
{
"from": "human",
"value": "<?php\n\n\nclass Email {\n\tpublic $db = null;\n\tpublic $email = '';\n\tpublic $from = 'luke@lcahill.co.uk';\n\tpublic $subject = 'Note Keeper - please confirm your email.';\n\tpublic $message... | php | chosen |
[
{
"from": "system",
"value": "Disable autoloader when checking for `Throwable`\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Stripe\\Exception;\n\n// TODO: remove this check once we drop support for PHP 5\nif (interface_exists(\\Throwable::class)) {\n /**\n * The base interface fo... | php | chosen |
[
{
"from": "system",
"value": "feat(package): Add language, os and browser methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Unicodeveloper\\Identify;\n\nuse Sinergi\\BrowserDetector\\Browser;\n\nclass Identify {\n\n public function __construct()\n {\n $this->browser = ne... | php | chosen |
[
{
"from": "system",
"value": "Enforce the model serialization trait only if there are params\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Alt Three TestBench.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the... | php | chosen |
[
{
"from": "system",
"value": "Return config instance in closure\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|-----------------------------------------------------------\n| Create the Theme\n|-----------------------------------------------------------\n|\n| Create a new Theme instance which b... | php | chosen |
[
{
"from": "system",
"value": "Remove adding php path to the command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RMiller\\LazyBin;\n\nuse RMiller\\LazyBin\\Process\\CachingExecutableFinder;\nuse RMiller\\LazyBin\\Process\\CommandRunner\\CliFunctionChecker;\nuse RMiller\\LazyBin\\Process... | php | chosen |
[
{
"from": "system",
"value": "[CoreBundle] Add UserRepository\n[UserBundle] Move function which has connection between user and customer to core UserRepository\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 t... | php | chosen |
[
{
"from": "system",
"value": "Use protected visibility as per parent"
},
{
"from": "human",
"value": "<?php\n\nnamespace Shim\\TestSuite;\n\nuse Cake\\TestSuite\\IntegrationTestTrait;\nuse Cake\\TestSuite\\TestCase;\n\n/**\n * Enhanced IntegrationTestCase class with debugging tools.\n */\nabstra... | php | chosen |
[
{
"from": "system",
"value": "FIX : migration throws an error when there is no Draft in the issue table, this can happen if we install the OE on the first time, blank or sample DB\n"
},
{
"from": "human",
"value": "<?php\n\nclass m170222_195519_add_issue_to_draft_prescriptions extends CDbMigrati... | php | chosen |
[
{
"from": "system",
"value": "Add a name to templates\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Campaign\\Model;\n\nclass Template\n{\n /**\n * @var string\n */\n protected $code;\n\n /**\n * @param string $code\n */\n public function __construct($code)\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct missing $format > $serialization\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Saft\\Data;\n\ninterface ParserFactory\n{\n /**\n * Creates a Parser instance for a given format, if available.\n *\n * @param string $format The forma... | php | chosen |
[
{
"from": "system",
"value": "Fix docblock for public key route.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Http\\Controllers;\n\nclass KeyController extends Controller\n{\n public function __construct()\n {\n $this->middleware('role:admin');\n }\n\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Increment a stat every time a route is matched.\n\nIs this overkill? I don’t know!\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Providers;\n\nuse Illuminate\\Contracts\\Events\\Dispatcher as DispatcherContract;\nuse Illuminate\\Foundation\\Suppor... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong HTTP redirection status code\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Middleware;\n\nuse Closure;\n\nclass Authenticate\n{\n /**\n * Handle an incoming request.\n *\n * @para... | php | chosen |
[
{
"from": "system",
"value": "Fix level 1 phpstan issues\n\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace League\\Container\\Inflector;\n\nuse Generator;\nuse League\\Container\\ContainerAwareTrait;\n\nclass InflectorAggregate implements InflectorAggregateInterfac... | php | chosen |
[
{
"from": "system",
"value": "Check for no view in factory\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Slab\\View;\n\nuse InvalidArgumentException;\n\n/**\n * View Factory\n *\n * @package default\n * @author Luke Lanchester\n **/\nclass ViewFactory {\n\n\n\t/**\n\t * @var Slab\\View\\... | php | chosen |
[
{
"from": "system",
"value": "Remove author and description meta tags\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html <?php language_attributes(); ?>>\n<head>\n <meta charset=\"<?php bloginfo('charset'); ?>\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Don't add Change Password item yet\"\n\nThis reverts commit 7dd474eefb54fb31fa09fe50c4634f7bd5f51d71.\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('content')\n @section('nav-left')\n <li><a href=\"{{ route('admin.reque... | php | chosen |
[
{
"from": "system",
"value": "Build Seeder, tambah ini set memory limit"
},
{
"from": "human",
"value": "<?php\n$path = DIR.\"/php/builder/seeds\";\n$dh = opendir($path);\n$paths = [];\nwhile ($filename = readdir($dh)) {\n if (in_array($filename, [\".\",\"..\",\"index.php\"])) continue;\n $pat... | php | chosen |
[
{
"from": "system",
"value": "Use CM_ExceptionHandling_Formatter_Plain to format MetaInfo\n"
},
{
"from": "human",
"value": "<?php\n\nclass CMTest_ExceptionWrapper extends PHPUnit_Framework_ExceptionWrapper {\n\n public function __construct($e) {\n parent::__construct($e);\n\n i... | php | chosen |
[
{
"from": "system",
"value": "Remove deprecated Resource classification logic\n\nThe \\\\Illuminate\\Http\\Resources\\Json\\Resource class has been deprecated in Laravel 6 and has been removed in Laravel 7.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Wnx\\Larav... | php | chosen |
[
{
"from": "system",
"value": "Fix example test for laravel 5.4 compatibility\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n... | php | chosen |
[
{
"from": "system",
"value": "Update Service Provider to 5.4\n"
},
{
"from": "human",
"value": "<?php namespace Jp\\Twilio;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass TwilioServiceProvider extends ServiceProvider {\r\n\r\n\t/**\r\n\t * Indicates if loading of the provider is d... | php | chosen |
[
{
"from": "system",
"value": "Fix de erro no PHP 5\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Factory\\Db\\Adapter;\n\nuse Interop\\Container\\ContainerInterface;\nuse Zend\\Db\\Adapter\\Adapter;\n\nclass Adapter\n{\n public function __invoke(ContainerInterface $container)\n ... | php | chosen |
[
{
"from": "system",
"value": "Order templates by theme and name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\Core\\Template;\n\nuse BoomCMS\\Core\\Models\\Template as Model;\n\nclass Provider\n{\n public function deleteById($id)\n {\n Model::destroy($id);\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add L5.1 fallback to system test provider seed\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Tests\\System\\AlgoWeb\\PODataLaravel;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\n\nclass Tes... | php | chosen |
[
{
"from": "system",
"value": "Add tests for previous commit(\n"
},
{
"from": "human",
"value": "<?php \n\nuse TestApp\\Blog;\n\nclass EntityCollectionTest extends DomainTestCase\n{\n public function setUp()\n {\n parent::setUp();\n $this->analogue->registerMapNamespace(\"Test... | php | chosen |
[
{
"from": "system",
"value": "Revert PhpUnwrapString dependency in the renderer\n\nsplit: 4f00d56ba136b790c387e99555fd8a0a985ae153\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phug\\Renderer\\Adapter;\n\nuse Phug\\Formatter\\Util\\PhpUnwrapString;\nuse Phug\\Renderer\\AbstractAdapter;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix error where DateTime is sometimes null\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Summary\\Data\\Field;\n\nuse Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\nuse DateTime;\nuse DateTimeZone;\n\nclass DatetimeDataFiel... | php | chosen |
[
{
"from": "system",
"value": "Add key in document interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by enea dhack - 16/06/17 08:59 PM.\n */\n\nnamespace Enea\\Cashier\\Contracts;\n\n/**\n * Interface DocumentContract.\n */\ninterface DocumentContract\n{\n /**\n * Get tax... | php | chosen |
[
{
"from": "system",
"value": "Add test for config values and 404 page\n"
},
{
"from": "human",
"value": "<?php\n\nclass CrispusTest extends PHPUnit_Framework_TestCase\n{\n\n private $oCrispus;\n \n public function setUp(){\n if(!defined('ROOT_PATH')){\n define('ROOT_PA... | php | chosen |
[
{
"from": "system",
"value": "Remove check for Hello World\n\nThere is no \"Hello World\" page on the default install, just displays \"Lumen.\" So we should be able to assert that the response is OK to get green on a default install, similar the default test on laravel/laravel."
},
{
"from": "human"... | php | chosen |
[
{
"from": "system",
"value": "Remove abstract method from fail fast request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nectary;\n\nuse Nectary\\Request;\n\n/**\n * A request will validate based on a set of rules\n *\n * A request can also be used to take in options and\n * pull in the... | php | chosen |
[
{
"from": "system",
"value": "Update the view for new notice handling\n"
},
{
"from": "human",
"value": "\n<div id=\"notice\">\n<?php foreach($notifications as $type => $notification): ?>\n\t<?php if ( ! empty($notification)): ?>\n\n\t<?php foreach ($notification as $notice): ?>\n\t<div class=\"... | php | chosen |
[
{
"from": "system",
"value": "Fix: Use proper variable for display name drivers in user extender\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * For detailed copyright and license information, please view the\n * LICENSE file that was distributed with this... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Allow title and content to be filled\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Websight\\Polyfaq;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\n/**\n * Class Faq\n *\n * @property integer $id\n * @property \\Carbon\\Carbon $created_at\n * @prop... | php | chosen |
[
{
"from": "system",
"value": "Include functions library in main file\n"
},
{
"from": "human",
"value": "<?php\n\necho $_SERVER['QUERY_STRING'];\n\n// Split query string and perform actions based on it with conditional includes\n\n?>\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_o... | php | chosen |
[
{
"from": "system",
"value": "Fix array syntax for 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TwigBridgeTests\\View;\n\nuse PHPUnit_Framework_TestCase;\nuse Mockery as m;\nuse Illuminate\\View\\Environment;\nuse TwigBridge\\View\\View;\nuse TwigBridge\\Engines\\TwigEngine;\nuse Tw... | php | chosen |
[
{
"from": "system",
"value": "Add Manage App Store link\n"
},
{
"from": "human",
"value": "<?php\ndefine('COOKIE_SESSION', true);\nrequire_once(\"../config.php\");\nsession_start();\nrequire_once(\"gate.php\");\nif ( $REDIRECTED === true || ! isset($_SESSION[\"admin\"]) ) return;\n\nsetcookie(\"... | php | chosen |
[
{
"from": "system",
"value": "Remove support for versions before 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ferret\\Detector;\n\nuse \\Ferret\\Detector\\DetectorInterface;\n\nuse \\Ferret\\Detector\\Exception\\DetectorException;\n\nclass Fileinfo extends DetectorAbstract\n{\n pro... | php | chosen |
[
{
"from": "system",
"value": "Add config to publish command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pixelpeter\\Genderize;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass GenderizeServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap the application services.\... | php | chosen |
[
{
"from": "system",
"value": "Add comments for image class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PiradoIV\\Munchitos;\n\nclass Image\n{\n protected $node;\n\n /**\n * Creates a new Image instance.\n *\n * @param DOMNode $node A DOMNode instance.\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add facade loader and example to readme\n"
},
{
"from": "human",
"value": "<?php\nnamespace Darkin1\\Intercom;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Facades\\Config;\nuse Intercom\\IntercomClient;\n\nclass IntercomServiceProvider ext... | php | chosen |
[
{
"from": "system",
"value": "Add internal data to suggestions for use by plugins\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Phan;\n\n/**\n * This may be extended later to support the language server protocol\n * (E.g. will contain a representation of 1 or mor... | php | chosen |
[
{
"from": "system",
"value": "Set brand to 'New Item', set barcode if given, link to vendor items\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/item.php';\n\n$code= $_REQUEST['code'];\n$name= $_REQUEST['name'];\n$msrp= $_REQUEST['retail_price'];\n\nif (!$code)\n ... | php | chosen |
[
{
"from": "system",
"value": "Use readable job status code\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nclass DeleteJobAction extends ApiActionBase\r\n{\r\n\tprotected static $required_privileges = array(Auth::PROCESS_MANAGE);\r\n\r\n\tprotected static $rules = array(\r\n\t\t'jobID' => array(... | php | chosen |
[
{
"from": "system",
"value": "Update the version number to 1.0.0\n"
},
{
"from": "human",
"value": "<?php\n/*\nPlugin Name: Fieldbook for Gravity Forms\nDescription: Send Gravity Form submissions to Fieldbook.\nVersion: 0.1\nAuthor: Joe Winter\nAuthor URI: https://joe.ventures\nLicense: GPL2\n*/... | php | chosen |
[
{
"from": "system",
"value": "Add tinymce provider to maintenance provider list\n\nfixes build when using maintenance.\nfixes #316\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Assets_ProviderList_Maintenance extends Kwf_Assets_ProviderList_Abstract\n{\n public function __construct()\n ... | php | chosen |
[
{
"from": "system",
"value": "test: Update test to reflect new and better upstream behaviour\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Trim surrounding single blank lines\n */\n/**\n * Trim single space after anything\n * Do not trim exactly two space because of Markdown \n * Do not tri... | php | chosen |
[
{
"from": "system",
"value": "Remove the uniqueness rule here as it prevented saving changes when the email address was not changed.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Validation\\EntityRules;\n\nuse App\\Entities\\User;\nuse Somnambulist\\EntityValidation\\AbstractEntity... | php | chosen |
[
{
"from": "system",
"value": "Use JsonResource to identify API Resource"
},
{
"from": "human",
"value": "<?php\n\nnamespace Wnx\\LaravelStats\\Classifiers;\n\nuse Wnx\\LaravelStats\\ReflectionClass;\nuse Wnx\\LaravelStats\\Contracts\\Classifier;\nuse Illuminate\\Http\\Resources\\Json\\Resource;\... | php | chosen |
[
{
"from": "system",
"value": "Remove unused set*(Collection) methods on models\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 ... | php | chosen |
[
{
"from": "system",
"value": "Make use of random_bytes for better uniqueness\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\n/*\n * This file is part of the Monolog package.\n *\n * (c) Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license informatio... | php | chosen |
[
{
"from": "system",
"value": "Abort on csrf error for login\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.\n\nnamespace Ap... | php | chosen |
[
{
"from": "system",
"value": "Add PHP_EOL to the marker shape helper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Templating\\Helper;\n\nuse Ivory\\GoogleMapBundle\\Model\\MarkerShape;\n\n/**\n * Marker shape helper allows easy rendering\n *\n * @author GeLo <gel... | php | chosen |
[
{
"from": "system",
"value": "Add config option to set default instance.\nStop abusing types, use SiteInstance.\nPush instance detection up to Site.\n\n\nsvn commit r24964\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Site/SiteApplicationModule.php';\n\n/**\n * Web application module... | php | chosen |
[
{
"from": "system",
"value": "Change story index to use standard link for show action\n"
},
{
"from": "human",
"value": "@extends('layouts.admin')\n\n@section('title') Stories @endsection\n\n@section('content')\n\n<table class=\"table table-striped\">\n <thead>\n <tr>\n <th style=\"widt... | php | chosen |
[
{
"from": "system",
"value": "Enable the all list payment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Morfeu\\Bundle\\PaymentBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Optio... | php | chosen |
[
{
"from": "system",
"value": "Make Angle unit test namespace match the rest of the tests.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpUnitsOfMeasure\\PhysicalQuantity;\n\nclass AngleTest extends \\PHPUnit_Framework_TestCase\n{\n public function testToDegrees()\n {\n $an... | php | chosen |
[
{
"from": "system",
"value": "Make it out of p tag for reg\n"
},
{
"from": "human",
"value": "@extends('theme/main')\n@section('title')\nLogin - Researchew\n@endsection\n@section('content')\n<div class=\"am-container\">\n <div class=\"am-u-sm-8 am-u-sm-centered\">\n @if(Session::has('m... | 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": "[MOD] Apply batch to all users\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@52510 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project\n//\n// All Right... | php | chosen |
[
{
"from": "system",
"value": "Update item page. Show image description.\n"
},
{
"from": "human",
"value": "<?php\n/* @var $this yii\\web\\View */\n/* @var $item frontend\\models\\Item */\n?>\n<?php if (!empty($item->preview)) { ?>\n <div class=\"row img-row margin-bottom\">\n <div clas... | php | chosen |
[
{
"from": "system",
"value": "Use this folder for PLUGIN_FOLDER"
},
{
"from": "human",
"value": "<?php\n\n$_tests_dir = getenv( 'WP_TESTS_DIR' );\nif ( ! $_tests_dir ) {\n\t$_tests_dir = '/tmp/wordpress-tests-lib';\n}\n\ndefine('PLUGIN_FOLDER','your-plugin-folder-name-here')\ndefine('PLUGIN_NAME... | php | chosen |
[
{
"from": "system",
"value": "Decrease integration test sleep time\n"
},
{
"from": "human",
"value": "<?php\n$tests_dir = dirname(__FILE__).'/';\n\nrequire_once $tests_dir.'../vendor/autoload.php';\n\ndefine( 'AUTH0_PHP_TEST_INTEGRATION_SLEEP', 200000 );\n\nif (! defined( 'AUTH0_PHP_TEST_JSON_DI... | php | chosen |
[
{
"from": "system",
"value": "Add get_project_author ability in project track repository\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @license MIT\n * Full license text in LICENSE file\n */\n\nnamespace Eadrax\\Core\\Usecase\\Project\\Track;\n\ninterface Repository\n{\n public function i... | php | chosen |
[
{
"from": "system",
"value": "Hide datetime Article form fields and attach vew transformer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MyProject\\Bundle\\MainBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Correct (if unused) param for a Smarty function\n\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@20807 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n/*\n * $Id: function.toolbars.php 20665 2009-08-07 15:13:18Z jonnybra... | php | chosen |
[
{
"from": "system",
"value": "Connect to databases INVFEST-DB-dev & INVFEST-DB-PUBLIC-dev from the development branch\n"
},
{
"from": "human",
"value": "<?php\n\nif ($_SESSION[\"autentificado\"]=='SI') {\n\n\tif ($_SESSION['MySQLuser']==\"invfest\") {\n\t\n\t\t// Admin user\n\t\t$user = \"invfes... | php | chosen |
[
{
"from": "system",
"value": "Disable building docs on travis\n"
},
{
"from": "human",
"value": "<?php\n\nfunction shouldBuildDocs()\n{\n return isLatestPhp() && isLatestSymfony();\n}\n\nfunction withCodeCoverage()\n{\n return isLatestPhp() && isLatestSymfony();\n}\n\nfunction isLatestPhp(... | php | chosen |
[
{
"from": "system",
"value": "Fix \"bin/cm migration add\" again\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Migration_Manager implements CM_Service_ManagerAwareInterface {\n\n use CM_Service_ManagerAwareTrait;\n\n /** @var string[] */\n private $_modules;\n\n /**\n * @p... | php | chosen |
[
{
"from": "system",
"value": "Update Validator to be compatible with Symfony 2.1\n\nSee why: https://github.com/symfony/symfony/blob/master/UPGRADE-2.1.md#validator"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the DoctrineEnumBundle package.\n *\n * (c) smurfy <https://g... | php | chosen |
[
{
"from": "system",
"value": "Change reset FA icon for fa-chain-broken\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Main layout.\n *\n * @package PTTRC\n * @subpackage views\n */\n?>\n<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title><?php echo htmlspecialchars( $title ); ?></title>\n\t\t<link ... | php | chosen |
[
{
"from": "system",
"value": "Add sql query which returns a specific trait accoring to its cvterm_id\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ajax\\details;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait informatio\n */\nclass Traits extends \\WebService {\n\n /**... | php | chosen |
[
{
"from": "system",
"value": "Update to use croogo default cache config\n"
},
{
"from": "human",
"value": "<?php\n\n$cacheConfig = array(\n\t'duration' => '+10 minutes',\n\t'path' => CACHE . 'queries',\n\t'engine' => 'File',\n\t);\n\nCache::config('switcher_default', $cacheConfig);\n\nCroogo::ho... | php | chosen |
[
{
"from": "system",
"value": "Allow multiple values for ethnicity\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Nova\\Metrics;\n\nuse App\\User;\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Metrics\\Partition;\nuse Laravel\\Nova\\Metrics\\Partition... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in test method name\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha... | php | chosen |
[
{
"from": "system",
"value": "Set request user resolver when authentication is available.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravel\\Lumen\\Auth\\Providers;\n\nuse Dingo\\Api\\Routing\\R... | php | chosen |
[
{
"from": "system",
"value": "Replace `echo` by `return` after reading how plugins work on Wordpress.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package ShowMeYourGists\n * @version 0.5\n */\n/*\nPlugin Name: Show Me Your Gists\nPlugin URI: https://github.com/SenpaiSilver/ShowMeYourGists... | php | chosen |
[
{
"from": "system",
"value": "Add methods setField, getField, getType\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ncrousset\\GenCRUD\\Db;\n\nclass FieldSchema\n{\n \n}"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Ncrousset\\GenCRUD\\Db\\Field;\n\n\nclass FieldSchema... | php | chosen |
[
{
"from": "system",
"value": "Split up url() logic to separate fxns\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace allejo\\stakx\\Twig;\n\nuse Twig_Environment;\n\nclass BaseUrlFunction\n{\n public function __invoke (Twig_Environment $env, $assetPath)\n {\n $globals = $env->g... | php | chosen |
[
{
"from": "system",
"value": "Allow running tests under PHPUnit 5\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.\"/../vendor/autoload.php\";\n\nclass_alias(\n PHPUnit\\Framework\\Constraint\\Constraint::class,\n PHPUnit_Framework_Constraint::class,\n true\n);\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Restructure namespace to make it easier to distribute separate packages in the future\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL | E_STRICT);\n\n// include the composer autoloader and add our tests directory\n$autoloader = require __DIR__.'/..... | php | chosen |
[
{
"from": "system",
"value": "Drop obsolete SVN $Id$ keywords.\n"
},
{
"from": "human",
"value": "<?php\n/* \n * Configuration for the module logpeek.\n * \n * $Id $\n */\n\n$config = array (\n\t'logfile'\t=> '/var/log/simplesamlphp.log',\n\t'lines'\t\t=> 1500,\n\t// Read block size. 8192 is max... | php | chosen |
[
{
"from": "system",
"value": "[zen-49] Remove unnecessary @see and other unnecessary stuff\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyr... | php | chosen |
[
{
"from": "system",
"value": "Disable autocomplete on the change password field"
},
{
"from": "human",
"value": "<input type=\"password\" id=\"{{ $name }}\" name=\"{{ $name }}\"\n @if($errors->has($name)) class=\"text-neg\" @endif\n @if(isset($placeholder)) placeholder=\"{{$placehold... | php | chosen |
[
{
"from": "system",
"value": "Fix nullable TwoFactor attribute issue\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * NOTICE OF LICENSE\n *\n * Part of the Rinvex Fort Package.\n *\n * This source file is subject to The MIT License (MIT)\n * that is bundled with this package in the LICENSE fil... | php | chosen |
[
{
"from": "system",
"value": "Support for counting the processors on OSX"
},
{
"from": "human",
"value": "<?php\n\nnamespace Liuggio\\Fastest\\Process;\n\n/**\n * Number of processors seen by the OS and used for process scheduling.\n */\nclass ProcessorCounter\n{\n const PROC_CPUINFO = '/pro... | php | chosen |
[
{
"from": "system",
"value": "Add $query to log output on caught graphql request errors\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... | php | chosen |
[
{
"from": "system",
"value": "Remove method declared in parent.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Types;\n\nclass ActionType extends Type\n{\n private const HOST_EVENT = 'host-event';\n private const HAVE_CONVERSATION = 'have-a-conversation';\n private const D... | php | chosen |
[
{
"from": "system",
"value": "Fix demo that was using Timer::cancel() from old event-loop api\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../bootstrap.php';\n\nuse React\\EventLoop\\Factory;\nuse Rx\\Disposable\\CallbackDisposable;\nuse Rx\\ObserverInterface;\nuse Rx\\Sc... | php | chosen |
[
{
"from": "system",
"value": "FIX Publish notices obey page permissions\n\n- Changed published page notices to inherit permissions from the page they're\n bound against instead of being sent to all logged_in users\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Creates a notice post after a... | php | chosen |
[
{
"from": "system",
"value": "Return value is an array\n"
},
{
"from": "human",
"value": "<?php\nnamespace phtamas\\yii2\\imagecontroller;\n\nuse yii\\web\\CompositeUrlRule;\n\nclass UrlRule extends CompositeUrlRule\n{\n /**\n * @var string\n */\n public $controllerId;\n\n publi... | php | chosen |
[
{
"from": "system",
"value": "Rename update downloadables to update downloads\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: sgraupner\n * Date: 04/01/2017\n * Time: 14:39\n */\n\nnamespace OParl\\Spec\\Commands;\n\nclass InitializeCommand extends Command\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Set the token header after controller logic\n"
},
{
"from": "human",
"value": "<?php\n\nuse lithium\\action\\Dispatcher;\nuse lithium\\storage\\Session;\n\n/**\n * Set the token header in the response.\n */\nDispatcher::applyFilter('_callable', function($self, $para... | php | chosen |
[
{
"from": "system",
"value": "Add a class for note done\n"
},
{
"from": "human",
"value": "<?php\n\nif(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {\n\t\n\t$noteId = $_POST['noteId'];\n\t$complete = $_POST['complete'... | php | chosen |
[
{
"from": "system",
"value": "Add --force option to module:publish command\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n * The... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.