conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add validator to URL input\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Brick\\Form\\Element\\Input;\n\nuse Brick\\Form\\Element\\Input;\nuse Brick\\Form\\Attribute\\AutocompleteAttribute;\nuse Brick\\Form\\Attribute\\ListAttribute;\nuse Brick\\Form\\Attrib... | php | chosen |
[
{
"from": "system",
"value": "Make locale id a string\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Laravel Translator.\n *\n * (c) Vincent Klaiber <hello@vinkla.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Remove repositoryUrl as a parameter in comment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Accompli\\Chrono\\Adapter;\n\n/**\n * AdapterInterface.\n *\n * @author Niels Nijens <nijens.niels@gmail.com>\n */\ninterface AdapterInterface\n{\n /**\n * Re... | php | chosen |
[
{
"from": "system",
"value": "Make controller name configurable for resource routes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spark\\Controller;\n\nclass ControllerCollection extends \\Silex\\ControllerCollection\n{\n function draw(callable $callback)\n {\n $callback($th... | php | chosen |
[
{
"from": "system",
"value": "Remove id attribute from input fix\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Banklink\\Request;\n\n/**\n * Generic request representation\n *\n * @author Roman Marintsenko <inoryy@gmail.com>\n * @since 31.10.2012\n */\nabstract class Request\n{\n pro... | php | chosen |
[
{
"from": "system",
"value": "Allow to define static WebService version\n"
},
{
"from": "human",
"value": "<?php\n\nclass PureBilling\n{\n\n /**\n * Private key\n *\n * @var string\n */\n private static $privateKey;\n\n /**\n * End point\n *\n * @var string\n... | php | chosen |
[
{
"from": "system",
"value": "Allow Contacts: Phone column to be hidden\n"
},
{
"from": "human",
"value": "<div class=\"table-responsive\"><table class=\"table table-striped\">\n <?php\n\n $position_label = get_option( 'staff_position_label', 'Position' );\n\n echo sprintf( '<thead><tr><th>%s... | php | chosen |
[
{
"from": "system",
"value": "Fix download and upload on local commander\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 that... | php | chosen |
[
{
"from": "system",
"value": "Add missing property type declaration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jstewmc\\Rtf\\Element\\Control\\Word;\n\n/**\n * The \"\\cxs\" control word indicates an \"ignored\" steno group. Steno is written as a\n * series of strokes using pure steno... | php | chosen |
[
{
"from": "system",
"value": "Increment version number for release\n"
},
{
"from": "human",
"value": "<?php \r\n\r\nnamespace Concrete\\Package\\CommunityStoreStripe;\r\n\r\nuse Package;\r\nuse Whoops\\Exception\\ErrorException;\r\nuse \\Concrete\\Package\\CommunityStore\\Src\\CommunityStor... | php | chosen |
[
{
"from": "system",
"value": "Clear the transaction after committing it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpInPractice\\Matters\\Aggregate\\Transaction;\n\nuse EventStore\\EventStoreInterface;\nuse EventStore\\WritableEvent;\nuse EventStore\\WritableEventCollection;\nuse Php... | php | chosen |
[
{
"from": "system",
"value": "Fix broken link caused by base tag\n"
},
{
"from": "human",
"value": "<?php\ninclude '../resources/includes/PageCreator.php';\n\n$page = new PageCreator;\n$page->path_to_root = '../';\n$page->title = \"CheckJeStress - Admin\";\n$page->body = <<<EOF\n <p>Welkom bij ... | php | chosen |
[
{
"from": "system",
"value": "Fix naming issues in dictionary test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Shadowhand\\Test\\Destrukt;\n\nuse Shadowhand\\Destrukt\\Dictionary;\n\nclass HashTest extends StructTest\n{\n public function setUp()\n {\n $this->struct = new D... | php | chosen |
[
{
"from": "system",
"value": "Add restricted `latitude` and `longitude` fields to `places` [API-12]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Transformers\\Outbound\\Collections;\n\nuse App\\Transformers\\Outbound\\CollectionsTransformer as BaseTransformer;\n\nclass Place extend... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Suppress data_type option for proxy\"\n\nThis reverts commit 366dd5d28c012a12f37aba4639d847a24456b271.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nreturn [\r\n // Proxy settings\r\n 'proxy' => [\r\n 'default_url' => 'home',\r\n 'pref... | php | chosen |
[
{
"from": "system",
"value": "Allow username search to work with apostrophes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bethel\\EntityBundle\\Form\\Handler;\n\nuse Bethel\\EntityBundle\\Entity\\TutorSession;\nuse Bethel\\WsapiBundle\\Wsapi\\WsRestApi;\nuse Doctrine\\ORM\\EntityManager... | php | chosen |
[
{
"from": "system",
"value": "Complete parsing system, fully functional\n"
},
{
"from": "human",
"value": "<?php\n\n include(\"/home/c0smic/secure/data_db_settings.php\");\n\n $body = file_get_contents('php://input');\n\n $stime = \"\";\n $etime = \"\";\n $moves = \"\";\n\n fun... | php | chosen |
[
{
"from": "system",
"value": "Load correct provider from config file\n"
},
{
"from": "human",
"value": "<?php namespace Studious\\Autologin;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Studious\\Autologin\\Autologin;\n\nclass AutologinServiceProvider extends ServiceProvider {\n\n\t/**\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Update config, remove repo url.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Sami\\RemoteRepository\\GitHubRemoteRepository;\nuse Sami\\Sami;\nuse Symfony\\Component\\Finder\\Finder;\n\n// Download sami via\n// curl -O http://get.sensiolabs.org/sami.phar\n//... | php | chosen |
[
{
"from": "system",
"value": "Remove the ability to create messages through repository\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is apart of the DiscordPHP project.\n *\n * Copyright (c) 2016-2020 David Cole <david.cole1340@gmail.com>\n *\n * This source file is subject to the... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with exit button for single asset view.\n"
},
{
"from": "human",
"value": "@extends('layouts.main')\n\n@section ('breadcrumb')\n <a href=\"{{ redirect()->back() }}\">\n <button type=\"button\" class=\"btn round-btn pull-right c-yellow\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix introduced error in test"
},
{
"from": "human",
"value": "<?php\n/**\n * ZnZend\n *\n * @author Zion Ng <zion@intzone.com>\n * @link [Source] http://github.com/zionsg/ZnZend\n * @since 2012-11-23T23:00+08:00\n */\nnamespace ZnZendTest\\View\\Helper;\n\nuse PH... | php | chosen |
[
{
"from": "system",
"value": "Add several properties to Fennec User\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse FOS\\UserBundle\\Model\\User as BaseUser;\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"`fennec_user`\")\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Allow service provider to run from console\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Watson\\Breadcrumbs;\n\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\n\nclass ServiceProvider extends BaseServiceProvider\n{\n /**\n * Indicat... | php | chosen |
[
{
"from": "system",
"value": "Rewrite for better static code analysis\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Hayttp package.\n *\n * @author Kim Ravn Hansen <moccalotto@gmail.com>\n * @copyright 2017\n * @license MIT\n */\n\nnamespace Hayttp\\Traits;\n\n/**\... | php | chosen |
[
{
"from": "system",
"value": "Add out of stock label\n"
},
{
"from": "human",
"value": "<?php setup_postdata($post); ?>\n\n <figure class=\"product-wrap thumbnail\">\n<!--\n <span class=\"label label-info product-state\">Rebajado</span>\n <span class=\"label ... | php | chosen |
[
{
"from": "system",
"value": "Fix class names in strings\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 information, please view the LICENSE\n * file that was distributed w... | php | chosen |
[
{
"from": "system",
"value": "Fix HttpResponseException namespace reference in Laravel 5.4.x\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Huntie\\JsonApi\\Exceptions;\n\nuse Huntie\\JsonApi\\Support\\JsonApiErrors;\nuse Illuminate\\Http\\Response;\nuse Illuminate\\Http\\Exception\\HttpR... | php | chosen |
[
{
"from": "system",
"value": "Fix uri to child theme directory\n"
},
{
"from": "human",
"value": "<?php\nfunction theme_enqueue_custom()\n{\n wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );\n wp_enqueue_script( 'custom-scripts', get_template_directory_uri()... | php | chosen |
[
{
"from": "system",
"value": "Add support for passing variables to the layout parts.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sarcofag\\View\\Helper;\n\nuse Sarcofag\\Exception\\RuntimeException;\nuse Sarcofag\\View\\Renderer\\RendererInterface;\nuse Slim\\Http\\Response;\n\nclass Lay... | php | chosen |
[
{
"from": "system",
"value": "Remove id from language indexes\n"
},
{
"from": "human",
"value": "<div class=\"view\">\n\n\t<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>\n\t<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>\n\t<br />\n\n\t<... | php | chosen |
[
{
"from": "system",
"value": "Remove postRenderPlugin comments in embed HTML\n\nThese can break if -- modifier is used inside commented out html (-- ends a html comment :/)\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Advanced_IntegratorTemplate_Embed_ContentSender extends Kwf_Component_A... | php | chosen |
[
{
"from": "system",
"value": "Move down invalid unit test for better consistency\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Pu... | php | chosen |
[
{
"from": "system",
"value": "Add version to summary; restrict worker details in summary to hostname and state\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SimplyTestable\\ApiBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse SimplyTestable\\ApiBun... | php | chosen |
[
{
"from": "system",
"value": "[Form] Remove \"value\" attribute on empty_value option\n\nToday we faced a very strange issue with the newest Blackberry 10 browser, it was not submitting our forms. Finally we found that in a ```select``` element, if you have a disabled option, it can't have a value or the HT... | php | chosen |
[
{
"from": "system",
"value": "Fix password reset redirection path\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pterodactyl\\Http\\Controllers\\Auth;\n\nuse Pterodactyl\\Http\\Controllers\\Controller;\nuse Illuminate\\Foundation\\Auth\\ResetsPasswords;\n\nclass ResetPasswordController ex... | php | chosen |
[
{
"from": "system",
"value": "Add comments and use key => value pair\n"
},
{
"from": "human",
"value": "<?php\r\nnamespace Simox;\r\n\r\nclass Session extends SimoxServiceBase\r\n{\r\n\tpublic function __construct() {}\r\n \r\n public function start()\r\n {\r\n\t\tsession_start();\r\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove actionDeletePage from the interface.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface for the Pages form builder\n * Ensures that JS can stay in sync between global page builder and program page builder\n * @author Jon Johnson <jon.johnson@ucsf.edu... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP 5.3 BC Support\n"
},
{
"from": "human",
"value": "<?php\n/**\n * SocialConnect project\n * @author: Patsura Dmitry @ovr <talk@dmtry.me>\n */\n\nnamespace SocialConnect\\Vk\\Response;\n\nclass Collection\n{\n protected $total;\n\n protected $loadCallbac... | php | chosen |
[
{
"from": "system",
"value": "Fix (*): Remove unused variable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Twig\\Extension;\n\n\nclass GpsDMSExtension extends \\Twig_Extension\n{\n public function getFilters()\n {\n return array(\n new \\Twig_SimpleFil... | php | chosen |
[
{
"from": "system",
"value": "Add name to dashboard Route.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DTR\\DTRBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Component\\... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Add workflow_can and workflow_transitions blade extensions\"\n\nThis reverts commit 300795a3b1fe2494d1da954531b4f37d1aa88ec9.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Brexis\\LaravelWorkflow;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Il... | php | chosen |
[
{
"from": "system",
"value": "Update intialize command to use constraints\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: sgraupner\n * Date: 04/01/2017\n * Time: 14:39.\n */\n\nnamespace OParl\\Spec\\Commands;\n\nclass InitializeCommand extends Command\n{\n p... | php | chosen |
[
{
"from": "system",
"value": "Fix Style CI unused import\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests;\n\nuse App\\Commands\\FakeDefaultCommand;\nuse App\\Commands\\FakeFooCommand;\nuse App\\HiddenCommands\\FakeHiddenCommand;\nuse App\\OtherCommands\\Fa... | php | chosen |
[
{
"from": "system",
"value": "Move to listing database values\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\n\nclass AlertsController extends Controller\n{\n /**\n *\n */\n public function index()... | php | chosen |
[
{
"from": "system",
"value": "refactor(addresses): Rename Address migration class name\n\nRename Address migration class name\n\nsee #53\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\... | php | chosen |
[
{
"from": "system",
"value": "Fix portflofio child template view\n"
},
{
"from": "human",
"value": "<?php\nglobal $post, $MODEL;\n$ContentType = $MODEL->getSettings('post_type', ['page_id', $post->ID]);\n$args = [ 'post_type' => $ContentType, 'orderby' => 'menu_order', 'posts_per_page' => -1];\n... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect add URL button\n"
},
{
"from": "human",
"value": "<?php if (!$content->isNew()) { ?>\n <li><a href=\"<?= $this->url([\n 'entity' => $info->name,\n 'action' => 'edit',\n ], 'core_content', true) . $this->url->query([\n '... | php | chosen |
[
{
"from": "system",
"value": "Use custom Flash class instead of Session::flash\n"
},
{
"from": "human",
"value": "<?php namespace RainLab\\User\\Controllers;\n\nuse Session;\nuse BackendMenu;\nuse BackendAuth;\nuse Backend\\Classes\\BackendController;\n\nclass Users extends BackendController\n{\... | php | chosen |
[
{
"from": "system",
"value": "Fix unknown class constant ATOM\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Offer\\Events\\Moderation;\n\nuse CultuurNet\\UDB3\\Offer\\Events\\AbstractEvent;\nuse DateTimeInterface;\n\nabstract class AbstractPublished extends AbstractEven... | php | chosen |
[
{
"from": "system",
"value": "Change Dutch to nl instead of nn. Because it works and is more readable\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n* Possible dates between 14-12-2014 and 12-12-2015\n* Possible traintypes: IC, L, P, TGV, THA, TRN and EXT\n* Possible languages: Dutch, English, ... | php | chosen |
[
{
"from": "system",
"value": "Make number of players divisible by 4\n"
},
{
"from": "human",
"value": "<?php\n$base_plugin = $config->get(\"base_plugin\");\n$plugin = $plugins[$base_plugin];\n\n$url = str_replace('{page}','player', $config->get(\"player-url\", 'BlueStats-Url'));\n$url = str_repl... | php | chosen |
[
{
"from": "system",
"value": "Fix exception name in Zend\\Text\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2012 Zend Tech... | php | chosen |
[
{
"from": "system",
"value": "Transform approve method to static\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GoPague;\n\nclass Payment extends Resource\n{\n public static function create(array $data)\n {\n return static::request('post', 'payment_collections', $data);\n ... | php | chosen |
[
{
"from": "system",
"value": "Add api calls to manager\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DarthSoup\\Rundeck;\n\nuse DarthSoup\\Rundeck\\Adapter\\AdapterInterface;\nuse DarthSoup\\Rundeck\\Api\\System;\n\nclass Rundeck\n{\n /**\n * @var AdapterInterface\n */\n pr... | php | chosen |
[
{
"from": "system",
"value": "Change final decrypt to use function\n\nAlso changed function to expect key as chr.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'letterScore.php';\n\n$input = hex2bin(\"1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736\");\n$inputLength = ... | php | chosen |
[
{
"from": "system",
"value": "Add more tests for Route53Client::cleanId\n"
},
{
"from": "human",
"value": "<?php\nnamespace Aws\\Test\\Route53;\n\nuse Aws\\Route53\\Route53Client;\n\n/**\n * @covers Aws\\Route53\\Route53Client\n */\nclass Route53ClientTest extends \\PHPUnit_Framework_TestCase\n{... | php | chosen |
[
{
"from": "system",
"value": "Update tail command tests to check for backslashes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spatie\\Tail\\Tests;\n\nclass TailCommandTest extends TestCase\n{\n /** @test */\n public function it_will_throw_an_exception_if_the_given_environment_is_n... | php | chosen |
[
{
"from": "system",
"value": "Add base path to test application constructor"
},
{
"from": "human",
"value": "<?php\n\nnamespace AlgoWeb\\PODataLaravel\\Models;\n\nuse Illuminate\\Foundation\\Application;\nuse Illuminate\\Filesystem\\Filesystem;\nuse Illuminate\\Foundation\\ProviderRepository;\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix thumb setting on local, causing thumbs to fail.\n"
},
{
"from": "human",
"value": "<?php\n\n// direct access protection\nif(!defined('KIRBY')) die('Direct access is not allowed');\n\n/* ----------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Support setting logger and cryptor config node name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pagon\\Middleware;\n\nuse Pagon\\Logger;\nuse Pagon\\Middleware;\nuse Pagon\\Utility\\Cryptor;\n\nclass Booster extends Middleware\n{\n public function call(... | php | chosen |
[
{
"from": "system",
"value": "Add backwards compatibility for old Symfony versions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\Model\\CastingUser;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\nuse Symfony\\Component\\Fo... | php | chosen |
[
{
"from": "system",
"value": "Add undocumented -w flag to alter the countdown behavior.\n\nSigned-off-by: Dan Schaper <e0d147bd42e37db009403956b01c29435870b195@pi-hole.net>\n"
},
{
"from": "human",
"value": "<?php\nob_end_flush();\nini_set(\"output_buffering\", \"0\");\nob_implicit_flush(true);\... | php | chosen |
[
{
"from": "system",
"value": "Document the \"any\" stopping criteria.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Algorithm\\GradientDescent\\StoppingCriteria;\n\nfinal class Any implements StoppingCriteria\n{\n /** @var array */\n private $criteriaList =... | php | chosen |
[
{
"from": "system",
"value": "Move template directory string to constant\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BNETDocs\\Libraries;\n\nuse \\BNETDocs\\Libraries\\Exceptions\\TemplateNotFoundException;\nuse \\BNETDocs\\Libraries\\Logger;\nuse \\SplObjectStorage;\n\nfinal class Tem... | php | chosen |
[
{
"from": "system",
"value": "Use singleton instead of removed share method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mjarestad\\Filtry;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass FiltryServiceProviderLaravel5 extends ServiceProvider\n{\n /**\n * Register the servic... | php | chosen |
[
{
"from": "system",
"value": "OEE-1075: Update rate converter to support fixation logic\n- Add freeze case in unit tests\n- Rewrite converter for base currency amount usage instead of rate\n- Remove unused param from convert method\n"
},
{
"from": "human",
"value": "<?php\nnamespace Oro\\Bundle\... | php | chosen |
[
{
"from": "system",
"value": "Add output of artice meta and categories\n"
},
{
"from": "human",
"value": "<div class=\"article\">\n <?php echo $article->getContent(); ?>\n</div>\n<?php if ($article->hasCategories()): ?>\n <div class=\"categories\">\n <?php foreach ($article->getCategori... | php | chosen |
[
{
"from": "system",
"value": "Put Lexical in its own namespace: Pharen.\n"
},
{
"from": "human",
"value": "<?php\nclass Lexical{\n static $scopes = array();\n\n public static function init_closure($ns, $id){\n if(isset(self::$scopes[$ns][$id])){\n self::$scopes[$ns][$id][... | php | chosen |
[
{
"from": "system",
"value": "Fix missing request service from service, use request_stack instead\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Alpixel\\Bundle\\UserBundle\\Controller;\n\nuse FOS\\UserBundle\\Controller\\SecurityController as BaseController;\nuse Symfony\\Component\\Http... | php | chosen |
[
{
"from": "system",
"value": "Clean up of test case\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\Tests\\ORM\\Functional;\n\nuse Doctrine\\Tests\\Models\\CMS\\CmsUser;\nuse Doctrine\\Tests\\Models\\CMS\\CmsPhonenumber;\nuse Doctrine\\ORM\\Event\\OnClearEventArgs;\nuse Doctrine\... | php | chosen |
[
{
"from": "system",
"value": "Add trailing space to command to stay consistent\n"
},
{
"from": "human",
"value": "<?php\nnamespace Robo\\Task\\Development;\n\nuse Robo\\Task\\Base\\Exec;\n\n/**\n * Runs PHP server and stops it when task finishes.\n *\n * ``` php\n * <?php\n * // run server in /p... | php | chosen |
[
{
"from": "system",
"value": "Clear command default answer changed to no\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Subway package.\n *\n * (c) Eymen Gunay <eymen@egunay.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Simplify the use of `phutil_get_library_root`\"\n\nSummary:\nThis reverts commit 67a17d0efb025665237d0d174d55d1887f9a6064.\n\nThis doesn't actually work because the call to `phutil_get_current_library_name()` always occurs within `libphutil`.\n\nTest Plan: N/A\n\nRevie... | php | chosen |
[
{
"from": "system",
"value": "Change a helper file indentation to TAB character\n\nModify a PHP helper file, transfer.php. Change all indentation from\nspace to TAB character.\n\nThis change makes the PHP source code indentation conformed with\nOpenCart coding standard.\n\nReference:\nhttps://github.com/ope... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong copy and paste\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace rmatil\\cms\\Mail\\PhpMailer;\n\n\nuse rmatil\\cms\\Exceptions\\InvalidConfigurationException;\nuse rmatil\\cms\\Handler\\ConfigurationHandler;\nuse rmatil\\cms\\Mail\\MailInterface;\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix Doc comment (width => integer)"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of PHP-FFmpeg.\n *\n * (c) Alchemy <info@alchemy.fr>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed w... | php | chosen |
[
{
"from": "system",
"value": "Add missing typehint for PHPStan/PHP 7.2\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Tactician\\Handler;\n\nuse BadMethodCallException;\nuse League\\Tactician\\Exception;\nuse Throwable;\nuse function get_class;\nuse fun... | php | chosen |
[
{
"from": "system",
"value": "system: Fix typo for requiring L10nProvider files\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Factory class for providing Localization implementations\n * @author M2Mobi, Heinz Wiesinger\n */\nclass L10nFactory\n{\n\n /**\n * Instance of the L10nProvi... | php | chosen |
[
{
"from": "system",
"value": "Add service name prefix for algorithms\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the PcdxParameterEncryptionBundle package.\n *\n * (c) picodexter <https://picodexter.io/>\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Add \"Edit\" and \"Join\" capabilities\n\nSummary: These are general-purpose capabilities required by Projects.\n\nTest Plan: Trivial.\n\nReviewers: vrana, btrahan\n\nReviewed By: vrana\n\nCC: aran\n\nManiphest Tasks: T603\n\nDifferential Revision: https://secure.phabricator.co... | php | chosen |
[
{
"from": "system",
"value": "Order page links by location\n"
},
{
"from": "human",
"value": "<div id='b-pagesettings-links' class=\"b-pagesettings\">\n\t<div>\n\t\t<h1>Primary Link</h1>\n\t\t<p>\n\t\t\t<?= $page->link() ?>\n\t\t</p>\n\t</div>\n\t<div>\n\t\t<h1>All links</h1>\n\t\t<ul class='boo... | php | chosen |
[
{
"from": "system",
"value": "Remove 'meta' in favour of 'params'\n"
},
{
"from": "human",
"value": "<?php echo '<?php' ?>\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateIndices extends Migration\n{\n /**\n * Run the migrat... | php | chosen |
[
{
"from": "system",
"value": "Use getParent() allows for some easier mocking\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BeBat\\PolyTree\\Relations;\n\nuse BeBat\\PolyTree\\Contracts\\Node;\nuse BeBat\\PolyTree\\Exceptions\\Cycle as CycleException;\n\nclass HasChildren extends Direct\n... | php | chosen |
[
{
"from": "system",
"value": "Add view hook for other plugins show stats in dashboard statistics\n"
},
{
"from": "human",
"value": "@extends('webed-core::admin._master')\n\n@section('css')\n\n@endsection\n\n@section('js')\n\n@endsection\n\n@section('js-init')\n\n@endsection\n\n@section('content'... | php | chosen |
[
{
"from": "system",
"value": "Fix line break in command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Grav\\Common;\n\n/**\n * Offers composer helper methods.\n *\n * @author eschmar\n * @license MIT\n */\nclass Composer\n{\n /**\n * Returns the location of composer.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Add wordpress-muplugin is allowable package type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BeanstalkSatisGen\\File;\n\nclass Composer extends Json\n{\n\n /**\n * Returns whether or not this composer file is a satis package based on the\n * con... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Fix doc block author tag\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the VantomasWebsite package.\n *\n * (c) Thomas Juhnke <dev@van-tomas.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file ... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/Request/ParamConverter/RestResourceConverter.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Request... | php | chosen |
[
{
"from": "system",
"value": "Add success message for saving project settings.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ProjectsController extends Controller {\n\n\tpublic function show(Project $project)\n\t{\n\t\t$currentSprint = $project->currentSprint();\n\n\t\treturn $currentSprint ... | php | chosen |
[
{
"from": "system",
"value": "Remove resolveCarbon tests and add test for nowWithSameTz\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Carbon package.\n *\n * (c) Brian Nesbitt <brian@nesbot.com>\n *\n * For the full copyright and license information, please view the... | php | chosen |
[
{
"from": "system",
"value": "Remove newlines & old TODO\n"
},
{
"from": "human",
"value": "@extends('layout.layout')\n\n@section('content')\n <div class=\"row\">\n <div class=\"seven wide column centered\">\n <!-- TODO use trans()-->\n <h2>{{ trans('general.titl... | php | chosen |
[
{
"from": "system",
"value": "Check for IDatabase (not DatabaseBase) in tests\n\nChange-Id: Ia94fcae2a1dd28761b4e2f40fa1491f8401ad491\n"
},
{
"from": "human",
"value": "<?php\n\nclass MWEchoDbFactoryTest extends MediaWikiTestCase {\n\n\tpublic function testNewFromDefault() {\n\t\t$db = MWEchoDbF... | php | chosen |
[
{
"from": "system",
"value": "Use flash message instead of static message and redirect to the landing page\n"
},
{
"from": "human",
"value": "<?php namespace App\\Modules\\Auth\\Http\\Controllers;\n\nuse View, Sentinel, Input, Session, Redirect, FrontController;\n\nclass LogoutController extends... | php | chosen |
[
{
"from": "system",
"value": "Use v2 service with options\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EWZ\\Bundle\\RecaptchaBundle\\Factory;\n\nuse EWZ\\Bundle\\RecaptchaBundle\\Form\\Type\\EWZRecaptchaType;\nuse EWZ\\Bundle\\RecaptchaBundle\\Validator\\Constraints\\IsTrue;\nuse Symfon... | php | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix check if composer install must be run because of composer.lock changes.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Deployer;\n\n// Read more on https://github.com/sourcebroker/deployer-extended#deploy-check-composer-install\ntask('deploy:chec... | php | chosen |
[
{
"from": "system",
"value": "Add test for participants limit disabled\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\Draw;\nuse App\\Models\\PendingDraw;\nuse App\\Models\\Participant;\nuse App\\Notifications\\PendingDraw as PendingDrawNotification;\nuse Illuminate\\Notifications\... | php | chosen |
[
{
"from": "system",
"value": "Move webui optional config file to the same directory DNSCheck Lib uses.\n"
},
{
"from": "human",
"value": "<?php\r\n\trequire_once('IP2Country.php');\r\n\r\n\tdefine('DB_SERVER', 'localhost');\r\n\tdefine('DB_PORT', 3306);\r\n\tdefine('DB_NAME', 'dnscheckng');\r\n\... | php | chosen |
[
{
"from": "system",
"value": "Check quota when spend credits for new community.\nIf quota not exceeded, don't charge credits.\n"
},
{
"from": "human",
"value": "<?php\n\nfunction Assets_after_Community_create($params)\n{\n\t$userId = $params['userId'];\n\t$community = $params['community'];\n\t$s... | php | chosen |
[
{
"from": "system",
"value": "Add tests for parsing options\n"
},
{
"from": "human",
"value": "<?php\nnamespace DexBarrett\\ClockworkSms\\Test;\n\nuse DexBarrett\\ClockworkSms\\Client;\nuse DexBarrett\\ClockworkSms\\Exception\\ClockworkSmsException;\n\nclass ClientTest extends \\PHPUnit_Framewor... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.