conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add options parameter to validAuthenticationResponse in Broadcast contract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Contracts\\Broadcasting;\n\ninterface Broadcaster\n{\n /**\n * Authenticate the incoming request for a given channel.\... | php | chosen |
[
{
"from": "system",
"value": "Update command check statut lessons\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UCP\\AbsenceBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Com... | php | chosen |
[
{
"from": "system",
"value": "Reorder routes, put i18n route first\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Umpirsky\\I18nRoutingBundle\\Routing\\Strategy;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\nuse Umpirsky\\I18nRoutingBundle\... | php | chosen |
[
{
"from": "system",
"value": "Split queries to fix dependency\n"
},
{
"from": "human",
"value": "<?php\n\n\tinclude('functions.php');\n\n\t$email = $_POST[\"email\"];\n\tif (!$email) {\n\t\t$email = $_GET[\"email\"];\n\t}\n\tif (!$email) {\n\t\theader(\"HTTP/1.0 400 Bad Request\");\n\t\techo \"F... | php | chosen |
[
{
"from": "system",
"value": "Fix an issue with handling of `null` feed URIs\n\nSummary: Ref T8658. Caught this in the logs. This value may be set to `null`. Handle that gracefully.\n\nTest Plan: Will check logs.\n\nReviewers: btrahan\n\nReviewed By: btrahan\n\nSubscribers: epriestley\n\nManiphest Tasks: T8... | php | chosen |
[
{
"from": "system",
"value": "Allow web command to be used with a non-existent environment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Platformsh\\Cli\\Command;\n\nuse Platformsh\\Cli\\Service\\Url;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Conso... | php | chosen |
[
{
"from": "system",
"value": "Make entity repository services public\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\RadBundle\\DependencyInjection\\Definition;\n\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\nclass DoctrineRepositoryFactory\n{\n public function creat... | php | chosen |
[
{
"from": "system",
"value": "Container: Remove Config to array conversion.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Valkyrja Framework package.\n *\n * (c) Melech Mizrachi <melechmizrachi@gmail.com>\n *\n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Add new test to test that the Profile show will 404 if there is no access id passed in\nUpdate the invalid Access ID test to actually pass in an actual `accessid` instead of relying on no `accessid` is a invalid accessid\n"
},
{
"from": "human",
"value": "<?php\n\nn... | php | chosen |
[
{
"from": "system",
"value": "Fix so right user token is created"
},
{
"from": "human",
"value": "<?php\n\nnamespace Isotop\\Cargo\\Content;\n\nuse WP_User;\n\nclass User extends Abstract_Content {\n\n\t/**\n\t * User constructor.\n\t *\n\t * @param WP_User|int $user\n\t */\n\tpublic function __... | php | chosen |
[
{
"from": "system",
"value": "Handle array of values for the MAC.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MCordingley\\LaravelSapient\\Middleware;\n\nuse Closure;\nuse Illuminate\\Http\\Request;\nuse MCordingley\\LaravelSapient\\Contracts\\KeyResolver;\nuse ParagonIE\\ConstantTime\... | php | chosen |
[
{
"from": "system",
"value": "Use namespaces in bundler factory\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Kibo\\Phast\\Services\\Bundler;\n\nuse Kibo\\Phast\\Cache\\File\\Cache;\nuse Kibo\\Phast\\Filters\\CSS;\nuse Kibo\\Phast\\Filters\\Service\\CachingServiceFilter;\nuse Kibo\\Pha... | php | chosen |
[
{
"from": "system",
"value": "Add \"it\" as locale alias for it_IT\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n // Native language name\n 'language' => array('it_IT' => 'Italiano'),\n 'englishlang' => array('it_IT' => 'Italian'),\n // Possible locale for language\n ... | php | chosen |
[
{
"from": "system",
"value": "Use HOME env var in php\n"
},
{
"from": "human",
"value": "<?php\n\n// the str_replace was necessary when using a namespace because it was using\n// a backslash in the path instead of forward slash\nspl_autoload_register(function ($class) {\n $include_path = '/Us... | php | chosen |
[
{
"from": "system",
"value": "Add method getQueries to interface for builders\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Gabrieljmj\\Lousql\n * @author Gabriel Jacinto aka. GabrielJMJ <gamjj74@hotmail.com>\n * @license MIT License\n */\n\nnamespace Gabrieljmj\\Lousql\\Builder;\n... | php | chosen |
[
{
"from": "system",
"value": "Add support for suplementary authentication\n"
},
{
"from": "human",
"value": "<?php\nnamespace Auth;\n\nclass Authenticator\n{\n public function login($username, $password)\n {\n return false;\n }\n\n public function is_logged_in($data)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add correct db variable to execute function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb\\ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns information of all users projects\n */\nclass Projects extends \\fennecweb\\WebServic... | php | chosen |
[
{
"from": "system",
"value": "Check for message model in api response\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Response_Api_MessageTest extends CMTest_TestCase {\n\n\tprotected function setUp() {\n\t\tCM_Config::get()->Denkmal_Site->url = 'http://denkmal.test';\n\t}\n\n\tpublic ... | php | chosen |
[
{
"from": "system",
"value": "Check 'id' exists before accessing the value\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fire\\Business\\Model;\n\nclass ExternalAccount {\n protected $properties = array();\n \n public function __construct(\\stdClass $rawData) {\n\n $this-... | php | chosen |
[
{
"from": "system",
"value": "Remove String annotations, use Field instead\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Saxulum\\Tests\\DoctrineMongoDbOdm\\Document;\n\nuse Doctrine\\ODM\\MongoDB\\Mapping\\Annotations as ODM;\n\n/**\n * @ODM\\Document\n */\nclass Page\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add meat to preview link filter\n"
},
{
"from": "human",
"value": "<?php\n\nclass Scrivener {\n\n\tprivate static $_instance;\n\n\tprivate function __construct() {\n\t\tadd_filter( 'preview_post_link', array( $this, 'filter_preview_post_link' ) );\n\t}\n\n\tpublic f... | php | chosen |
[
{
"from": "system",
"value": "Add return type to __toString()\n\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 ... | php | chosen |
[
{
"from": "system",
"value": "Add Change to End Of Array\n"
},
{
"from": "human",
"value": "<?php\n\n$Reference = [\n ['Titre' => 'Telephone1', 'Description' => 'BlaBla1', 'Image' => '', 'Texte' => 'Texte1'];\n\n ['Titre' => 'Telephone2', 'Description' => 'BlaBla2', 'Image' => '', 'Texte' => '... | php | chosen |
[
{
"from": "system",
"value": "Remove debugging code added in bec782c\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AlgoliaSearch;\n\n/**\n * Class Json.\n */\nclass Json\n{\n public static function encode($value, $options = 0)\n {\n $json = json_encode($value, $options);\n\n... | php | chosen |
[
{
"from": "system",
"value": "Add comments to the synchronization action\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Documentation page actions\n */\nclass docPageActions extends dmFrontModuleActions\n{\n public function executeUpdateFromGit(dmWebRequest $request)\n {\n //$this->forwa... | php | chosen |
[
{
"from": "system",
"value": "Extend interface to require a method to create new requests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MetaSyntactical\\Http\\Transport;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\ninterface TransportInterfa... | php | chosen |
[
{
"from": "system",
"value": "Fix function reference in `getSuggestFields`\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Transformers\\Outbound;\n\ntrait HasSuggestFields\n{\n\n protected function getSuggestFields()\n {\n return array_replace_recursive(parent::getSearch... | php | chosen |
[
{
"from": "system",
"value": "Correct validation requirements for sqlite\n"
},
{
"from": "human",
"value": "<?php\nnamespace DreamFactory\\Core\\SqlDb\\Models;\n\n/**\n * SqliteDbConfig\n *\n */\nclass SqliteDbConfig extends BaseSqlDbConfig\n{\n protected $appends = ['database'];\n\n prote... | php | chosen |
[
{
"from": "system",
"value": "Add docblock to add method\n"
},
{
"from": "human",
"value": "<?php namespace Philipbrown\\Math;\n\nclass Math {\n\n public function add($a, $b, $scale = 0)\n {\n return bcadd($a, $b, $scale);\n }\n\n}\n"
},
{
"from": "gpt",
"value": "<?php namespa... | php | chosen |
[
{
"from": "system",
"value": "Fix phone verification country getter issue\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Fort\\Traits;\n\nuse Rinvex\\Fort\\Notifications\\PhoneVerificationNotification;\n\ntrait CanVerifyPhone\n{\n /**\n * Get the... | php | chosen |
[
{
"from": "system",
"value": "Insert into 'entries' using prepared statements, with submission ID\n"
},
{
"from": "human",
"value": "<?php\n\n\n$date =& $_REQUEST[\"date\"];\n$user =& $_REQUEST[\"user\"];\n$priority =& $_REQUEST[\"priority\"];\n$text =& $_REQUEST[... | php | chosen |
[
{
"from": "system",
"value": "Remove underscore prefixes from private functions\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file has been made by pH7 (Pierre-Henry SORIA).\n */\n\nnamespace PFBC\\Element;\n\nuse PFBC\\Validation\\Token as ValidationToken;\nuse PH7\\Framework\\Mvc\\Mod... | php | chosen |
[
{
"from": "system",
"value": "Refactor getting the default team id\n"
},
{
"from": "human",
"value": "<?php\n\n# See application/core/MY_Model for this parent model\nclass Team_stats_model extends Crud_model\n{\n\n public function __construct()\n {\n parent::__construct();\n $this->table... | php | chosen |
[
{
"from": "system",
"value": "Gather alert info and dsiplay on route\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\nuse App\\Alert;\n\n\nclass AlertsController extends Controller\n{\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Rename to new repository name"
},
{
"from": "human",
"value": "<?php\n\n// sample.php -- A command-line executed program that uses REDCapAPI.php\n// via the SampleConnection class.\n//\n// To use this program:\n//\n// -- Configure SampleConnection.php ... | php | chosen |
[
{
"from": "system",
"value": "Add back get and set methods\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Email Interface\n *\n * @package Email\n * @copyright 2013 Common Api. All rights reserved.\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\nnames... | php | chosen |
[
{
"from": "system",
"value": "Add Pimple namespace to cache autoload\n"
},
{
"from": "human",
"value": "<?php\nreturn array(\n\t'Controllers' => __DIR__.'/../../../',\n\t'Module' => __DIR__.'/../../../',\n\t'Smalte' => __DIR__.'/../../../libraries',\n\t'Symfony' => __DIR__.'/../../../libraries',... | php | chosen |
[
{
"from": "system",
"value": "[MediaBundle] Fix typo in template path\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\MediaBundle\\AdminList\\ItemAction;\n\nuse Kunstmaan\\AdminListBundle\\AdminList\\ItemAction\\ItemActionInterface;\n\nclass MediaSelectItemAction implements Item... | php | chosen |
[
{
"from": "system",
"value": "Use connection string returned by PHP, to match mailbox name properly"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\Imap;\n\nclass Server\n{\n protected $hostname;\n protected $port;\n protected $connection;\n protected $mailboxes;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Implement retrieving list of templates\n"
},
{
"from": "human",
"value": "<?php\n/**\n * mailchimp-lib Magento Component\n *\n * @category Ebizmarts\n * @package mailchimp-lib\n * @author Ebizmarts Team <info@ebizmarts.com>\n * @copyright Ebizmarts (http://ebizmarts... | php | chosen |
[
{
"from": "system",
"value": "Fix formatting for PSR-2 compliance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cube\\DoctrineEntityFactory;\nuse Cube\\DoctrineEntityFactory\\Exception\\InvalidArgumentException;\n\n/**\n * Creates an entity directly - without passing any constructor argu... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in file constant.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Uninstallation script for the plugin.\n *\n * @package Google\\Site_Kit\n * @copyright 2020 Google LLC\n * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0\n * @l... | php | chosen |
[
{
"from": "system",
"value": "Fix the path for the migrations\n"
},
{
"from": "human",
"value": "<?php namespace Cerbero\\Auth;\n\nuse Cerbero\\Workflow\\WorkflowServiceProvider;\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Package service provider.\n *\n * @author\tAndrea Marco Sartori... | php | chosen |
[
{
"from": "system",
"value": "Add currency to card registration\n"
},
{
"from": "human",
"value": "<?php\nnamespace AppVentus\\MangopayBundle\\Helper;\n\nuse AppVentus\\MangopayBundle\\AppVentusMangopayEvents;\nuse AppVentus\\MangopayBundle\\Entity\\UserInterface;\nuse AppVentus\\MangopayBundle\... | php | chosen |
[
{
"from": "system",
"value": "Return WorldPay instance from Service Provider\n"
},
{
"from": "human",
"value": "<?php namespace PhilipBrown\\WorldPay;\n\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass WorldP... | php | chosen |
[
{
"from": "system",
"value": "Change Proxy class used to Doctrine\\Common\\Persistence\\Proxy\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Copyright 2013 Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use... | php | chosen |
[
{
"from": "system",
"value": "Update Service Provider to include drivers cofnig\n"
},
{
"from": "human",
"value": "<?php namespace Coreplex\\Meta; \n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MetaServiceProvider extends ServiceProvider {\n\n /**\n * Bootstrap the application eve... | php | chosen |
[
{
"from": "system",
"value": "Send XpayMessageEntity to process() method\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Hicoria\\Xpay;\n\n\nuse Nette\\Object;\n\nclass XpaySmsDispatcher extends Object {\n\n /**\n * @var IMessageProcessor[]\n */\n private $processors;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Check if data is correctly set on Aperture object\n\nSigned-off-by: Tom Van Herreweghe <96835dd8bfa718bd6447ccc87af89ae1675daeca@theanalogguy.be>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\PHPExif\\Adapter\\Native\\Reader\\Mapper\\Exif;\n\nuse Mock... | php | chosen |
[
{
"from": "system",
"value": "Set user as the default role for new accounts\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Models\\User;\nuse App\\Providers\\RouteServiceProvider;\nuse Illuminate\\Auth\\Eve... | php | chosen |
[
{
"from": "system",
"value": "Add comments to getApp for autocomplete\n"
},
{
"from": "human",
"value": "<?php\r\nclass Infusionsoft_AppPool{\r\n\tstatic protected $apps = array();\r\n\t\r\n\tpublic function __construct(){\r\n\t\t\t\r\n\t}\r\n\t\r\n\tpublic static function getApp($appHostname = ... | php | chosen |
[
{
"from": "system",
"value": "Make OS pie chart aware of dates\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('./conf.php');\n\n$sql =\n\t\"SELECT type, sum(cnt) as sumcnt FROM (\n\t\tselect\n\t\t useragent,\n\t\t (SELECT count(*) FROM log WHERE useragent_id=useragent.id) as cnt,\n... | php | chosen |
[
{
"from": "system",
"value": "Add missing phpdoc and improve assertion error messages\n"
},
{
"from": "human",
"value": "<?php\nnamespace Imbo\\Plugin\\MetadataCache\\Cache;\n\nuse PHPUnit_Framework_TestCase;\n\nabstract class CacheTests extends PHPUnit_Framework_TestCase {\n /**\n * @var... | php | chosen |
[
{
"from": "system",
"value": "Move getCacheTags from AbstractStrategy to implementing strategies\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenOrchestra\\ElasticaAdmin\\DisplayBlock;\n\nuse OpenOrchestra\\DisplayBundle\\DisplayBlock\\Strategies\\AbstractStrategy;\nuse OpenOrchestra\\... | php | chosen |
[
{
"from": "system",
"value": "Add twig function is_included to check if a templace that can only be included once is alreayd included\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\Core\\Twig\\Extensions;\n\nuse Twig\\Environment;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig... | php | chosen |
[
{
"from": "system",
"value": "Make exception task filename to be empty string by default\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/* (c) Anton Medvedev <anton@medv.io>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was dist... | php | chosen |
[
{
"from": "system",
"value": "Add red test for store config\n"
},
{
"from": "human",
"value": "<?php\nnamespace tests;\n\nuse PHPUnit\\Framework\\TestCase;\nuse SD\\Currency\\DependencyInjection\\CurrencyProvider;\nuse SD\\Currency\\Repository;\nuse SD\\DependencyInjection\\Container;\n\nclass C... | php | chosen |
[
{
"from": "system",
"value": "Create a dummy index with the same name\n"
},
{
"from": "human",
"value": "<?php\n\nuse PragmaRX\\Tracker\\Support\\Migration;\n\nclass FixAgentName extends Migration\n{\n /**\n * Table related to this migration.\n *\n * @var string\n */\n priv... | php | chosen |
[
{
"from": "system",
"value": "Add github event on gundam\n"
},
{
"from": "human",
"value": "<?php\n /**\n * This file is part of the Certificationy web platform.\n * (c) Johann Saunier (johann_27@hotmail.fr)\n *\n * For the full copyright and license information, please view the LICENSE\n * file... | php | chosen |
[
{
"from": "system",
"value": "Add sales_order_shipment to list of allowed controller actions\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @category Sales\n * @package Quafzi_NoAutoInvoice\n * @license MIT\n * @author Thomas Birke <tbirke@netextreme.de>\n */\nclass Quafzi_NoAutoI... | php | chosen |
[
{
"from": "system",
"value": "Add test for magic value check\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace adrianclay\\git\\Pack;\n\nuse adrianclay\\git\\Repository;\nuse adrianclay\\git\\SHA;\nuse PHPUnit\\Framework\\TestCase;\n\nclass IndexTest extends TestCase\n{\n private $reposit... | php | chosen |
[
{
"from": "system",
"value": "Add webname in event model\n"
},
{
"from": "human",
"value": "<?php\nnamespace CodeDay\\Clear\\Controllers\\Api;\n\nuse \\CodeDay\\Clear\\Models;\n\nclass Events extends ContractualController {\n protected $fields = [\n 'id',\n 'name',\n 'ful... | php | chosen |
[
{
"from": "system",
"value": "Set a created_at date before saving a new request\n"
},
{
"from": "human",
"value": "<?php\n\nclass Meanbee_ShoppingAssistant_Model_Resource_Request extends Mage_Core_Model_Resource_Db_Abstract\n{\n public function _construct()\n {\n $this->_init(\"mean... | 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 * UserRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custo... | php | chosen |
[
{
"from": "system",
"value": "BAP-11412: Implement enable/disable operations\n- CS Fix\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\Helper;\n\nuse Oro\\Bundle\\ConfigBundle\\Config\\ConfigManager;\nuse Oro\\Bundle\\LocaleBundle\\DependencyInjection\\Confi... | php | chosen |
[
{
"from": "system",
"value": "Replace also deferred js url in Integrator Template\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Advanced_IntegratorTemplate_Embed_ContentSender extends Kwf_Component_Abstract_ContentSender_Default\n{\n protected function _render($includeMaster)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix typo on last commit\n"
},
{
"from": "human",
"value": "<?php\nnamespace RocketTheme\\Toolbox\\ArrayTraits;\n\n/**\n * Implements getters and setters.\n *\n * @package RocketTheme\\Toolbox\\ArrayTraits\n * @author RocketTheme\n * @license MIT\n */\ntrait Getters\... | php | chosen |
[
{
"from": "system",
"value": "Use elseif instead of else + nested if\n\nCo-authored-by: Kyle <a691fe45072ea6917fdb7509f2e859c5439778af@users.noreply.github.com>"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of PHP Mess Detector.\n *\n * Copyright (c) Manuel Pichler <mapi@phpm... | php | chosen |
[
{
"from": "system",
"value": "[CleanUp] Remove redundant @version phpdoc tag\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title API Interface\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights ... | php | chosen |
[
{
"from": "system",
"value": "Make test run on PHP 5.3\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * (c) Prezent Internet B.V. <info@prezent.nl>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnames... | php | chosen |
[
{
"from": "system",
"value": "Add related et related_owner methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Amenophis\\Bundle\\SocialBundle\\Twig;\n\nuse Amenophis\\Bundle\\SocialBundle\\Service\\SocialManager;\n\nclass SocialExtension extends \\Twig_Extension\n{\n public functio... | php | chosen |
[
{
"from": "system",
"value": "Add index and rename foreign key.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nreturn [\n [\n 'table' => 'schema_generator_comment',\n 'columns' => [\n 'id' => ['type' => 'integer'],\n 'title' => ['type... | php | chosen |
[
{
"from": "system",
"value": "Use elseif instead of else + nested if\n\nCo-authored-by: Kyle <a691fe45072ea6917fdb7509f2e859c5439778af@users.noreply.github.com>"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of PHP Mess Detector.\n *\n * Copyright (c) Manuel Pichler <mapi@phpm... | php | chosen |
[
{
"from": "system",
"value": "Rename user to owner for model relationship to users\n"
},
{
"from": "human",
"value": "<?php\n\nclass Ticket extends \\Eloquent {\n\tprotected $fillable = [\n\t\t'title',\n\t\t'description',\n\t\t'priority_id',\n\t\t'owner_id'\n\t];\n\n\tpublic function user() {\n\... | php | chosen |
[
{
"from": "system",
"value": "Break the parameters into multiples parameters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Majora\\OAuthServerBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\HttpKernel\\DependencyInje... | php | chosen |
[
{
"from": "system",
"value": "Fix a bug where scheme with uppercase is not handled\n"
},
{
"from": "human",
"value": "<?php\nnamespace HomoChecker\\Model;\n\nuse TrueBV\\Punycode;\n\nclass Status\n{\n public function __construct(HomoInterface $homo, string $icon = null, string $status = null,... | php | chosen |
[
{
"from": "system",
"value": "Update the spam cleaner script as the delete() function no longer removes records from the DB (we want it to).\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Delete spam older than 30 days\n */\n\nif(php_sapi_name() !== 'cli') {\n\tdie('CLI only');\n}\n\ndate_def... | php | chosen |
[
{
"from": "system",
"value": "Remove language from HTML tag\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <title>Speedtests</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <meta name=\"... | php | chosen |
[
{
"from": "system",
"value": "Fix priority on bad request route\n\nHigher put this at the top of the list, we want it last.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\... | php | chosen |
[
{
"from": "system",
"value": "Add parameter to Route::model() to force default behavior of using id\n\nThis is useful, if you generally want to bind with a slug (web interface)\nbut sometimes (e.g. API) want to use id.\n"
},
{
"from": "human",
"value": "<?php namespace Felixkiss\\SlugRoutes;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Make 'errors' top property in response array\n"
},
{
"from": "human",
"value": "<?php\nnamespace GraphQL\\Executor;\n\nuse GraphQL\\Error\\Error;\n\nclass ExecutionResult implements \\JsonSerializable\n{\n /**\n * @var array\n */\n public $data;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Edit \"Service Provider for Game\"\n"
},
{
"from": "human",
"value": "<?php\nnamespace NoughtsAndCrosses\\Game;\nuse NoughtsAndCrosses\\Game\\Paper\\Paper; \nuse NoughtsAndCrosses\\Game\\Pencil\\Pencil; \nuse Pimple\\Container;\nuse Pimple\\ServiceProviderInterface;... | php | chosen |
[
{
"from": "system",
"value": "Update namespaces for beta 8\n\nRefs flarum/core#1235.\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 *... | php | chosen |
[
{
"from": "system",
"value": "Change form label to make more clear what title this is\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Box_TitleEditable_Form extends Kwc_Abstract_Form\n{\n protected function _initFields()\n {\n parent::_initFields();\n $this->add(new Kwf_F... | 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| Pagination Language Lines\n\t|-------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add lightboxUrl like in master\n\nFixes ImageEnlarge in trl\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Trl_ContentSender extends Kwf_Component_Abstract_ContentSender_Lightbox\n{\n protected function _getOptions()\n... | php | chosen |
[
{
"from": "system",
"value": "Add more return types after fixing a typo in my script\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Symfony\\Bridge\\Doctrine\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Symfony\\Component\\Validator\\Mapping\\Class... | php | chosen |
[
{
"from": "system",
"value": "Fix to prevent SDK warning"
},
{
"from": "human",
"value": "<?php\nreturn function ($class) {\n static $map;\n \n if (!$map) {\n $map = include __DIR__ . '/autoload_classmap.php';\n }\n\n if (!isset($map[$class])) {\n return false;\n ... | php | chosen |
[
{
"from": "system",
"value": "Enforce consistant morph table schema\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTag... | php | chosen |
[
{
"from": "system",
"value": "Change scan_type and artifacts fields to enums\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateCtdailyqcTable extends... | php | chosen |
[
{
"from": "system",
"value": "Read more link on search\n"
},
{
"from": "human",
"value": "<div id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\t<header class=\"entry-header\">\n\t\t<h2 class=\"entry-title\"><?php the_title(); ?></h2>\n\t</header>\n\n\t<?php if ( is_search() ) : ?>\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Add the header back in\n"
},
{
"from": "human",
"value": "<?php\n\n$m = new Mustache_Engine([\n 'loader' => new Mustache_Loader_FilesystemLoader(__DIR__.'/build/govuk_template/views/layouts', [\n 'extension' => '.html',\n ]),\n]);\n\n$template = $m->loadTemplat... | php | chosen |
[
{
"from": "system",
"value": "Remove defunct exchanges from example config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CryptoMarketTest;\n\nclass ConfigDataExample\n{\n const MONGODB_URI = 'mongodb://localhost';\n const MONGODB_DBNAME = 'coindata';\n\n const ACCOUNTS_CONFIG = ... | php | chosen |
[
{
"from": "system",
"value": "Change cache folders rights (766 -> 755)\n"
},
{
"from": "human",
"value": "<?php \n\nfunction movim_cache($key)\n{\n\t$arglist = func_get_args();\n\t$key = $arglist[0];\n\t$content = $arglist[1];\n\t\n\t$user = new User();\n\t$login = $user->getLogin();\n\t\n\tif(!... | php | chosen |
[
{
"from": "system",
"value": "Exit early if MySql is not present. Fixes MySql not installed message being displayed when database creation was successful.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Actions;\n\nuse App\\Shell\\Shell;\nuse Symfony\\Component\\Process\\ExecutableFin... | php | chosen |
[
{
"from": "system",
"value": "Define max length for message text\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Form_Message extends CM_Form_Abstract {\n\n protected function _initialize() {\n $this->registerField(new Denkmal_FormField_VenueNearby(['name' => 'venue']));\n ... | php | chosen |
[
{
"from": "system",
"value": "[COM_PUBLICATIONS] Add a new line to a file to conform with tht formatting styles\n"
},
{
"from": "human",
"value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n// No direct access\ndefined('_HZEXEC_') or die();\n\n/**\n * Migration script for adding offering... | php | chosen |
[
{
"from": "system",
"value": "Add missing slash to installPath.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * TODO add file header and class description\n */\n\nnamespace Goatherd\\Phpcs;\n\nuse Composer\\Package\\PackageInterface;\n\nuse Composer\\Installer\\LibraryInstaller;\n\nclass Inst... | php | chosen |
[
{
"from": "system",
"value": "Add test for tiles (correct number)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API;\n\nuse AppBundle\\API\\FlowerColor;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\n\nclass FlowerColorTest extends KernelTestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Rename variables from Gittip to Gratipay\n"
},
{
"from": "human",
"value": "<?php\nrequire '../src/Curl/Curl.php';\n\nuse \\Curl\\Curl;\n\ndefine('GITTIP_USERNAME', 'XXXXXXXXXX');\ndefine('GITTIP_API_KEY', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX');\n\n$data = array(\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.