conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add timestamp to article meta\n" }, { "from": "human", "value": "@extends('layouts.frontend')\n\n@section('content')\n\t@foreach ($articles as $article)\n\t\t<div class=\"article\" id=\"article-{{ $article->id }}\">\n\t\t\t<h1 class=\"article-title\"><a href=\"#\">{...
php
chosen
[ { "from": "system", "value": "Comment out unused route and leave as example\n" }, { "from": "human", "value": "<?php\n\n$api = app('Dingo\\Api\\Routing\\Router');\n\n$api->version('v1', ['middleware' => 'cors'], function ($api) {\n // Authentication routes\n $api->post('auth', 'App\\Http\\...
php
chosen
[ { "from": "system", "value": "Set les champs money to not required\n" }, { "from": "human", "value": "<?php\n\nnamespace PiggyBox\\ShopBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Optio...
php
chosen
[ { "from": "system", "value": "Add advice footer for non production environments" }, { "from": "human", "value": "<footer class=\"footer\">\n <div class=\"container\">\n <p>&nbsp;</p>\n <p class=\"text-muted\" title=\"v.{{ getenv('APP_VERSION') }}\">{{trans('app.name')}}</p>\n </div>\n</f...
php
chosen
[ { "from": "system", "value": "Change rerun strategy for HHVM (pcntl does not work)\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of PhpSpec, A php toolset to drive emergent\n * design by specification.\n *\n * (c) Marcello Duarte <marcello.duarte@gmail.com>\n * (c) Konstan...
php
chosen
[ { "from": "system", "value": "Add missing newline at end of InvalidObjectTypeException file\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\exception;\n\n/**\n * Exception implementation for cases when an object type of a certain object type\n * definition is expected but the ob...
php
chosen
[ { "from": "system", "value": "Allow the session cache store to be set in config session.store\n" }, { "from": "human", "value": "<?php namespace B3IT\\MemcachedPlus;\n\nuse Illuminate\\Session\\SessionManager as IlluminateSessionManager;\n\nclass SessionManager extends IlluminateSessionManager\n...
php
chosen
[ { "from": "system", "value": "Update to use Laravel Console Menu version 3.x\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * This file is part of Laravel Zero.\n *\n * (c) Nuno Maduro <enunomaduro@gmail.com>\n *\n * For the full copyright and license information,...
php
chosen
[ { "from": "system", "value": "Fix error with empty list entries\n" }, { "from": "human", "value": "<?php\nnamespace Ink\\Generators\\Dom\\BlockRenderers\n{\n use Ink\\Blocks\\BlockInterface;\n use Ink\\Generators\\Dom\\TextRenderer;\n\n class UnorderedListRenderer implements BlockRender...
php
chosen
[ { "from": "system", "value": "Fix wrong naming of facade\n\nFix wrong naming of facade. Issue 2" }, { "from": "human", "value": "<?php namespace willvincent\\Feeds\\Facades;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass Feeds extends Facade {\n\n protected static function getFacadeAcces...
php
chosen
[ { "from": "system", "value": "Fix missing closing bracket for redirect() method\n" }, { "from": "human", "value": "<?php\n/**\n * Backend {{ moduleName }} {{ action }} action\n */\n{% if action in ['index', 'add', 'edit', 'delete'] %}\nclass Backend{{ moduleName|capitalize }}{{ action|capitalize...
php
chosen
[ { "from": "system", "value": "Support for fetching QBO entitlements.\n" }, { "from": "human", "value": "<?php\n\nrequire_once dirname(__FILE__) . '/config.php';\n\nrequire_once dirname(__FILE__) . '/views/header.tpl.php';\n\n?>\n\n<pre>\n\n<?php\n\n$EntitlementsService = new QuickBooks_IPP_Servi...
php
chosen
[ { "from": "system", "value": "Add outputBufferingActive property to clean up output buffer automatically\n" }, { "from": "human", "value": "<?php\nnamespace CLIFramework\\Testing;\nuse PHPUnit_Framework_TestCase;\n\nabstract class CommandTestCase extends PHPUnit_Framework_TestCase\n{\n public...
php
chosen
[ { "from": "system", "value": "[Extension] Add twig directory for views\n" }, { "from": "human", "value": "<?php\n\nnamespace HCLabs\\BillsBundle\\DI;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Dependenc...
php
chosen
[ { "from": "system", "value": "Test the short version of \"integer\": \"int\"\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2016 Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except...
php
chosen
[ { "from": "system", "value": "Add assert extension functions to command test\n" }, { "from": "human", "value": "<?php\n\nnamespace CacheTool\\Command;\n\nuse CacheTool\\Console\\Application;\nuse CacheTool\\Console\\Config;\nuse Symfony\\Component\\Console\\Input\\StringInput;\nuse Symfony\\Comp...
php
chosen
[ { "from": "system", "value": "Remove debug line from class\n" }, { "from": "human", "value": "<?php\n/**\n * Represents a zone\n *\n * @author Edward Rudd <urkle at outoforder.cc>\n */\nclass RO_Zone extends RO_Base {\n protected function configSQL()\n {\n return \"SELECT * FROM zon...
php
chosen
[ { "from": "system", "value": "Update test to add HTML content first\n" }, { "from": "human", "value": "<?php\n\nnamespace SendGrid\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse SendGrid\\Mail\\Mail;\nuse SendGrid\\Mail\\Content;\nuse SendGrid\\Mail\\EmailAddress;\nuse SendGrid\\Mail\\From;\n...
php
chosen
[ { "from": "system", "value": "Update to Silverstripe 3.1.7\nIncluded BootstrapLoadingFormAction for Submit Buttons" }, { "from": "human", "value": "<?php\n\n/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\nclass BootstrapNavbarLanguageForm e...
php
chosen
[ { "from": "system", "value": "Fix redirect bug after login\n" }, { "from": "human", "value": "<?php\n\nnamespace Mschlueter\\Backend\\Controllers;\n\nuse Illuminate\\Foundation\\Auth\\Access\\AuthorizesRequests;\nuse Illuminate\\Foundation\\Bus\\DispatchesJobs;\nuse Illuminate\\Foundation\\Valid...
php
chosen
[ { "from": "system", "value": "Allow to configure user class\n" }, { "from": "human", "value": "<?php\n\nnamespace Bundle\\DoctrineUserBundle\\DependencyInjection;\n\nuse Symfony\\Components\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Components\\DependencyInjection\\Loader\\XmlFile...
php
chosen
[ { "from": "system", "value": "Use the error_log while running tests\n" }, { "from": "human", "value": "<?php\n\n$dir = dirname(__FILE__);\nset_include_path(\"$dir/..:\" . get_include_path());\n\n#define('LOG4PHP_CONFIGURATION', dirname(__FILE__).'/../logger.conf');\nrequire_once 'DF/Web/Logger.p...
php
chosen
[ { "from": "system", "value": "Make sure method call return type is passed by ref\n" }, { "from": "human", "value": "<?php\nnamespace Psalm\\Plugin\\Hook;\n\nuse PhpParser\\Node\\Expr;\nuse PhpParser\\Node\\Expr\\MethodCall;\nuse PhpParser\\Node\\Expr\\StaticCall;\nuse Psalm\\Codebase;\nuse Psalm...
php
chosen
[ { "from": "system", "value": "Check if item is set before trying to look up selected\n" }, { "from": "human", "value": "<!-- Asset Model -->\n<div id=\"{{ $fieldname }}\" class=\"form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}\">\n\n {{ Form::label($fieldname, $translated_name, a...
php
chosen
[ { "from": "system", "value": "Set the default always_authenticate flag to false\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...
php
chosen
[ { "from": "system", "value": "Fix timestampable lifecycle callback issue\n" }, { "from": "human", "value": "<?php\n\nnamespace V3labs\\DoctrineExtensions\\ORM\\Timestampable;\n\nuse Datetime;\n\ntrait Timestampable {\n\n protected $createdAt;\n\n protected $updatedAt;\n\n /**\n * @r...
php
chosen
[ { "from": "system", "value": "Fix another I18n skeleton case typo" }, { "from": "human", "value": "<?php\nnamespace Victoire\\Bundle\\I18nBundle\\CacheWarmer;\n\nuse Sensio\\Bundle\\GeneratorBundle\\Generator\\Generator;\n\n/**\n *\n * @author Florian Raux\n *\n */\nclass I18nGenerator extends G...
php
chosen
[ { "from": "system", "value": "Add auto increment field to user's table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration...
php
chosen
[ { "from": "system", "value": "Hide navigation if not authenticated\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Budget</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <link rel=\"stylesheet\" href=\"ht...
php
chosen
[ { "from": "system", "value": "Add viewport meta tag to layout view\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Budget</title>\n <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Nunito:300,300i\" />\n <link rel=\"styl...
php
chosen
[ { "from": "system", "value": "Allow guests to post images\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Form_Message extends CM_Form_Abstract {\n\n protected function _initialize() {\n $this->registerField(new Denkmal_FormField_VenueNearby(['name' => 'venue']));\n $t...
php
chosen
[ { "from": "system", "value": "Add check accessibility for change password component\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Component_ChangePassword extends Denkmal_Component_Abstract {\n\n public function prepare(CM_Frontend_Environment $environment, CM_Frontend_ViewRespons...
php
chosen
[ { "from": "system", "value": "BAP-111: Implement basic filter functionality\n- added filter form and binding\n- added route name as parameter in DemoGridBundle\n" }, { "from": "human", "value": "<?php\nnamespace Acme\\Bundle\\DemoGridBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\C...
php
chosen
[ { "from": "system", "value": "Work on event service provider.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Foundation\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nabstract class EventServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Get the directories to ...
php
chosen
[ { "from": "system", "value": "Add chunking to send 30 messages per hour to overcome GT rate limiting\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\FasetVisit;\nuse App\\Notifications\\GeneralInterestNotification;\nuse Illuminate\\Http\\Request;\n\nclas...
php
chosen
[ { "from": "system", "value": "Add reference to source code\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<head>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n <title>about cheeseb.us radio</title>\n <link rel=\"stylesheet\" href=\"/stylesheet.css\">\...
php
chosen
[ { "from": "system", "value": "Fix PSR compliance in test files.\n" }, { "from": "human", "value": "<?php\n/**\n * @package BC Security\n */\n\nnamespace BlueChip\\Security\\Tests\\Cases;\n\nuse BlueChip\\Security\\Plugin;\n\nclass PluginTest extends \\BlueChip\\Security\\Tests\\TestCase\n{\n ...
php
chosen
[ { "from": "system", "value": "Allow nullable payment_id for pending payment purposes; Add standard eloquent timestamps\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migrat...
php
chosen
[ { "from": "system", "value": "Fix error if regexp doesn't match beause trl() is used directly\n" }, { "from": "human", "value": "<?php\nclass Kwf_Assets_Util_Trl\n{\n //returns replacement used for js trl strings\n //used by Kwf_Assets_Dependency_File_Js and Kwf_Assets_CommonJs_Underscore_...
php
chosen
[ { "from": "system", "value": "Use DateTimeInterface and null coalescing\n" }, { "from": "human", "value": "<?php\n/**\n * DateEnablement.php\n *\n * @copyright 2016 George D. Cooksey, III\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\n\nnamespace texdc\\ran...
php
chosen
[ { "from": "system", "value": "Return proper filename for static file\n" }, { "from": "human", "value": "<?php\n/**\n * StaticFile.php\n *\n * Created By: jonathan\n * Date: 26/09/2017\n * Time: 15:04\n */\n\nnamespace Stati\\Entity;\n\nuse Symfony\\Component\\Finder\\SplFileInfo;\n\nclass Static...
php
chosen
[ { "from": "system", "value": "Use null check similar to other messages validation\n" }, { "from": "human", "value": "<?php\n\nnamespace Mtahv3\\LaravelQueueSnsSqs\\Queue;\n\n\nuse Aws\\Sqs\\SqsClient;\nuse Illuminate\\Queue\\SqsQueue;\nuse Mtahv3\\LaravelQueueSnsSqs\\Jobs\\SnsSqsJob;\n\nclass Sn...
php
chosen
[ { "from": "system", "value": "Enhance usability of scenario-based saga test case\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the broadway/broadway package.\n *\n * (c) Qandidate.com <opensource@qandidate.com>\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Add type hinting to Site Type controller manager\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Site\\Type\\Controller;\n\nuse Concrete\\Core\\Application\\Application;\nuse Concrete\\Core\\Support\\Manager as CoreManager;\n\nclass Manager exten...
php
chosen
[ { "from": "system", "value": "Store new user instead of just id\n" }, { "from": "human", "value": "<?php\nnamespace BasicUser\\Model\\Form;\nuse Solleer\\User\\{User, SigninStatus};\nclass Signup implements \\MVC\\Model\\Form {\n private $model;\n private $status;\n public $successful =...
php
chosen
[ { "from": "system", "value": "Set cookie if image uploaded\n" }, { "from": "human", "value": "<?php\nrequire_once '../repository/ImageRepository.php';\n/**\n * Siehe Dokumentation im DefaultController.\n */\nclass ImageController\n{\n public function index()\n {\n $imageRepository =...
php
chosen
[ { "from": "system", "value": "Fix service provider class reference" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCasts\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Contracts\\Console\\Kernel;\nuse GeneaLabs\\LaravelCasts\\Providers\\LaravelCastsS...
php
chosen
[ { "from": "system", "value": "Load messages with users and avatars.\n" }, { "from": "human", "value": "<?php\n/* (c) Anton Medvedev <anton@elfet.ru>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamesp...
php
chosen
[ { "from": "system", "value": "Fix Doctrine request for place\n" }, { "from": "human", "value": "<?php\n\nnamespace MassAPIBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\nclass PlaceRepository extends EntityRepository\n{\n public function getNearPlace(array $criteria = array())\...
php
chosen
[ { "from": "system", "value": "Downgrade to guzzle 2.8 for react compatibility" }, { "from": "human", "value": "<?php\n\nnamespace RabbitMQ\\Management;\n\nuse Guzzle\\Common\\Collection;\nuse Guzzle\\Service\\Client;\n\nclass HttpClient extends Client\n{\n private $hydrator;\n\n public fun...
php
chosen
[ { "from": "system", "value": "Fix URLS in nav bar\n" }, { "from": "human", "value": "<?php\n\t// Get sub-categories\n\t$cats2 = (new \\FelixOnline\\Core\\CategoryManager())\n\t\t->filter('hidden = 0')\n\t\t->filter('active = 1');\n\n\tif(!$currentuser->isLoggedIn()) {\n\t\t$cats2->filter('secret...
php
chosen
[ { "from": "system", "value": "Use `int` instead of `string`\n" }, { "from": "human", "value": "<?php\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::callCheck();\nOCP\\JSON::checkAppEnabled('files_versions');\n\n$source = (string)$_GET['source'];\n$start = (string)$_GET['start'];\nlist ($uid, $filename...
php
chosen
[ { "from": "system", "value": "Add 'resources' method for easy definition of restful routes\n" }, { "from": "human", "value": "<?php\n\nnamespace Spark\\Controller;\n\nclass ControllerCollection extends \\Silex\\ControllerCollection\n{\n function draw(callable $callback)\n {\n $callb...
php
chosen
[ { "from": "system", "value": "Fix another issue with URLs not being validated before displaying them into a page. Reported by John Page (hyp3rlinx).\n" }, { "from": "human", "value": "<?php\n\nrequire_once('_include.php');\n\n$config = SimpleSAML_Configuration::getInstance();\n\nif (array_key_ex...
php
chosen
[ { "from": "system", "value": "Make this test more robust\n\nThe order of properties in changed in various places (including serialization and var_dump()) in PHP 8.1\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergm...
php
chosen
[ { "from": "system", "value": "Fix typo in test method name" }, { "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 that wa...
php
chosen
[ { "from": "system", "value": "Add @throws tag for IPermissionObject::checkPermissions()\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\data;\n\n/**\n * Every object with permissions has to implement this interface.\n * \n * @author\tMatthias Schmidt\n * @copyright\t2001-2015 WoltLab Gm...
php
chosen
[ { "from": "system", "value": "Move title and extra information into sidebar\n" }, { "from": "human", "value": "<div class=\"day_cal\">\n <h1 class=\"results\">\n <?php\n if (($dt = strtotime($context->search_query)) && ($context->search_query != 'art')) {\n echo 'Sear...
php
chosen
[ { "from": "system", "value": "Use Yarn over NPM if available\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Rocketeer\n *\n * (c) Maxime Fabre <ehtnam6@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribute...
php
chosen
[ { "from": "system", "value": "Change the name of the format function in the source class\n" }, { "from": "human", "value": "<?php\r\n\r\n/*\r\n * This file is part of the DataGridBundle.\r\n *\r\n * (c) Stanislav Turza <sorien@mail.com>\r\n *\r\n * For the full copyright and license information,...
php
chosen
[ { "from": "system", "value": "Add GetAddr Network Serializer test\n" }, { "from": "human", "value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Test\\Network\\Messages;\n\nuse BitWasp\\Buffertools\\Buffer;\nuse BitWasp\\Bitcoin\\Network\\Messages\\GetAddr;\nuse BitWasp\\Bitcoin\\Tests\\AbstractTestCas...
php
chosen
[ { "from": "system", "value": "Fix watched threads (new not all)\n" }, { "from": "human", "value": "<?php\n\n/** @noinspection PhpIncludeInspection */\ninclude_once('SV/UserActivity/UserActivityInjector.php');\n/** @noinspection PhpIncludeInspection */\ninclude_once('SV/UserActivity/UserCountActi...
php
chosen
[ { "from": "system", "value": "Fix: Add type to param annotation\n" }, { "from": "human", "value": "<?php\n\nnamespace Joindin\\Api\\Model;\n\nuse Joindin\\Api\\Request;\n\n/**\n * Container for multiple EventCommentReportModel objects\n */\nclass PendingTalkClaimModelCollection extends BaseModel...
php
chosen
[ { "from": "system", "value": "Change test because yes/no fits better for checkbox\n\nFormDynamic-code changed because checkbox in german added \"Am\" instead of \"Yes\". This updates the test to fit the new text.\n" }, { "from": "human", "value": "<?php\n/**\n * @group Kwc_FormDynamic\n */\nclas...
php
chosen
[ { "from": "system", "value": "Add application object as controller constructor param\n" }, { "from": "human", "value": "<?php\n/**\n * Base class for controllers\n *\n * @file BaseController.php\n *\n * PHP version 5.4+\n *\n * @author Yancharuk Alexander <alex at itvault dot info>\n * @...
php
chosen
[ { "from": "system", "value": "Make sure to return the favorites count\n" }, { "from": "human", "value": "<?php namespace App\\Data;\n\nuse Eloquent;\nuse DiscussionPresenter;\nuse Laracasts\\Presenter\\PresentableTrait;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Discussion extend...
php
chosen
[ { "from": "system", "value": "Update test after interface method change\n" }, { "from": "human", "value": "<?php\n\nnamespace Smartbox\\Integration\\FrameworkBundle\\Tests\\Unit\\Exceptions\\Handler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Smartbox\\Integration\\FrameworkBundle\\Core\\Endpoint...
php
chosen
[ { "from": "system", "value": "Allow users to enlarge project images\n" }, { "from": "human", "value": "@extends('layout.base')\n@section('body')\n\n<div id=\"viewport\">\n @include('layout.header')\n <div id=\"main\">\n <div id=\"crumbtrail\">\n <ul>\n <li class=\"fa fa-ho...
php
chosen
[ { "from": "system", "value": "Correct drop table referencing wrong table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass ConstrainComments extends Migration\n{\n /**\n * Run the migrations....
php
chosen
[ { "from": "system", "value": "Add a note about scheduled posts to the UI. If there's a better way to insert this into the CSS, please go right ahead.\n\n\ngit-svn-id: d0e296eae3c99886147898d36662a67893ae90b2@1579 653ae4dd-d31e-0410-96ef-6bf7bf53c507\n" }, { "from": "human", "value": "\t\t\t\t<di...
php
chosen
[ { "from": "system", "value": "[FIX] Fix test after renaming the company name\n" }, { "from": "human", "value": "<?php\n\nnamespace N98\\Magento\\Command;\n\nuse N98\\Magento\\Command\\PHPUnit\\TestCase;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nclass ListCommandTest extends Tes...
php
chosen
[ { "from": "system", "value": "Add helper to remove all sessions\n\n" }, { "from": "human", "value": "<?php\n\nnamespace eien\\Helpers;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Support\\Facades\\Auth;\nuse Illuminate\\Support\\Facades\\DB;\n\nclass Session\n{\n\n /**\n * @return mixed\n ...
php
chosen
[ { "from": "system", "value": "Move error message outside form.\n" }, { "from": "human", "value": "<?php\nrequire_once 'views/_shared/status.html.php';\n?>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<h1>Code Editor</h1>\n\t\t\t\t\t<div class=\"content-body\">\n\t\t\t\t\t\t<form action=\"<?= $Con...
php
chosen
[ { "from": "system", "value": "Update namespace in DIC extension\n" }, { "from": "human", "value": "<?php\n\nnamespace Knplabs\\TimeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoade...
php
chosen
[ { "from": "system", "value": "Fix a few namespaces to match file system.\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 LICENS...
php
chosen
[ { "from": "system", "value": "Set specific session expiration of 14d\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_FormAction_Login_Process extends CM_FormAction_Abstract {\n\n protected function _getRequiredFields() {\n return array('email', 'password');\n }\n\n prot...
php
chosen
[ { "from": "system", "value": "Use PHP 8 union types\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/Entity/Interfaces/UserGroupAwareInterface.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Entity\\Interfaces;\n\nuse Ap...
php
chosen
[ { "from": "system", "value": "Move footer credit to one line\n" }, { "from": "human", "value": "<footer class=\"\">\n <div class=\"layout-table\">\n <div class=\"layout-row\">\n <p>{{ config( 'pagekit.address', 'Company Address' ) }}</p>\n &copy; All right reserved\n ...
php
chosen
[ { "from": "system", "value": "Change used layout to new theme" }, { "from": "human", "value": "@extends('root.app')\n\n@section('content')\n<div class=\"container-fluid\">\n \n <h1>Registered Users</h1>\n {!! Table::withContents($users->toArray())->striped()->condensed()->hover() !!}\n\...
php
chosen
[ { "from": "system", "value": "fix(Core): Exclude Laminas modules from module version widget.\n" }, { "from": "human", "value": "<?php\n/**\n * YAWIK\n *\n * @filesource\n * @license MIT\n * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de>\n */\n \n/** */\nnamespace Core\\Listen...
php
chosen
[ { "from": "system", "value": "Fix the fin() function not being present.\n" }, { "from": "human", "value": "<?php\n\nnamespace AbleCore\\Modules;\n\nclass ImageStyleManager {\n\n\tprivate $generated = array();\n\n\tpublic static function init()\n\t{\n\t\treturn new self();\n\t}\n\n\tpublic functi...
php
chosen
[ { "from": "system", "value": "Use PHP8 attributes instead annotations\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n/**\n * /tests/E2E/Rest/src/Controller/ControllerForLifeCycleTests.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\...
php
chosen
[ { "from": "system", "value": "Remove APC cache (php 5.5 included Zend cache already)\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = require_once __DIR__.'/../app/bootstrap.php.cache';...
php
chosen
[ { "from": "system", "value": "Use setEmptyText instead of default-value and clearOnFocus\n" }, { "from": "human", "value": "<?php\nclass Kwc_FulltextSearch_Search_ViewAjax_SearchForm_FrontendForm extends Kwf_Form\n{\n protected function _initFields()\n {\n parent::_initFields();\n ...
php
chosen
[ { "from": "system", "value": "Set empty array on object transformer" }, { "from": "human", "value": "<?php\n\nnamespace Opifer\\EavBundle\\Form\\Transformer;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\Common\\Collections\\Collection;\nuse Symfony\\Component\\Form\\Data...
php
chosen
[ { "from": "system", "value": "Fix plugin migration file 2\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePluginsTable extends Migration\n{\n /*...
php
chosen
[ { "from": "system", "value": "Move $app['storage.metadata']->setDefaultAlias into storage extend\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension;\n\nuse Pimple as Container;\n\n/**\n * Storage helpers.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\ntrait Storag...
php
chosen
[ { "from": "system", "value": "Add Api method for getting rooms of a hostel\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\RestApi;\n\nuse Doctrine\\DBAL\\Connection;\nuse FOS\\RestBundle\\Controller\\FOSRestController;\nuse FOS\\RestBundle\\Routing\\ClassResourceInterface;\n\nc...
php
chosen
[ { "from": "system", "value": "Disable output of doctype, html and body elements\n" }, { "from": "human", "value": "<?php\n\nnamespace Gitiki\\Event\\Listener;\n\nuse Gitiki\\Event\\Events;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface,\n Symfony\\Component\\EventDispatc...
php
chosen
[ { "from": "system", "value": "Fix of detection of dev and test script names\n" }, { "from": "human", "value": "<?php\n\nnamespace Coral\\SiteBundle\\Twig;\n\nuse Symfony\\Component\\HttpFoundation\\RequestStack;\nuse Coral\\SiteBundle\\Content\\Node;\n\nclass PathExtension extends \\Twig_Extensi...
php
chosen
[ { "from": "system", "value": "Fix publish for first installation\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Twitter;\n\nuse Codebird\\Codebird;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass TwitterServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loadi...
php
chosen
[ { "from": "system", "value": "Test upgrading from concrete5 8.5.2\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Tests\\Update;\n\nuse Concrete\\TestHelpers\\DockerTrait;\nuse PHPUnit_Framework_TestCase;\n\n/**\n * @group docker\n */\nclass InstallUpdateTest extends PHPUnit_Fram...
php
chosen
[ { "from": "system", "value": "Remove internal methods from the public interface\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING...
php
chosen
[ { "from": "system", "value": "Fix invalid use of $this\n" }, { "from": "human", "value": "<?php\n\n/**\n * Show a warning to an user about the SP requesting SSO a short time after\n * doing it previously.\n *\n * @package SimpleSAMLphp\n */\n\nif (!array_key_exists('StateId', $_REQUEST)) {\n ...
php
chosen
[ { "from": "system", "value": "Disable CSRF protection for REST API\n\nCSRF protection doesn't make sense for completely stateless APIs like\nthis one.\n" }, { "from": "human", "value": "<?php namespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCs...
php
chosen
[ { "from": "system", "value": "Fix select2 tags, keeping the dropdown hidden\n\n" }, { "from": "human", "value": "@section(\"field\")\n <div class=\"select2-tags\">\n <select name=\"{{ $prefixed_field_name }}[]\" class=\"form-control\" id=\"{{ $field_id }}\" multiple>\n @fore...
php
chosen
[ { "from": "system", "value": "Change URL log viewer on navigation" }, { "from": "human", "value": "<li class=\"\">\n <a href=\"{{ Config::get('syntara::config.uri') }}/logviewer\">\n <i class=\"glyphicon glyphicon-list-alt\"></i><span>Logs</span>\n </a>\n</li>" }, { "from": ...
php
chosen
[ { "from": "system", "value": "Improve regex to detect commands by allowing multiple sections separated with a dash.\n" }, { "from": "human", "value": "<?php\n\nnamespace WP_CLI;\n\n/**\n * Class AutoloadSplitter.\n *\n * This class is used to provide the splitting logic to the\n * `wp-cli/autolo...
php
chosen
[ { "from": "system", "value": "Comment out db for testing" }, { "from": "human", "value": "<?php\r\n$config['db']['host'] = \"\";\r\n$config['db']['user'] = \"\";\r\n$config['db']['pass'] = \"\";\r\n$config['db']['name'] = \"\";\r\n\r\n$config['captcha']['p...
php
chosen
[ { "from": "system", "value": "Add pull before pushing to master\n" }, { "from": "human", "value": "<?php namespace Kironuniversity\\Git\\Controllers;\n\nuse BackendMenu;\nuse Backend\\Classes\\Controller;\nuse GitWrapper\\GitWrapper;\nuse Flash;\n/**\n * Deploy Back-end Controller\n */\nclass De...
php
chosen