conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check out the HAR log\n" }, { "from": "human", "value": "<?php\n\nset_error_handler(\n function ($errno, $errstr, $errfile, $errline )\n {\n throw new ErrorException($errstr, $errno, 0, $errfile, $errline);\n }\n);\n\nrequire __DIR__ . '/../vendor/au...
php
chosen
[ { "from": "system", "value": "Fix typo in loging page causing fatal error\n\nFix typo in loging page causing fatal error\n\n- Close `?>`\n" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die('Access denied.');\n$form = Loader::helper('form');\n?>\n<div class='row'>\n\t<div class=...
php
chosen
[ { "from": "system", "value": "Add configuration defaults for features\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace GtmPlugin\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\C...
php
chosen
[ { "from": "system", "value": "Add the sub tree delete control constant.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the LdapTools package.\n *\n * (c) Chad Sikorra <Chad.Sikorra@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\...
php
chosen
[ { "from": "system", "value": "Call session_write_close() when saving session\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Vision\\Session\\Extension;\n\nuse Vision\\Session\\SessionInterface;\n\nuse SessionHandlerInterface;\nuse RuntimeException;\n\nclass Nativ...
php
chosen
[ { "from": "system", "value": "Add youtube url to embed\n" }, { "from": "human", "value": "<?php\nnamespace Codenetix\\SocialMediaImporter\\Adapters;\n\nuse Codenetix\\SocialMediaImporter\\Contracts\\MediaAdapterInterface;\nuse Codenetix\\SocialMediaImporter\\Contracts\\MediaFactoryMethodInterfac...
php
chosen
[ { "from": "system", "value": "Set release version to 0.8.1\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n * @author Ma...
php
chosen
[ { "from": "system", "value": "Disable HTML5 form validation on tabbed forms to prevent issues.\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Form;\n\nclass Form extends \\AzuraForms\\Form\n{\n public function __construct(array $options = [], ?array $defaults = null)\n {\n ...
php
chosen
[ { "from": "system", "value": "Add status and is_spam columns to registrations table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateRegistrationsTa...
php
chosen
[ { "from": "system", "value": "Fix reminders on the dashboard;\n" }, { "from": "human", "value": "<a href=\"/people/{{ $event['contact_id'] }}/reminders\">{{ trans('dashboard.event_reminder') }}</a>\n\n{{-- about <a href=\"\">Name</a> --}}\n{{ trans('dashboard.event_about') }} <a href=\"/people/{...
php
chosen
[ { "from": "system", "value": "Use credentials from environment so we can do unit tests.\n" }, { "from": "human", "value": "<?php\n\nnamespace Slim\\Middleware;\n\n/**\n * HTTP Basic Authentication\n *\n * Provides HTTP Basic Authentication on given routes\n *\n * @package Slim\n * @author ...
php
chosen
[ { "from": "system", "value": "Change gender to represent boolean female\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateAnimalTable extends Migrati...
php
chosen
[ { "from": "system", "value": "Return types in manager tests\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an...
php
chosen
[ { "from": "system", "value": "Add foreign key(s) to migration that creates ideas table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateIdeasTable e...
php
chosen
[ { "from": "system", "value": "Correct issue with \"bindings\" conduit attachment\n\nSummary: Ref T13641. These conditions are swapped, and \"activeBindings\" loads more data than necessary while \"bindings\" doesn't load enough.\n\nTest Plan: Called method with each attachment, got good results instead of a...
php
chosen
[ { "from": "system", "value": "Make ends_on and last_used_on columns in recurrings table nullable\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRe...
php
chosen
[ { "from": "system", "value": "Change method name for archive and add unarchive method" }, { "from": "human", "value": "<?php\n\nnamespace Belvedere\\Basecamp\\Sections;\n\nuse Belvedere\\Basecamp\\Models\\Recording;\n\nclass Recordings extends AbstractSection\n{\n /**\n * Index all record...
php
chosen
[ { "from": "system", "value": "Fix fatal error when a dependency needs to be installed\n\n```\nPHP Catchable fatal error: Argument 1 passed to\nComposer\\DependencyResolver\\Rule::getPrettyString() must be an instance\nof Composer\\DependencyResolver\\Pool, none given, called in\n/home/vagrant/.wp-cli/php/W...
php
chosen
[ { "from": "system", "value": "Return number of set neurons\n" }, { "from": "human", "value": "<?php\nnamespace NoughtsAndCrosses\\NeuralNetwork\\Layer;\nuse NoughtsAndCrosses\\NeuralNetwork\\Neuron\\NeuronInterface;\n\n/** \n * Interface for Abstract Layer.\n *\n * @package noughtsandcrosses\n *...
php
chosen
[ { "from": "system", "value": "Fix organizer recap email title\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Mail;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Mail\\Mailable;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\n\nclass Or...
php
chosen
[ { "from": "system", "value": "Use subdomain URL if no domain mapping available\n\nIf no mapping available, \"domain_mapping_siteurl()\" returns the argument untouched (behaves like a filter)." }, { "from": "human", "value": "<?php\n\nnamespace CF\\WordPress;\n\nclass WordPressWrapper\n{\n pub...
php
chosen
[ { "from": "system", "value": "Add new getExtendedTypes method in form extension for Symfony 4.2\n\nWhen bumping the requirement to PHP 7.1 the iterable return type should be added\n" }, { "from": "human", "value": "<?php\nnamespace Payum\\Bundle\\PayumBundle\\Form\\Extension;\n\nuse Payum\\Core\...
php
chosen
[ { "from": "system", "value": "Fix the phpcs code style error.\n" }, { "from": "human", "value": "<?php\n/**\n * Class Google\\Site_Kit\\Modules\\Analytics\\Plugin_Detector\n *\n * @package Google\\Site_Kit\\Modules\\Analytics\n * @copyright 2019 Google LLC\n * @license https://www.apache.org...
php
chosen
[ { "from": "system", "value": "Add microtime to DebugTimer name to prevent duplicate times for equal calls\n" }, { "from": "human", "value": "<?php\nnamespace DebugHttp\\Network\\Http;\n\nuse Cake\\Core\\Configure;\nuse DebugHttp\\Panel\\ClientCallPanel;\nuse DebugKit\\DebugTimer;\n\n/**\n * Clas...
php
chosen
[ { "from": "system", "value": "Change EventDispatcher use to EventDispatcherInterface\n\nThis change makes code more testable and decoupled of the\nEventDispatcher Component\n" }, { "from": "human", "value": "<?php\n\nnamespace Scarlett;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Sy...
php
chosen
[ { "from": "system", "value": "Add phpdoc for isInRange() method\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Calculators\\Dominion;\n\nuse OpenDominion\\Models\\Dominion;\n\nclass RangeCalculator\n{\n /** @var LandCalculator */\n protected $landCalculator;\n\n /**...
php
chosen
[ { "from": "system", "value": "Remove injected array of scopes\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\OAuth2\\Server\\Repositories;\n\nuse League\\OAuth2\\Server\\Entities\\Interfaces\\ClientEntityInterface;\nuse League\\OAuth2\\Server\\Entities\\Interfaces\\ScopeEntityInte...
php
chosen
[ { "from": "system", "value": "Allow throwable in stub renderer\n\nBy only accepting Exception the Stub Exception renderer cannot handle\nsyntax errors, type errors or undefined method errors.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n/**\n * CakePHP(tm) : Rapid Developm...
php
chosen
[ { "from": "system", "value": "Add Content-Length header to Aphront file responses.\n\nSummary:\nProvide a Content-Length header so that browsers can estimate time\nremaining for file downloads.\n\nTest Plan: Tested on our local phabricator install.\n\nReviewers: epriestley\n\nReviewed By: epriestley\n\nCC: ...
php
chosen
[ { "from": "system", "value": "Check if memcache persistent connection not established before adding server to pool\n" }, { "from": "human", "value": "<?php\nclass f_MemcachedProvider\n{\n\tprivate $memcachedInstance = null;\n\t\n\tpublic function __construct($config)\n\t{\n\t\t$this->memcachedIn...
php
chosen
[ { "from": "system", "value": "Remove static call to constructor.\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: etcinit\n * Date: 10/3/15\n * Time: 6:57 PM\n */\n\nnamespace Chromabits\\Illuminated\\Http\\Factories;\n\nuse Chromabits\\Illuminated\\Http\\ApiRespo...
php
chosen
[ { "from": "system", "value": "Include Redis only in prod\n" }, { "from": "human", "value": "<?php\n\nuse Sylius\\Bundle\\CoreBundle\\Application\\Kernel;\n\n/**\n * @author Paweł Jędrzejewski <pawel@sylius.org>\n */\nclass AppKernel extends Kernel\n{\n /**\n * {@inheritdoc}\n */\n ...
php
chosen
[ { "from": "system", "value": "Allow amount to be set by the calling function as it is valid to pass a greater amount as part of the initial payment express transaction\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\PaymentExpress\\Message;\n\n/**\n * PaymentExpress PxPost Create ...
php
chosen
[ { "from": "system", "value": "Remove some complexity caused by refactorings" }, { "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 Li...
php
chosen
[ { "from": "system", "value": "Test TagUnless with a variable\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Liquid package.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * @...
php
chosen
[ { "from": "system", "value": "Support for default values in constructor added\n" }, { "from": "human", "value": "<?php\n\nnamespace Kutny\\AutowiringBundle\\Compiler;\n\nuse ReflectionMethod;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nclass ClassConstructorFiller\n{\n\n priv...
php
chosen
[ { "from": "system", "value": "Switch to old array style syntax to support PHP 5.3" }, { "from": "human", "value": "<?php\n/**\n * Apply patches to support newer PHP versions.\n */\n\n$patches = [\n 'phpunit_mock_objects.patch' => 'phpunit/phpunit-mock-objects',\n 'phpunit_php7.patch' => 'p...
php
chosen
[ { "from": "system", "value": "Return actual json to fix webhook testing showing a potential debugbar\n" }, { "from": "human", "value": "<?php\n\n\tnamespace MikeVrind\\Deployer\\Controllers;\n\n\tuse Illuminate\\Routing\\Controller;\n\tuse MikeVrind\\Deployer\\Deployer;\n\n\tclass DeployControll...
php
chosen
[ { "from": "system", "value": "Load homepage template instead of including\n" }, { "from": "human", "value": "<?php\n// If blog posts configured for front page, pass on handling\nif ( 'posts' == get_option( 'show_on_front' ) ) {\n\t\tinclude( get_home_template() );\n\t\treturn;\n}\n?>\n<?php get_...
php
chosen
[ { "from": "system", "value": "Use the pattern method to contrain the route parameter by a given regular expression.\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as Serv...
php
chosen
[ { "from": "system", "value": "Add sääli scraper to paging\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Paging_ScraperSource_All extends CM_Paging_Abstract {\n\n public function __construct() {\n $scraperList = array(\n new Denkmal_Scraper_Source_Kaschemme(),\n ...
php
chosen
[ { "from": "system", "value": "Add utility methods for saving a Url\n\nWhilst everything could be added in the manageUrl method, that doesn't\naid readability. So I've split out that functionality in to separate\nmethods." }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;...
php
chosen
[ { "from": "system", "value": "Fix errors if helper doesn't exist\n" }, { "from": "human", "value": "<?php\n\n/**\n * Hackwork v2.0.0-beta (http://git.io/hackwork)\n * Licensed under the MIT License.\n */\n\n/*\n * Paths\n *\n * Omit trailing slashes here.\n */\n\n// Root\ndefine('ROOT', $_SERVER...
php
chosen
[ { "from": "system", "value": "Fix permission grouping bug resulting in incorrect permission checking\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace muqsit\\playervaults;\n\nuse Ds\\Set;\nuse pocketmine\\Player;\nuse pocketmine\\utils\\Config;\n\nfinal class Per...
php
chosen
[ { "from": "system", "value": "Add basic unit test code\n" }, { "from": "human", "value": "<?php\n\nnamespace My\\BlogBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public function testIndex()\n ...
php
chosen
[ { "from": "system", "value": "Delete all existing push subscriptions\n" }, { "from": "human", "value": "<?php\n\nif (CM_Db_Db::existsIndex('denkmal_push_subscription', 'subscriptionId-endpoint')) {\n CM_Db_Db::exec(\"DROP INDEX `subscriptionId-endpoint` ON denkmal_push_subscription;\");\n ...
php
chosen
[ { "from": "system", "value": "Change from increments to bigIncrements (unsure if this is adviseable...)\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass C...
php
chosen
[ { "from": "system", "value": "Fix redirecting with mod_rewrite disabled" }, { "from": "human", "value": "<?php\n\nif(!empty($_GET[\"set\"]) && file_exists(\"include/themes/\" . $_GET[\"set\"])) {\n\tsetcookie(\"advancedban-panel_theme\", $_GET[\"set\"], time( ) + (30 * 60 * 60 * 24), \"/\");\n} ...
php
chosen
[ { "from": "system", "value": "Return a little more structure for items that are found\n" }, { "from": "human", "value": "<?\ninclude '../scat.php';\ninclude '../lib/item.php';\n\n$q= $_GET['q'];\nif (!$q) exit;\n\n$options= 0;\nif ($_REQUEST['all']) $options+= FIND_ALL;\nif ($_REQUEST['or']) $op...
php
chosen
[ { "from": "system", "value": "Make sure users can edit their signature\n" }, { "from": "human", "value": "<?php namespace App\\Data;\n\nuse UserPresenter;\nuse App\\Authorization;\nuse Illuminate\\Notifications\\Notifiable;\nuse Laracasts\\Presenter\\PresentableTrait;\nuse Illuminate\\Foundation...
php
chosen
[ { "from": "system", "value": "Add JS event for each page load.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nuse Orchestra\\Support\\Facades\\Asset; ?>\n\n<footer>\n\t<div class=\"container\">\n\t\t<hr>\n\t\t<p>&copy;...
php
chosen
[ { "from": "system", "value": "Fix wrong view config parent\n" }, { "from": "human", "value": "<?php\n\nnamespace Config;\n\nuse CodeIgniter\\View\\View as BaseView;\n\nclass View extends BaseView\n{\n\t/**\n\t * When false, the view method will clear the data between each\n\t * call. This keeps ...
php
chosen
[ { "from": "system", "value": "Use the shortcut method for unsigned integer" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateLikeableTables extends Migration {\n\n\tpublic function up() {\n\t\t\...
php
chosen
[ { "from": "system", "value": "Clean cache before doing benchmark + copyright\n" }, { "from": "human", "value": "<?php\n\nrequire 'vendor/autoload.php';\n\n$_SERVER['REQUEST_URI'] = '/test/slugifiedtext/123';\n$_SERVER['REQUEST_METHOD'] = 'GET';\n$_SERVER['HTTP_HOST'] = 'example.com';\n\nclass Te...
php
chosen
[ { "from": "system", "value": "Add `$options` argument to constructor.\n" }, { "from": "human", "value": "<?php\n\nnamespace SerendipityHQ\\Library\\PHPUnit_Profiler;\n\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\nclass Profiler extends \\PHPUnit_Framework_BaseTestListener\n{\n private $s...
php
chosen
[ { "from": "system", "value": "Add some fields to the topics migration files.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTopicsTable extends Migration {\n\n\t/**\n\t * Run the migrations...
php
chosen
[ { "from": "system", "value": "Set migrate command settings back to production\n" }, { "from": "human", "value": "<?php\n\nnamespace jorenvanhocht\\Blogify\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass BlogifyMigrateCommand extends Command\n{\n\n /**\n * The console command name...
php
chosen
[ { "from": "system", "value": "Add a function to return response and die\n" }, { "from": "human", "value": "<?php\n\n/*\n * 이 컨트롤러를 상속받아 구현하는 컨트롤러는 application/json 타입의 리턴을 기본으로 하고, 로그인 체크를 하지 않음\n */\n\nclass API_Controller extends CI_Controller {\n\n public $result;\n\n public function __...
php
chosen
[ { "from": "system", "value": "Fix double extension bug for nested files with non-pretty-URL\n" }, { "from": "human", "value": "<?php namespace TightenCo\\Jigsaw;\n\nclass BasicOutputPathResolver\n{\n public function link($path, $name, $type, $page = 1)\n {\n if ($page > 1) {\n ...
php
chosen
[ { "from": "system", "value": "Include default timeout value from interface\n\nBoth the interface (`Interop\\Queue\\PsrConsumer`) and the implementation (for example `Enqueue\\AmqpBunny\\AmqpConsumer`) seem to have a default value for the `receive()` method's first and only parameter `$timeout`. This default...
php
chosen
[ { "from": "system", "value": "Add callback for sms inbound\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Co...
php
chosen
[ { "from": "system", "value": "Move the `/* @var` syntax above\n" }, { "from": "human", "value": "<?php\n\nnamespace SimpleBus\\DoctrineORMBridge\\MessageBus;\n\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\Persistence\\ManagerRegistry;\nuse SimpleBus\\Message\\Bus\\Middleware\\MessageBusMidd...
php
chosen
[ { "from": "system", "value": "Fix roles check if no roles present\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelGovernor\\Policies;\n\nuse GeneaLabs\\LaravelGovernor\\Permission;\n\nclass LaravelGovernorPolicy\n{\n protected $permissions;\n\n public function __constr...
php
chosen
[ { "from": "system", "value": "Add @return to run method\n\nSigned-off-by: franckysolo <a6b137401235e3a76c6d3fec9a271303e5d76274@gmail.com>" }, { "from": "human", "value": "<?php\n/**\n * Unitest (PHP Unit Test)\n *\n * @version 1.0.0\n * @author franckysolo <franckysolo@gmail.com>\n */\nnamespac...
php
chosen
[ { "from": "system", "value": "Add the RegExpRouter to the include path\n" }, { "from": "human", "value": "<?php\n/**\n * This file parses the configuration and connection details for the catalog database.\n * \n * @package UNL_UCBCN\n * @author bbieber\n */\n\nfunction autoload($class)\n{\n $...
php
chosen
[ { "from": "system", "value": "Use template instead of default view generator\n" }, { "from": "human", "value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\nclass Welcome extends MY_Controller {\n\n\t/**\n\t * Index Page for this controller.\n\t *\n\t * Maps to t...
php
chosen
[ { "from": "system", "value": "Update GitVersion provider to use Process array\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": "Add theme version number to favicons\n" }, { "from": "human", "value": "<link rel=\"shortcut icon\" href=\"<?php echo get_template_directory_uri(); ?>/favicon.ico\" />\n<?php\n$template_dir = get_template_directory_uri();\n$sizes = array(\n '',\n '57x57',\n '72x7...
php
chosen
[ { "from": "system", "value": "Change the namespace for the example command, too.\n" }, { "from": "human", "value": "<?php\nnamespace Codception\\Command;\n\nclass MyCustomCommandTest extends \\PHPUnit_Framework_TestCase\n{\n public static function setUpBeforeClass()\n {\n require_on...
php
chosen
[ { "from": "system", "value": "Add an entry for deploying\n" }, { "from": "human", "value": "<div class=\"box\">\n <div class=\"box-header\">\n <h3 class=\"box-title\">{{ trans('releases.label') }}</h3>\n </div>\n\n\n <div class=\"box-body\" id=\"no_releases\">\n <p>{{ tran...
php
chosen
[ { "from": "system", "value": "Add patreon link to right sidebar\n" }, { "from": "human", "value": "<?php\n\nnamespace ATPComic\\Controller;\n\nclass IndexController extends \\ATPCore\\Controller\\AbstractController\n{\n\tpublic function init()\n\t{\n\t}\n\n\tpublic function pageAction()\n\t{\n\t...
php
chosen
[ { "from": "system", "value": "Change minimimum required PHP version to 5.3.23\n\n- Remove [] array notation\n" }, { "from": "human", "value": "<?php\n/**\n * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause\n * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://w...
php
chosen
[ { "from": "system", "value": "Add a accesor for size\n" }, { "from": "human", "value": "<?php\nnamespace Datenknoten\\LigiBundle\\Entity;\n\nuse Gedmo\\Mapping\\Annotation as Gedmo;\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * @ORM\\Entity\n * @Gedmo\\Uploadable(pathMethod=\"getDefaultPath\", ...
php
chosen
[ { "from": "system", "value": "Add blank addToCollection() method; will finish in class\n" }, { "from": "human", "value": "<?php\n\nclass WeatherCollection implements Iterator {\n\n//\twe'll write this class as an in-class exercise\n\n\n\n}\n\n?>" }, { "from": "gpt", "value": "<?php\n...
php
chosen
[ { "from": "system", "value": "Update for change to username on sign in" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n 'account_already_exists' => 'An account with the this email already exists.',\n 'account_not_found' => 'The email account or password is incorrect.',\n ...
php
chosen
[ { "from": "system", "value": "Add test to check registration button exists on login page\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Tests\\Functional\\Controller;\n\nclass SecurityControllerTest extends \\AppBundle\\Tests\\Functional\\TestCase\n{\n public function testRe...
php
chosen
[ { "from": "system", "value": "BAP-1534: Fix acl access levels selector on root entity\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SecurityBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configu...
php
chosen
[ { "from": "system", "value": "Add PSR-2 syntax on migrations.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateLocalesTable extends Migration {\n\n\t/**\n\t * Run the migrations.\n\t *\n\t * ...
php
chosen
[ { "from": "system", "value": "Trl: Check if VENDOR_PATH is defined before using\n" }, { "from": "human", "value": "<?php\nclass Kwf_Trl_Parser_JsParser\n{\n public static function parseContent($content)\n {\n $process = new Symfony\\Component\\Process\\Process(getcwd().'/'.VENDOR_PA...
php
chosen
[ { "from": "system", "value": "Use application sourceLanguage in default migrate\n" }, { "from": "human", "value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m151220_112320_lang extends Migration\n{\n public function safeUp()\n {\n $tableOptions = null;\n if ($this->db->driver...
php
chosen
[ { "from": "system", "value": "CC-5781: Upgrade script for new storage quota implementation\n\nUpgrade script for saas only\n" }, { "from": "human", "value": "<?php\n\nclass StorageQuotaUpgrade\n{\n public static function startUpgrade()\n {\n echo \"* Updating storage usage for new q...
php
chosen
[ { "from": "system", "value": "Remove creating roles in seeder\n\nThe seasons, competitions, divisions, clubs and teams roles are now\ncreated automatically by a listener, following the creationg of the\nmodel.\n" }, { "from": "human", "value": "<?php\n\nuse App\\Models\\Club;\nuse App\\Models\\C...
php
chosen
[ { "from": "system", "value": "Make sure we open links that go to google maps in a new window/tab.\n" }, { "from": "human", "value": "<tr<?php echo $event->getOutOfState() ?>>\n <td>{{ $event->getDate() }}</td>\n\n @if (trim($event->url) != \"\")\n <td><a href=\"{{{ $event->url }}}\" target=\"...
php
chosen
[ { "from": "system", "value": "Delete files after they have been processed.\n" }, { "from": "human", "value": "<?php\n\ndefine('JAVA_PATH', '/usr/bin/java');\ndefine('TMP_DIR', '/tmp');\ndefine('FFF_PATH', dirname(dirname(__FILE__)));\ndefine('CLASSPATH', FFF_PATH . '/itext.jar:' . FFF_PATH . '/j...
php
chosen
[ { "from": "system", "value": "Change CA cert bundle URL\n\nThe curl domain has changed from curl.haxx.se to curl.se. Calling update_certs.php with the old CA bundle URL may result in the text of the 301 response being downloaded instead of the bundle file, breaking communication with Stripe." }, { "...
php
chosen
[ { "from": "system", "value": "Remove manual alias because it is added automatically with config plugin\n" }, { "from": "human", "value": "<?php\n/**\n * HiDev plugin for license generation.\n *\n * @link https://github.com/hiqdev/hidev-license\n * @package hidev-license\n * @license BSD...
php
chosen
[ { "from": "system", "value": "Fix self-queries ignoring (since self queries are ajax)\n" }, { "from": "human", "value": "<?php\nnamespace tunect\\Yii2JsErrorHandler;\n\nuse yii\\base\\BootstrapInterface;\n\nclass Bootstrap implements BootstrapInterface\n{\n /**\n * @inheritdoc\n */\n ...
php
chosen
[ { "from": "system", "value": "Fix data type of shipment point id for /api/v5/integration-modules/{code}/edit\n\n" }, { "from": "human", "value": "<?php\n\n/**\n * PHP version 7.3\n *\n * @category ShipmentPoint\n * @package RetailCrm\\Api\\Model\\Entity\\Integration\\Delivery\n */\n\nnamespace ...
php
chosen
[ { "from": "system", "value": ":bug: Update the correct S3 path\n" }, { "from": "human", "value": "<?php\n\n\tloadlib(\"s3\");\n\n\t########################################################################\n\n\tfunction wof_s3_put_file($rel, $path, $args=array(), $more=array()) {\n\n\t\t$bucket = ...
php
chosen
[ { "from": "system", "value": "Print filename in error message\n" }, { "from": "human", "value": "<?php\n\n// previous_form is the name of the from which this data came\nfunction LogPostValuesToLog($filename, $previous_form) {\n\t$output = array();\n\t$output[$previous_form] = array();\n\n\tforea...
php
chosen
[ { "from": "system", "value": "Revert \"Avoiding flood of posts from same user\"\n\nThis reverts commit f900a1a15abee7996feb71d8917d53f5de059572.\n" }, { "from": "human", "value": "<?php\ninclude \"guestbook.html\";\nif ($_POST) {\n if (isset($_COOKIE['posts'])) {\n if ($_COOKIE['posts'...
php
chosen
[ { "from": "system", "value": "ENHANCEMENT: Allow image tab to be i18n\n" }, { "from": "human", "value": "<?php\n/**\n* Defines the SupportingProjectPage page type - initial code created by ss generator\n*/\nclass PageWithImage extends Page implements RenderableAsPortlet {\n\n\n static $has_one ...
php
chosen
[ { "from": "system", "value": "Increase sleep value to 2s" }, { "from": "human", "value": "<?php\n\nnamespace RabbitMQBundle\\Tests\\Controller;\n\nuse AppBundle\\Entity\\Post;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass Ra...
php
chosen
[ { "from": "system", "value": "Update file comment block for the command `secret:generate`\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the PHPLucidFrame library.\n * The script executes the command `php lucidframe secret:generate`\n *\n * @package LucidFrame\\Consol...
php
chosen
[ { "from": "system", "value": "Fix undefined variable + extra dollar sign $ variable\n" }, { "from": "human", "value": "<?php\n/**\n * @title Birthday Cron Class\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2013-2018, Pierre-Henry Soria...
php
chosen
[ { "from": "system", "value": "Remove required page key menu_title\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of WordPlate.\n *\n * (c) Vincent Klaiber <hello@vinkla.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was di...
php
chosen
[ { "from": "system", "value": "Fix warning about undefined $this in Psy\\sh()\n" }, { "from": "human", "value": "<?php\n\nnamespace Psy;\n\nif (!function_exists('Psy\\sh')) {\n /**\n * Command to return the eval-able code to startup PsySH.\n *\n * eval(\\Psy\\sh());\n *\n ...
php
chosen
[ { "from": "system", "value": "Update with the new entry_before_display hook\n" }, { "from": "human", "value": "<?php\n\nclass HelloWorldExtension extends Minz_Extension {\n\tpublic function init() {\n\t\tMinz_View::appendStyle($this->getFileUrl('style.css', 'css'));\n\t\tMinz_View::appendScript(...
php
chosen
[ { "from": "system", "value": "Remove columns, only if they already exist\n" }, { "from": "human", "value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass ReorganizeTranslationTable extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method i...
php
chosen
[ { "from": "system", "value": "Handle environments that provide multiple env values\n" }, { "from": "human", "value": "<?php\n\nnamespace TheCrypticAce\\Suitey\\Environment;\n\nuse Illuminate\\Contracts\\Foundation\\Application;\n\nfinal class Environment\n{\n public static function loadUsing(...
php
chosen