conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Call artisan dump-autoload when run admin:install command\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Admin\\Console;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\...
php
chosen
[ { "from": "system", "value": "Add missing file for last commit (merge)\n" }, { "from": "human", "value": "<?php\n\nnamespace Ovski\\FactionStatsBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nu...
php
chosen
[ { "from": "system", "value": "Add comments and set environment\n" }, { "from": "human", "value": "<?php\n\nrequire __DIR__.'/vendor/autoload.php';\n\n$wp = new Worldpay\\Worldpay;\n\nvar_dump($wp);\n" }, { "from": "gpt", "value": "<?php\n// Require autoload\nrequire __DIR__.'/vendor/...
php
chosen
[ { "from": "system", "value": "Add . to list of excluded URL characters\n" }, { "from": "human", "value": "<?php\n/*\n *\tMade by Samerton\n *\n * https://github.com/NamelessMC/Nameless/\n * NamelessMC version 2.0.0-pr12\n *\n * License: MIT\n *\n * URL related constants\n */\n\nconst URL_EXC...
php
chosen
[ { "from": "system", "value": "Add newline to the end of the file\n" }, { "from": "human", "value": "<?php\n\nnamespace ActiveCollab\\DatabaseStructure\\Test;\n\nuse ActiveCollab\\DatabaseStructure\\Field\\Scalar\\BooleanField;\n\n/**\n * @package ActiveCollab\\DatabaseStructure\\Test\n */\nclass...
php
chosen
[ { "from": "system", "value": "Adjust cURL headers to avoid certain bot-blockers\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nuse Guzzle\\Http\\Client;\n\nclass VzUrl_ValidationService extends BaseApplicationComponent\n{\n public function check($url)\n {\n if (empty(...
php
chosen
[ { "from": "system", "value": "Fix \"Fatal error: Using $this when not in object context\"\n" }, { "from": "human", "value": "<?php\n\nnamespace Arseniew\\Silex\\Service;\n\nclass IdiormService\n{\n\n protected $connectionName;\n protected $tables = array();\n\n public function __constru...
php
chosen
[ { "from": "system", "value": "Rename getUserInfo function to getUserSidebarInfo.\n\nAdd getUserNavbarInfo function.\n" }, { "from": "human", "value": "<?php\n\nfunction getUser($id)\n{\n return null;\n}\n\nfunction getUserHash($id)\n{\n global $conn;\n $stmt = $conn->prepare(\"SELECT * ...
php
chosen
[ { "from": "system", "value": "Fix flipped open/closed status for Diviner atoms in search index\n\nSummary: Fixes T12258. I think these constants are just flipped.\n\nTest Plan: Kinda winged it.\n\nReviewers: chad\n\nReviewed By: chad\n\nManiphest Tasks: T12258\n\nDifferential Revision: https://secure.phabri...
php
chosen
[ { "from": "system", "value": "Correct adapter type to allow nullable\n" }, { "from": "human", "value": "<?php\n\tnamespace Bolt;\n\n\tuse Bolt\\Interfaces\\Adapter;\n\tuse Bolt\\Interfaces\\Connection;\n\n\tabstract class Repository extends Base\n\t{\n\t\tprotected Adapter $adapter;\n\n\t\tpubli...
php
chosen
[ { "from": "system", "value": "Revert \"add `dev' option to source target\"\n\nThis reverts commit 31ad3634419bd85cf32682ceab1eb504055f0d08.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Use in your system.xml to specify source_model\n *\n * <source_model>liip/config_source_target</source_m...
php
chosen
[ { "from": "system", "value": "Allow $().BHMClient indexpage to be string\n\nFix issue with client indexpage property having to be an array\n" }, { "from": "human", "value": "<?php\nrequire('../mysql-creds.php');\n\n//var_dump($_GET);\n\nfunction makequery($path) {\n return \"SELECT bhm_helper...
php
chosen
[ { "from": "system", "value": "Move deferred command additions to be processed after `'after_wp_load'` hook.\n\nFor the command additions within (mu-)plugins to work, they need to be processed after all plugins have actually been loaded.\n\nFixes #4122\n" }, { "from": "human", "value": "<?php\n\n...
php
chosen
[ { "from": "system", "value": "Fix signup confirm action test\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WebClientBundle\\Tests\\Controller\\View\\User\\SignUp\\Confirm\\IndexAction;\n\nuse SimplyTestable\\WebClientBundle\\Tests\\Controller\\Base\\ActionTest as BaseActi...
php
chosen
[ { "from": "system", "value": "Add system status to /status endpoint\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed...
php
chosen
[ { "from": "system", "value": "Remove body from methods interface\n" }, { "from": "human", "value": "<?php\n/*\n * HiPay fullservice SDK\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the MIT License\n * that is bundled with this package in the file LICENSE.txt.\n * It is also a...
php
chosen
[ { "from": "system", "value": "Allow Illuminate\\Http\\JsonResponse as response type\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace LaraQuiz\\Exceptions;\n\nuse Illuminate\\Validation\\ValidationException;\nuse LaraQuiz\\Helpers\\Api;\n\n/**\n * Class CustomValida...
php
chosen
[ { "from": "system", "value": "Update type-hint to use DbHostManagerService\n" }, { "from": "human", "value": "<?php\n\nnamespace Lstr\\Postgres\\DbMgmt\\Service;\n\nuse Hodor\\JobQueue\\JobQueue;\n\nclass DbMgmtJobService\n{\n /**\n * @var object\n */\n private $db_host_manager;\n\...
php
chosen
[ { "from": "system", "value": "Change action properties to be protected so it will serialize\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace LotGD\\Core;\n\n/**\n * A representation of an action the user can take to affect the game\n * state. An encapsulation of a ...
php
chosen
[ { "from": "system", "value": "Fix offset calculations for buttons without labels\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCasts;\n\nclass Button extends Component\n{\n public function __construct(string $value, array $options = [])\n {\n parent::__constru...
php
chosen
[ { "from": "system", "value": "Simplify widget generators list command class.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyrigh...
php
chosen
[ { "from": "system", "value": "Add logic to install for all installers\n" }, { "from": "human", "value": "<?php\n\nnamespace BudgeIt\\ComposerBuilder;\n\nuse Composer\\Composer;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Package\\PackageInterface;\n\nclass Runner\n{\n\n /**\n * @var Co...
php
chosen
[ { "from": "system", "value": "Use h1 for site \"logo\"\n" }, { "from": "human", "value": "<?php\n/**\n * The template for displaying the header\n *\n */\n?><!DOCTYPE html>\n<html <?php language_attributes(); ?> class=\"no-js\">\n<head>\n\t<meta charset=\"<?php bloginfo( 'charset' ); ?>\">\n\t<me...
php
chosen
[ { "from": "system", "value": "Fix for broken build on PHP < 5.6\n" }, { "from": "human", "value": "<?php\nnamespace GraphQL\\Error;\n\nfinal class Warning\n{\n const NAME_WARNING = 1;\n const ASSIGN_WARNING = 2;\n const CONFIG_WARNING = 4;\n\n const ALL = self::NAME_WARNING | self::A...
php
chosen
[ { "from": "system", "value": "Hide vote buttons if user is not logged in.\n" }, { "from": "human", "value": "<?php\r\nuse yii\\helpers\\Html;\r\n\r\n/* @var $model ShortCirquit\\LinkoScopeApi\\models\\Link */\r\n?>\r\n\r\n<div>\r\n <div>\r\n <?= ($index + 1) ?>:\r\n <?= Html::a(...
php
chosen
[ { "from": "system", "value": "Add use statement for annotation.\n" }, { "from": "human", "value": "<?php\nnamespace Ray\\Di\\Sample;\n\nuse Ray\\Di\\Di\\Inject;\nuse Ray\\Di\\Di\\Named;\n\nuse Ray\\Di\\Sample\\Transactional;\nuse Ray\\Di\\Sample\\Template;\n\nclass User\n{\n private $db;\n\n ...
php
chosen
[ { "from": "system", "value": "Add new fields to photo table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMachinephotosTable extends Migration\n{...
php
chosen
[ { "from": "system", "value": "Rename TimbreFiscal to match with file name\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the CFDI project.\n *\n * (c) Orlando Charles <me@orlandocharles.com>\n *\n * For the full copyright and license information, please view the LICENS...
php
chosen
[ { "from": "system", "value": "Set returnUrl without returnUrl param for google oauth\n" }, { "from": "human", "value": "<?php\n\nnamespace DevGroup\\Users\\social;\n\nuse DevGroup\\ExtensionsManager\\models\\BaseConfigurationModel;\nuse \\yii\\authclient\\clients\\GoogleOAuth as BaseGoogle;\n\nc...
php
chosen
[ { "from": "system", "value": "Remove uneeded app store modification since there is app emulation.\n" }, { "from": "human", "value": "<?php\r\n\r\n/**\r\n * @loadSharedFixture\r\n * @group 54\r\n */\r\nclass SPM_ShopyMind_Test_Lib_ShopymindClient_Callback_Get_Products extends EcomDev_PHPUnit_Test...
php
chosen
[ { "from": "system", "value": "Allow to set additional Curl options." }, { "from": "human", "value": "<?php\n/**\n * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .\n *\n * @license MIT\n *\n * Please see the LICENSE file distributed with this source ...
php
chosen
[ { "from": "system", "value": "Standardize addPSR4 target folder format\n" }, { "from": "human", "value": "<?php\n$classLoader = new \\Composer\\Autoload\\ClassLoader();\n$classLoader->addPsr4(\"TestHelpers\\\\\", __DIR__. \"/../../../../../../tests/TestHelpers/\", true);\n$classLoader->register(...
php
chosen
[ { "from": "system", "value": "Use the view helper method\n" }, { "from": "human", "value": "<?php namespace Modules\\Dashboard\\Http\\Controllers\\Admin;\n\nuse Illuminate\\Support\\Facades\\View;\nuse Modules\\Core\\Http\\Controllers\\Admin\\AdminBaseController;\n\nclass DashboardController ext...
php
chosen
[ { "from": "system", "value": "Add validation for new columns\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Http\\Requests\\Three;\n\nuse Rogue\\Http\\Requests\\Request;\n\nclass PostRequest extends Request\n{\n /**\n * Determine if the user is authorized to make this reques...
php
chosen
[ { "from": "system", "value": "Update user to be confirmed by default.\n" }, { "from": "human", "value": "<?php\n\nclass UsersTableSeeder extends Seeder {\n\n public function run()\n {\n DB::table('users')->delete();\n\n\n $users = array(\n array(\n '...
php
chosen
[ { "from": "system", "value": "Fix in temp client data.\n" }, { "from": "human", "value": "<?php\n\n/*\n * Bear CMS addon for Bear Framework\n * https://bearcms.com/\n * Copyright (c) 2016 Amplilabs Ltd.\n * Free to use under the MIT license.\n */\n\nnamespace BearCMS\\Internal;\n\nuse BearFramew...
php
chosen
[ { "from": "system", "value": "Add embed stuff in the editor\n" }, { "from": "human", "value": "<?php\n// Disable unused headings and pre formatting\nfunction wpa_45815($arr){\n $arr['block_formats'] = 'Huge=h2;Heading=h3;Paragraph=p';\n return $arr;\n }\nadd_filter('tiny_mce_before_init',...
php
chosen
[ { "from": "system", "value": "Add weekoffset to configuration in migration\n\nSee #2312\n" }, { "from": "human", "value": "<?php\n\n\tClass migration_260 extends Migration {\n\n\t\tstatic function getVersion(){\n\t\t\treturn '2.6.0-beta.2';\n\t\t}\n\n\t\tstatic function getReleaseNotes(){\n\t\t\...
php
chosen
[ { "from": "system", "value": "Fix BuzzAPI response format for bad GTID\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n// phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter\n// phpcs:disable SlevomatCodingStandard.Functions.UnusedParameter\n\nnamespace App\\Http\\...
php
chosen
[ { "from": "system", "value": "Enable loading of consent repository by loading repository services\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenConext\\EngineBlock\\AuthenticationBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfo...
php
chosen
[ { "from": "system", "value": "[ENH] Include comment contents in the document content\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@47283 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware P...
php
chosen
[ { "from": "system", "value": "Implement some shortcuts for throwing standard HTTP exceptions in controllers.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Controllers;\n\nuse FluxBB\\Models\\User;\nuse Illuminate\\Routing\\Controller;\nuse Illuminate\\Validation\\Validator;\n\ncl...
php
chosen
[ { "from": "system", "value": "Change layout file to be use\n" }, { "from": "human", "value": "@extends('layouts.site')\n\n@section('page_title')\n Home\n@endsection\n\n@section('main-content')\n\t<div class=\"container\">\n\t\t<div class=\"row\">\n\t\t\t<div class=\"col-md-10 col-md-offset-1\...
php
chosen
[ { "from": "system", "value": "Fix typo in input field name\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('content')\n <h1>Profil bearbeiten</h1>\n\n {!! Form::open(['action'=>['User\\UserController@update', $user], 'method'=>'patch', 'files'=>true]) !!}\n {!! Fo...
php
chosen
[ { "from": "system", "value": "Set key to index against\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Laralastica\\Jobs;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Database\\Eloquent\\Collection;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Queue\\I...
php
chosen
[ { "from": "system", "value": "Fix macroable conflict with dynamic relationships\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\nuse Error;\nuse Exception;\nuse BadMethodCallException;\nuse Illuminate\\Support\\Traits\\Macroable as Bas...
php
chosen
[ { "from": "system", "value": "Revert \"id removed from the form\"\n\nThis reverts commit 21a7e05f30f081e2c47f5e5e1b4f8f9f3a833cf5.\n" }, { "from": "human", "value": "@component('core::admin._buttons-form', ['model' => $model])\n@endcomponent\n\n<file-manager related-table=\"{{ $model->getTable()...
php
chosen
[ { "from": "system", "value": "[TASK] Add cache flush without force\n" }, { "from": "human", "value": "<?php\nnamespace Deployer;\n\n// default path\nset('bin/typo3cms', 'bin/typo3cms');\n\ntask('typo3cms:cache:flush_forced', function() {\n run(\"cd {{current_path}} && {{bin/typo3cms}} cache:f...
php
chosen
[ { "from": "system", "value": "Check db has been built before including JS\n" }, { "from": "human", "value": "<?php\n\n/**\n * @property Controller $owner\n */\nclass Site24x7ControllerExtension extends Extension\n{\n public function onBeforeInit()\n {\n $isCMS = (bool) is_subclass_...
php
chosen
[ { "from": "system", "value": "ENHANCEMENT: Test for OSM Point of Interest extension\n" }, { "from": "human", "value": "<?php\n\n\tclass OSMPointOfInterestExtensionTest extends SapphireTest {\n\t\tpublic function testUpdateCMSFields() {\n\t\t\t$this->markTestSkipped('TODO');\n\t\t}\n\n}\n" }, ...
php
chosen
[ { "from": "system", "value": "Feature: Add controller for detail widget page\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nFulltextSearchable::enable();\n\nObject::add_extension('Member', 'ExtensionsMemberDecorator');\n\nDirector::addRules(100, array...
php
chosen
[ { "from": "system", "value": "Refactor \"result\" method: call fetch_all with MYSQLI_ASSOC\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Crystal package.\n *\n * (c) Sergey Novikov (novikov.stranger@gmail.com)\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Add missing open source header\n" }, { "from": "human", "value": "<?php\n\nnamespace PayBreak\\Sdk\\Gateways;\n\n/**\n * Customer Intelligence Gateway\n *\n * @author GK\n */\nclass CustomerIntelligenceGateway extends AbstractGateway\n{\n /**\n * @author GK\n...
php
chosen
[ { "from": "system", "value": "Extend throwable for marker interface\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Instantiator\\Exception;\n\n/**\n * Base exception marker interface for the instantiator component\n */\ninterface ExceptionInterface\n{\n}\n" }, { "from": ...
php
chosen
[ { "from": "system", "value": "Update user model interface name\n" }, { "from": "human", "value": "<?php\n\nnamespace ZfcUserDoctrineORM;\n\nuse Zend\\Module\\Manager,\n Zend\\Module\\Consumer\\AutoloaderProvider,\n ZfcUserDoctrineORM\\Event\\ResolveTargetEntityListener,\n ZfcUser\\Modul...
php
chosen
[ { "from": "system", "value": "Fix Access BaseController Methods via url\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the CodeIgniter 4 framework.\n *\n * (c) CodeIgniter Foundation <admin@codeigniter.com>\n *\n * For the full copyright and license information, please...
php
chosen
[ { "from": "system", "value": "Add error message if there is one\n" }, { "from": "human", "value": "<?php\n\nnamespace fennecweb\\ajax\\upload;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Uploads Project biom files and save them in the database\n */\nclass Project extends \\fennecweb\\WebSer...
php
chosen
[ { "from": "system", "value": "Make base exception extend Throwable\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace SandFox\\Bencode\\Exceptions;\n\ninterface BencodeException\n{\n}\n" }, { "from": "gpt", "value": "<?php\n\ndeclare(strict_types=1);\n\...
php
chosen
[ { "from": "system", "value": "Remove default value & make published_at nullable\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateArticlesTable extends Migration {\n\n /**\n * Run the m...
php
chosen
[ { "from": "system", "value": "Use /{room}/{event} for the path\n" }, { "from": "human", "value": "<?php\n\nnamespace Mwop\\Github\\PuSH;\n\nuse Psr\\Container\\ContainerInterface;\nuse Zend\\Expressive\\Application;\n\nclass RoutesDelegator\n{\n private $events = [\n 'issues',\n ...
php
chosen
[ { "from": "system", "value": "Add default value for default parameter\n" }, { "from": "human", "value": "<?php\nnamespace Onion\\Framework\\Router\\Strategy;\n\nuse function Onion\\Framework\\merge;\n\nclass TreeStrategy\n{\n private $routes;\n\n public function __construct(array $routes)\...
php
chosen
[ { "from": "system", "value": "Use models PK for findable actions\n" }, { "from": "human", "value": "<?php namespace Picqer\\Financials\\Exact\\Query;\n\ntrait Findable\n{\n public function find($id)\n {\n $result = $this->connection()->get($this->url, [\n '$filter' => \"I...
php
chosen
[ { "from": "system", "value": "Clean the temporary cache when running tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Incenteev\\TranslationCheckerBundle\\Tests;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;...
php
chosen
[ { "from": "system", "value": "[2.0] Fix for CLI Configuration and PEAR installer\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Doctrine/Common/ClassLoader.php';\n\n$classLoader = new \\Doctrine\\Common\\ClassLoader('Doctrine');\n$classLoader->register();\n\n$configuration = new \\Doc...
php
chosen
[ { "from": "system", "value": "Change 'share' method in service provider to 'singleton' to support L5.4\n" }, { "from": "human", "value": "<?php namespace Rossedman\\Teamwork;\n\nuse GuzzleHttp\\Client as Guzzle;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass TeamworkServiceProvider extends ...
php
chosen
[ { "from": "system", "value": "Add decimal and thousand separator params to number column\n\nAdd decimal point and thousand separator extra number_format params.\r\nSome countries invert the decimal point and thousand separator, like this: R$ 1.464,00\r\nThe new optional params are dec_point and thousands_se...
php
chosen
[ { "from": "system", "value": "Check for each class individually.\n\nOne of more could have been already aliased by other plugins like ADmad/Glide." }, { "from": "human", "value": "<?php\nif (!class_exists('Cake\\Http\\Exception\\MethodNotAllowedException')) {\n class_alias(\n 'Cake\\Ne...
php
chosen
[ { "from": "system", "value": "Allow accessing services from a static context\n" }, { "from": "human", "value": "<?php\n\nnamespace MicroAPI;\n\nuse MicroAPI\\Injector;\n\nclass Model\n{\n /**\n * Access a service from the injector\n *\n * @param $serviceName - The name of the serv...
php
chosen
[ { "from": "system", "value": "Return response body instead of the whole object\n" }, { "from": "human", "value": "<?php\n\nnamespace Keyteq\\Keymedia\\Util;\n\n/**\n * @codeCoverageIgnore\n */\nclass RequestWrapper\n{\n public function get($url, $headers = array(), $options = array())\n {\...
php
chosen
[ { "from": "system", "value": "Fix is blocked check for user status\n" }, { "from": "human", "value": "<?php\n\nnamespace SumoCoders\\FrameworkMultiUserBundle\\ValueObject;\n\nuse SumoCoders\\FrameworkMultiUserBundle\\Exception\\InvalidStatusException;\n\nfinal class Status\n{\n const ACTIVE =...
php
chosen
[ { "from": "system", "value": "Fix lead filter by status\n\nFix #19" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Lead;\n\nuse App\\Http\\Controllers\\MainController;\nuse App\\Models\\Lead;\nuse App\\Models\\User;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Sup...
php
chosen
[ { "from": "system", "value": "Return 409 HTTP code on missing CAS attributes\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Exceptions;\n\n/**\n * Thrown if some of the CAS LDAP attributes was not found.\n */\nclass CASMissingInfoException extends ApiException {\n /**\n * Create i...
php
chosen
[ { "from": "system", "value": "Allow relative paths when extending / including\n\nSee #9" }, { "from": "human", "value": "<?php namespace Bkwld\\LaravelPug;\n\n// Dependencies\nuse Illuminate\\View\\Compilers\\BladeCompiler;\nuse Illuminate\\View\\Compilers\\CompilerInterface;\nuse Illuminate\\Fi...
php
chosen
[ { "from": "system", "value": "Remove Tonic namespace restriction from autoloader so as to allow people to hit the ground running without having to configure their own autoloader.\n" }, { "from": "human", "value": "<?php\n\nnamespace Tonic;\n\n/**\n * Autoload\n */\nclass Autoloader\n{\n /**\n...
php
chosen
[ { "from": "system", "value": "Use require to fix route issue on unit testing.\n" }, { "from": "human", "value": "<?php\n/**\n * Administrator routes main entry point.\n *\n * @prefix /administrator\n * @middleware(\"administrator\") /administrator\n * @var \\Illuminate\\Routing\\Router $router\n...
php
chosen
[ { "from": "system", "value": "Use ManagerRegistry instead of RegistryInterface\n\nThe RegistryInterface will be deprecated in Symfony 4.4+\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Becklyn\\RadBundle\\Model;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse ...
php
chosen
[ { "from": "system", "value": "Change of domain name to api.socketlabs.com" }, { "from": "human", "value": "<?php\n\n//prints each recipient email addresses associated for delivery failures\n//\n//replace the following constant **** values with your own\ndefine(\"ACCOUNT_ID\", \"9999\");\ndefine(...
php
chosen
[ { "from": "system", "value": "Fix: Return EmptyIterator when no subscribers have been added for type\n\nCo-authored-by: Andreas Möller <96e8155732e8324ae26f64d4516eb6fe696ac84f@localheinz.com>\nCo-authored-by: Arne Blankerts <2d7739f42ebd62662a710577d3d9078342a69dee@Blankerts.de>\n" }, { "from": "hu...
php
chosen
[ { "from": "system", "value": "Use parallel requests for multiple images\n" }, { "from": "human", "value": "<?php\nnamespace Embed\\ImageInfo;\n\nuse Embed\\ImageInfo\\ImageInfoInterface;\n\n /**\n * Class to retrieve the size and mimetype of images using Guzzle5\n */\nclass Guzzle5 implements ...
php
chosen
[ { "from": "system", "value": "Fix for adding tags that are substrings of existing tags\n\nhttps://github.com/select2/select2/issues/4093" }, { "from": "human", "value": "@section(\"field\")\n <div class=\"select2-tags\">\n <select name=\"{{ $prefixed_field_name }}[]\" class=\"form-cont...
php
chosen
[ { "from": "system", "value": "FIX package in include command." }, { "from": "human", "value": "<?php\r\nif (!defined(\"CMS_VERSION\")) { header(\"HTTP/1.0 404 Not Found\"); die(\"\"); }\r\n\r\nif (!class_exists(\"commandIncDualListbox\")) {\r\n class commandIncDualListbox extends driverComman...
php
chosen
[ { "from": "system", "value": "Fix testGet by removing call to parent::get()\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the Tacit package.\n *\n * Copyright (c) Jason Coward <jason@opengeek.com>\n *\n * For the full copyright and license information, please view the LIC...
php
chosen
[ { "from": "system", "value": "Remove Entry parameter from button model_function" }, { "from": "human", "value": "@if ($crud->buttons->where('stack', $stack)->count())\n\t@foreach ($crud->buttons->where('stack', $stack) as $button)\n\t @if ($button->type == 'model_function')\n\t\t{!! $entry->{$b...
php
chosen
[ { "from": "system", "value": "Fix duplicate absolute path names for resources\n" }, { "from": "human", "value": "<?php\nnamespace Mw\\Metamorph\\Step;\n\nuse Mw\\Metamorph\\Domain\\Model\\MorphConfiguration;\nuse Mw\\Metamorph\\Domain\\Service\\MorphExecutionState;\nuse Mw\\Metamorph\\Transforma...
php
chosen
[ { "from": "system", "value": "Remove author and category from single posts\n" }, { "from": "human", "value": "<?php while (have_posts()) : the_post() ?>\n <article <?php post_class() ?>>\n <div class=\"visible-print\">\n <p><?php echo esc_html(get_permalink()) ?></p>\n </div>\n <h...
php
chosen
[ { "from": "system", "value": "Add homepage to the plugin details" }, { "from": "human", "value": "<?php namespace Inetis\\Dump;\n\nuse Illuminate\\Support\\Debug\\Dumper;\nuse System\\Classes\\PluginBase;\n\n/**\n * Dump Plugin Information File\n */\nclass Plugin extends PluginBase\n{\n /**\n...
php
chosen
[ { "from": "system", "value": "Fix ini_get() for boolean values\n" }, { "from": "human", "value": "<?php\n\nnamespace Gaufrette\\Functional\\Adapter;\n\nuse Gaufrette\\Adapter\\Apc;\nuse Gaufrette\\Filesystem;\n\nclass ApcTest extends FunctionalTestCase\n{\n public function setUp()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add a unit test of ArrayUtils when reverse matching\n" }, { "from": "human", "value": "<?php\n\nnamespace Core\\Utils;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ArrayUtilsTest extends TestCase\n{\n public function testFind()\n {\n $arr = [\n ...
php
chosen
[ { "from": "system", "value": "Add missing doc block type and type hint\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Roave\\SignatureTest;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Roave\\Signature\\Encoder\\Base64Encoder;\nuse Roave\\Signature\\FileContentSig...
php
chosen
[ { "from": "system", "value": "Test for correct number of buttons on tiles\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\AppBundle\\API;\n\nuse AppBundle\\API\\FlowerColor;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\n\nclass FlowerColorTest extends KernelTestCase\...
php
chosen
[ { "from": "system", "value": "Fix 404 page from enabling filters and check for explicit text for 404 message.\n" }, { "from": "human", "value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('ensure that the 404 page works');\n$I->haveEnabledFilters();\n$I->amOnPage('/some/bad/url/tha...
php
chosen
[ { "from": "system", "value": "Update server site for osmlive reports\n" }, { "from": "human", "value": "<?php \nfunction startsWith($haystack, $needle)\n{\n $length = strlen($needle);\n return (substr($haystack, 0, $length) === $needle);\n}\n\n$c = new Memcached(); \n$c->addServer(\"loca...
php
chosen
[ { "from": "system", "value": "Remove icon from plain email link shortcode.\n" }, { "from": "human", "value": "<?php\nnamespace Carawebs\\Contact\\Shortcodes;\n\nuse Carawebs\\Contact\\Traits\\CssClasses;\n\n/**\n* Hook function for Email Button shortcode\n*/\nclass EmailLink extends ContactActio...
php
chosen
[ { "from": "system", "value": "Fix missing « c » char on LastFmApiException.php" }, { "from": "human", "value": "<?php\n\nnamespace LastFmApi\\Exception;\n/**\n * MissingArgumentException\n *\n * @author Marcos Peña\n */\nclass NoResultsException extends LastFmApiExeption\n{\n}\n" }, { "f...
php
chosen
[ { "from": "system", "value": "Use the value directly cause it's carbon from the model\n" }, { "from": "human", "value": "<?php namespace Anomaly\\Streams\\Addon\\FieldType\\Datetime;\n\nuse Anomaly\\Streams\\Platform\\Addon\\FieldType\\FieldTypePresenter;\nuse Carbon\\Carbon;\n\n/**\n * Class Da...
php
chosen
[ { "from": "system", "value": "LatModifiedServiceProvider: Create an array of directories to exclude\n\nwhen traversing the folder structure to get the last modified file time." }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse RecursiveIteratorIterator;\nuse RecursiveDire...
php
chosen
[ { "from": "system", "value": "Remove unused S3 config vars.\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Filesystem Disk\n |-------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "[FrameworkBundle] Remove double cache generation by detecting fresh kernels on cache:clear\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...
php
chosen
[ { "from": "system", "value": "Fix check user is active by email or username\n" }, { "from": "human", "value": "<?php\nnamespace Passengers\\Event;\n\nuse Cake\\Event\\Event;\nuse Cake\\Event\\EventListenerInterface;\nuse Cake\\Controller\\Component\\AuthComponent;\nuse Cake\\Core\\Configure;\nus...
php
chosen
[ { "from": "system", "value": "Use trait at the top of a class\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace WyriHaximus\\Travis\\Resource\\Sync;\n\nuse WyriHaximus\\ApiClient\\Resource\\CallAsyncTrait;\nuse WyriHaximus\\Travis\\Resource\\Job as BaseJob;\n\nclass...
php
chosen