conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "FIX : Attribute map (TI)\n" }, { "from": "human", "value": "<?php\n\nnamespace DoL\\LdapBundle\\Tests\\Hydrator;\n\nuse FOS\\UserBundle\\Model\\UserManagerInterface;\nuse DoL\\LdapBundle\\Hydrator\\LegacyHydrator;\nuse DoL\\LdapBundle\\Tests\\TestUser;\n\nclass Lega...
php
chosen
[ { "from": "system", "value": "Replace short array syntax to compatible with PHP 5.3\n" }, { "from": "human", "value": "<?php\n\nnamespace HieuLe\\BodyClasses;\n\nclass Body\n{\n /**\n * Internal classes\n *\n * @var array\n */\n protected $classes = [];\n\n /**\n * A...
php
chosen
[ { "from": "system", "value": "Make even more services public\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed wi...
php
chosen
[ { "from": "system", "value": "Add helper method for easy responses to the Angular client\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Laravel\\Lumen\\Routing\\Controller as BaseController;\n\nclass Controller extends BaseController\n{\n //\n}\n" }, ...
php
chosen
[ { "from": "system", "value": "Remove manually implmented provider for ide-helper. this pkg is now discovered through laravel auto discovery feature.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Ship\\Providers;\n\nuse App\\Ship\\Parents\\Providers\\MainProvider;\nuse Barryvdh\\Lara...
php
chosen
[ { "from": "system", "value": "Check checkLoggedIn in owncloud package" }, { "from": "human", "value": "<?php\n\nif (@file_exists(__DIR__.'/app/index.php'))\n{\n\tinclude_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';\n\n\tOC_RainLoop_Helper::regRainLoopDataFunction();\n\n\tif (is...
php
chosen
[ { "from": "system", "value": "Add a tearDown method that closes Mockery\n" }, { "from": "human", "value": "<?php\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase\n{\n /**\n * The base URL to use while testing the application.\n *\n * @var string\n */\n prot...
php
chosen
[ { "from": "system", "value": "Add table striping and table responsive\n" }, { "from": "human", "value": "@extends('crudapi::layouts.master')\n\n@section('content')\n <h1>{{ $model }}<button class=\"btn btn-sm btn-success pull-right\"><i class=\"fa fa-plus\"></i> Insert {{ $model }}</button></...
php
chosen
[ { "from": "system", "value": "Remove restricted modifier for header\n\nCo-Authored-By: Gagah Pangeran Rosfatiputra <46f1a0bd5592a2f9244ca321b129902a06b53e03@gagahpangeran.com>\n" }, { "from": "human", "value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero G...
php
chosen
[ { "from": "system", "value": "Adjust login width on xl screens\n" }, { "from": "human", "value": "@extends('layouts.base')\n\n@section('body')\n <div class=\"flex items-center justify-center my-8 md:my-20\">\n <div class=\"w-full md:w-1/2 lg:w-1/3\">\n <h1 class=\"text-4xl t...
php
chosen
[ { "from": "system", "value": "Add namespace compatibility for PHPUnit 6/DBUnit 3\n" }, { "from": "human", "value": "<?php\n\nchdir(dirname(__DIR__));\nrequire 'vendor/autoload.php';\n" }, { "from": "gpt", "value": "<?php\n\nchdir(dirname(__DIR__));\nrequire 'vendor/autoload.php';\n\n...
php
chosen
[ { "from": "system", "value": "Set the correct abspath.\nDelete trailing newline - maybe it's only an issue for the old PHP on the web host.\n" }, { "from": "human", "value": "<?php\n$abspath = '/home/genjix/src/intersango';\nrequire \"$abspath/errors.php\";\nenable_errors();\n?>\n\n" }, { ...
php
chosen
[ { "from": "system", "value": "[Command] Add property for bills repository\n" }, { "from": "human", "value": "<?php\n\nnamespace HCLabs\\Bills\\Command\\Scenario\\CreateBillsForAccount;\n\nuse HCLabs\\Bills\\Command\\Handler\\AbstractCommandHandler;\nuse HCLabs\\Bills\\Model\\Bill;\nuse HCLabs\\B...
php
chosen
[ { "from": "system", "value": "Correct description for catchReply argument. \n\nhttps://github.com/Payum/Payum/pull/626" }, { "from": "human", "value": "<?php\nnamespace Payum\\Core;\n\ninterface GatewayInterface\n{\n /**\n * @param mixed $request\n * @param boolean $catchReply\n ...
php
chosen
[ { "from": "system", "value": "Change assigment to constructor injection\n" }, { "from": "human", "value": "<?php namespace Lio\\Bin;\n\nuse Lio\\Core\\EventGenerator;\nuse Lio\\Bin\\Events\\PasteCreatedEvent;\n\nclass Bin\n{\n use EventGenerator;\n\n public function createPaste($code, $aut...
php
chosen
[ { "from": "system", "value": "Add last exception message to Interrupted message\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Asynchronicity\\Polling;\n\nuse Exception;\n\nfinal class Poller\n{\n /**\n * Invoke the provided callable until it doesn't throw...
php
chosen
[ { "from": "system", "value": "Remove duplicate property as now defined in trait\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\Container\\Definition;\n\nuse League\\Container\\ArgumentResolverTrait;\nuse League\\Container\\ContainerAwareInterface;\nuse League\\Container\\Container...
php
chosen
[ { "from": "system", "value": "Add `isset` to presenter so it works with Twig templates" }, { "from": "human", "value": "<?php namespace Laracasts\\Presenter;\n\nabstract class Presenter {\n\n\t/**\n\t * @var mixed\n\t */\n\tprotected $entity;\n\n\t/**\n\t * @param $entity\n\t */\n\tfunction __co...
php
chosen
[ { "from": "system", "value": "Fix base class of console error handler\n" }, { "from": "human", "value": "<?php\nnamespace jcherniak\\yii2bugsnag;\n\nuse Yii;\n\n/**\n * Basic error handler to deal with console commands\n */\nclass BugsnagConsoleErrorHandler extends \\yii\\base\\ErrorHandler\n{\n...
php
chosen
[ { "from": "system", "value": "Set data default to array\n" }, { "from": "human", "value": "<?php\n\nnamespace Jenky\\LaravelNotification\\Providers;\n\nuse Jenky\\LaravelNotification\\Contracts\\Provider as ProviderContract;\n\nabstract class AbstractProvider implements ProviderContract\n{\n ...
php
chosen
[ { "from": "system", "value": "Add a setReadTimeout() method to the STOMP interface\n" }, { "from": "human", "value": "<?php\n\nnamespace SlmQueueAmq\\Service;\n\ninterface StompClientInterface\n{\n public function connect($username = '', $password = '');\n public function isConnected();\n ...
php
chosen
[ { "from": "system", "value": "Add docblocks for gist comments\n" }, { "from": "human", "value": "<?php\n\nnamespace Github\\Api\\Gist;\n\nuse Github\\Api\\AbstractApi;\n\n/**\n * @link https://developer.github.com/v3/gists/comments/\n * @author Kayla Daniels <kayladnls@gmail.com>\n */\nclass C...
php
chosen
[ { "from": "system", "value": "Add tests for country shortcuts\n" }, { "from": "human", "value": "<?php\n\nuse Galahad\\LaravelAddressing\\AdministrativeArea;\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class CountryTest\n *\n * @author Junior Grossi <juniorgro@gmail.com>\n */\nclass Cou...
php
chosen
[ { "from": "system", "value": "Check PagespeedException is thrown on GET failure\n" }, { "from": "human", "value": "<?php\n\nnamespace Chrisgeary92\\Pagespeed\\Test;\n\nuse Chrisgeary92\\Pagespeed\\Service;\n\nclass ServiceTest extends \\PHPUnit_Framework_TestCase\n{\n /** @test */\n public...
php
chosen
[ { "from": "system", "value": "Add support for fixed values in hidden form element\n" }, { "from": "human", "value": "<?php\n\nnamespace Opf\\Form\\Elements;\n\nuse Opf\\Form\\ElementAbstract;\nuse Opf\\Form\\ElementInterface;\n\nclass Hidden extends ElementAbstract implements ElementInterface\n{...
php
chosen
[ { "from": "system", "value": "Fix missing GitlabResourceOwner namespace use" }, { "from": "human", "value": "<?php\n\n/*\n * OAuth2 Client Bundle\n * Copyright (c) KnpUniversity <http://knpuniversity.com/>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t...
php
chosen
[ { "from": "system", "value": "Remove UTF-8 BOM from response, if it exists\n" }, { "from": "human", "value": "<?php\n/**\n * Mime Type: application/json\n * @author Nathan Good <me@nategood.com>\n */\n\nnamespace Httpful\\Handlers;\n\nclass JsonHandler extends MimeHandlerAdapter\n{\n private ...
php
chosen
[ { "from": "system", "value": "Add namespaced TestCase class for PHPUnit < 5.4" }, { "from": "human", "value": "<?php\n/**\n * © 2017 Procurios\n */\nnamespace Procurios\\TDD\\PhpunitAdapter;\n\nuse PHPUnit_Framework_MockObject_RuntimeException;\n\n/**\n * Compatibility layer for running phpunit ...
php
chosen
[ { "from": "system", "value": "Fix of incorrect method command\n" }, { "from": "human", "value": "<?php\n\nnamespace RIPS\\Connector\\Requests;\n\nclass MaintenanceRequests extends BaseRequest\n{\n /**\n * Get status info for the current session and API env.\n *\n * @param array $q...
php
chosen
[ { "from": "system", "value": "Update loader config for test.\n" }, { "from": "human", "value": "<?php\n/**\n* PHPCI - Continuous Integration for PHP\n*\n* @copyright Copyright 2013, Block 8 Limited.\n* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md\n* @link http:...
php
chosen
[ { "from": "system", "value": "Make the uid function static\n" }, { "from": "human", "value": "<?php\n\nnamespace BmCalendar;\n\n/**\n * Implement this with different states to be attached to Days.\n *\n * @author Tom Oram <tom@scl.co.uk>\n */\ninterface DayStateInterface\n{\n /**\n * A un...
php
chosen
[ { "from": "system", "value": "Update ServiceProvider & build tools\n" }, { "from": "human", "value": "<?php namespace Client;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ClientServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if loading of the provider is deferred...
php
chosen
[ { "from": "system", "value": "FIX Return empty ElementalArea if none exists for the page\n" }, { "from": "human", "value": "<?php\n\nnamespace DNADesign\\Elemental\\Extensions;\n\nuse DNADesign\\Elemental\\Models\\ElementalArea;\nuse SilverStripe\\ORM\\DataExtension;\n\n/**\n * The SiteTreeExten...
php
chosen
[ { "from": "system", "value": "Make sure an explicit timezone is set\n" }, { "from": "human", "value": "<?php\n/**\n * This makes our life easier when dealing with paths. Everything is relative\n * to the application root now.\n */\nchdir(dirname(__DIR__));\n\n// Decline static file requests back...
php
chosen
[ { "from": "system", "value": "Fix error on comment screen.\n" }, { "from": "human", "value": "<?php\n\nnamespace WPametu\\UI\\Admin;\n\nuse WPametu\\UI\\MetaBox;\n\nabstract class EditMetaBox extends MetaBox\n{\n\n /**\n * Meta box context\n *\n * @var string 'normal', 'side', and...
php
chosen
[ { "from": "system", "value": "Refactor logic out into smaller methods" }, { "from": "human", "value": "<?php\n\nnamespace Lily\\Test\\Usage;\n\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nuse Lily\\Application\\MiddlewareApplication;\nuse Lily\\Application\\RoutedApplication;\n\nuse Lily\\Ut...
php
chosen
[ { "from": "system", "value": "Add unit test for coverage\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Unit\\Proxy\\Coverage;\n\nuse Paraunit\\Proxy\\Coverage\\FakeDriver;\nuse PHPUnit\\Framework\\TestCase;\n\nclass FakeDriverTest extends TestCase\n{\n ...
php
chosen
[ { "from": "system", "value": "Add default value to channels\n\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMusicSettings extends Migration\n{\n /**\n * Run the migrations.\n *\...
php
chosen
[ { "from": "system", "value": "BUGFIX: Fix typo in previous commit\n" }, { "from": "human", "value": "<?php\nnamespace TYPO3\\Flow\\Tests\\Functional\\Property\\Fixtures;\n\n/*\n * This file is part of the TYPO3.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This...
php
chosen
[ { "from": "system", "value": "Fix the name of arguments for PHP 8\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 * f...
php
chosen
[ { "from": "system", "value": "Make sure the attribute key exists before setting it\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPushbullet;\n\nclass Device\n{\n /**\n\t * The fields that we want to retrieve for the device\n\t *\n\t * @var array $fields\n\t */\n\n protected $fiel...
php
chosen
[ { "from": "system", "value": "Fix route address error for JSON\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Route;\n\n$prefix = config('apidoc.laravel.docs_url', '/doc');\n$middleware = config('apidoc.laravel.middleware', []);\n\nRoute::prefix($prefix)\n ->nam...
php
chosen
[ { "from": "system", "value": "Include missing save method for Model class\n" }, { "from": "human", "value": "<?php\r\nrequire('kissmvc_core.php');\r\n\r\n//===============================================================\r\n// Engine\r\n//==========================================================...
php
chosen
[ { "from": "system", "value": "Add scalar node with skin\n" }, { "from": "human", "value": "<?php\n\nnamespace Avanzu\\AdminThemeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n...
php
chosen
[ { "from": "system", "value": "Add test for a missed case.\n" }, { "from": "human", "value": "<?php\n\n$s = session_status();\n$s2 = trait_exists('abc') . hash_equals('a', 'b');\n\nforeach (get_declared_traits() as $trait) {\n $a3 = new RecursiveCallbackFilterIterator(new RecursiveDirectoryIte...
php
chosen
[ { "from": "system", "value": "Use curly quotation marks instead of straight ones for user submitted quotes\n" }, { "from": "human", "value": "<div class=\"masonry-item refined-user-quote\">\n <div class=\"quote\"><i>\"<?php echo get_the_content(); ?>\"</i></div>\n <p id=\"author\">&#8212&nbsp<...
php
chosen
[ { "from": "system", "value": "[Dns] Add rcode constants to message\n" }, { "from": "human", "value": "<?php\n\nnamespace React\\Dns;\n\nclass Message\n{\n const TYPE_A = 1;\n const TYPE_NS = 2;\n const TYPE_CNAME = 5;\n const TYPE_SOA = 6;\n const TYPE_PTR = 12;\n const TYPE_MX...
php
chosen
[ { "from": "system", "value": "Make end date not required.\n" }, { "from": "human", "value": "<?php\n\nnamespace app\\models;\n\nuse Yii;\n\n/**\n * This is the model class for table \"History\".\n *\n * @property integer $counterId\n * @property string $startDate\n * @property string $endDate\n ...
php
chosen
[ { "from": "system", "value": "Access for SU screens data\n\nCall to nextSlide.php can access SU data. SU data file should be called\nsuData.php.\n\nSU screens can be accessed at:\nhttps://lis.glos.ac.uk/adshow/?id=4\n" }, { "from": "human", "value": "<?php\n\n\t// get post data\n\t$screen = $_P...
php
chosen
[ { "from": "system", "value": "Use eval for shortened ternary operator.\n" }, { "from": "human", "value": "<?php\n\nclass OperatorTest extends PHPUnit_Framework_TestCase\n{\n public function testShortenedTernary()\n {\n if (version_compare(PHP_VERSION, '5.3', '<')) {\n $th...
php
chosen
[ { "from": "system", "value": "Use the Route\\Request to perform a route search.\n" }, { "from": "human", "value": "<?php\n/**\n * @author \"Michael Collette\" <metrol@metrol.net>\n * @package Metrol/Route\n * @version 1.0\n * @copyright (c) 2016, Michael Collette\n */\n\nnames...
php
chosen
[ { "from": "system", "value": "Add Header to Produit page\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Nos Bonbons</title>\n </head>\n <body>\n\n\n <?php\n include \"Reference.php\";\n \t ?>\n\n\n<?php //include(\"header...
php
chosen
[ { "from": "system", "value": "Add discord entry to config file\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party Services\n |-------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Change base url for testing\n" }, { "from": "human", "value": "<?php\n\nabstract class TestCase extends Illuminate\\Foundation\\Testing\\TestCase\n{\n /**\n * The base URL to use while testing the application.\n *\n * @var string\n */\n protect...
php
chosen
[ { "from": "system", "value": "Add missing typehing on backend init\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was distributed with this sourc...
php
chosen
[ { "from": "system", "value": "Fix abilities name/description has wrong field data type -> json\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Mi...
php
chosen
[ { "from": "system", "value": "Remove extraneous GROUP BY name, which broken [release_versions] order" }, { "from": "human", "value": "<?php\n/**\n * api: cron\n * title: Update `tags` table\n * description: Splits out tags from according column in project `release`.\n * version: 0.2\n *\n * Manu...
php
chosen
[ { "from": "system", "value": "Allow for setting NULL value\n" }, { "from": "human", "value": "<?php namespace Inkwell\\HTTP\n{\n\tuse Dotink\\Flourish\\Collection;\n\n\tclass CookieCollection extends Collection\n\t{\n\t\t/**\n\t\t *\n\t\t */\n\t\tpublic function get($name = NULL, $default = NULL...
php
chosen
[ { "from": "system", "value": "UPDATE: Throw exception if we are going to divide by 0\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Statistical Classifier package.\n *\n * (c) Cam Spiers <camspiers@gmail.com>\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Make config reader more friendly; show tent.tent.is\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/vendor/autoload.php';\n\n$config = parse_ini_file(\"app.ini\");\n\n$entityUri = isset($config['entity_uri']) ? $config['entity_uri'] : 'https://dep...
php
chosen
[ { "from": "system", "value": "Make sure resource is not null\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@60246 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * @package api\r\n * @subpackage objects\r\n */\r\nclass KalturaAssetParamsResourceC...
php
chosen
[ { "from": "system", "value": "[PHPUnit] Define an install specific Nut path" }, { "from": "human", "value": "<?php\n\n/*\n * Test bootstrapper. This leaves out all stuff registering services and\n * related to request dispatching.\n */\n\n// Install base location\nif (!defined('TEST_ROOT')) {\n ...
php
chosen
[ { "from": "system", "value": "Reset the WSU API key so the tests never make a real connection and will error if it tries to.\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse Faker\\Factory;\n\nclass TestCase extends \\Laravel\\Lumen\\Testing\\TestCase\n{\n /**\n * Creat...
php
chosen
[ { "from": "system", "value": "ICL: Clean logs after tests added.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Contracts\\Console\\Kernel as KernelContract;\n\nabstract class TestCase extends \\Orchestra\\Testbench\\TestCase\n{\n protected function setUp()\n {\n parent...
php
chosen
[ { "from": "system", "value": "chore(tests): Add call to migrate data into sqlite\n" }, { "from": "human", "value": "<?php\n\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase\n{\n /**\n * The base URL to use while testing the application.\n *\n * @var string\n *...
php
chosen
[ { "from": "system", "value": "Validate XLIFF files in tests using the XSD\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 LICEN...
php
chosen
[ { "from": "system", "value": "Adjust migrate console controller to use a new migration template view file.\n" }, { "from": "human", "value": "<?php\n$params = array_merge(\n require(__DIR__ . '/../../common/config/params.php'),\n require(__DIR__ . '/../../common/config/params-local.php'),\...
php
chosen
[ { "from": "system", "value": "Fix migration for older mysql versions that do not support default values on blob/text columns\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\...
php
chosen
[ { "from": "system", "value": "Declare each attributes on a separate statement\n" }, { "from": "human", "value": "<?php\n/**\n * @author Boris Guéry <guery.b@gmail.com>\n */\n\nnamespace Bgy\\OAuth2;\n\nuse Bgy\\OAuth2\\Utils\\Ensure;\n\nclass ResourceOwner\n{\n private $resourceOwnerId, $reso...
php
chosen
[ { "from": "system", "value": "Make sure we only fetch the member roles we want to be displayed on the members page.\n" }, { "from": "human", "value": "<?php\n/**\n* Verb Path Action\n* GET /members index\n* GET /members/create create\n* POST ...
php
chosen
[ { "from": "system", "value": "Change to protected instead private\n\nIt's should be like this. No need to make function private." }, { "from": "human", "value": "<?php\n\nnamespace Eduardokum\\LaravelMailAutoEmbed\\Embedder;\n\nuse Eduardokum\\LaravelMailAutoEmbed\\Models\\EmbeddableEntity;\nuse...
php
chosen
[ { "from": "system", "value": "Improve readability and replace magic literal\n" }, { "from": "human", "value": "<?php\n\nnamespace OrcaServices\\Heartbeat\\Heartbeat\\Sensor;\n\nuse Migrations\\Migrations;\nuse OrcaServices\\Heartbeat\\Heartbeat\\Sensor;\n\n/**\n * DB Up to Date Sensor\n */\nclas...
php
chosen
[ { "from": "system", "value": "Update test to cover windows environment\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Orchestra\\Tenanti\\Tests\\Unit\\Migrator;\n\nuse Mockery as m;\nuse Orchestra\\T...
php
chosen
[ { "from": "system", "value": "Add method to Conversation's repository to get one by ID joining related entities (author, messages ...etc)\n" }, { "from": "human", "value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Symfony\\Component\\S...
php
chosen
[ { "from": "system", "value": "Change webhook priority to allow store owners to use the event before us\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: Zooma\n * Date: 21/09/15\n * Time: 15:58\n */\n\n\nclass Channel_Engine_Order_Complete {\n\n\n private $clien...
php
chosen
[ { "from": "system", "value": "Remove use statements that are no longer needed\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse App\\Tag;\nuse App\\Note;\nuse Validator;\nuse App\\WebMention;\nuse App\\Observers\\WebMentionObserver;\nuse Illuminate\\Support\\ServicePro...
php
chosen
[ { "from": "system", "value": "Use `<!doctype html>` instead of `<!DOCTYPE html>`\n\nSee https://github.com/h5bp/html5-boilerplate/commit/e67e9cc7c1b5a395521a6ee43031becc321e605a\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html class=\"no-js\" <?php language_attributes(); ?>>\n<head>\n ...
php
chosen
[ { "from": "system", "value": "Fix any prior 0.4.1 errors\n\nFix any database errors caused by prior versions.\n\nSigned-off-by: sicommnend <873c68643dbf4e0dfa0840fe4a2fe9c1228e35cd@users.noreply.github.com>\n" }, { "from": "human", "value": "<?php\nif (file_exists(dirname(__FILE__) . '/SSI.php')...
php
chosen
[ { "from": "system", "value": "Add help attr ability in form_row template\n" }, { "from": "human", "value": "<div class=\"form_row<?php echo ' form_row_'.implode(' form_row_', $form->vars['block_prefixes']).($required ? ' form_required' : '').($valid && $view['nyrodev']->isPost() ? ' form_valid' ...
php
chosen
[ { "from": "system", "value": "Add Zend_Db Test with Zend_Config\n" }, { "from": "human", "value": "<?php\n\nclass ZendDbTest extends \\PHPUnit_Framework_TestCase\n{\n public function testInstantiateDbAdapter()\n {\n $adapter = \\Zend_Db::factory(\n 'Pdo_Sqlite',\n ...
php
chosen
[ { "from": "system", "value": "Ajax: Use weak ETag header in tests\n\nSee http://en.wikipedia.org/wiki/HTTP_ETag#Strong_and_weak_validation\n\nClose gh-1448\n(cherry picked from commit d2aa969206aa1b7738b911cdaf29038f249b5066)\n" }, { "from": "human", "value": "<?php\nerror_reporting(0);\n\n$ts =...
php
chosen
[ { "from": "system", "value": "Use is_dir and add error message\n" }, { "from": "human", "value": "<?php\n\n/**\n * @desc - get a plugin\n * @param string $name - the plugin folder name\n * @param string|array $options - options to give plugin\n */\nfunction plugin($name, $options = false) {\n\ti...
php
chosen
[ { "from": "system", "value": "Drop eval from plugin execution\n" }, { "from": "human", "value": "<?php \n\nnamespace App\\Libs;\n\nuse \\App\\Model\\Plugin as Plugin;\n\nclass ShortCode extends Model{\n\n\tpublic $table = 'plugins';\n\tprivate static $widgets = array();\n\n\tpublic static functi...
php
chosen
[ { "from": "system", "value": "Add test to check expiration\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\CryptoSystem;\n\nuse Rosio\\EncryptedCookie\\CryptoSystem\\AES_SHA1;\n\nclass AES_SHA1Test extends \\PHPUnit_Framework_TestCase\n{\n\tprotected $cryptoSystem;\n\n\tfunction set...
php
chosen
[ { "from": "system", "value": "Extend AbstractType and use getParent\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Integrated package.\n *\n * (c) e-Active B.V. <integrated@e-active.nl>\n *\n * For the full copyright and license information, please view the LICENSE\n...
php
chosen
[ { "from": "system", "value": "Set default timezone to avoid tripping up hhvm" }, { "from": "human", "value": "<?php\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 information, please view the LICENSE\...
php
chosen
[ { "from": "system", "value": "Implement __set(), __get() and __call() in translatable trait.\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 t...
php
chosen
[ { "from": "system", "value": "Add page_size validator even if get.max_items is not set\n" }, { "from": "human", "value": "<?php\n$pagination_custom_page_size = $this->configuration->getValue('get.pagination_custom_page_size');\n$max_items = $this->configuration->getValue('get.max_items');\n?>\n ...
php
chosen
[ { "from": "system", "value": "Enable database transactions for these tests\n" }, { "from": "human", "value": "<?php\n\nuse Mockery as m;\n\nclass RepositoryTest extends TestCase\n{\n public function setUp()\n {\n parent::setUp();\n\n $this->mock = m::mock('App\\Models\\TestEn...
php
chosen
[ { "from": "system", "value": "Define the attributes that aren't mass assignable\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Models\\Items;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Vehicle extends Model\n{\n /**\n * The table associated with the model.\n *\...
php
chosen
[ { "from": "system", "value": "Fix codestyle by adding a space between string concatenation\n" }, { "from": "human", "value": "<?php\n\nnamespace Frisbee\\Controller;\n\nuse Frisbee\\Bootstrap\\BootstrapInterface;\nuse Frisbee\\Exception\\Flingable;\n\nabstract class AbstractController extends Fl...
php
chosen
[ { "from": "system", "value": "[FIX] Make stub match extended parent\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@51055 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n\nuse WikiLingo\\Plugin\\Base;\nuse WikiLingo\\Expression\\Plugin;\n\nclass WikiPluginS...
php
chosen
[ { "from": "system", "value": "Return job id in response\n" }, { "from": "human", "value": "<?php\n\nnamespace Soil\\QueueHttpEndpointBundle\\Controller;\n\nuse Soilby\\EventComponent\\Service\\GearmanClient;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpFoun...
php
chosen
[ { "from": "system", "value": "Fix Model remove protected because interfaces cannot implement protected methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Framework\\Components\\Model\\Interfaces;\n\ndefined('CORE_EXEC') or die('Restricted Access');\n\n\n/**\n *\n * Core Framework\n * ...
php
chosen
[ { "from": "system", "value": "Remove application ID header from example.\n\nThis is no longer required, so no need to present it in the admin panel.\n" }, { "from": "human", "value": "@extends('layout.master')\n\n@section('main_content')\n\n @include('layout.header', ['header' => 'API Keys', ...
php
chosen
[ { "from": "system", "value": "Fix sign up to use new load system\n" }, { "from": "human", "value": "<?php\n namespace Page;\n\n class SignUp\n {\n public function index()\n {\n if ($this->input->hasPost('username'))\n {\n $this->addUser...
php
chosen
[ { "from": "system", "value": "Replace Debug class to make Sylius work again :dancer:\n" }, { "from": "human", "value": "<?php\n\nuse App\\Kernel;\nuse Symfony\\Component\\Debug\\Debug;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nrequire dirname(__DIR__).'/config/bootstrap.php';\n\nif ($...
php
chosen
[ { "from": "system", "value": "Revert \"Added support for custom redirect URL when sending verification email…\"\n" }, { "from": "human", "value": "<?php\n\nnamespace Auth0\\SDK\\API\\Management;\n\nuse Auth0\\SDK\\API\\Helpers\\ApiClient;\nuse Auth0\\SDK\\API\\Header\\ContentType;\n\nclass Jobs ...
php
chosen
[ { "from": "system", "value": "Simplify and utilize request()->user() and request()->guard()\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\nuse DateTimeZone;\nuse Illuminate\\Support\\Arr;\nuse Illuminate\\Support\\Facades\\Date;\n\nt...
php
chosen
[ { "from": "system", "value": "Update compatibility with Laravel v7.x\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\nuse Vinkla\\Hashids\\Facades\\Hashids;\n\ntrait HashidsTrait\n{\n /**\n * Get the value of the model's route k...
php
chosen