conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Handle arrays as parameters in the DBAL executor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RulerZ\\Executor\\DoctrineDBAL;\n\nuse RulerZ\\Context\\ExecutionContext;\nuse RulerZ\\Result\\IteratorTools;\n\ntrait FilterTrait\n{\n abstract protected funct... | php | chosen |
[
{
"from": "system",
"value": "Check empty image + missing alt attribute.\n"
},
{
"from": "human",
"value": "<li class=\"event-list-item\">\n <a class=\"event-list-item-link\" href=\"{{ $event->uri() }}\">\n <div class=\"event-list-item-image-wrapper\">\n <img class=\"event-l... | php | chosen |
[
{
"from": "system",
"value": "FIX Use correct mock assertion methods for PHPUnit 3.7\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BringYourOwnIdeas\\Maintenance\\Tests\\Tasks;\n\nuse BringYourOwnIdeas\\Maintenance\\Util\\ComposerLoader;\nuse SapphireTest;\nuse BringYourOwnIdeas\\Mainten... | php | chosen |
[
{
"from": "system",
"value": "Enable strict errors in test suite\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL & ~E_STRICT);\n\nrequire_once \"vendor/autoload.php\";\n\nrequire_once \"support/AssertLastError.php\";\n\nrequire_once \"support/mock-functions/is_uploaded_file.php... | php | chosen |
[
{
"from": "system",
"value": "Update the port to test on as 5355 is used by systemd-resolve\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace duncan3dc\\SessionsTest;\n\nrequire __DIR__ . \"/../vendor/autoload.php\";\n\nconst SERVER_PORT = 5355;\n\n# Start the internal web server for cookie ... | php | chosen |
[
{
"from": "system",
"value": "Correct method definition for registerAutoloaders"
},
{
"from": "human",
"value": "<?php \n\nnamespace Phalcon\\Mvc {\n\n\t/**\n\t * Phalcon\\Mvc\\ModuleDefinitionInterface initializer\n\t */\n\t\n\tinterface ModuleDefinitionInterface {\n\n\t\t/**\n\t\t * Registers ... | php | chosen |
[
{
"from": "system",
"value": "Use TreeBuilder constructor, deprecated using RootNode\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bookboon\\ApiBundle\\DependencyInjection;\n\nuse Bookboon\\Api\\Cache\\RedisCache;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Sy... | php | chosen |
[
{
"from": "system",
"value": "Remove some unecessary @property doc comments"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpParser\\Node\\Expr;\n\nuse PhpParser\\Node\\Expr;\n\n/**\n * @property Expr $var Variable\n * @property Expr $expr Expression\n */\nabstract class AssignOp extends ... | php | chosen |
[
{
"from": "system",
"value": "CRM-2268: Add attachments to emails\n- fix code standards\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\nuse Oro\\Bundle\\EmailBundle\\Entity\\Email;\n\nclass EmailBodyAdded ... | php | chosen |
[
{
"from": "system",
"value": "fix(shop): Update admin order show page\n\nUpdate admin order show page\n\nsee #401\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Admin;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\nuse App\\Order;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Fix cart and item controllers\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 wit... | php | chosen |
[
{
"from": "system",
"value": "Test if const \\Moip\\Resource\\Customer::ADDRESS_BILLING is valid\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Moip\\Tests\\Resource;\n\nuse Moip\\Tests\\MoipTestCase;\n\n/**\n* class CustomerTest\n*/\nclass CustomerTest extends MoipTestCase\n{\n\t/**\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Remove some legacy stuff from original fork of Lara Admin\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<meta charset=\"utf-8\">\r\n\t<title>{{ Config::get('administrator::administrator.title') }}</title>\r\n\t<meta name=\"viewport\" co... | php | chosen |
[
{
"from": "system",
"value": "Use var_dump_safe instead of var_dump in Whoops PlainTextHandler\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Error\\Provider;\n\nuse Concrete\\Core\\Error\\Handler\\ErrorHandler;\nuse Concrete\\Core\\Error\\Handler\\JsonErrorHandler;\nuse Con... | php | chosen |
[
{
"from": "system",
"value": "Add border to wysiyg value field\n"
},
{
"from": "human",
"value": "<span class=\"dms-display-html\">\n {!! $value !!}\n</span>"
},
{
"from": "gpt",
"value": "<div class=\"dms-display-html list-group\">\n <div class=\"list-group-item\">\n {!... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with the output of the integration tests.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP version 7.1\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nuse Mandragora\\Controller\\Plugin\\... | php | chosen |
[
{
"from": "system",
"value": "Fix test that was checking for a dummy project that doesn't exist\n"
},
{
"from": "human",
"value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('ensure that a user can view a list of their projects');\nTestCommonUser::logMeIn($I);\n$I->click('Projects'... | php | chosen |
[
{
"from": "system",
"value": "Add use command calls to signup handler, pass in command object.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Handler\\Email;\n\nclass SendSignupReceivedEmailHandler extends AbstractEmailHandler\n{\n protected function configureMessage(\\Swift_Messa... | php | chosen |
[
{
"from": "system",
"value": "Change MVC construct for User Fields.\n"
},
{
"from": "human",
"value": "<?php\r\n/*-------------------------------------------------------+\r\n| PHP-Fusion Content Management System\r\n| Copyright (C) PHP-Fusion Inc\r\n| http://www.php-fusion.co.uk/\r\n+-----------... | php | chosen |
[
{
"from": "system",
"value": "Change the default theme name\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Setting\\Database\\Seeders;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Seeder;\nuse Modules\\Setting\\Repositories\\SettingRepository;\n\nclass Se... | php | chosen |
[
{
"from": "system",
"value": "ScreengroupClients: Set SG to 0 on detach\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Api\\V1\\Controllers;\n\nuse Gate;\nuse Activity;\n\nuse App\\Models\\ScreenGroup;\nuse App\\Models\\Client;\n\n\nclass ScreenGroupClientController extends BaseContr... | php | chosen |
[
{
"from": "system",
"value": "Load Census folder view as default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass D... | php | chosen |
[
{
"from": "system",
"value": "Fix application trai doc-tag return\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Trait for application object handling\n *\n * @file ApplicationTrait.php\n *\n * PHP version 5.4+\n *\n * @author Yancharuk Alexander <alex at itvault dot info>\n * @copyri... | php | chosen |
[
{
"from": "system",
"value": "Whitelist symfony polyfills for global namespace\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nreturn [\n 'whitelist' => [\n '\\Phpcq\\PluginApi\\*'\n ],\n];\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_... | php | chosen |
[
{
"from": "system",
"value": "Add left join translations method to the translatable repository trait.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2017-2019, Darvin Studio\n * @link htt... | php | chosen |
[
{
"from": "system",
"value": "Set Content item as name of the UI element"
},
{
"from": "human",
"value": "<?php\n\nnamespace Opifer\\ContentBundle\\ValueProvider;\n\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Opifer\\EavBundle\\ValueProvider\\AbstractValueProvider;\nuse Opifer\\Eav... | php | chosen |
[
{
"from": "system",
"value": "Allow API options to work on service_type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DreamFactory\\Core\\Resources\\System;\n\nuse DreamFactory\\Core\\Contracts\\ServiceTypeInterface;\nuse DreamFactory\\Core\\Exceptions\\NotFoundException;\nuse DreamFacto... | php | chosen |
[
{
"from": "system",
"value": "Fix tag 'js_checkbox' for usage that outside of the tag 'form'\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Limb PHP Framework\n *\n * @link http://limb-project.com\n * @copyright Copyright © 2004-2009 BIT(http://bit-creative.com)\n * @license LGPL http... | php | chosen |
[
{
"from": "system",
"value": "Switch to responsive bootstrap CSS and add needed nav items\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en-us\">\n <head>\n <meta charset=\"utf-8\">\n <title>Lifecycle Building Center</title>\n <meta http-equiv=\"X-UA-Com... | php | chosen |
[
{
"from": "system",
"value": "Make falseToObject test pass on PHP 5.2\n"
},
{
"from": "human",
"value": "<?php\n\nclass TypeJugglingTest extends PHPUnit_Framework_TestCase\n{\n public function testFromFalseOrNullToArray()\n {\n foreach (array(false, null) as $testValue) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use Input instead of request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse App\\User;\nuse Auth;\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\n\nclass Api\n{\n /**\n * The Guard implementation.\n *\n * @... | php | chosen |
[
{
"from": "system",
"value": "Use correct connection parent class\n"
},
{
"from": "human",
"value": "<?php namespace Phaza\\LaravelPostgis;\n\nuse Bosnadev\\Database\\PostgresConnection;\n\nclass PostgisConnection extends PostgresConnection {\n\t/**\n\t * Get the default schema grammar instance.... | php | chosen |
[
{
"from": "system",
"value": "Remove not essential parameters from config file\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nreturn [\r\n // External router settings\r\n 'external_router' => [\r\n 'default_url' => 'home',\r\n 'prefixes' => [],\r\n 'prefix_options' =>... | php | chosen |
[
{
"from": "system",
"value": "Move Base64 logic into InstanceMethods module\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phuby;\n\nclass Base64 {\n static function initialized($self) {\n $self->extend('self');\n }\n\n function decode64($string) {\n return base64_d... | php | chosen |
[
{
"from": "system",
"value": "Support base url in front-end url resolver.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2015 Jack Sleight <http://jacksleight.com/>\n * This source file is subject to the MIT license that is bundled with this package in the file LICENCE. \n */\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Implement support of dot notation in get method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ArrayHelpers;\n\nclass Arr\n{\n /**\n * @param array $array\n * @param string $key\n * @param mixed|null $default\n * @return mixed|null\n */... | php | chosen |
[
{
"from": "system",
"value": "Change for loop to use a more generally-accepted value of the number 5\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../bootstrap.php';\n\nfunction generateAndOutput5(Broadway\\Uuid\\UuidGeneratorInterface $generator) {\n for ($i = 0; $i < ... | php | chosen |
[
{
"from": "system",
"value": "Fix Contact Us Submit $ADMIN to $ADMIN_SUPER\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\User;\nuse Bpocallaghan\\Titan\\Models\\Role;\n\nif (!function_exists('notify_admins')) {\n function notify_admins($class, $argument, $forceEmail = \"\")\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix potential bug when key returns null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Styde\\Html\\Alert;\n\nuse Illuminate\\Session\\Store as Session;\n\nclass SessionHandler implements Handler\n{\n /**\n * Laravel's component to handle sessions\n ... | php | chosen |
[
{
"from": "system",
"value": "Add helper functions for package\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Container.php\n */\n\nnamespace Echoopress\\Framework;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass Container extends ContainerBuilder\n{\n private st... | php | chosen |
[
{
"from": "system",
"value": "Split asset and versioning behaviour\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EngagementAgency\\CDN;\n\nuse InvalidArgumentException;\n\nclass CDN\n{\n const MANIFEST_NAME = 'rev-manifest.json';\n\n /**\n * @var array\n */\n private $co... | php | chosen |
[
{
"from": "system",
"value": "Allow func validation to throw custom errors\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2019 Jack Sleight <http://jacksleight.com/>\n * This source file is subject to the MIT license that is bundled with this package in the file LICENCE. \n */\n\nnam... | php | chosen |
[
{
"from": "system",
"value": "Add default value for ssh_groups\n"
},
{
"from": "human",
"value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass SecurityAddSshGroups extends Mi... | php | chosen |
[
{
"from": "system",
"value": "Fix object creation 5.3 compatible\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class ExampleClass\n */\nclass ExampleClass implements Invokable, Stringifiable, Arrayable\n{\n\n private $say = '\"Hello, World!\"';\n\n /**\n * @return mixed\n */\... | php | chosen |
[
{
"from": "system",
"value": "Add missing dependency for lightbox\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Advanced_LightboxParagraphs_Component extends Kwc_Paragraphs_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['c... | php | chosen |
[
{
"from": "system",
"value": "Revert \"$this->app->share deprecated in 5.4\"\n\nThis reverts commit 3297ab6d4c36bbe8e15701bae370177e9bb91e81.\n"
},
{
"from": "human",
"value": "<?php namespace Cornford\\Bootstrapper;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass BootstrapServiceProvider ... | php | chosen |
[
{
"from": "system",
"value": "Change declaration of flot_graph function from using Twig_Function_Method to Twig_SimpleFunction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ACSEO\\Bundle\\GraphicBundle\\Graphic\\Flot\\Twig\\Extension;\n\nuse Symfony\\Component\\HttpKernel\\KernelInterfac... | php | chosen |
[
{
"from": "system",
"value": "Upgrade to support PHP 7.2"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright Copyright (c) 2012 - 2015 SHENL.COM\n * @license http://www.shenl.com/license/\n */\n\nnamespace hustshenl\\metronic\\widgets;\n\nuse yii\\base\\InvalidCallException;\nuse yii\\bas... | php | chosen |
[
{
"from": "system",
"value": "Rename migration so it doesn't clash.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\n/**\n * Class Cre... | php | chosen |
[
{
"from": "system",
"value": "Remove PHP comment (printed, causing failure)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n# FizzBuzz in PHP\n\n<?php\nfor ( $i = 1; $i <= 100; $i++) {\n\tif ( $i % 15 == 0 ) {\n\t\techo \"fizzbuzz\\n\";\n\t} elseif ( $i % 3 == 0 ) {\n\t\techo \"fizz\\n\";... | php | chosen |
[
{
"from": "system",
"value": "Fix GC threshold for mail to be 90 days instead of 0 seconds\n\nSee D13408.\n"
},
{
"from": "human",
"value": "<?php\n\nfinal class MetaMTAMailSentGarbageCollector\n extends PhabricatorGarbageCollector {\n\n public function collectGarbage() {\n $ttl = phutil_un... | php | chosen |
[
{
"from": "system",
"value": "Include config on latest wrapper.\n"
},
{
"from": "human",
"value": "@extends('admin::layouts.master')\n\n@section('page-title')\n\n@stop\n\n@section('content')\n @include('administrator.dashboard.stats')\n\n <div class=\"row\">\n <div class=\"col-md-6\... | php | chosen |
[
{
"from": "system",
"value": "Speed up DOI extraction with new regexp\n\nPreviously: running the DOI extraction test suite would take just over 7\nseconds; with this new optimisation, it takes under 50 milliseconds.\n\nThe key is to replace the PHP logic which would incrementally strip\ntrailing punctuation... | php | chosen |
[
{
"from": "system",
"value": "Adjust tests leave leading numbers on slugify.\n"
},
{
"from": "human",
"value": "<?php\n\nuse UWDOEM\\Framework\\Etc\\StringUtils;\n\n\nclass StringUtilsTest extends PHPUnit_Framework_TestCase {\n\n public function testSlugify() {\n\n // Assert that it wi... | php | chosen |
[
{
"from": "system",
"value": "Make tree builder with root node (fix deprecation)\n\nMake tree builder with root node (fix deprecation in symfony 4.2) and maintain backwards compatibility"
},
{
"from": "human",
"value": "<?php\nnamespace Corley\\MaintenanceBundle\\DependencyInjection;\n\nuse Symf... | php | chosen |
[
{
"from": "system",
"value": "Add missing translation (in users admin page).\n"
},
{
"from": "human",
"value": "<?php\n$TRANSLATIONS = array(\n\"If you don't know your password, please see below, section <a href=\\\"#user_servervars2\\\">Useful Informations For Connection With Login/Password</a>... | php | chosen |
[
{
"from": "system",
"value": "Use correct param name when calling preg_replace\n"
},
{
"from": "human",
"value": "<?php\n\nclass DeliveryProfileLiveAppleHttpToMulticast extends DeliveryProfileLiveAppleHttp {\n\t\n\tfunction __construct() {\n\t\tparent::__construct();\n\t\t$this->DEFAULT_RENDERER... | php | chosen |
[
{
"from": "system",
"value": "Add default channel roles on channel creation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Containers\\Channel\\Actions;\n\nuse App\\Containers\\Authentication\\Tasks\\GetAuthenticatedUserTask;\nuse App\\Containers\\Channel\\Tasks\\CreateChannelTask;\n... | php | chosen |
[
{
"from": "system",
"value": "Add link to same calendar manage in navigation\n"
},
{
"from": "human",
"value": "<?php foreach ($context->getCalendars() as $calendar): ?>\n <?php if ($context->getCalendar() && ($calendar->shortname == $context->getCalendar()->shortname)): ?>\n <div styl... | php | chosen |
[
{
"from": "system",
"value": "Redact Wordpress patterns as well.\n"
},
{
"from": "human",
"value": "<?php\n\necho \"Quicksilver Debuging Output\";\necho \"\\n\\n\";\necho \"\\n========= START PAYLOAD ===========\\n\";\nprint_r($_POST);\necho \"\\n========== END PAYLOAD ============\\n\";\n\necho... | php | chosen |
[
{
"from": "system",
"value": "Add changelog generator method & documentation helper methods\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This is project's console commands configuration for Robo task runner.\n *\n * @see http://robo.li/\n */\n\nuse Robo\\Tasks;\n\nclass RoboFile extends T... | php | chosen |
[
{
"from": "system",
"value": "Add default value to url field\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddUrlToBadges extends Migration\n{\n /**... | php | chosen |
[
{
"from": "system",
"value": "Fix code formatting for PSR-2 compatibility\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Zubr;\n\n/**\n * (PHP 5 >=5.5.0)<br/>\n * Return the values from a single column in the input array\n * @link http://www.php.net/manual/en/f... | php | chosen |
[
{
"from": "system",
"value": "Add view forks network for a single paste\n"
},
{
"from": "human",
"value": "<h1>To be created</h1>\n"
},
{
"from": "gpt",
"value": "@extends(\"layout.base\")\n\n@section(\"title\", \"Wdi Paste - I forks di {$paste->name}\")\n\n@section(\"container\")\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct misspelling in error message\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spaark\\Core\\Exception;\n\nclass NonExistentPropertyException extends \\Exception\n{\n const ACCESS_TYPE = 'access';\n\n public function __construct($class, $property, ... | php | chosen |
[
{
"from": "system",
"value": "Check that output is just `{}` json\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /tests/Integration/Controller/IndexControllerTest.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Tests\\Integ... | php | chosen |
[
{
"from": "system",
"value": "Connect before using the database\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aureka\\VBBundle;\n\nuse Aureka\\VBBundle\\Exception\\VBUserException,\n Aureka\\VBBundle\\Exception\\VBSessionException;\n\n\nclass VBUsers\n{\n\n private $db;\n\n\n pu... | php | chosen |
[
{
"from": "system",
"value": "FIX Add namespace import for Member\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverStripe\\ContentReview\\Models;\n\nuse SilverStripe\\CMS\\Model\\SiteTree;\nuse SilverStripe\\ORM\\DataObject;\nuse SilverStripe\\Security\\Security;\n\nclass ContentRevie... | php | chosen |
[
{
"from": "system",
"value": "Create a helper function which saves the most recent migration ID as the latest applied one\n"
},
{
"from": "human",
"value": "<?php\n\nif(!defined('IN_INSTALL'))\n{\n die();\n}\n\nfunction generateRandomHash($Length)\n{\n $Signs = '0123456789abcdefghijklmnopr... | php | chosen |
[
{
"from": "system",
"value": "Fix user settings with php7.1\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * ownCloud - password\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Patrick Paysant / CNRS <ppaysant... | php | chosen |
[
{
"from": "system",
"value": "Enforce an initialize method for entity interface.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Cjsaylor\\Domain\\Entity;\n\nuse Cjsaylor\\Domain\\Behavior\\ArraySerializable;\n\ninterface EntityInterface extends \\ArrayAccess, Arra... | php | chosen |
[
{
"from": "system",
"value": "Fix query when MySQL runs in strict mode\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace C5TL\\Parser\\DynamicItem;\n\n/**\n * Extract translatable data from Areas.\n */\nclass Area extends DynamicItem\n{\n /**\n * {@inheritdoc}\n *\n * @see \\C... | php | chosen |
[
{
"from": "system",
"value": "[Promotion] Change misleading PromotionCouponRepository method name\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 LIC... | php | chosen |
[
{
"from": "system",
"value": "Add monthly and yearly archive links\n"
},
{
"from": "human",
"value": "<?php\n get_header();\n\n if (have_posts()) {\n while (have_posts()) {\n the_post();\n?>\n <div class=\"blogPost\">\n <?php the_content(); ?>\n\n<?php\n if (is_page(\"tags... | php | chosen |
[
{
"from": "system",
"value": "Move from deprecated HttpKernel's to Debug's FlattenException.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance ... | php | chosen |
[
{
"from": "system",
"value": "Add type of mailer in contructor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SfVlc\\MainBundle\\Mailer;\n\nuse SfVlc\\MainBundle\\Form\\Model\\Contact;\nuse SfVlc\\MainBundle\\Mailer\\ContactConfigurationInterface;\n\nclass Mailer\n{\n\tprotected $mailer;\... | php | chosen |
[
{
"from": "system",
"value": "Add default value to entity in constructor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HiPay\\Wallet\\Mirakl\\Vendor\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\n\n/**\n * Class CheckAvailability\n * Event object used when the event 'before.... | php | chosen |
[
{
"from": "system",
"value": "Remove remove button from group page\n"
},
{
"from": "human",
"value": "<a href=\"{{URL::to('groups/' . $group->id . '/edit')}}\" class=\"btn operation-margin btn-xs pull-left btn-info\">ویرایش</a>\n<button\n\ttype=\"button\"\n\tclass=\"btn btn-xs pull-left margin-r... | php | chosen |
[
{
"from": "system",
"value": "Use level parameter for dirname() calls instead of multiple calls\n\n"
},
{
"from": "human",
"value": "<?php\nYii::setAlias('@common', dirname(__DIR__));\nYii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');\nYii::setAlias('@backend', dirname(dirname... | php | chosen |
[
{
"from": "system",
"value": "Remove unused code in course Ajax callbacks\n"
},
{
"from": "human",
"value": "<?php\n\nadd_action(\"wp_ajax_nopriv_it_courses_filter\", \"courses_filter\");\nadd_action(\"wp_ajax_it_courses_filter\", \"courses_filter\");\n\n\tfunction courses_filter() {\n\t\tglobal... | php | chosen |
[
{
"from": "system",
"value": "Set accepted arguments to 2 for wp filter\n"
},
{
"from": "human",
"value": "<?php\n\nfunction jf_template_path() {\n return Wrapper::$main_template;\n}\n\nfunction jf_template_base() {\n return Wrapper::$base;\n}\n\nclass Wrapper {\n /**\n * Stores the full pa... | php | chosen |
[
{
"from": "system",
"value": "Remove gaug.es code now that they have an official WP plugin\n"
},
{
"from": "human",
"value": "<?php\n\nfunction theme_enqueue_styles() {\n wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );\n}\nadd_action( 'wp_enqueue_scripts', 'th... | php | chosen |
[
{
"from": "system",
"value": "Change return type to static binding\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types = 1);\n\nnamespace Sop\\JWX\\Parameter\\Feature;\n\nuse Sop\\JWX\\Parameter\\Parameter;\nuse Sop\\JWX\\Util\\Base64;\nuse Sop\\JWX\\Util\\BigInt;\n\n/**\n * Trait f... | php | chosen |
[
{
"from": "system",
"value": "Add method to publish messages returning publisher confirm\n"
},
{
"from": "human",
"value": "<?php\nnamespace Fsalehpour\\RabbitMQ;\n\nuse PhpAmqpLib\\Connection\\AMQPStreamConnection;\n\nclass RabbitMQ\n{\n private $connection;\n private $channel;\n\n /**... | php | chosen |
[
{
"from": "system",
"value": "BAP-9875: Update DELETE action configuration\n - Update tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ApiBundle\\Tests\\Unit\\Processor\\Delete;\n\nuse Oro\\Bundle\\ApiBundle\\Processor\\Delete\\ValidateDeletionResult;\n\nclass ValidateDe... | php | chosen |
[
{
"from": "system",
"value": "Update row to new design\n"
},
{
"from": "human",
"value": "<tr @if(isset($options['rowClass'])) class=\"{{ $options['rowClass'] }} @endif\">\n <td @if(isset($options['labelClass'])) class=\"{{ $options['labelClass'] }} @endif\">\n {{ $label }}\n </td>\... | php | chosen |
[
{
"from": "system",
"value": "Fix bug where the foreign key was incorrect and caused crash when attepting to get poster of a post\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Post extends Model\n{\n protected $table = 'posts... | php | chosen |
[
{
"from": "system",
"value": "Update user model with facebook_id\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Auth\\Authenticatable;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Auth\\Passwords\\CanResetPassword;\nuse Illuminate\\Contracts\\Auth\\... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect phpDoc from copy/paste\n"
},
{
"from": "human",
"value": "<?php\n\nclass UserController extends BaseController\n{\n /**\n * Get user data in JSON\n *\n * @return string\n */\n public function get()\n {\n return User::wit... | php | chosen |
[
{
"from": "system",
"value": "Add link and title in the bricks\n"
},
{
"from": "human",
"value": "<?php use_helper('Javascript') ?>\n\n<div class=\"row\">\n <div class=\"span6\">\n <h1><?php echo __('Media') ?></h1>\n </div>\n <?php if (null !== $facet = $pager->getFacet('mediaTypeId')): ?... | php | chosen |
[
{
"from": "system",
"value": "Fix improperly instantiated class name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Bear Framework HTML Template\n * https://github.com/bearframework/html-template\n * Copyright (c) 2016 Ivo Petkov\n * Free to use under the MIT license.\n */\n\nnamespace BearF... | php | chosen |
[
{
"from": "system",
"value": "Fix multiple bugs in download block\n"
},
{
"from": "human",
"value": "\t\t\t\t<div class=\"felix-item-title felix-item-title felix-item-title-generic\">\n\t\t\t\t\t<h3>Download the latest <i>Felix</i></h3>\n\t\t\t\t</div>\n\t\t\t\t<br>\n\t\t\t\t<?php\n\t\t\t\t\t$li... | php | chosen |
[
{
"from": "system",
"value": "Check database json data type compatibility\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * NOTICE OF LICENSE\n *\n * Part of the Rinvex Fort Package.\n *\n * This source file is subject to The MIT License (MIT)\n * that is bundled with this package in the LICENS... | php | chosen |
[
{
"from": "system",
"value": "Add PHPdoc for security array\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the symfony package.\n * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the full copyright and license information, please view t... | php | chosen |
[
{
"from": "system",
"value": "Fix insert() method for related models."
},
{
"from": "human",
"value": "<?php namespace Laravel\\Database\\Eloquent\\Relationships;\n\nuse Laravel\\Database\\Eloquent\\Model;\n\nclass Has_One_Or_Many extends Relationship {\n\n\t/**\n\t * Insert a new record for the... | php | chosen |
[
{
"from": "system",
"value": "Comment added, for testing egit"
},
{
"from": "human",
"value": "<?php\nnamespace phplug\\plugins\\phplug_ui_widgets_qx\\widgets\\form\\controls;\n\nuse phplug\\platform as pf,\n\tphplug\\plugins\\phplug_ui_widgets\\widgets\\form\\controls;\n\n/**\n * \n * @author A... | php | chosen |
[
{
"from": "system",
"value": "Remove club link in TeaParty list to prevent misclick\n"
},
{
"from": "human",
"value": "@if($teaParty->club)\n <a href=\"{{ route('clubs.show', $teaParty->club) }}\">\n {!! $teaParty->club->display_name !!}\n </a>\n@endif\n"
},
{
"from": "gpt",... | php | chosen |
[
{
"from": "system",
"value": "Apply phpqa using PSR2 standards\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Contains Drupal\\AppConsole\\Test\\Generator\\PluginBlockGeneratorTest.\n */\n\nnamespace Drupal\\AppConsole\\Test\\Generator;\n\nuse Drupal\\AppConsole\\Generator\\Plugin... | php | chosen |
[
{
"from": "system",
"value": "Correct error in theme:: layout path\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\SelectFieldType\\Handler;\n\nuse Anomaly\\SelectFieldType\\SelectFieldType;\nuse Anomaly\\Streams\\Platform\\Addon\\Theme\\ThemeCollection;\nuse Illuminate\\Config\\Repo... | php | chosen |
[
{
"from": "system",
"value": "Change addError() and resetErrors() return type to void\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Brick\\Form;\n\n/**\n * Base class for Form & Component.\n */\nabstract class Base\n{\n /**\n * @var string[]\n */\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.