conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Disable event dispatching for this test\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view ... | php | chosen |
[
{
"from": "system",
"value": "Add missing newline at end of file\n\nSee #2509\nSee aa6f853584182980c1c7d12891b689317e458b8b\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\n\n/**\n * Provides default implementations of `IImmutableFormField` methods.\n * \n ... | php | chosen |
[
{
"from": "system",
"value": "Make sure getPath is part of the interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Filesystem\\Node;\n\ninterface NodeInterface\n{\n /**\n * @return string\n */\n public function __toString();\n}\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Make sure files config is an array\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nimbusoft\\Parrot\\Plugin;\n\nuse Nimbusoft\\Parrot\\Parrot;\nuse League\\Event\\EventInterface;\nuse Nimbusoft\\Parrot\\Extension\\AbstractPlugin;\n\nclass FilesPlugin extends ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug for template controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Butterfly\\Plugin\\TemplateRouter;\n\nuse Butterfly\\Adapter\\Twig\\IRenderer;\nuse Butterfly\\Component\\DI\\Container;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace of Gnupg class in generated phar\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Isolated\\Symfony\\Component\\Finder\\Finder;\n\n// Symfony polyfills must live in global namespace.\n$symfonyPolyfill = (static function (): a... | php | chosen |
[
{
"from": "system",
"value": "Fix modding v2 activation link in admin view\n"
},
{
"from": "human",
"value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n See the LICENCE file in the repository root for full licence text.\n... | php | chosen |
[
{
"from": "system",
"value": "Improve component Label (add flag 'noedit')\n"
},
{
"from": "human",
"value": "<?php\n\t$id=0;\n\teval ('$id='.$data['id'].';');\n?>\n<?php if (array_key_exists('edit', $_GET) && Session::isLoggedIn()) { ?>\n<span id=\"Label<?= $id ?>\" edit_id=\"<?= $id ?>\" style=... | php | chosen |
[
{
"from": "system",
"value": "Allow multiple collections to be outputted in views.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nif ( ! function_exists('basset_stylesheet'))\n{\n /**\n * Ouput the stylesheets... | php | chosen |
[
{
"from": "system",
"value": "Update API path for Syno.API.Info\n"
},
{
"from": "human",
"value": "<?php\nclass Synology_DSM_Api extends Synology_Api_Authenticate{\n\tconst API_SERVICE_NAME = 'DSM';\n\tconst API_NAMESPACE = 'SYNO';\n\t\n\t/**\n\t * Info API setup\n\t * \n\t * @param string $addr... | php | chosen |
[
{
"from": "system",
"value": "Remove no longer useful test compat help\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace {\n require __DIR__.'/../vendor/autoload.php';\n}\n\nnamespace PHPUnit\\Framework\n{\n // compatibility for when these tests are run with PHPUnit<6.0 (which we\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow for the addition of admin assets\n\nI think the `BuildClientView` event should ultimately be split into two\nseparate events for the forum/admin clients, but this is fine for now.\n"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Events;\n\nuse Flarum... | php | chosen |
[
{
"from": "system",
"value": "Clean up some extra spacing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cascade\\Tests\\Exceptions;\n\nuse Cascade\\Exceptions\\ExceptionWithContext;\n\nclass ExceptionWithContextTest extends \\PHPUnit_Framework_TestCase\n{\n public function testItShoul... | php | chosen |
[
{
"from": "system",
"value": "Revert to queueing things one-by-one\n"
},
{
"from": "human",
"value": "<?php\nnamespace CodeDay\\Clear\\Services;\n\nuse CodeDay\\Clear\\Models\\Batch\\Event;\nuse CodeDay\\Clear\\Models\\Batch\\Event\\Registration;\n\nclass Notifications {\n public static functio... | php | chosen |
[
{
"from": "system",
"value": "Remove take method. Merged to Illuminate\\Support\n\nSigned-off-by: Dries Vints <9818b0f8e34f57ac0059d0bc440479771e319166@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Prologue\\Support\\Collection;\n\nuse Illuminate\\Support\\Collection as BaseColle... | php | chosen |
[
{
"from": "system",
"value": "Remove requirements for unused code.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Hayttp package.\n *\n * @package Hayttp\n * @author Kim Ravn Hansen <moccalotto@gmail.com>\n * @copyright 2016\n * @license MIT\n */\n\nnamespace Moccal... | php | chosen |
[
{
"from": "system",
"value": "Use namespace so we avoid ambiguous class name\n"
},
{
"from": "human",
"value": "<?php namespace GameScan\\Core\\Exceptions;\n\nclass Base extends \\Exception\n{\n protected $logException = true;\n\n public function __construct($message = \"\", $code = 0, Exc... | php | chosen |
[
{
"from": "system",
"value": "Correct tests for PHP < 5.6\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n +--------------------------------------------------------------------------+\n | Zephir |\n | Copyright (c) 2013-present Ze... | php | chosen |
[
{
"from": "system",
"value": "Make sure country userinfo response is valid.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Http\\Transformers;\n\nuse Northstar\\Models\\User;\nuse League\\Fractal\\TransformerAbstract;\n\nclass UserInfoTransformer extends TransformerAbstract\n{\... | php | chosen |
[
{
"from": "system",
"value": "Add override listener to Dashboard.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Octo\\System\\Admin\\Controller;\n\nuse b8\\Config;\nuse Octo\\Admin\\Controller;\nuse Octo\\Event;\nuse Octo\\Store;\nuse Octo\\System\\Model\\Setting;\n\nclass DashboardContr... | php | chosen |
[
{
"from": "system",
"value": "Add optional filters array to method signature.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful;\n\ninterface RegistryInterface\n{\n\tpublic function get();\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Plummer\\Calendar... | php | chosen |
[
{
"from": "system",
"value": "Send email to hippo when user acknowledge his/her AWS.\n"
},
{
"from": "human",
"value": "<?php\ninclude_once( \"header.php\" );\ninclude_once( \"methods.php\" );\ninclude_once( 'tohtml.php' );\ninclude_once( \"check_access_permissions.php\" );\nmustHaveAnyOfTheseRo... | php | chosen |
[
{
"from": "system",
"value": "Fix URL and changed to google.com\n"
},
{
"from": "human",
"value": "<?php\n\theader(\"Refresh: 300\");\n\n\t$now = date(\"Y-m-d H:i:s\");\n\t$local_ip = getHostByName(getHostName());\n\t$ping_result = exec(\"ping -n 1 googlaasdasdase.com | FIND \\\"TTL=\\\"\");\n\t... | php | chosen |
[
{
"from": "system",
"value": "Sort packs newest to oldest.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse AppBundle\\Entity\\Cycle;\nuse AppBundle\\Entity\\Pack;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\EntityRepository;\nuse Doctrine\\ORM\\Quer... | php | chosen |
[
{
"from": "system",
"value": "FIX Ignore abstract BuildTasks when loading commands\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverLeague\\Console\\Framework\\Loader;\n\nuse SilverLeague\\Console\\Command\\Factory;\nuse SilverLeague\\Console\\Framework\\ConsoleBase;\nuse SilverStripe... | php | chosen |
[
{
"from": "system",
"value": "Return false if not successful\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jwpage\\Clickatell\\Response;\n\nclass QueryMsg extends AbstractResponse\n{\n public function getStatus()\n {\n preg_match('/Status: (.*?)$/', $this->parsedResponse[0][... | php | chosen |
[
{
"from": "system",
"value": "Add wrapper functions for table fields\n"
},
{
"from": "human",
"value": "<?php\r\n $dir = \"sqlite:../db/home.db\";\r\n $pdo = new PDO($dir);\r\n $stmt = $pdo->query(\"SELECT * FROM heater WHERE heater_id = 1\");\r\n $row = $stmt->fetchObject();\r\n\r\n functi... | php | chosen |
[
{
"from": "system",
"value": "Remove alias from service provider.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Support;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MessagesService... | php | chosen |
[
{
"from": "system",
"value": "Remove unneccessary @suppress after phan-taint-check-plugin upgrade\n\nBug: T201565\nChange-Id: Ib35e55e5bebbb7dc6ca8ef4f08b519ec2065037b\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This class formats log entries for thanks\n */\nclass ThanksLogFormatter exten... | php | chosen |
[
{
"from": "system",
"value": "Remove default value for properties.\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Retrinko\\CottonTail\\Message\\Messages;\n\n\nuse Retrinko\\CottonTail\\Exceptions\\MessageException;\nuse Retrinko\\CottonTail\\Message\\MessageInterface;\nuse Retrinko\\Co... | php | chosen |
[
{
"from": "system",
"value": "Remove the -l option from the CoffeeScript filter because it breaks\n"
},
{
"from": "human",
"value": "<?php namespace Sprockets\\Filter;\n\nuse Sprockets\\Asset;\nuse Sprockets\\TmpFile;\n\nclass CoffeeScriptFilter extends BaseProcessFilter {\n\n\tprotected $bare =... | php | chosen |
[
{
"from": "system",
"value": "Update the error messaging to be more useful and use the correct exit codes\n"
},
{
"from": "human",
"value": "<?php\nrequire_once __DIR__ . '/../../abstract.php';\n\nclass Meanbee_Configpoweredcss_Regenerate extends Mage_Shell_Abstract\n{\n\n /**\n * Run scr... | php | chosen |
[
{
"from": "system",
"value": "Add email to contact form"
},
{
"from": "human",
"value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_POST['email'],FILTER_... | php | chosen |
[
{
"from": "system",
"value": "Use 'escapeValue' to escape the new line character \n\nWe need to escape the new line character as well as per RFC : http://tools.ietf.org/html/rfc5545#section-3.3.11"
},
{
"from": "human",
"value": "<?php\n\nnamespace Eluceo\\iCal\\Property\\Event;\n\nuse Eluceo\\i... | php | chosen |
[
{
"from": "system",
"value": "Throw an error for boolean properties of associated entities\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EasyCorp\\Bundle\\EasyAdminBundle\\Field\\Configurator;\n\nuse EasyCorp\\Bundle\\EasyAdminBundle\\Context\\AdminContext;\nuse EasyCorp\\Bundle\\EasyAdm... | php | chosen |
[
{
"from": "system",
"value": "Add test for deserializing null body\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace WoohooLabs\\Yin\\Tests\\JsonApi\\Serializer;\n\nuse InvalidArgumentException;\nuse PHPUnit\\Framework\\TestCase;\nuse WoohooLabs\\Yin\\JsonApi\\Seria... | php | chosen |
[
{
"from": "system",
"value": "Change to handling of links to allow for no link\n"
},
{
"from": "human",
"value": "<?php\n\nclass CarouselSlide extends DataObject {\n\tprivate static $db = array(\n\t\t'Title' => 'Varchar(100)',\n\t\t'External' => 'Boolean',\n\t\t'ExternalLink' => 'Varchar(200)',\... | php | chosen |
[
{
"from": "system",
"value": "Load fixtures for the Abac tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpAbac\\Test;\n\nuse PhpAbac\\Abac;\n\nclass AbacTest extends \\PHPUnit_Framework_TestCase {\n public function setUp() {\n new Abac(new \\PDO(\n 'mysql:host=... | php | chosen |
[
{
"from": "system",
"value": "Remove workaround now that we are using PHP 5.0.5\n\n\nsvn commit r1967\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Swat/SwatPage.php';\nrequire_once 'XML/RPC2/Server.php';\n\n/**\n * Base class for an XML-RPC Server\n *\n * The XML-RPC server acts as ... | php | chosen |
[
{
"from": "system",
"value": "Make sure indicator for number of pending elements reflects the actual query\n"
},
{
"from": "human",
"value": "<?php\nnamespace Youkok\\Processors\\Admin;\n\nuse Youkok\\Models\\Element;\n\nclass PendingProcessor\n{\n public static function run()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add parenting logic for pages.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BruceCms\\Pages;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Knp\\Menu\\MenuFactory;\nuse Knp\\Menu\\Matcher\\Matcher;\nuse Knp\\Menu\\Renderer\\ListRenderer;\n\nclass Page e... | php | chosen |
[
{
"from": "system",
"value": "Update to use Session helper\n\nSession no longer available with $request\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Part of the CSCMS package by Coder Studios.\n *\n * NOTICE OF LICENSE\n *\n * Licensed under the terms of the MIT license https://opensource.o... | php | chosen |
[
{
"from": "system",
"value": "Check if there's a narrative before displaying a Read More link.\n"
},
{
"from": "human",
"value": "<?php\n\n$title = __('Neatline | Browse Exhibits');\n\necho head(array(\n 'title' => $title,\n 'content_class' => 'neatline'\n)); ?>\n\n<div id=\"primary\">\n\n <?... | php | chosen |
[
{
"from": "system",
"value": "III-2779: Fix exception about enums that can't be serialized, ensure native sapiVersion is serialized instead\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\SavedSearches\\Command;\n\nuse CultuurNet\\UDB3\\ValueObject\\SapiVersion;\nuse Valu... | php | chosen |
[
{
"from": "system",
"value": "OEE-1073: Create field in Multicurrency for fixed rate\n- add field to entity\n- add migration\n"
},
{
"from": "human",
"value": "<?php\nnamespace Oro\\Bundle\\CurrencyBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\nuse Oro\\Bundle\\DataAuditBundle\\Metadat... | php | chosen |
[
{
"from": "system",
"value": "Remove priority pass config for broker pass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Wisembly\\AmqpBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\De... | php | chosen |
[
{
"from": "system",
"value": "Add row to grid for content\n"
},
{
"from": "human",
"value": "\n <?php\n $blog_count = count($blog) - 1;\n foreach($blog as $key => $blog_item): ?>\n <!--// Main Content -->\n <div class=\"large-9 columns<?php if($blog_count == $key){ echo \" end\"... | php | chosen |
[
{
"from": "system",
"value": "Make land explored notification also go by mail\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Notifications\\Dominion;\n\nuse Illuminate\\Notifications\\Notification;\nuse OpenDominion\\Models\\Dominion;\n\nclass LandExploredNotification extend... | php | chosen |
[
{
"from": "system",
"value": "Add persistent fix test name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Itkg\\Core package.\n *\n * (c) Interakting - Business & Decision\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w... | php | chosen |
[
{
"from": "system",
"value": "Fix default transporter additional properties\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Ship\\Transporters;\n\nuse App\\Ship\\Parents\\Transporters\\Transporter;\n\n/**\n * Class DataTransporter\n *\n * @author Johannes Schobel <johannes.schobel@goo... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to include a single named parameter after command name\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Onion\\Console\\Router;\n\nuse Onion\\Framework\\Console\\Interfaces\\ArgumentParserInterface;\nuse Onion\\Framework... | php | chosen |
[
{
"from": "system",
"value": "Fix Trl+CC: Fix Directory, wrong language was used\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Directories_Item_Directory_Trl_Cc_Component extends Kwc_Directories_Item_Directory_Cc_Component\n{\n protected function _getChainedComponent()\n {\n r... | php | chosen |
[
{
"from": "system",
"value": "Add getPriority to the asset interface"
},
{
"from": "human",
"value": "<?php\nnamespace Bolt\\Asset;\n\n/**\n * Interface for assets.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\ninterface AssetInterface\n{\n /**\n * Convert object into a usab... | php | chosen |
[
{
"from": "system",
"value": "Make contact us page link to defuse.ca's page.\n"
},
{
"from": "human",
"value": "<div class=\"box\">\n<div class=\"padding\">\n<h1>Contacting CrackStation</h1>\n\n<p>\n<strong>Please Note:</strong> I currently do not have time to reply to\nemail. If you have feedba... | php | chosen |
[
{
"from": "system",
"value": "Add dc terms subject keywords\n\nhttps://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/subject"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Embed\\Detectors;\n\nclass Keywords extends Det... | php | chosen |
[
{
"from": "system",
"value": "Add a missing newline character\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kevinrob\\GuzzleCache;\n\n\nclass KeyValueHttpHeader\n{\n const REGEX_SPLIT = '/^([^=]*)=(.*)$/';\n\n /**\n * @var string[]\n */\n protected $values = [];\n\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow app to be flushed during teardown.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Testbench;\n\nuse Orchestra\\Testbench\\Traits\\ApplicationClientTrait;\nuse Orche... | php | chosen |
[
{
"from": "system",
"value": "Add methods for arguments/options and text output.\n"
},
{
"from": "human",
"value": "<?php namespace Limoncello\\Contracts\\Commands;\n\n/**\n * Copyright 2015-2017 info@neomerx.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you m... | php | chosen |
[
{
"from": "system",
"value": "Fix username property in example admin identity\n"
},
{
"from": "human",
"value": "<?php\n\n/* @var $this \\Magium\\Magento\\Identities\\Admin */\n\n$this->username = 'admin';\n$this->password = 'Password1';"
},
{
"from": "gpt",
"value": "<?php\n\n/* @va... | php | chosen |
[
{
"from": "system",
"value": "Add ‘symbol’ option to PercentType\n\n"
},
{
"from": "human",
"value": "<?php echo $view['form']->block($form, 'form_widget_simple', ['type' => isset($type) ? $type : 'text']) ?> %\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the... | php | chosen |
[
{
"from": "system",
"value": "Add install database to install config\n"
},
{
"from": "human",
"value": "<?php\n\t// Config Generated At: 30-Aug-2016 12:04:23\n\n\treturn [\n\t\t\"installOrder\" => [\n\t\t\t'Install'\n\t\t]\n\t];\n?>\n"
},
{
"from": "gpt",
"value": "<?php\n\treturn [\... | php | chosen |
[
{
"from": "system",
"value": "Change ActivityType::getType() method to a non-static method\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Igniter\\Flame\\ActivityLog\\Contracts;\n\nuse Igniter\\Flame\\ActivityLog\\Models\\Activity;\n\ninterface ActivityInterface\n{\n /**\n * Get ... | php | chosen |
[
{
"from": "system",
"value": "[zen-46] Replace use statements in documentation and tests\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 Copyrig... | php | chosen |
[
{
"from": "system",
"value": "Make the is Mobile App smarter\n\nIt will now works even when there is not mobapp GET request on the next pages than the homepage containing the ?mobapp=1 request\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Mobile App class for iOS/Android ap... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Rename the Stack routes to be based on /async/stack/"
},
{
"from": "human",
"value": "<?php\nnamespace Bolt\\Tests\\Controller\\Async;\n\nuse Bolt\\Response\\BoltResponse;\nuse Bolt\\Tests\\Controller\\ControllerUnitTest;\nuse Symfony\\Component\\HttpFoundat... | php | chosen |
[
{
"from": "system",
"value": "Fix the HHVM fail as it converts html entities to codes instead of abreviations.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of slick/filter package\n *\n * For the full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "system",
"value": "Use the TwigTrait for the application.\n\nThis allows to call `$app->render()` directly instead of:\n\n $app[twig]->render();\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Estaty;\n\nuse Silex\\Application as SilexApplication;\n\nclass Application extends... | php | chosen |
[
{
"from": "system",
"value": "Add method to get priorties formatted for use in form drop downs\n"
},
{
"from": "human",
"value": "<?php\n\nclass Priority extends \\Eloquent {\n\tprotected $fillable = ['title'];\n\n\tpublic function tickets()\n\t{\n\t\t$this->hasMany('Ticket');\n\t}\n\n\n}"
},
... | php | chosen |
[
{
"from": "system",
"value": "Fix overflowing text bug by replacing the tags.\n\nFix weird text overflowing bug/glitch by replacing <pre> tags with <div>. This should fix the overflowing/xyz bug/glitch thing since <div> is block-shaped. Not sure about <pre> but I think it's not block-shaped.. Maybe this mig... | php | chosen |
[
{
"from": "system",
"value": "Exclude tests from coverage reports\n"
},
{
"from": "human",
"value": "<?php\n//require_once(dirname(__FILE__) . '/importexport.php');\nrequire_once 'PHPUnit/Framework.php';\nrequire_once dirname(__FILE__) . '/../../src/jackalope/autoloader.php';\n\nabstract class j... | php | chosen |
[
{
"from": "system",
"value": "Fix naming package in laravel 4 service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter;\n\nclass Laravel4ServiceProvider extends CarpenterServiceProvider\n{\n /**\n * Bootstrap the application events.\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Add Middleware ipCheck to web group\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sarfraznawaz2005\\VisitLog;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass VisitLogServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the ... | php | chosen |
[
{
"from": "system",
"value": "Use a lock file to avoid parallel-saving\n"
},
{
"from": "human",
"value": "<?php\n\n\tinclude(\"init_local.php\");\n\tloadlib(\"wof_save\");\n\tloadlib(\"offline_tasks\");\n\tloadlib(\"uuid\");\n\tloadlib(\"logstash\");\n\n\t$task_id = uuid_v4();\n\t$now = offline_... | php | chosen |
[
{
"from": "system",
"value": "Fix of hardcoded alias on JjUsers.UserUser\n"
},
{
"from": "human",
"value": "<?php\r\nclass UserUser extends JjUsersAppModel {\r\n\tvar $name = 'UserUser';\r\n\t\r\n\tvar $actsAs = array(\r\n\t\t'Containable', \r\n\t\t'Acl' => array('type' => 'requester'), \r\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Enable argument support for `children` field.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Page;\n\nuse Youshido\\GraphQL\\Field\\AbstractField;\nuse Youshido\\GraphQL\\Execution\\ResolveInfo;\nuse Youshido\\GraphQL\\Type\\NonNu... | php | chosen |
[
{
"from": "system",
"value": "Check is object to avoid error on search express entities\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Express\\Search\\Column;\n\nuse Concrete\\Core\\Entity\\Express\\Association;\nuse Concrete\\Core\\Search\\Column\\Column;\nuse Concrete\\Co... | php | chosen |
[
{
"from": "system",
"value": "Increase the expiry time of cache files to 3 hours\n"
},
{
"from": "human",
"value": "<?php\n$url = $_SERVER[\"SCRIPT_NAME\"];\n\n$break = Explode('/', $url);\n\n$file = $break[count($break) - 1];\n\n$cachefile = dirname(__FILE__).'/cached-'.substr_replace($file ,\"... | php | chosen |
[
{
"from": "system",
"value": "Use more precise RegExp for mixin scan\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jade\\Lexer;\n\n/**\n * Class Jade\\Lexer\\MixinScanner.\n */\nabstract class MixinScanner extends CaseScanner\n{\n /**\n * @return object\n */\n protected fun... | php | chosen |
[
{
"from": "system",
"value": "Update the index file to include headers and footer includes\n"
},
{
"from": "human",
"value": "<?php\n\necho \"<p>Who are you? What are you doing here?</p>\";\n"
},
{
"from": "gpt",
"value": "<?php include ('theme/header.php'); ?>\n\n<div class=\"row\">... | php | chosen |
[
{
"from": "system",
"value": "Stop calling apc_store() with an array\n\nSummary: Older versions of APC (AND HPHP) don't like apc_store() being called with an array, so it's easier to just foreach it each time.\n\nTest Plan: make sure nothing breaks\n\nReviewers: epriestley\n\nReviewed By: epriestley\n\nCC: ... | php | chosen |
[
{
"from": "system",
"value": "Add .img-thumbnail to theme screenshot.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "@include('orchestra/control::widgets.menu')\n\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<?php if ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in migration file\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass Create... | php | chosen |
[
{
"from": "system",
"value": "Fix scrutinizer types on builder trait\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\nnamespace Behapi\\Http;\n\ntrait Builder\n{\n /** @var PluginClientBuilder */\n private $builder;\n\n /** @var StreamFactory */\n private $streamFac... | php | chosen |
[
{
"from": "system",
"value": "Change stage -> status column\n"
},
{
"from": "human",
"value": "<?php\n\nRequestHandler::$responseMode = 'csv';\nRequestHandler::respond('projects', array(\n 'data' => array_map(function($Project) {\n preg_match('/^\\s*[^*#]\\s*\\w.*/m', $Project->README,... | php | chosen |
[
{
"from": "system",
"value": "Tidy up the contribute box on the front page\n"
},
{
"from": "human",
"value": " <div class=\"contact-info-box info-box\">\n <h1>Contribute to Felix</h1>\n <p>It's easy and everyone is welcome.</p>\n <div class=\"tex... | php | chosen |
[
{
"from": "system",
"value": "Convert dates and times to/from local timezone\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pace\\Soap;\n\nuse Carbon\\Carbon;\nuse SimpleXMLElement;\nuse Pace\\Contracts\\Soap\\TypeMapping;\n\nclass DateTimeMapping implements TypeMapping\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add test on getGeoManager in GenericServices.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ChangeTests\\Rbs\\Generic;\n\nclass GenericServicesTest extends \\ChangeTests\\Change\\TestAssets\\TestCase\n{\n\t/**\n\t * @return \\Rbs\\Generic\\GenericServices\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Add Persian news agency again\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'http://edition.cnn.com/robots.txt',\n 'http://www.bbc.co.uk/robots.txt',\n 'http://www.reuters.com/robots.txt',\n 'http://www.ap.org/robots.txt',\n 'http://www.upi.c... | php | chosen |
[
{
"from": "system",
"value": "Add shortcut save() function for logging\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n *\n * @author Knut Kohl <github@knutkohl.de>\n * @copyright 2012-2013 Knut Kohl\n * @license GNU General Public License http://www.gnu.org/licenses/gpl.txt\n * @v... | php | chosen |
[
{
"from": "system",
"value": "Make notices.hide_after column retain timezone information\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\nuse Phinx\\Util\\Literal;\n\nclass CreateNoticesTable extends AbstractMigration {\n\tpublic function change() {\n\t\t$thi... | php | chosen |
[
{
"from": "system",
"value": "Allow controller to hold editor format value.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Story\\Routing\\Api;\n\nuse Illuminate\\Routing\\Controllers\\Controller;\nus... | php | chosen |
[
{
"from": "system",
"value": "Clean up the content blocks frontent config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\ContentBlocks;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Allow relationship to be null\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of JSON-API.\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 distribu... | php | chosen |
[
{
"from": "system",
"value": "Use a low cost in BCrypt test, improves test speed\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.\n * @license GNU General Public License version 2 or later; see LICENSE\n */\... | php | chosen |
[
{
"from": "system",
"value": "ENHANCEMENT: Test for additional fields existing of NearestPoiPage\n"
},
{
"from": "human",
"value": "<?php\n\n\tclass NearestPOIPageTest extends SapphireTest {\n\t\tpublic function testGetCMSFields() {\n\t\t\t$this->markTestSkipped('TODO');\n\t\t}\n\n\t\tpublic fun... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with $errors->has(), presumably introduced with Laravel framework package upgrade\n"
},
{
"from": "human",
"value": "@if (App::environment() !== 'production')\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <div class=\"alert alert-w... | php | chosen |
[
{
"from": "system",
"value": "Define extra fields setValue() and getValue() on formelements\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Doctrine Admin\n * Copyright (C) 2013 Bastiaan Welmers, bastiaan@welmers.net\n * \n * This library is free software; you can redistribute it and/or\n * mod... | php | chosen |
[
{
"from": "system",
"value": "Add function to execute arbitrary shell command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lauft\\Behat\\BashExtension\\Context;\n\n/**\n * BashContext context for Behat BDD tool.\n * Provides bash base step definitions.\n */\nclass BashContext extends Ra... | php | chosen |
[
{
"from": "system",
"value": "Add note that staff knows the password\n"
},
{
"from": "human",
"value": " <div class=\"pure-g centered-row\">\n <div class=\"pure-u-1 pure-u-md-1-2\">\n <div class=\"l-box\">\n <p> <?php echo _('If you do not want to check in, yo... | php | chosen |
[
{
"from": "system",
"value": "Remove wrong semicolon in response body.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n Response body is this:\n\n ['foo' => 'bar'];\n*/\n\n$json = $result->getJSON();\n\n/*\n $json is this:\n\n {\n \"foo\": \"bar\"\n }\n`*/\n"
},
{
"... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.