conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix issues found when testing script on local.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Sanitize email addresses on user accounts from ages ago.\n *\n * drush --script-path=../scripts php-script sanitize-email-addresses.php\n */\n\n// Any invalid email addre... | php | chosen |
[
{
"from": "system",
"value": "Fix (JWT Service): token for anonymous user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Service;\n\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorage;\n\n\n/**\n * Class JwtService\n * @package AppBundle\\Servi... | php | chosen |
[
{
"from": "system",
"value": "Update factory. Reset migrations & add fake data again\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Include the_content in teaser template.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template Name: Teasers\n */\n?>\n\t<h1 class=\"media-zen\">\n\t\t<?php echo get_bloginfo ( 'description' ); ?>\n\t</h1>\n\t<div class=\"home_container\">\n\t\n\t\t<?php\n\t\t//... | php | chosen |
[
{
"from": "system",
"value": "Update link to 2.0.12 docs\n"
},
{
"from": "human",
"value": "<footer class=\"footer\">\n\t<p>\n\t\tDesigned and built at <a href=\"http://bigfish.tv/\" target=\"_blank\">bigfish.tv</a> by <a href=\"https://twitter.com/scottdejonge\" target=\"_blank\">@scottdejonge<... | php | chosen |
[
{
"from": "system",
"value": "Revert form csrf_provider to use $app['session']\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Silex\\Application;\nuse Silex\\Provider\\FormServiceProvider as SilexFormServiceProvider;\nuse Silex\\ServiceProviderInterface;\nuse Symfon... | php | chosen |
[
{
"from": "system",
"value": "Remove all plugin update notices\n\nPretend nobody has permission to perform updates (which is kind of the truth)\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Plugin Name: EPFL disable all automatic updates.\n * Plugin URI: \n * Description: Must-use plugin for ... | php | chosen |
[
{
"from": "system",
"value": "Throw warning if no error.message\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Http_Response_JsError extends CM_Http_Response_Abstract {\n\n protected function _process() {\n $request = $this->getRequest();\n if (!$request->isBotCrawler() &&... | php | chosen |
[
{
"from": "system",
"value": "Disable External Entity loading in XML\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 with the License.\n * Yo... | php | chosen |
[
{
"from": "system",
"value": "UPGRADESS3: Remove data object manager sort definition\n"
},
{
"from": "human",
"value": "<?php\n// make links sortable\nSortableDataObject::add_sortable_class('Link');\n\n// enabled the extension, need the FooterLinksFolder method to be available\nObject::add_exten... | php | chosen |
[
{
"from": "system",
"value": "Move variant-related CatalogPromotionRule contant to Core\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 * f... | php | chosen |
[
{
"from": "system",
"value": "Change title for bankpay added description\n\n Fixes #222\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Created by PhpStorm.\n * User: jesperjohansson\n * Date: 15-09-09\n * Time: 21:18\n */\nrequire_once(_PS_MODULE_DIR_.'/billmategateway/library/Common.php');... | php | chosen |
[
{
"from": "system",
"value": "Add version check before adding alias.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace IronBound\\WP_Notifications\\Strategy;\n\nclass_alias(\n 'IronBound\\WP_Notifications\\Strategy\\Null',\n 'IronBound\\WP_Notifications\\Strategy\\Null_Mail'\n);\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal error on getting mailer\n\nGetting mailer from service container caused fatal error (infinite nesting loop)"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Ivan Voskoboynyk\n */\n\nnamespace Axis\\S1\\ServiceContainer;\n\nclass ServiceContainer ext... | php | chosen |
[
{
"from": "system",
"value": "Update interface with methods used to work with silex manage\n"
},
{
"from": "human",
"value": "<?php\n/**\n * AdapterInterface.php\n *\n * @package silex-manager\n * @author Jefersson Nathan <malukenho@phpse.net>\n */\n"
},
{
"from": "gpt",
"value": "<... | php | chosen |
[
{
"from": "system",
"value": "Add optional key for setReleaseFromArray\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MusicBrainz\\Value\\Property;\n\nuse MusicBrainz\\Helper\\ArrayAccess;\nuse MusicBrainz\\Value\\Release;\n\n/**\n * Provides a getter for a release.\n */\ntrait ReleaseTra... | php | chosen |
[
{
"from": "system",
"value": "Make your content route aware\n(yes, this is pretty cool!)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Acme\\BasicCmsBundle\\Document;\n\nuse Doctrine\\ODM\\PHPCR\\Mapping\\Annotations as PHPCR;\n\ntrait ContentTrait\n{\n /**\n * @PHPCR\\Id()\n */... | php | chosen |
[
{
"from": "system",
"value": "Use of Carbon for Date\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nclass HomeController extends Controller\n{\n /**\n * Create a new controller instance.\n *\n * @return void\n */\n public function __constru... | php | chosen |
[
{
"from": "system",
"value": "Update Autocomplete to fix namespace bug\n\nUpdate The file with backslash before InvalidArgumentException so php can find this class.\r\nThe current namespace doesn't hold this class"
},
{
"from": "human",
"value": "<?php namespace BackupManager\\Laravel;\n\n/**\n ... | php | chosen |
[
{
"from": "system",
"value": "Use manual route definition over the route resource shortcut\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Routing\\Router;\n\n$router->model('menus', 'Modules\\Menu\\Entities\\Menu');\n$router->model('menuitem', 'Modules\\Menu\\Entities\\Menuitem');\n... | php | chosen |
[
{
"from": "system",
"value": "Remove header from top 500 domains in examples\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__ . \"/../vendor/autoload.php\";\n\nuse Amp\\Dns;\nuse Amp\\Loop;\n\nprint \"Downloading top 500 domains...\" . PHP_EOL;\n\n$domains = file_get_contents(\"https:... | php | chosen |
[
{
"from": "system",
"value": "Define trans_model only if it is not defined in project itself\n"
},
{
"from": "human",
"value": "<?php\nuse Netcore\\Translator\\Models\\Language;\n\n/**\n * @param $row\n * @param Language $language\n * @param String $attribute\n * @return String\n */\nfu... | php | chosen |
[
{
"from": "system",
"value": "Include editUser relationship when editing posts.\n\nCloses flarum/core#214. Hopefully. :)"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Api\\Actions\\Posts;\n\nuse Flarum\\Core\\Posts\\Commands\\EditPost;\nuse Flarum\\Api\\Actions\\SerializeResourceActio... | php | chosen |
[
{
"from": "system",
"value": "Use the resolve callback to wait for the entity manager to be resolved first\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelDoctrine\\Extensions;\n\nuse Doctrine\\Common\\Annotations\\Reader;\nuse Gedmo\\DoctrineExtensions;\nuse Illuminate\\Support\\Se... | php | chosen |
[
{
"from": "system",
"value": "Make mocks added in test-check timeout tests PHPUnit 4.5-compatible\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Liip\\RMT\\Tests\\Functional;\n\nuse Exception;\nuse Liip\\RMT\\Context;\nuse Liip\\RMT\\Prerequisite\\TestsCheck;\n\nclass TestsCheckTest exten... | php | chosen |
[
{
"from": "system",
"value": "Use constant instead of magic number for response status code"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the qandidate/symfony-json-request-transformer package.\n *\n * (c) Qandidate.com <opensource@qandidate.co... | php | chosen |
[
{
"from": "system",
"value": "Correct artisan command for publishing the config file"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Ticket Evolution Config\n|------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Remove leading underscore from protected property\n\nThe leading underscore goes against the style guide\n"
},
{
"from": "human",
"value": "<?php\n\nclass JsonPView extends JsonView\n{\n /** @var string */\n protected $_callback;\n\n public function __const... | php | chosen |
[
{
"from": "system",
"value": "Exclude list of taxa as suggested by SPG.\n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1719 baf6b65b-9124-4dc3-b1c0-01155b4af546\n"
},
{
"from": "human",
"value": "<?php\n/* connector for SPIRE\nestimated execution time: 10 mins\n\nConnector accesses the ... | php | chosen |
[
{
"from": "system",
"value": "Improve error message on project creation.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Project extends Eloquent {\n\n\tprotected $fillable = ['title', 'slug'];\n\n\t/**\n\t * @return \\Illuminate\\Database\\Eloquent\\Collection\n\t */\n\tpublic function sprint... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in edit form\n"
},
{
"from": "human",
"value": "<?php\nnamespace DlcCategory\\Form;\n\nuse DlcCategory\\Form\\BaseForm;\nuse DlcCategory\\Service\\Category as CategoryService;\nuse Zend\\Form\\FormInterface;\n\nclass EditCategory extends BaseForm\n{\n pu... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal error (I can't tell why this isn't normally thrown on PHP < 5.3).\n\n"
},
{
"from": "human",
"value": "<?php\n\nclass SimplePie_Absolutize_Test_RFC3986 extends SimplePie_Absolutize_Test\n{\n\tfunction SimplePie_Absolutize_Test_RFC3986()\n\t{\n\t\t// Ugly h... | php | chosen |
[
{
"from": "system",
"value": "Move loop to test setup"
},
{
"from": "human",
"value": "<?php\n\nuse Clue\\React\\Buzz\\Io\\Sender;\nuse React\\Promise\\Deferred;\nuse Guzzle\\Common\\Exception\\RuntimeException;\nuse Clue\\React\\Buzz\\Message\\Request;\n\nclass SenderTest extends TestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Rewrite Commander interface methods and phpdoc\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Yodler package.\n *\n * (c) aes3xs <aes3xs@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file ... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong docblock return type\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace SitemapPlugin\\Provider;\n\n/**\n * @author Arkadiusz Krakowiak <arkadiusz.krakowiak@lakion.com>\n * @author Stefan Doorn <stefan@efectos.nl>\n */\ninterfac... | php | chosen |
[
{
"from": "system",
"value": "Check to see if recurrence type path provided exists as a class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful\\Recurrence;\n\nclass RecurrenceFactory implements RecurrenceFactoryInterface\n{\n\tprotected $recurrenceTypes = [];\n\n\tpubl... | php | chosen |
[
{
"from": "system",
"value": "Generalize DOM element creation into buildDOMElementHTML() function\n"
},
{
"from": "human",
"value": "<?php\n\n// $params (Object)\n// - text (String)\n// - href (String)\n// - query (Object | undefined)\n// - attrs (Object | undefined)\n//\nfu... | php | chosen |
[
{
"from": "system",
"value": "Put buttons in a container.\n"
},
{
"from": "human",
"value": "<!-- HEAD INSERT -->\n<?php require_once(\"library/head-utils.php\");?>\n\n<body class=\"sfooter\">\n\t<div class=\"sfooter-content\">\n\n\t\t<!-- NO HEADER ON THIS PAGE -->\n\n\t\t<div class=\"row\">\n\... | php | chosen |
[
{
"from": "system",
"value": "Revert flat card option on Posts module\n\nMoved to Municipio customizer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Modularity\\Module\\Posts\\TemplateController;\n\nuse Modularity\\Module\\Posts\\Helper\\Column as ColumnHelper;\n\nclass IndexTemplate ext... | php | chosen |
[
{
"from": "system",
"value": "Add line break for plain text mails\n\nThis change adds a manual line break in addition to the existing HTML-only `<br>`. Before this change the text was `Regards,Laravel`."
},
{
"from": "human",
"value": "@component('mail::message')\n{{-- Greeting --}}\n@if (! empt... | php | chosen |
[
{
"from": "system",
"value": "Remove createTokenRequest function in builder\n"
},
{
"from": "human",
"value": "<?php\nnamespace kushki\\lib;\n\nuse kushki\\lib\\Request;\nuse kushki\\lib\\KushkiConstant;\n\nclass RequestBuilder\n{\n\n static public function createChargeRequest($url, $token, $... | php | chosen |
[
{
"from": "system",
"value": "Revert \"fix genetics accessRules problem\"\n\nThis reverts commit 6284919a9db8b401b0506cffea048da399b765cf.\n"
},
{
"from": "human",
"value": "<?php\n\nclass DefaultController extends BaseEventTypeController\n{\n \n public function volumeRemaining($event_id)\n ... | php | chosen |
[
{
"from": "system",
"value": "Reformat file to coding standard\n\nI used the coding standard and my IDE\nand formatted code automatically\nto shift things around\nand align them a bit\nto increase it's quality\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Awoods/World\n */\nnamespac... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant docblock comment of redundancy\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Tests;\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundatio... | php | chosen |
[
{
"from": "system",
"value": "Update interface to set parameters"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlmQueue\\Job;\n\ninterface Job\n{\n public function __invoke();\n public function getId();\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SlmQueue\\Job;... | php | chosen |
[
{
"from": "system",
"value": "Fix trivial home page test for our home route & content\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Occupied\\MainBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n... | php | chosen |
[
{
"from": "system",
"value": "Fix stupid migration? Maybe? Might be more trouble later\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateActionlogTable extends Migration\n{\n /**\n * Ru... | php | chosen |
[
{
"from": "system",
"value": "Add absolute path for including autoloader\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('Bootstrap.php');\n\n/**\n * Error logging\n *\n * default error log path for process \"/var/log/httpd/error_log\"\n * to change error log path:\n * ini_set('error_log'... | php | chosen |
[
{
"from": "system",
"value": "Fix loading of the files\n"
},
{
"from": "human",
"value": "<?php\n\nif (!defined('PHPUNIT_RUN')) {\n\tdefine('PHPUNIT_RUN', 1);\n}\n\nrequire_once __DIR__.'/../../../lib/base.php';\n\nif(!class_exists('PHPUnit_Framework_TestCase')) {\n\trequire_once('PHPUnit/Autolo... | php | chosen |
[
{
"from": "system",
"value": "Add more characters to escaping\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Alom Graphviz.\n * (c) Alexandre Salomé <alexandre.salome@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w... | php | chosen |
[
{
"from": "system",
"value": "Add TokenMismatchException to dontReport array.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Testbench\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Validation\\Valid... | php | chosen |
[
{
"from": "system",
"value": "Change the user interface (i can do that since nobody is using this project)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neuron\\Interfaces\\Models;\n\ninterface User\n\textends \\Neuron\\Interfaces\\Model {\n\n\t/**\n\t * @return string\n\t */\n\tpublic fun... | php | chosen |
[
{
"from": "system",
"value": "Call function with full path and leading backslash\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Politix\\PolitikportalBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Politix\\PolitikportalBundle\\Model;\n\n\nclass S... | php | chosen |
[
{
"from": "system",
"value": "Use interface TestListener instead of deprecated abstract class BaseTestListener\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace {\n\n use PHPUnit\\Framework\\BaseTestListener;\n use PHPUnit\\Framework\\TestSuite;\n use Symfony\\Component\\Process\\Pr... | php | chosen |
[
{
"from": "system",
"value": "Fix Customer Group Type and RuleChecker\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 distr... | php | chosen |
[
{
"from": "system",
"value": "Remove twitter handle from presenter.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Laracasts\\Presenter\\Presenter;\n\nclass CandidatePresenter extends Presenter {\n\n public function thumbnail()\n {\n if($this->photo) {\n return \"/images/thumb-\" . $t... | php | chosen |
[
{
"from": "system",
"value": "Implement basic stats for the dashboard\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 distr... | php | chosen |
[
{
"from": "system",
"value": "Add test for control chars in minified JS\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kibo\\Phast\\Filters\\JavaScript\\Minification;\n\nuse Kibo\\Phast\\PhastTestCase;\nuse Kibo\\Phast\\ValueObjects\\Resource;\nuse Kibo\\Phast\\ValueObjects\\URL;\n\nclass... | php | chosen |
[
{
"from": "system",
"value": "Add a new function to get value by key in a file content\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Botonomous;\n\nuse Botonomous\\utility\\FileUtility;\n\n/**\n * Class Dictionary.\n */\nclass Dictionary\n{\n const DICTIONARY_DIR = 'dictionary';\n ... | php | chosen |
[
{
"from": "system",
"value": "Use trlKwfStatic and english translation\n\nFix for\ne8f5b04611dce93131967f8e6902155896f71d3c\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_FulltextSearch_Search_ViewAjax_SearchForm_FrontendForm extends Kwf_Form\n{\n protected function _initFields()\n {\... | php | chosen |
[
{
"from": "system",
"value": "Add ensure Repository Root Path test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CalendarReminder;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ReminderFileRepositoryTest extends TestCase\n{\n /** @var ReminderFileRepository */\n public $reminderRep... | php | chosen |
[
{
"from": "system",
"value": "FIX augmentSQL func to be compatible with 3.2 method signature\n"
},
{
"from": "human",
"value": "<?php\nclass ForumSpamPostExtension extends DataExtension {\n\n\tpublic function augmentSQL(SQLSelect $query) {\n\t\tif (Config::inst()->forClass('Post')->allow_reading... | php | chosen |
[
{
"from": "system",
"value": "Update generate resource command signature\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nwidart\\Modules\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass GenerateResource extends Command\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add fields in the user table migration class\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m130524_201442_init extends Migration\n{\n public function up()\n {\n $tableOptions = null;\n if ($this->db->driverName === ... | php | chosen |
[
{
"from": "system",
"value": "Implement function for getting correct ids from dbxref repo\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * FennecDbxrefRepository\n *\n * This class was generated by the PhpStorm \"Php ... | php | chosen |
[
{
"from": "system",
"value": "Remove use of depracated share method in Laravel 5 service provider\n"
},
{
"from": "human",
"value": "<?php namespace ZackKitzmiller\\Laravel5;\n\nuse ZackKitzmiller\\Tiny;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass TinyServiceProvider extends ServiceProvi... | php | chosen |
[
{
"from": "system",
"value": "Store + Shipping + Menus\n\n* Using new Store feature from Elcodi\n* Added Store management in Admin\n* Changed all definitions that was depending on such implementation\n* Removed under construction logic and tests\n\n* Removed menu fixtures\n* Defined them as dynamic content.... | php | chosen |
[
{
"from": "system",
"value": "Fix syntax error from wrong quotation mark."
},
{
"from": "human",
"value": "<?php\n\nfunction env_is_cli() {\n return (!isset($_SERVER['SERVER_SOFTWARE']) && (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0)));\n}\n\n// ----- on... | php | chosen |
[
{
"from": "system",
"value": "Fix SMART stats report title\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'client_tabs' => array(\n 'smart_stats-tab' => array('view' => 'smart_stats_tab', 'i18n' => 'smart_stats.clienttabtitle', 'badge' => 'smart_stats-cnt'),\n ),\n '... | php | chosen |
[
{
"from": "system",
"value": "Remove delete from mscr_intrusions_per_page tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * MSCR Utilities\n */\nclass MSCRUtilsTest extends WP_UnitTestCase {\n\tpublic $plugin_slug = 'mute-screamer';\n\n\tpublic function setUP() {\n\t\tparent::setUp();\n\t}... | php | chosen |
[
{
"from": "system",
"value": "Use PHPUnit_Framework_Assert::assertSame() to check if the variables refer to the same ClassLoader instances\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spark\\Test\\Util;\n\nuse PHPUnit_Framework_TestCase,\n Spark\\Util;\n\nclass ClassLoaderTest extend... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Enabled shortcodeparser by default.\"\"\n\nThis reverts commit 46e6565887bbc9cfab8996d0b5ea0a8631e98ceb.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Remove or comment the following lines to enable/disable features.\n * You can register the Yo... | php | chosen |
[
{
"from": "system",
"value": "Improve invalid request exception message.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Glide\\Requests;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass RequestFactory\n{\n /**\n * Create a request instance.\n * @param max ... | php | chosen |
[
{
"from": "system",
"value": "Move a comment to a real comment field\n"
},
{
"from": "human",
"value": "@extends('layouts.admin')\n\n@section('title') Pitch #{{ $pitch->id }} @endsection\n\n@section('content')\n\n{{ Form::model($pitch, ['route' => ['sysop.pitches.update', $pitch->id], 'method' =... | php | chosen |
[
{
"from": "system",
"value": "Fix issue-email notifications quoting wrong reply \n\nThis commit fix this bug https://github.com/flarum/core/issues/304.Problem not in newPost.blade.php but in this file."
},
{
"from": "human",
"value": "Hey {{ $user->username }}!\n\n{{ $blueprint->reply->user->use... | php | chosen |
[
{
"from": "system",
"value": "Fix bug when following an user\n"
},
{
"from": "human",
"value": "<?php\n\ntrait Trait_currentMember\n{\n\tprotected $_current_member\t=\tnull;\n\n\tprotected function _checkCurrentMember()\n\t{\n\t\tif(isset($_SESSION['connected_user_id']))\n\t\t{\n\t\t\t$this->_cu... | php | chosen |
[
{
"from": "system",
"value": "Move config parameters to user provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Niif\\ShibAuthBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationIn... | php | chosen |
[
{
"from": "system",
"value": "Add properties to image translation entity.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Change array to new style\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace InMockBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpF... | php | chosen |
[
{
"from": "system",
"value": "Add the Location header on Response when an entity is saved.\n"
},
{
"from": "human",
"value": " protected function doSave()\n {\n $this->object->save();\n return sfView::NONE;\n }\n"
},
{
"from": "gpt",
"value": " protected function doSave()\n... | php | chosen |
[
{
"from": "system",
"value": "Fix consumer killing on empty queue\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OldSound\\RabbitMqBundle\\RabbitMq;\n\nuse OldSound\\RabbitMqBundle\\RabbitMq\\BaseConsumer;\nuse PhpAmqpLib\\Message\\AMQPMessage;\n\nclass Consumer extends BaseConsumer\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Reset now deletes and recreates the demo db\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OParl\\Server\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse OParl\\Server\\Model\\Body;\nuse OParl\\Server\\Model\\Consultation;\nuse OParl\\Server\\Model\\File;... | php | chosen |
[
{
"from": "system",
"value": "Add absolute URL generation without consideration of subdomains or params in domains\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tightenco\\Ziggy;\n\nuse Illuminate\\Routing\\Router;\n\nclass BladeRouteGenerator\n{\n private $router;\n public $routes... | php | chosen |
[
{
"from": "system",
"value": "Refresh a user from travis\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace WyriHaximus\\Travis\\Resource\\Async;\n\nuse GuzzleHttp\\Psr7\\Request;\nuse React\\Promise\\PromiseInterface;\nuse WyriHaximus\\Travis\\Resource\\User as Base... | php | chosen |
[
{
"from": "system",
"value": "Add entry in the settings table for api url\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') OR die('No direct script access.');\n/**\n * Performs install/uninstall methods for the FrontlineCloud Plugin\n *\n * @package Ushahidi\n * @author Ushahid... | php | chosen |
[
{
"from": "system",
"value": "Add constant with reserved key characters"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Fig\\Cache;\n\n/**\n * Generic method implementations common to most/all pool implementations.\n */\ntrait BasicPoolTrait\n{\n use CachePoolDeferTrait;\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add a isAdmin() to user model\n"
},
{
"from": "human",
"value": "<?php\nnamespace Criterion\\Model;\n\nclass User extends \\Criterion\\Model\n{\n public $collection = 'users';\n\n}"
},
{
"from": "gpt",
"value": "<?php\nnamespace Criterion\\Model;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Set default email from name and address\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of CSBill package.\n *\n * (c) 2013-2015 Pierre du Plessis <info@customscripts.co.za>\n *\n * This source file is subject to the MIT license that is bundled\... | php | chosen |
[
{
"from": "system",
"value": "Add author to phpdoc comment\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Factory functions loader\n *\n * @author Petr Pliska\n */\nforeach (glob(__DIR__ . '/Factory/*.php') as $file) {\n require_once $file;\n}\n"
},
{
"from": "gpt",
"value": ... | php | chosen |
[
{
"from": "system",
"value": "Fix error cannot load large icon set.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace soap\\LanguageSwitcher\\bundles;\n\nuse yii\\web\\AssetBundle;\n\n/**\n * LanguageLargeIcons asset bundle\n * @author Lajos Molnár <lajax.m@gmail.com>\n * @since 1.0\n */\ncl... | php | chosen |
[
{
"from": "system",
"value": "Allow configuration of debug on prod lol\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nif (!getenv('HEROKU')) {\n return [];\n}\n\nreturn [\n 'debug' => false,\n 'config_cache_enabled' => false,\n 'doctrine' => [\n 'connect... | php | chosen |
[
{
"from": "system",
"value": "Use proper tag for metadata refresh rate\n\ngit-svn-id: fac53d8b196e0ef1c2775236b39a8c3227ab71b5@1191 528793b8-127e-4309-9901-b74759c7208d\n"
},
{
"from": "human",
"value": "<?php\n/* \n * The configuration of SURFconext Service Registry package\n */\n\n$config = ar... | php | chosen |
[
{
"from": "system",
"value": "Add role to user table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration {\n\n /**\n * Run the migrations.\n *\n * @re... | php | chosen |
[
{
"from": "system",
"value": "Remove duplicate line from suggested PowerDNS config\n"
},
{
"from": "human",
"value": "<?php\n##\n## Copyright 2013-2017 Opera Software AS\n##\n## Licensed under the Apache License, Version 2.0 (the \"License\");\n## you may not use this file except in compliance w... | php | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix bug and refactor 2 step remove.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Deployer;\n\nuse SourceBroker\\DeployerExtended\\Utility\\FileUtility;\n\ntask('file:rm2steps:1', function () {\n $removeRecursiveAtomicItems = get('file_remove2ste... | php | chosen |
[
{
"from": "system",
"value": "Fix tree search query nodes table not being added in update.\n\n\nFormer-commit-id: d8094d69cd4d32146eba4233b177ad6f6a278abd\nFormer-commit-id: 9ccf9dcf7a6df28610a0b8a4a2356a5f2cbf2e95"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Updater\\Migrat... | php | chosen |
[
{
"from": "system",
"value": "Fix bug where filepath is a string\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Importer;\n\nclass ImportDataFactory\n{\n /**\n * Instanciate an import data class depending on given file.\n *\n * @param string $filepath\n * @return... | php | chosen |
[
{
"from": "system",
"value": "Add variables to send to the view\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Http\\Controllers;\n\nuse Charts;\nuse RadDB\\Machine;\nuse RadDB\\TestDates;\nuse RadDB\\GenData;\nuse RadDB\\HVLData;\nuse RadDB\\RadSurveyData;\nuse RadDB\\RadiationOut... | php | chosen |
[
{
"from": "system",
"value": "Fix woocommerce-variation-price may not exists\n\nRelated 034e1fac038566cdc69d8f50b210e44ed8211d9d\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! defined( 'ABSPATH' ) ) {\n\texit;\n}\n\n/** @var WC_Aplazame $aplazame */\nglobal $aplazame;\nif ( ! $aplazame->enab... | php | chosen |
[
{
"from": "system",
"value": "Add extraFields values to the list of defaultAttributes if the allowed property is empty\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: Alex\n * Date: 10/10/2018\n * Time: 08:38\n */\n\nnamespace vr\\core\\validators;\n\nuse vr\\cor... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.