conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add case reference for planning permissions\n"
},
{
"from": "human",
"value": "<?php\n\nclass PlanningApplication extends Module {\n\n const MAX_DISTANCE = 1; // In Km\n public $url = \"https://data.bathhacked.org/resource/uyh5-eygi.json\";\n \n functio... | php | chosen |
[
{
"from": "system",
"value": "Add util for obtaining git user and email\n\nAssuming that git is installed, which would be strange if not... !\n"
},
{
"from": "human",
"value": "<?php\n\nif (! function_exists('get_license_list')) {\n\n /**\n * Returns a list of SPDX license identifiers\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix test error with YamlSource\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\Flow\\Tests\\Functional\\Configuration\\Fixtures;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This p... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Test with infinite scroll\"\n\nThis reverts commit f74a07788b16063fbbd22facbe6f86c95afb111d.\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! isset( $content_width ) ) {\n\t$content_width = 600;\n}\n\nfunction enqueue_comment_reply() {\n if ( get_optio... | php | chosen |
[
{
"from": "system",
"value": "Fix 'index \"header\" not defined' warning.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Generates minimal site-wide page chrome.\n * @see https://drupal.org/node/1728148\n **/\n\n?>\n\n<!--[if lt IE 8 ]><div class=\"messages error\">You're using an unsupport... | php | chosen |
[
{
"from": "system",
"value": "Fix \"Luminary\" migration for SQLite [WEB-1834]\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass RenameSustainingFellowsCol... | php | chosen |
[
{
"from": "system",
"value": "Disable padding columns for mobile\n"
},
{
"from": "human",
"value": "<div class=\"hbox hbox-auto-xs\">\n @foreach($manyForms as $key => $column)\n <div class=\"hbox-col\">\n <div class=\"vbox py-3 @if(!$loop->first) pl-2 @endif @if(!$loop->last... | php | chosen |
[
{
"from": "system",
"value": "Order the github feed so that the most recently worked on project appears at the top\n"
},
{
"from": "human",
"value": "<?php\nclass Projects extends CI_Controller {\n\n public function __construct() {\n parent::__construct ();\n $this->load->helper... | php | chosen |
[
{
"from": "system",
"value": ":wrench: Improve logical on deserialize listener\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OAuthBundle\\EventListener;\n\nuse ApiPlatform\\Core\\Exception\\RuntimeException;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpK... | php | chosen |
[
{
"from": "system",
"value": "Add test for Spotify show type (podcast)\n"
},
{
"from": "human",
"value": "<?php\n/**\n * SpotifyTest.php\n *\n * @package Embera\n * @author Michael Pratt <yo@michael-pratt.com>\n * @link http://www.michael-pratt.com/\n *\n * For the full copyright and license i... | php | chosen |
[
{
"from": "system",
"value": "Use PHP $_REQUEST variable to also allow POST-ing.\n"
},
{
"from": "human",
"value": "<?php\n\n\n$date =& $_GET[\"date\"];\n$user =& $_GET[\"user\"];\n$priority =& $_GET[\"priority\"];\n$text =& $_GET[\"text\"];\n\nrequire_once 'icat.... | php | chosen |
[
{
"from": "system",
"value": "Delete username from profile form\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... | php | chosen |
[
{
"from": "system",
"value": "Change from Countable to Traversable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Shrikeh\\Collection;\n\nuse Countable;\nuse SplFixedArray;\n\ntrait FixedArrayStorageTrait\n{\n public function __construct(Traversable $objects)\n {\n $arr = [];... | php | chosen |
[
{
"from": "system",
"value": "Add a new category: \"participações sociais\"\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Bens Penhorados, an undergraduate capstone project.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n *\n * For the full copyright and license infor... | php | chosen |
[
{
"from": "system",
"value": "Allow non array content in JSON response\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aztech\\Layers\\Responses;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass JsonResponse\n{\n private $response;\n\n public function __construct(array $... | php | chosen |
[
{
"from": "system",
"value": "Change getName() => getDisplayName() for Bolt ^3.6 compatibility.\n\nSince Bolt 3.6.0-beta, getName() has not been overrideable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension\\royallthefourth\\CodeHighlightBolt;\n\nuse Bolt\\Asset\\File\\Java... | php | chosen |
[
{
"from": "system",
"value": "[RateLimiter] Fix CI on PHP 8.2\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "system",
"value": "Remove the other examples now that we've got the height correct\n"
},
{
"from": "human",
"value": "{{--\n $images => array // [['link', 'title', 'relative_url']]\n $class => string // 'image-button-list'\n--}}\n@if(!empty($class))<div class=\"{{ $class }}\">@e... | php | chosen |
[
{
"from": "system",
"value": "Make hash of the file path smaller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GoldenPlanet\\WebpackBundle\\Service;\n\nclass AssetNameGenerator {\n\n\t/**\n\t * Appending a hash of the asset's full path to the file name\n\t * for entry points with same fi... | php | chosen |
[
{
"from": "system",
"value": "Switch to a new integration URL\n\nCloses #8\n"
},
{
"from": "human",
"value": "<?php\n/**\n * RoboKassa driver for Omnipay PHP payment library.\n *\n * @link https://github.com/hiqdev/omnipay-robokassa\n * @package omnipay-robokassa\n * @license MIT\n * @c... | php | chosen |
[
{
"from": "system",
"value": "Remove check for outdated APC version\n\nAPC 3.1.4 won’t even run on PHP 5.4, so it’s safe to remove\nthe check here.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author\tMarcel Werk\n * @copyright\t2001-2015 WoltLab GmbH\n * @license\tGNU Lesser General Publi... | php | chosen |
[
{
"from": "system",
"value": "Add 'other' as gender option\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass GendersSeeder extends Seeder\n{\n public function r... | php | chosen |
[
{
"from": "system",
"value": "Fix @package annotation from Jam to Atlas\n"
},
{
"from": "human",
"value": "<?php namespace CL\\Atlas\\Test;\n\nuse Openbuildings\\EnvironmentBackup as EB;\nuse CL\\Atlas\\DB;\n\n/**\n * @package Jam\n * @author Ivan Kerin\n */\nabstract class AbstractTestCase exte... | php | chosen |
[
{
"from": "system",
"value": "Fix for checking password_hash() function\n"
},
{
"from": "human",
"value": "<?php\nnamespace wapmorgan\\PhpCodeFixer;\n\nfunction password_hash_salt_option(array $usage_tokens) {\n $tree = PhpCodeFixer::makeFunctionCallTree($usage_tokens);\n $data = PhpCodeFi... | php | chosen |
[
{
"from": "system",
"value": "Disable autocomplete browser feature for Captcha value\n"
},
{
"from": "human",
"value": "<?php\n/**\n * By Pierre-Henry SORIA <http://ph7.me>\n */\n\nnamespace PFBC\\Element;\n\nuse PH7\\Framework\\Security\\Spam\\Captcha\\Captcha;\n\nclass CCaptcha extends Textbox... | php | chosen |
[
{
"from": "system",
"value": "Update search:reindex to populate set of indices\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Elasticsearch;\n\nuse App\\Console\\Helpers\\Indexer;\n\nclass ReindexSearch extends Command\n{\n... | php | chosen |
[
{
"from": "system",
"value": "Update service for getting full dbxref ids\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Mapping;\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\Entity\\FennecUser;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\n\nclass FullByDbx... | php | chosen |
[
{
"from": "system",
"value": "Fix double include of jQuery on chart pages\n"
},
{
"from": "human",
"value": "<?php\nnamespace DrupalReleaseDate\\Controllers;\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass Charts\n{\n\n public function samples(Application... | php | chosen |
[
{
"from": "system",
"value": "Clear output buffer only if it's not empty\n\n\nFormer-commit-id: 622fddc8c4d547ec1853d0b8cffe61d102215216"
},
{
"from": "human",
"value": "<? defined('C5_EXECUTE') or die('Access Denied.');\n\nclass Concrete5_Helper_Ajax {\n\n\t/** Sends a result to the client and ... | php | chosen |
[
{
"from": "system",
"value": "Make the under construction page less horrible"
},
{
"from": "human",
"value": "<?php\r\n\r\nrequire_once('config.php');\r\nglobal $config;\r\n\r\nrequire_once('page_template_dash_head.php');\r\nrequire_once('page_template_dash_sidebar.php');\r\n\r\n$election_id = $... | php | chosen |
[
{
"from": "system",
"value": "Switch date labels to make them human friendly\n"
},
{
"from": "human",
"value": "<table class=\"table table-condensed table-hover\">\n <tr>\n <th>{{ trans('manager.vacancies.table.th.date') }}</th>\n @foreach ($business->services as $service)\n ... | php | chosen |
[
{
"from": "system",
"value": "Make reboot admin only. This means any admin sadly.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Room11\\Jeeves\\BuiltIn\\Commands;\n\nuse Amp\\Promise;\nuse function Amp\\resolve;\nuse Room11\\Jeeves\\Chat\\Command as CommandMessag... | php | chosen |
[
{
"from": "system",
"value": "Add a '@return void' annotation, so that implementors know what to do in the overridden method.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Codeception\\Module\\Drupal\\UserRegistry;\n\n/**\n * Interface TestUserManagerInterface.\n *\n * @package Codecepti... | php | chosen |
[
{
"from": "system",
"value": "Check if the file exists - show some meaningful errors\n"
},
{
"from": "human",
"value": "<?php\ndefine('APP_FOLDER_PATH', dirname(__FILE__) . '/../..');\ninclude(APP_FOLDER_PATH . '/inc/init.php');\n\n$json = file_get_contents(APP_FOLDER_PATH . '/gtfs-data/' . $_GE... | php | chosen |
[
{
"from": "system",
"value": "Add during to the throw expectation interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpSpec\\Wrapper\\Subject\\Expectation;\n\ninterface ThrowExpectation\n{\n \n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PhpSpec\\Wrapper\\Su... | php | chosen |
[
{
"from": "system",
"value": "Add empty line at the end"
},
{
"from": "human",
"value": "<?php\n\nnamespace Festitime\\DatabaseBundle\\Repository;\n\nuse Doctrine\\ODM\\MongoDB\\DocumentRepository;\n\n/**\n * ArtistRepository\n *\n * This class was generated by the Doctrine ORM. Add your own cus... | php | chosen |
[
{
"from": "system",
"value": "Add a missing license header to a file.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\LdapTools\\Connection;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass ADLastErrorStrategySpec extends ObjectBehavior\n{\n function let()\n {\... | php | chosen |
[
{
"from": "system",
"value": "Fix tags index test because of layout changes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Tags\\Tests\\Actions;\n\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsModulesTags;\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsTags;\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong model id key (1011)\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Inowas\\ModflowModel\\Model\\Command;\n\nuse Inowas\\Common\\Id\\ModflowId;\nuse Inowas\\Common\\Id\\UserId;\nuse Inowas\\Common\\Soilmodel\\LayerId;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Fix bad bound in Type 0x00 (Real) reading\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Part of tivars_lib\n * (C) 2015 Adrien 'Adriweb' Bertrand\n * https://github.com/adriweb/tivars_lib\n * License: MIT\n */\n\nnamespace tivars\\TypeHandlers;\n\ninclude_once \"... | php | chosen |
[
{
"from": "system",
"value": "Fix command again. It always returns an array just sometimes empty."
},
{
"from": "human",
"value": "<?php\n\nnamespace Isometriks\\Bundle\\RedditBotBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Co... | php | chosen |
[
{
"from": "system",
"value": "Debug : unfund variable $table ->suppression\n"
},
{
"from": "human",
"value": "<?php\n\nclass DegustationAffectationValidator extends sfValidatorSchema {\n\n public function __construct($obj, $fields= null, $options = array(), $messages = array()) {\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Update Conclusion (upgrade done) message\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hi@ph7.me>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See PH7.L... | php | chosen |
[
{
"from": "system",
"value": "Fix display image for listing"
},
{
"from": "human",
"value": "@if (@fopen($file_url.'/'.$name.'/admin_'.$item->$name, 'r'))\n\t{{ HTML::image($file_url.'/'.$name.'/admin_'.$item->$name) }}\n@else\n\t{{ HTML::image(admin_asset('img/admin.jpg')) }}\n@endif"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Update \"A Plea for Colour Analysis Tools in DCC Applications\" blog post div height.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/html\">\n<head>\n <meta charset=\"utf-8\">\n <title>A Plea for Colour Ana... | php | chosen |
[
{
"from": "system",
"value": "Update message in assert test"
},
{
"from": "human",
"value": "<?php \n\nuse PHPUnit_Framework_TestCase as PHPUnit;\nuse Application\\NativeElements\\Math;\n\nclass PHPNativeElementsTest extends PHPUnit {\n\n\t/**\n\t * undocumented function\n\t *\n\t * @return void... | php | chosen |
[
{
"from": "system",
"value": "Add one more case for testing mockMethod on object/class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MockaTests\\Mocka;\n\nuse \\Mocka\\Mocka;\n\nclass ClassTraitTest extends \\PHPUnit_Framework_TestCase {\n\n public function testMockClass() {\n ... | php | chosen |
[
{
"from": "system",
"value": "BAP-1793: Create Entity Selenium tests\n - fixed URL for entities config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TestFrameworkBundle\\Pages\\Objects;\n\nuse Oro\\Bundle\\TestFrameworkBundle\\Pages\\PageFilteredGrid;\n\nclass ConfigEntities... | php | chosen |
[
{
"from": "system",
"value": "Disable default syntax highlighting for large files in DocumentEngine\n\nSummary: Ref T13105. See also T7895. When users render very large files as source via DocumentEngine, skip highlighting.\n\nTest Plan: Fiddled with the limit, viewed files, saw highlighting degrade.\n\nRev... | php | chosen |
[
{
"from": "system",
"value": "Add channel's form and fixes\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 with... | php | chosen |
[
{
"from": "system",
"value": "Fix button for new versions\n"
},
{
"from": "human",
"value": "<?php\n/*\nThis template expects following variables:\n- Mandatory\n $d: the object holding the goal\n $p: the object describing the permissions\n- Optional\n*/\n\n$parent = $d->parent;\n$child = $d->c... | php | chosen |
[
{
"from": "system",
"value": "Print new line above issue\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concise\\Console\\ResultPrinter;\n\nclass CIResultPrinter extends DefaultResultPrinter\n{\n protected $lastPercentage = -1;\n\n public function update()\n {\n $percentag... | php | chosen |
[
{
"from": "system",
"value": "Remove the plain var_dump, needs a better logging solution\n"
},
{
"from": "human",
"value": "<?php namespace Iverberk\\Larasearch\\Exceptions;\n\nuse Exception;\n\nclass ImportException extends Exception {\n\n\t// Redefine the exception so message isn't optional\n\... | php | chosen |
[
{
"from": "system",
"value": "Move Guzzle 3.9 providers to a compat() function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Guzzle\\Service\\Builder\\ServiceBuilder;\nuse Guzzle\\Service\\Client;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Convert language PHP 5.4 arrays."
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Password Reminder Language Lines\n\t|------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Switch up the settings form\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Forms\\Admin;\n\nuse App\\Base\\Forms\\AdminForm;\n\nclass SettingsForm extends AdminForm\n{\n public function buildForm()\n {\n $this\n ->add('email', 'te... | php | chosen |
[
{
"from": "system",
"value": "Simplify test code by using helpers\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\Business;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass GuestBusinessControllerTest extends TestCase\n{\n use DatabaseTransactions;\n\n ////... | php | chosen |
[
{
"from": "system",
"value": "Clean up analytics settings action test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Analytics\\Tests\\Action;\n\nuse Backend\\Core\\Tests\\BackendWebTestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Client;\n\nclass SettingsTest extends Ba... | php | chosen |
[
{
"from": "system",
"value": "Fix problem Auth when password was requested\n\nEnglish and French following:\r\nA RedisException was thrown when redis was configured with a password\r\n\r\nAdding a test to verify that the connexion use a password or not\r\nAdding a parameters for auth in TCP\r\n\r\nFrench:\r... | php | chosen |
[
{
"from": "system",
"value": "Tag list now uses the simple table style\n\nSigned-off-by: Prashant P Shah <80f978b5ac27fb318171799f0fb6a277863f2bf5@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\t$tags_q = $this->db->get(\"tags\");\n\techo \"<table border=0 cellpadding=5 class=\\\"generalt... | php | chosen |
[
{
"from": "system",
"value": "Set Label's text AFTER checkbox\n\nSigned-off-by: Kevin Nguyen <006815eb9035d5d78bd32c783377981b5c1ce236@thecodingmachine.com>\n"
},
{
"from": "human",
"value": "<?php \n/* @var $object Mouf\\Html\\Widgets\\Form\\CheckBoxField */\n$input = $object->getInput();\n$lab... | php | chosen |
[
{
"from": "system",
"value": "Fix router name generation at CollerGenerator\n\n* Replace hardcoded text DefaultController with passed argumnet\n {{name}}Controller when rendering routing yml file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drupal\\AppConsole\\Generator;\n\nuse Symfony... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Fix regex for images with hypen\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Slim Image Resize middleware\n *\n * Copyright (c) 2014 Mika Tuupola\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/m... | php | chosen |
[
{
"from": "system",
"value": "Use new output formatters feature @single-field-default to reduce table data down to a single element when 'string' format is selected.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pantheon\\Terminus\\Commands\\Auth;\n\nuse Pantheon\\Terminus\\Commands\\Ter... | php | chosen |
[
{
"from": "system",
"value": "Update company logos if they didn't previously have one but they do now\n"
},
{
"from": "human",
"value": "<?php\nnamespace GoRemote\\Model;\n\nclass CompanyModel\n{\n\tpublic $id = 0;\n\tpublic $name;\n\tpublic $url = '';\n\tpublic $twitter;\n\tpublic $logo;\n\n\tp... | php | chosen |
[
{
"from": "system",
"value": "Add support to download raw media\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kazoo\\Api\\Resource;\nuse Kazoo\\Api\\AbstractResource;\n\n/**\n * \n */\nclass Media extends AbstractResource {\n \n protected static $_entity_class = \"Kazoo\\\\Api\\\\D... | php | chosen |
[
{
"from": "system",
"value": "Make \"No Attribute Aggregation for $SP\" log message level info.\n\nThis is a common case so not really deserving of notice status.\n"
},
{
"from": "human",
"value": "<?php\n\nclass EngineBlock_Corto_Filter_Command_AttributeAggregator extends EngineBlock_Corto_Filt... | php | chosen |
[
{
"from": "system",
"value": "Fix dir permissions for proxies"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\ODM\\MongoDB\\Proxy;\n\nuse ProxyManager\\FileLocator\\FileLocator as BaseFileLocator;\nuse function mkdir;\nuse function realpath;\n\n/**\n * @... | php | chosen |
[
{
"from": "system",
"value": "Set up base class for extension validation\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This empty class ensures a proper naming standard\n * @see Phpr_Extension\n */\n\nclass Phpr_Extendable extends Phpr_Extension\n{\n\n}"
},
{
"from": "gpt",
"va... | php | chosen |
[
{
"from": "system",
"value": "Fix JSON field for multiple instances"
},
{
"from": "human",
"value": "@section(\"field\")\n <div id=\"json_{{ $field_id }}\" class=\"field_{{ $field_name }}\" style=\"width: 100%; height: 400px;\"></div>\n <input name=\"{{ $prefixed_field_name }}\" id=\"{{ $f... | php | chosen |
[
{
"from": "system",
"value": "Update StylusView to match new submodule\n"
},
{
"from": "human",
"value": "<?php\nrequire_once __DIR__ . '/base.php';\nrequire_once __DIR__ . '/../../lib/stylus.php';\n\nclass StylusView implements Component {\n private $css;\n\n public function __construct(Stylu... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with old dates\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Bukashk0zzzTimestampTypeBundle\n *\n * (c) Denis Golubovskiy <bukashk0zzz@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix \"Interface `io\\streams\\SocketOutputStream` not found\n"
},
{
"from": "human",
"value": "<?php namespace peer;\n\n/**\n * OutputStream that reads from a socket\n */\nclass SocketOutputStream extends \\lang\\Object implements \\io\\streams\\SocketOutputStream {... | php | chosen |
[
{
"from": "system",
"value": "Add create Realm controller method.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Dashboard;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Realms\\Server;\n\nclass RealmsController extends Controller\n{\n public function lis... | php | chosen |
[
{
"from": "system",
"value": "BAP-3442: Create Reminder entities\n- create repo method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ReminderBundle\\Entity\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\nclass ReminderRepository extends EntityRepository\n{\n}\n"
},... | php | chosen |
[
{
"from": "system",
"value": "Check for safe_mode before passing 5th parameter to mail()\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n Invokes the mail() function in Swift Mailer.\n \n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General... | php | chosen |
[
{
"from": "system",
"value": "Fix behat context & fixtures after latest merges\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 ... | php | chosen |
[
{
"from": "system",
"value": "Add optimized auto increment primary key for mysql\n"
},
{
"from": "human",
"value": "<?php\nnamespace LazyRecord\\Schema\\Column;\nuse LazyRecord\\Schema\\ColumnDeclare;\n\nclass AutoIncrementPrimaryKeyColumn extends ColumnDeclare\n{\n public function __construc... | php | chosen |
[
{
"from": "system",
"value": "Use the Security trait method if it exists\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the silex-annotation-provider package.\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with ... | php | chosen |
[
{
"from": "system",
"value": "Fix datatable import extensions to be dynamic/configurable\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Requests;\n\nuse Cortex\\Foundation\\Http\\FormRequest;\n\nclass ImportFormRequest extends FormRequ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Change test case with partial message in expectedExceptino annotation to use full expectedExceptionMessage one\"\n\nThis reverts commit b5ff03e2117f38fa5af341b10cc877bc62fa2a81.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of PHPUnit.\... | php | chosen |
[
{
"from": "system",
"value": "Change action name from pool to team\n"
},
{
"from": "human",
"value": "@extends('helpdesk::tickets.show.action')\n\n@section('action-content')\n <strong>{{ $action->name }}</strong>\n <br>\n <em>Pool Name</em>: {{ $action->object->pool->name }}\n <br>\n <em>By... | php | chosen |
[
{
"from": "system",
"value": "Expand unit testing coverage to cover git branch/commit info in footer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Test\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass HomeControllerTest extends WebTestC... | php | chosen |
[
{
"from": "system",
"value": "Load Composer dependencies during tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This code is free software; you can redistribute it and/or modify it under\n * the terms of the new BSD License.\n *\n * Copyright (c) 2011-2012, Sebastian Staudt\n *\n * @lice... | php | chosen |
[
{
"from": "system",
"value": "BAP-16838: Fix form types issues for commerce application\n- revert autocomplete_aliases changes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\LocaleBundle\\Form\\Type;\n\nuse Oro\\Bundle\\FormBundle\\Form\\Type\\OroEntitySelectOrCreateInlineTyp... | php | chosen |
[
{
"from": "system",
"value": "Add a function to print exception line\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Terminus\\Loggers;\n\nclass Regular {\n\n function __construct( $in_color ) {\n $this->in_color = $in_color;\n }\n\n protected function write( $handle, $str ) {\n f... | php | chosen |
[
{
"from": "system",
"value": "[fix] Check for primary key too\n"
},
{
"from": "human",
"value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n// No direct access\ndefined('_HZEXEC_') or die();\n\n/**\n * Migration to add primary key to hosttype table\n **/\n\nclass Migration20180924153232C... | php | chosen |
[
{
"from": "system",
"value": "Allow adding a select-where to symfony child-rows-serializer\n"
},
{
"from": "human",
"value": "<?php\nnamespace KwfBundle\\Serializer\\KwfModel\\ColumnNormalizer;\nuse Kwf_Model_Row_Interface;\nuse Symfony\\Component\\Serializer\\SerializerInterface;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Store event column in text field\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateNewEventsTableSchema extends Migration\n{\n /**\n * Run the migrations.\... | php | chosen |
[
{
"from": "system",
"value": "Allow Loading Product Without Loyalty Pricing Being Applied\n"
},
{
"from": "human",
"value": "<?php\n\nclass Edge_Loyalty_Model_Price_Observer\n{\n public function getFinalPrice(Varien_Event_Observer $observer)\n {\n $product = $observer->getEvent()->g... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Test broken after introduction of numeric type\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@53335 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2014 by authors of the Tiki Wiki CMS Groupware Pro... | php | chosen |
[
{
"from": "system",
"value": "Set Up & Down fct for AllowNullOnIndexesContextId\n\nchangeColumn can't be revert"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AllowNullOnIndexesContextId extends AbstractMigration {\n\tpublic function change() {\n\t\ti... | php | chosen |
[
{
"from": "system",
"value": "CC-5781: Upgrade script for new storage quota implementation\n"
},
{
"from": "human",
"value": "<?php\nclass StorageQuotaUpgrade\n{\n public static function startUpgrade()\n {\n echo \"* Updating storage usage for new quota tracking\".PHP_EOL;\n ... | php | chosen |
[
{
"from": "system",
"value": "Check passed parameters in product fixture spec\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\MageTest\\MagentoExtension\\Fixture;\n\nuse PHPSpec2\\Specification;\n\nclass Product implements Specification\n{\n function described_with()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove unused form class variable."
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Analytics\\Actions;\n\nuse Backend\\Core\\Engine\\Base\\ActionDelete;\nuse Backend\\Core\\Engine\\Model;\n\n/**\n * This is the reset-action. It will remove your... | php | chosen |
[
{
"from": "system",
"value": "[FrameworkBundle] Fix built-in server when using query params in paths\n\n$_SERVER['REQUEST_URI'] will contain the query params so is_file will fail.\nChange it to use $_SERVER['SCRIPT_NAME'] instead which only contains the\nrelative filename of the the script.\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Add functionality to new webservice and return all traits to an organism by its id\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait informatio\n */\nclass Traits_to_organism extends \... | php | chosen |
[
{
"from": "system",
"value": "III-709: Use String instead of fully namespaced equivalent\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\EventExport\\Command;\n\nuse CultuurNet\\Deserializer\\JSONDeserializer;\nuse CultuurNet\\Deserializer\\MissingValueException;\nuse Cul... | php | chosen |
[
{
"from": "system",
"value": "Add publicKeyExists implementation in staticAccessController\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Test for list volumes added\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace tests\\Nerdstorm\\GoogleBooks\\Api;\n\nuse GuzzleHttp\\Psr7\\Response;\nuse Nerdstorm\\GoogleBooks\\Api\\VolumesSearch;\nuse tests\\Nerdstorm\\Config;\n\nclass VolumeSearchTest extends... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.