conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "ADD set_error_handler for error exception catch.\n\nSigned-off-by: Richard Lea <5e20e57f18b15612bae274c2aef7dc395ee6b2a1@zoho.com>\n" }, { "from": "human", "value": "<?php \nfunction parseArgs(){\n\t$env = Environment::getInstance();\n\t$editor = new Chigi\\Sublime\...
php
chosen
[ { "from": "system", "value": "Test that raw tag ignores other tags\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 *\...
php
chosen
[ { "from": "system", "value": "Change password in administrator data fixture.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyrigh...
php
chosen
[ { "from": "system", "value": "Add some error handling in the crawler\n\nThe crawler will silently return nothing if it's disabled or if fetch or parser error happen.\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: Nabeel\r\n * Date: 2015-10-16\r\n * Time: 6...
php
chosen
[ { "from": "system", "value": "Disable Plugin and Theme Update and Installation\n\nThis closes #19\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 ...
php
chosen
[ { "from": "system", "value": "Improve the elFinder connector on MediaManager Module\n" }, { "from": "human", "value": "<?php\n\n$elFinderPath = APPDIR .'Modules/MediaManager/Lib/elFinder/';\n\nrequire $elFinderPath .'elFinderConnector.class.php';\nrequire $elFinderPath .'elFinder.class.php';\nre...
php
chosen
[ { "from": "system", "value": "Add assertion for flagbit_currency.twig Twig extension service\n" }, { "from": "human", "value": "<?php\n\nnamespace Flagbit\\Bundle\\CurrencyBundle\\Tests;\n\nuse Flagbit\\Bundle\\CurrencyBundle\\DependencyInjection\\FlagbitCurrencyExtension;\nuse Symfony\\Componen...
php
chosen
[ { "from": "system", "value": "Make test Callback a little more reusable\n" }, { "from": "human", "value": "<?php\nnamespace Respect\\Validation\\Rules;\n\nclass CallbackTest extends \\PHPUnit_Framework_TestCase\n{\n public function thisIsASampleCallbackUsedInsideThisTest()\n {\n ret...
php
chosen
[ { "from": "system", "value": "Sort by title instead of id in `report:terms` [API-224]\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands\\Report;\n\nuse App\\Models\\Collections\\Agent;\n\nuse League\\Csv\\Writer;\nuse Illuminate\\Support\\Facades\\Storage;\n\nuse Aic\\...
php
chosen
[ { "from": "system", "value": "Use correct parameter for screen names" }, { "from": "human", "value": "<?php\nini_set('display_errors', 1);\nrequire_once('TwitterAPIExchange.php');\n\n/** Set access tokens here - see: https://dev.twitter.com/apps/ **/\n$settings = array(\n 'oauth_access_token'...
php
chosen
[ { "from": "system", "value": "Fix error class InvalidCommandException does exists\n" }, { "from": "human", "value": "<?php\n\nnamespace Nam\\Commander;\n\n\n/**\n * Class RegisterUserCommandHandler\n *\n * @author Nam Hoang Luu <nam@mbearvn.com>\n * @package Mbibi\\Core\\Commands\n *\n */\ninte...
php
chosen
[ { "from": "system", "value": "Replace login link with the audio link\n" }, { "from": "human", "value": "<html>\n<head>\n <title>VAW</title>\n <link href=\"app/bootstrap/css/bootstrap.css\" rel=\"stylesheet\" />\n <style>\n #main{\n margin-top: 60px;\n }\n ...
php
chosen
[ { "from": "system", "value": "Remove else for return statement\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 DeployController extends Controller\n\t{\n\n\t\t/**\...
php
chosen
[ { "from": "system", "value": "Use transactions to apply Ajax settings mutations\n\nSummary:\nRef T4103. Some settings (mostly nav collapsed/expanded states) use this endpoint to make adjustments when users press keys (like `\\` to toggle the durable column).\n\nAll of these settings are now formal, so swap ...
php
chosen
[ { "from": "system", "value": "Fix for BRCD_798 : align non-prorated services/plans with the per cycle limits/rates\n" }, { "from": "human", "value": "<?php\n\n/**\n * @package Billing\n * @copyright Copyright (C) 2012 BillRun Technologies Ltd. All rights reserved.\n * @license ...
php
chosen
[ { "from": "system", "value": "Fix bug adding posts variable to view\n" }, { "from": "human", "value": "<?php\n\nnamespace Atsys\\Blog\\Http\\Controllers\\Blog;\n\nuse App\\Http\\Controllers\\Controller;\nuse Atsys\\Blog\\Post;\nuse Atsys\\Blog\\PostCategory;\n\nclass PostsController extends Cont...
php
chosen
[ { "from": "system", "value": "Remove Fork Cms copyright comments." }, { "from": "human", "value": "<?php\n\nnamespace Frontend\\Modules\\Instagram\\Widgets;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was ...
php
chosen
[ { "from": "system", "value": "Fix for pagination only showing 30 results\n" }, { "from": "human", "value": "<?php\n\nnamespace EdpGithub\\ApiClient\\Service;\n\nuse EdpGithub\\ApiClient\\Model\\Repo as RepoModel;\n\nclass Repo extends AbstractService\n{\n // list of github allowed types for f...
php
chosen
[ { "from": "system", "value": "Fix exception json_decode() expects parameter 1 to be string, array given\n\nSince Notifynder fixes Extra array is empty if you call toArray,\nno longer json_decode is required.\n\nhttps://github.com/fenos/Notifynder/issues/126\n" }, { "from": "human", "value": "<li...
php
chosen
[ { "from": "system", "value": "Add comments, remove constant definitions" }, { "from": "human", "value": "<?php\n\nif (!defined('APP_DIR')) {\n define('APP_DIR',dirname(__DIR__));\n}\n\nif (!defined('DB_HOST')) {\n define('DB_HOST','127.0.0.1');\n}\n\nif (!defined('DB_NAME')) {\n define('DB_NA...
php
chosen
[ { "from": "system", "value": "Configure anti-spam form type constraints.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright an...
php
chosen
[ { "from": "system", "value": "Add comment why this update script is required\n" }, { "from": "human", "value": "<?php\nclass Kwf_Update_20160824ComponentLinkViewCache extends Kwf_Update\n{\n protected $_tags = array('kwc');\n\n public function update()\n {\n Kwf_Component_Cache::...
php
chosen
[ { "from": "system", "value": "Fix class & table name\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateEveCorporationRolemap extends Migration {\n\n /**\n * Run the migrations.\n *\...
php
chosen
[ { "from": "system", "value": "Make sure time has leading zeros\n" }, { "from": "human", "value": "<?php\n\nnamespace jjok\\Scheduler;\n\nfinal class Time\n{\n private $hour;\n private $minutes;\n private $seconds;\n\n public function __construct(int $hour, int $minutes = 0, int $seco...
php
chosen
[ { "from": "system", "value": "Remove datatables css from general header, move to cases header\n\ngit-svn-id: 245d8f85226f8eeeaacc1269b037bb4851d63c96@771 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n" }, { "from": "human", "value": "<!DOCTYPE html>\n\n<head>\n\t<title>ClinicCases - Online Case Manageme...
php
chosen
[ { "from": "system", "value": "Resolve todo (set correct class)\n" }, { "from": "human", "value": "<?php\nclass Kwc_Favourites_Box_Component extends Kwc_Abstract\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['assets']['files'][] = 'kwf/Kw...
php
chosen
[ { "from": "system", "value": "Fix LAG Admin extension test\n" }, { "from": "human", "value": "<?php\n\nnamespace LAG\\AdminBundle\\Tests\\DependencyInjection;\n\nuse LAG\\AdminBundle\\DependencyInjection\\LAGAdminExtension;\nuse LAG\\AdminBundle\\Tests\\AdminTestBase;\nuse Symfony\\Component\\De...
php
chosen
[ { "from": "system", "value": "Change the timezone to Europe/London.\n" }, { "from": "human", "value": "<?php\ndate_default_timezone_set('UTC');\n\n\ndefine('MMS_DEBUG', false); // Turns off tweeting, outputs to the console instead\n\ndefine('MMS_HOMEPAGE_URL', 'http://www.metrolink.co.uk');\ndef...
php
chosen
[ { "from": "system", "value": "Fix coding standard [skip fix]\n" }, { "from": "human", "value": "<?php\n\nnamespace Miaoxing\\User\\Controller\\Admin;\n\nclass UserSettings extends \\Miaoxing\\Plugin\\BaseController\n{\n protected $controllerName = '用户设置';\n\n protected $actionPermissions =...
php
chosen
[ { "from": "system", "value": "Append mod name to /random redirect, use 302 redirect\n" }, { "from": "human", "value": "<?php\n\n$app->get('/mod/{id}[/{name}]', function($request, $response, $args) {\n return $this->view->render($response, 'templates/mod.html', [\n 'modid' => $args['id'...
php
chosen
[ { "from": "system", "value": "Fix logic, first get without fallback, then reget" }, { "from": "human", "value": "<?php namespace Barryvdh\\TranslationManager;\n\nuse Illuminate\\Translation\\Translator as LaravelTranslator;\nuse Illuminate\\Events\\Dispatcher;\n\nclass Translator extends Laravel...
php
chosen
[ { "from": "system", "value": "Fix - Support for module to be named other than \"gridfieldextensions\"\n" }, { "from": "human", "value": "<?php\n/**\n * Utility functions for the grid fields extension module.\n */\nclass GridFieldExtensions {\n\n\tpublic static function include_requirements() {\n...
php
chosen
[ { "from": "system", "value": "Add missing query create parameters\n" }, { "from": "human", "value": " /**\n * Returns a new query instance.\n *\n * @return <?php echo $queryClassName; ?>\n\n */\n public function getQuery()\n {\n $query = <?php echo $queryClassName...
php
chosen
[ { "from": "system", "value": "Fix invalid registerEvent and triggerEvent anon MR\n" }, { "from": "human", "value": "<?php\n/**\n * Mongo Record, anonymous Mongo Record when an entire class isn't needed\n * \n * Used when only an anonymous Mongo Record is needed\n * \n * @author Lu Wang <https://...
php
chosen
[ { "from": "system", "value": "Make Default Membership ID value modifiable from the method\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU Ge...
php
chosen
[ { "from": "system", "value": "Fix autoloading in Phar files. \n\nInclude __DIR__ when checking file paths. This is required for us to find and load the correct autoloader from the generated Phar file.\n\nThis fixes #141." }, { "from": "human", "value": "<?php\n/**\n * @package Wsdl2PhpGenerator\...
php
chosen
[ { "from": "system", "value": "Return SplFileInfo objects instead of strings\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\AssetsBundle\\Finder;\n\nuse Symfony\\Component\\Finder\\Finder;\n\n\n/**\n * Finds all template files in a given directory\n */\nclass TemplateFinder\n{\n ...
php
chosen
[ { "from": "system", "value": "Update email to temporarily available one\n" }, { "from": "human", "value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_POS...
php
chosen
[ { "from": "system", "value": "Create a Serializer in the Constructor of Persistent Drivers\n\nRather than creating it on demand (which is not as intuitive).\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of PMG\\Queue\n *\n * Copyright (c) PMG <https://www.pmg.com>\n *\n * F...
php
chosen
[ { "from": "system", "value": "Fix index names in migrations\n\nThis can be reverted when we upgrade to Laravel 5.7.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license informati...
php
chosen
[ { "from": "system", "value": "Add a check for an array to prevent fatal error\n" }, { "from": "human", "value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2013, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.org/licenses/m...
php
chosen
[ { "from": "system", "value": "Call session_start() if not already started\n\nThis happens on construction although I could have opted to do it on demand." }, { "from": "human", "value": "<?php\n\nnamespace Lily\\Middleware\\Session;\n\nclass NativeStore\n{\n public function get(array $request...
php
chosen
[ { "from": "system", "value": "Move sluggable transliterator to content bundle.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyri...
php
chosen
[ { "from": "system", "value": "Add voters repository methods for login\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * VoterRepository\n *\n * This class was generated by the Doctrine ORM. Add...
php
chosen
[ { "from": "system", "value": "Create actions \"accountAction()\", \"preferencesAction()\", \"preferencesUpdateAction()\"\n" }, { "from": "human", "value": "<?php \n\nnamespace Agile\\InvoiceBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Bundle\\FrameworkBun...
php
chosen
[ { "from": "system", "value": "Add surname in the registration\n" }, { "from": "human", "value": "<?php\n\nnamespace Project\\AppBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse FOS\\UserBundle\\Form\\Type\\RegistrationFormType as BaseType;\n\nclass RegistrationForm...
php
chosen
[ { "from": "system", "value": "Change engine type of users table because sucks hosting\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the...
php
chosen
[ { "from": "system", "value": "Revert \"Ignore security token for guests\"\n\nDue to the age of this commit it's a bit unclear why exactly it was necessary\nat that time, but records indicate that it was related to the URL based session\nsystem (`?s=…`) in combination with with virtual sessions effectively c...
php
chosen
[ { "from": "system", "value": "Fix generator path for service provider\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Modules\\Commands;\n\nuse Illuminate\\Support\\Str;\nuse Pingpong\\Generators\\Stub;\nuse Pingpong\\Modules\\Traits\\ModuleCommandTrait;\nuse Symfony\\Component\\Con...
php
chosen
[ { "from": "system", "value": "Revert to secure DEV environment\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n/...
php
chosen
[ { "from": "system", "value": "Add flash messages to the response" }, { "from": "human", "value": "<?php\n/**\n * jsonAPI - Slim extension to implement fast JSON API's\n *\n * @package Slim\n * @subpackage View\n * @author Jonathan Tavares <the.entomb@gmail.com>\n * @license GNU General Public Li...
php
chosen
[ { "from": "system", "value": "Add test for clicking a link and confirming the page\n" }, { "from": "human", "value": "<?php\n\nnamespace SymfonyDay\\Bundle\\BlogBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCa...
php
chosen
[ { "from": "system", "value": "Use conditional to determine the correct type for 'user_id' col to keep the project backwards compatible and make it compatible with Laravel 5.8 (not ideal)\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Databa...
php
chosen
[ { "from": "system", "value": "Fix \"Aborted\" schedule error due to prompt\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass ImportScheduleDaily extends BaseCommand\n{\n\n protected $signature = ...
php
chosen
[ { "from": "system", "value": "Disable admin panel element translations, if appropriate options is activated\n" }, { "from": "human", "value": "<?php\n\nnamespace TMCms\\Admin;\n\nuse TMCms\\Files\\Finder;\nuse TMCms\\Traits\\singletonOnlyInstanceTrait;\n\ndefined ('INC') or exit;\n\nclass AdminT...
php
chosen
[ { "from": "system", "value": "Fix значение файла из php.ini конвертируем в килобайты\n" }, { "from": "human", "value": "<?php\n\nnamespace SleepingOwl\\Admin\\Traits;\n\ntrait MaxFileSizeTrait\n{\n /**\n * @var number\n */\n protected $maxFileSize;\n\n /**\n * @return number...
php
chosen
[ { "from": "system", "value": "Allow admin credentials to be configured in .env file\n" }, { "from": "human", "value": "<?php\n\nuse App\\Judite\\Models\\User;\nuse Illuminate\\Database\\Seeder;\n\nclass UsersTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n */\n pub...
php
chosen
[ { "from": "system", "value": "Add authentication check in group controller\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository\n * @copyright C...
php
chosen
[ { "from": "system", "value": "Modify Post route to allow for SEO slug suffix.\n" }, { "from": "human", "value": "<?php\n\nrequire_once(dirname(__FILE__) . '/vendor/autoload.php');\nsession_start();\n\nspl_autoload_register(function($class) {\n $parts = explode(\"_\", $class);\n $classSlash...
php
chosen
[ { "from": "system", "value": "Append version to JS url to avoid caching issues when a new version is released\n" }, { "from": "human", "value": "<?php\n\nnamespace BoomCMS\\Http\\Middleware;\n\nuse BoomCMS\\Editor\\Editor;\nuse BoomCMS\\UI;\nuse Closure;\nuse Illuminate\\Foundation\\Application;...
php
chosen
[ { "from": "system", "value": "Enforce events to be arrays\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 distributed w...
php
chosen
[ { "from": "system", "value": "Adjust image facade to detect imagemagick version.\n\n\nFormer-commit-id: 11c81cd4f1955e36813d0c6f7aae855f9ab55e94" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Support\\Facade;\nclass Image extends Facade {\n\n\tpublic static function getFacadeA...
php
chosen
[ { "from": "system", "value": "Return the BillingId as the card reference\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\PaymentExpress\\Message;\n\nuse Omnipay\\Common\\Message\\AbstractResponse;\n\n/**\n * PaymentExpress Response\n */\nclass Response extends AbstractResponse\n{\...
php
chosen
[ { "from": "system", "value": "Revert \"make the property protected instead of private\"\n\nThis reverts commit 409669ec1686f71ae3804003540423e45d842f2e.\n" }, { "from": "human", "value": " <?php\n\nnamespace WsdlToPhp\\DomHandler;\n\nclass NameSpaceHandler extends AttributeHandler\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Update Emun abstract class to have static methods\n" }, { "from": "human", "value": "<?php\n\tnamespace Bolt;\n\n\tuse ReflectionClass;\n\n\tabstract class Enum\n\t{\n\t\tpublic function expose()\n\t\t{\n\t\t\treturn $this->identifiers();\n\t\t}\n\n\t\tprotected fun...
php
chosen
[ { "from": "system", "value": "Fix active menu item in OTUListPage\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\acp\\page;\nuse wcf\\page\\SortablePage;\n\n/**\n * Lists the blacklisted usernames\n *\n * @author \tMaximilian Mader\n * @copyright\t2013 Maximilian Mader\n * @license\tBS...
php
chosen
[ { "from": "system", "value": "Add missing $separator parameter to interface\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of cocur/slugify.\n *\n * (c) Florian Eckerstorfer <florian@eckerstorfer.co>\n *\n * For the full copyright and license information, please view the L...
php
chosen
[ { "from": "system", "value": "Remove date formatting from archive list urls\n" }, { "from": "human", "value": "<?php\n$years = $this->em($this->ck->module->name('article'))->publishYears();\n?>\n<ul>\n <?php foreach ($years as $year) { ?>\n <li>\n <a href=\"<?= $this->ck->ur...
php
chosen
[ { "from": "system", "value": "Fix file direct links triggering navigation\n" }, { "from": "human", "value": "<?php\n\n\tinclude \"conf.php\";\n\t// Global constants \\\\\n\tdefine('ABSPATH','http://'.$_SERVER['SERVER_NAME'].'/');\n\tdefine('DROOT',$_SERVER['DOCUMENT_ROOT'].(preg_match('/\\/$/',$...
php
chosen
[ { "from": "system", "value": "Use HTTPS fallback for reverse proxies\n\nWhen using a reverse proxy, like CloudFlare, detecting HTTPS with\n$_SERVER[\"HTTPS\"] does not work. Instead, HTTPS can be detected through\nchecking $_SERVER[\"HTTP_X_FORWARDED_PROTO\"].\n" }, { "from": "human", "value": "...
php
chosen
[ { "from": "system", "value": "Change because of duplication issue" }, { "from": "human", "value": "<?php\nuse Interop\\Container\\ContainerInterface;\nuse DI\\Factory\\RequestedEntry;\n\nreturn [\n 'ActionListener' => DI\\object(Sarcofag\\SPI\\EventManager\\GenericListener::class),\n 'Data...
php
chosen
[ { "from": "system", "value": "Use the new phpunit class name" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Laravel TestBench.\n *\n * (c) Graham Campbell <graham@alt-three.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w...
php
chosen
[ { "from": "system", "value": "Add try and catch and log errors" }, { "from": "human", "value": "<?php\nnamespace BrockReece\\ElasticAnalytics;\n\nclass ElasticAnalytics {\n protected $client;\n\n public function __construct() {\n $this->client = $this->buildClient();\n }\n\n p...
php
chosen
[ { "from": "system", "value": "Add behat 2.5 and 3.0\n" }, { "from": "human", "value": "<?php\nnamespace PhpBrew;\n\nclass AppStore\n{\n public static function all() \n {\n $apps = array(\n 'composer' => array('url' => 'https://getcomposer.org/composer.phar', 'as' => 'comp...
php
chosen
[ { "from": "system", "value": "Add a way to set map and path in factory\n" }, { "from": "human", "value": "<?php\n/**\n *\n * This file is part of Aura for PHP.\n *\n * @license http://opensource.org/licenses/bsd-license.php BSD\n *\n */\nnamespace Aura\\View;\n\n/**\n *\n * Factory to create Vie...
php
chosen
[ { "from": "system", "value": "Revert \"Don't separate the validating generator\"\n\nThis reverts commit f6851039a91adb5a3f9c130862e652df5aabe674.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Generators;\n\nuse GuzzleHttp\\Promise\\Promise;\n\n/**\n * Thi...
php
chosen
[ { "from": "system", "value": "Improve Route model binding query for Paste\n" }, { "from": "human", "value": "<?php\n\nnamespace Wdi\\Providers;\n\n\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\nuse Route;\nuse Wdi\\Entities\\Language;\nuse Wdi\\Entiti...
php
chosen
[ { "from": "system", "value": "Use transactions instead of migrations for testing database\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse Canvas\\Models\\Tag;\nuse Canvas\\Models\\Post;\nuse Canvas\\Models\\User;\nuse Canvas\\TestDatabaseSeeder;\nuse Illuminate\\Foundation\\T...
php
chosen
[ { "from": "system", "value": "Fix saving not accepting new format with secret\n" }, { "from": "human", "value": "<?php\n\nrequire_once('setup.php');\n\nfunction clean($string)\n{\n return preg_replace('/[^A-Za-z0-9_:]/', '', $string); // Removes special chars.\n}\n\n$post_data = clean($_POST[...
php
chosen
[ { "from": "system", "value": "Use post param in controller\n" }, { "from": "human", "value": "<?php\nnamespace Guestbook\\Controller;\n\nuse Zend\\Mvc\\Controller\\AbstractActionController;\nuse Zend\\Stdlib\\ResponseInterface as Response;\nuse Zend\\View\\Model\\ViewModel;\n\nclass IndexControl...
php
chosen
[ { "from": "system", "value": "Set default volumetype to hfs\n" }, { "from": "human", "value": "<?php\n// Adds media_type column and moves volumetype data to new column\n\nuse munkireport\\lib\\Schema;\n\nclass Migration_disk_report_add_media_type extends Model\n{\n /**\n * Migrate up\n ...
php
chosen
[ { "from": "system", "value": "Remove $result variable;\nOutput buffer eval output\n" }, { "from": "human", "value": "<?php\n\nclass CM_Console_Cli extends CM_Cli_Runnable_Abstract {\n\n\tpublic function interactive() {\n\t\twhile ('exit' !== ($code = $this->_getInput()->read('php >'))) {\n\t\t\t...
php
chosen
[ { "from": "system", "value": "Put a menu on the documentation\n" }, { "from": "human", "value": "<?PHP // $Id$\n\n require(\"../config.php\");\n\n if (! $site = get_site()) {\n error(\"Site is misconfigured\");\n }\n $strdocumentation = get_string(\"documentation\");\n pri...
php
chosen
[ { "from": "system", "value": "Fix typo in dependency-injected property name.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Http\\Controllers;\n\nuse Northstar\\Services\\AWS;\nuse Northstar\\Models\\User;\nuse Illuminate\\Http\\Request;\n\nclass AvatarController extends Contro...
php
chosen
[ { "from": "system", "value": "Remove script tags from php file\n" }, { "from": "human", "value": "<script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName...
php
chosen
[ { "from": "system", "value": "ENH: Allow web API parameters to be passed as POST parameters in addition to the normal GET parameters\n" }, { "from": "human", "value": "<?php\n/*=========================================================================\n\n Program: CDash - Cross-Platform Dashbo...
php
chosen
[ { "from": "system", "value": "Allow web listener customizability on first boot.\n" }, { "from": "human", "value": "<?php\n\nnamespace Dan\\Setup\\Configs;\n\nuse Dan\\Config\\Config;\nuse Dan\\Console\\OutputStyle;\nuse Dan\\Contracts\\ConfigSetupContract;\n\nclass Web implements ConfigSetupCont...
php
chosen
[ { "from": "system", "value": "[DOC] Enhance the doc for the PHPDoc\n" }, { "from": "human", "value": "<?php\n/**\n * commands_richtext_RebuildFiles\n * @package modules.richtext.command\n */\nclass commands_richtext_RebuildFiles extends commands_AbstractChangeCommand\n{\n\t/**\n\t * @return Stri...
php
chosen
[ { "from": "system", "value": "Add \"Autoload section\" (for other sections to come)\n" }, { "from": "human", "value": "<?php\n\n/*\n *\t(c) Smalte - 2012 ~ Until the end of the world...\n *\n *\tJulien Breux <julien@smalte.org>\n *\tFabien Serny <fabien@smalte.org>\n *\tGrégoire Poulain <gregoir...
php
chosen
[ { "from": "system", "value": "Return ChatMemberNotImplemented if status is missing from data\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Longman\\TelegramBot\\Entities\\ChatMember;\n\n\nuse Longman\\TelegramBot\\Entities\\Entity;\nuse Longman\\TelegramBot\\Exception\\TelegramExceptio...
php
chosen
[ { "from": "system", "value": "Fix misspeling in function name\n" }, { "from": "human", "value": "<?php\n\nnamespace ExpressiveLogger\\Factory;\n\nuse ExpressiveLogger\\Exception\\InvalidConfigurationException;\nuse Interop\\Container\\ContainerInterface;\nuse Monolog\\Handler\\RedisHandler;\nuse...
php
chosen
[ { "from": "system", "value": "Apply CP on variant and change the rule 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 LICENSE\n * file that was ...
php
chosen
[ { "from": "system", "value": "Change No issue display behave\n" }, { "from": "human", "value": "@extends('layouts/default/template')\n\n@section('content')\n <div class=\"row\">\n <div class=\"row\">\n <a class=\"btn\" href=\"{{ route('issue.create') }}\">Report New Issue</a...
php
chosen
[ { "from": "system", "value": "Fix bug when user is not logged\n" }, { "from": "human", "value": "<?php namespace Aamant\\Message\\Composer;\n\nclass Receive\n{\n\tpublic function compose($view)\n\t{\n\t\t$mailbox_counter = \\Auth::user()\n\t\t\t->received()\n\t\t\t->where('status', 'new')\n\t\t\...
php
chosen
[ { "from": "system", "value": "Sort the melee catalog by bash and cutting.\n" }, { "from": "human", "value": "@section('title')\nMelee - Cataclysm: Dark Days Ahead\n@endsection\n@section('content')\n<h1>Melee</h1>\n<p>\nItems with bashing+cutting damage higher than 10 and to-hit bonus higher than...
php
chosen
[ { "from": "system", "value": "Fix the routing match issue\n" }, { "from": "human", "value": "<?php\n\nnamespace Vitaminate\\Routing;\n\nuse Vitaminate\\Http\\Request;\nuse Vitaminate\\Routing\\Route;\nuse Vitaminate\\Routing\\Contracts\\RouteCollectionInterface;\n\n/**\n * Class Matcher\n *\n * ...
php
chosen
[ { "from": "system", "value": "Add allowed values for testMysqli\n" }, { "from": "human", "value": "<?php\n// report all errors\nerror_reporting(-1);\n\nsetlocale(LC_ALL, 'en_US');\ndate_default_timezone_set('UTC');\n\n// composer\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n// environme...
php
chosen
[ { "from": "system", "value": "Fix wrong copy-pasted file documentation header.\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of phpcq/branch-alias-validation.\n *\n * (c) 2014 Christian Schiffler, Tristan Lins\n *\n * For the full copyright and license information, please...
php
chosen
[ { "from": "system", "value": "Remove the obsolete `flags` key\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Onion\\Console\\Router\\Factory;\n\nuse Onion\\Framework\\Console\\Interfaces\\ArgumentParserInterface;\nuse Onion\\Framework\\Dependency\\Interfaces\\Fact...
php
chosen
[ { "from": "system", "value": "Comment out the google ads\n\n\n\ngit-svn-id: 798f9e0ce1eefcecf757a5f2b692a26d86a9651c@418 c66dcb5a-e80b-0410-ab0e-bb6a4f3ddef9\n" }, { "from": "human", "value": "<?php\n/**\n * HTML footer\n *\n * @url $URL$\n * @date $Date$\n * @version $Revisio...
php
chosen