conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix test suite gettext handler.\n"
},
{
"from": "human",
"value": "<?php\n// This is global bootstrap for autoloading\n$autoloader = require __DIR__.'/../vendor/autoload.php';\n$autoloader->addClassMap([\n 'Functional\\CestAbstract' => __DIR__ . '/Functional/Cest... | php | chosen |
[
{
"from": "system",
"value": "[BUG] Fix txfee API call with added support for old API calls\n[ADD] txfee_auto to API Calls\n[ADD] txfee_manual to API Calls\n[ADD] confirmations to API Calls\n"
},
{
"from": "human",
"value": "<?php\n\n// Make sure we are called from index.php\nif (!defined('SECUR... | php | chosen |
[
{
"from": "system",
"value": "Remove Response::HTTP_BAD_REQUEST for symfony 2.3 compatibility\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the qandidate/symfony-json-request-transformer package.\n *\n * (c) Qandidate.com <opensource@qandidate.com>\n *\n * For the full ... | php | chosen |
[
{
"from": "system",
"value": "Update to ensure button logic only happens on homepage.\n"
},
{
"from": "human",
"value": "{{-- Block Type: Call To Action --}}\n\n<section class=\"segment segment--cta\">\n <h1 class=\"heading -alpha\">{{ $block->block_title }}</h1>\n\n <div class=\"wrapper\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Use $_ENV instead of $_SERVER\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: daniel\n * Date: 08.09.14\n * Time: 16:14\n */\n\nnamespace Cundd\\PersistentObjectStore\\Configuration;\n\n/**\n * Class to read the configuration from co... | php | chosen |
[
{
"from": "system",
"value": "Set file permissions for app.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function registerBundles()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add stripslashes to comment content\n\nCloses #24\n"
},
{
"from": "human",
"value": "<?php\n\ninclude_once($BASE_DIR . 'database/models.php');\n\nfunction getComments($comments) {\n global $smarty;\n $smarty->assign(\"comments\", $comments);\n $smarty->disp... | php | chosen |
[
{
"from": "system",
"value": "Disable cache properly when logged in. Prevents browser using cache for back button which breaks CSRF protection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\Core\\Http\\Middleware;\n\nuse Closure;\nuse BoomCMS\\Core\\Auth\\Auth;\n\nclass DisableHt... | php | chosen |
[
{
"from": "system",
"value": "Move text parts to template"
},
{
"from": "human",
"value": "<?php\nuse OCA\\PasswordPolicy\\Service;\nuse OCA\\PasswordPolicy\\Service\\PasswordPolicyService;\n\n\\OCP\\Util::addScript('passwordpolicy', 'user');\n$tpl = new OCP\\Template('passwordpolicy', 'user');\... | php | chosen |
[
{
"from": "system",
"value": "Handle sugar rest api version properly.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BisonLab\\SugarCrmBundle\\Service;\n\n\n/*\n * Just a service object for the sugar7crm-wrapper class.\n */\n\nclass SugarWrapper \n{\n private $sugar;\n private $opti... | php | chosen |
[
{
"from": "system",
"value": "Make the Cookie TokenStrategy more strict.\n\nRequire SSL if this is configured, and always set httponly.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(\"tokenstrategy.php\");\n\nclass CookieStrategy extends TokenStrategy\n{\n\t/**\n\t * the name for the ... | php | chosen |
[
{
"from": "system",
"value": "Move views folder into src\n"
},
{
"from": "human",
"value": "<?php\n\n// require 'autoload.php';\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nrequire __DIR__.'/config.php';\n\n$app = new Silex\\Application();\n\n// use Symfony\\Component\\Security\\Core\\Enc... | php | chosen |
[
{
"from": "system",
"value": "Add error code 1 to handling of Auth errors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HGG\\Pardot\\ResponseHandler;\n\nuse HGG\\Pardot\\Exception\\RuntimeException;\nuse HGG\\Pardot\\Exception\\AuthenticationErrorException;\n\n/**\n * JsonResponseHandler... | php | chosen |
[
{
"from": "system",
"value": "Fix default redirect code (now 302)\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Patternseek ComponentView library.\n *\n * (c) 2014 Tolan Blundell <tolan@patternseek.net>\n *\n * For the full copyright and license information, please vi... | php | chosen |
[
{
"from": "system",
"value": "Add classes to footer for sizing\n"
},
{
"from": "human",
"value": "<footer class=\"govuk-body-s\">\n <a class=\"read-more\" href=\"<?php the_permalink() ?>\">Read more <span class=\"govuk-visually-hidden\">about this topic</span></a>\n <?php if (get_comments_numb... | php | chosen |
[
{
"from": "system",
"value": "[Security] Fix security.interactive_login event const doc block\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, ple... | php | chosen |
[
{
"from": "system",
"value": "Add imageeditor js and css to filemanager controller\n\n\nFormer-commit-id: 2d15f51f47d689c350a424ade827917f0b9036ef"
},
{
"from": "human",
"value": "<?\nnamespace Concrete\\Controller\\SinglePage\\Dashboard\\Files;\nuse \\Concrete\\Core\\Page\\Controller\\Dashboard... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in Eloquent model update routine.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Workbench;\r\n\r\nclass Starter {\r\n\r\n\t/**\r\n\t * Load the workbench vendor auto-load files.\r\n\t *\r\n\t * @param string $path\r\n\t * @param Illuminat... | php | chosen |
[
{
"from": "system",
"value": "Remove referneces to \"www.phabricator.com\" in libphutil\n\nSummary: This host is out of service.\n\nTest Plan: `git grep -i www.phabricator.com`, triggered exception, read text.\n\nReviewers: chad\n\nReviewed By: chad\n\nSubscribers: epriestley\n\nDifferential Revision: https... | php | chosen |
[
{
"from": "system",
"value": "Fix bug where cached unit test responses aren't serialised\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Geocoder\\Tests;\n\nuse Http\\Client\\HttpClient;\nuse Psr\\Http\\Message\\RequestInterface;\nuse GuzzleHttp\\Psr7\\Response;\nuse GuzzleHttp\\Psr7;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Exclude more categories to make generating site faster\n"
},
{
"from": "human",
"value": "<?php\n get_header();\n\n if (have_posts()) {\n while (have_posts()) {\n the_post();\n?>\n <div class=\"blogPost\">\n <?php the_content(); ?>\n\n<?php\n ... | php | chosen |
[
{
"from": "system",
"value": "Implement fully working product search.\n"
},
{
"from": "human",
"value": "<?php\nApp::uses('AppController', 'Controller');\n\n/**\n * Products controller\n *\n * Handles requests about products.\n */\nclass ProductsController extends AppController\n{\n\t/**\n\t * C... | php | chosen |
[
{
"from": "system",
"value": "Add test for invalid width\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AydinHassan\\CliMdRendererTest\\Renderer;\n\nuse AydinHassan\\CliMdRenderer\\CliRenderer;\nuse AydinHassan\\CliMdRenderer\\Renderer\\HorizontalRuleRenderer;\nuse AydinHassan\\CliMdRende... | php | chosen |
[
{
"from": "system",
"value": "Use the common mailer in the sendQueuedEmails cronjob\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Core\\Cronjobs;\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 tha... | php | chosen |
[
{
"from": "system",
"value": "[VarDumper] Allow dd() to be called without arguments\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... | php | chosen |
[
{
"from": "system",
"value": "Add a mime type for binary files\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ojs\\ImportBundle\\Helper;\n\nclass FileHelper {\n public static $mimeToExtMap = [\n 'application/pdf' => 'pdf',\n 'image/jpeg' => 'jpg',\n 'app... | php | chosen |
[
{
"from": "system",
"value": "Make Primitive\\Num tests much more nicer\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace test\\Primitive;\n\nuse Widmogrod\\Helpful\\SetoidLaws;\nuse Widmogrod\\Primitive\\Num;\n\nclass NumTest extends \\PHPUnit\\Framework\\TestCas... | php | chosen |
[
{
"from": "system",
"value": "Make admin feedback easier understandable\n"
},
{
"from": "human",
"value": "<div class=\"update\" data-productname=\"<?php p($_['productName']) ?>\" data-version=\"<?php p($_['version']) ?>\">\n\t<div class=\"updateOverview\">\n\t\t<h2 class=\"title\"><?php p($l->t... | php | chosen |
[
{
"from": "system",
"value": "Set nomination limit for dev user in seeder\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Auth\\Authenticatable;\nuse Illuminate\\Auth\\Passwords\\CanResetPassword;\n\nclass UsersTableSeeder extends Seeder\n{\n /**... | php | chosen |
[
{
"from": "system",
"value": "Improve the game database update to new version\n\n- add old version check for not do incompatible update\n- converted to utf8 and added indentation\n"
},
{
"from": "human",
"value": "<?php\r\nif((empty($int_security)) OR ($int_security!=$game_se_code)){\r\n\theader... | php | chosen |
[
{
"from": "system",
"value": "Update gateways to use new sendData method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Mollie\\Message;\n\n/**\n * Mollie Abstract Request\n */\nabstract class AbstractRequest extends \\Omnipay\\Common\\Message\\AbstractRequest\n{\n protected $... | php | chosen |
[
{
"from": "system",
"value": "Use default Symfony HTTP client with profiler enabled\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Secret Santa project.\n *\n * (c) JoliCode <coucou@jolicode.com>\n *\n * For the full copyright and license information, please view the... | php | chosen |
[
{
"from": "system",
"value": "Fix composer helper and comment it\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Application\\Service;\nuse Concrete\\Core\\Page\\Type\\Type;\nuse PageType;\nuse \\Concrete\\Core\\Http\\ResponseAssetGroup;\nuse \\Concrete\\Core\\Page\\Type\\Com... | php | chosen |
[
{
"from": "system",
"value": "Add edit form custom template for content\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenOrchestra\\ModelInterface\\Model;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\n\n/**\n * Interface ContentTypeInterface\n */\ninterface ContentTypeInterfac... | php | chosen |
[
{
"from": "system",
"value": "Make exact_match non-required option (false by default)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CodeTool\\ArtifactDownloader\\Scope\\Config\\Factory;\n\nuse CodeTool\\ArtifactDownloader\\DomainObject\\DomainObjectInterface;\nuse CodeTool\\ArtifactDownl... | php | chosen |
[
{
"from": "system",
"value": "Adjust PhpServer unit test (add \"exec\")\n"
},
{
"from": "human",
"value": "<?php\n\nuse AspectMock\\Test as test;\nclass PHPServerTest extends \\Codeception\\TestCase\\Test\n{\n use \\Robo\\Task\\Development\\loadTasks;\n /**\n * @var \\AspectMock\\Proxy... | php | chosen |
[
{
"from": "system",
"value": "Add yii require to index.php\n"
},
{
"from": "human",
"value": "<?php\n$config = dirname(__FILE__) . '/../app/config/main.php';\nrequire(__DIR__ . '/../vendor/autoload.php');\n\n// remove the following lines when in production mode\ndefined('YII_DEBUG') or define('Y... | php | chosen |
[
{
"from": "system",
"value": "Add feedback to search filter.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UWDOEM\\Framework\\Filter;\n\n\nclass SearchFilter extends Filter {\n\n /**\n * @param \\UWDOEM\\Framework\\Row\\RowInterface[] $rows\n */\n protected function setOpti... | php | chosen |
[
{
"from": "system",
"value": "Allow description to be null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vision\\Hydrator\\Strategy;\n\nuse Vision\\Annotation\\Property;\nuse Vision\\Annotation\\WebEntity;\nuse Zend\\Hydrator\\Strategy\\StrategyInterface;\n\nclass WebEntitiesStrategy imp... | php | chosen |
[
{
"from": "system",
"value": "Fix to allow to show multiple times the auth0 login form in the same page\n"
},
{
"from": "human",
"value": "<?php\nfunction renderAuth0Form($canShowLegacyLogin = true)\n{\n if(is_user_logged_in())\n return;\n\n $wordpress_login_enabled = $canShowLegacy... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in RevisionUpgrade command.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sofa\\Revisionable\\Laravel;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Composer;\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass RevisionsUpgradeCommand... | php | chosen |
[
{
"from": "system",
"value": "Add getTeamByName / getTeamById helpers\n\n\n\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace NewTwitchApi\\Resources;\n\nuse GuzzleHttp\\Exception\\GuzzleException;\nuse Psr\\Http\\Message\\ResponseInterface;\n\nclass TeamsApi exte... | php | chosen |
[
{
"from": "system",
"value": "Fix $this usage when in Closure\n"
},
{
"from": "human",
"value": "<?php namespace Krucas\\Notification;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass NotificationServiceProvider extends ServiceProvider\r\n{\r\n /**\r\n * Indicates if loading ... | php | chosen |
[
{
"from": "system",
"value": "Use identical parent getData() function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\AuthorizeNet\\Message;\n\n/**\n * Authorize.Net AIM Purchase Request\n */\nclass AIMPurchaseRequest extends AIMAuthorizeRequest\n{\n protected $action = 'AUTH_C... | php | chosen |
[
{
"from": "system",
"value": "Fix className bug: should not be shorten\n"
},
{
"from": "human",
"value": "<?php\nnamespace PureBilling\\Bundle\\SDKBundle\\Store\\Base;\n\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse PureMachine\\Bundle\\SDKBundle\\Store\\Annotation as Store;\nu... | php | chosen |
[
{
"from": "system",
"value": "Make things more useful (NetworkIn/Out still seems weird\n"
},
{
"from": "human",
"value": "<?php\nreturn [\n // we are only going to care about metrics dimensions with have these whitelisted dimensions\n 'Dimensions' => [\n \"InstanceId\" => true,\n ... | php | chosen |
[
{
"from": "system",
"value": "Reduce uniqueness constraint on labels table\n\nIn the WebDewey data we have cases where prefLabel = altLabel\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n// use Jensseger... | php | chosen |
[
{
"from": "system",
"value": "Change the way of parsing method comments to make the app starting displaying proper comments\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: alex\n * Date: 20/10/2016\n * Time: 23:36\n */\n\nnamespace vr\\api\\doc\\components;\n\nus... | php | chosen |
[
{
"from": "system",
"value": "Add test of YleNowplaying object\n"
},
{
"from": "human",
"value": "#!/usr/bin/php -q\n<?php\nrequire_once('../lib/YleApi.php');\n\nif (file_exists(\"config.ini\"))\n\t$config=parse_ini_file(\"config.ini\", true);\nelse\n\tdie(\"Configuration file config.ini is miss... | php | chosen |
[
{
"from": "system",
"value": "Make this slightly less as simple as possible\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... | php | chosen |
[
{
"from": "system",
"value": "Remove footer to avoid floating footer\n"
},
{
"from": "human",
"value": "<?php get_header();?>\n\n<?php $catid = get_cat_id( single_cat_title(\"\",false) );?>\n\n<head><title>Search result for <?php echo '\"' . $_GET['s'] . '\"' . ' - '; bloginfo('name'); ?></tit... | php | chosen |
[
{
"from": "system",
"value": "[CS] Fix some style issues from scrutinizer\n"
},
{
"from": "human",
"value": "<?php\nnamespace SmoothPhp\\CommandBus;\n\n\nuse Ramsey\\Uuid\\Uuid;\nuse SmoothPhp\\Contracts\\CommandBus\\Command;\n\n/**\n * Class Command\n * @package SmoothPhp\\CommandBus\n * @autho... | php | chosen |
[
{
"from": "system",
"value": "Add methods to split text into words\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This class should represent the whole text\n *\n * @author newloki\n */\nnamespace \\Language\\Text;\nuse \\Language\\Languages\\LanguagesAbstract;\n\nclass Text\n{\n /** @var ... | php | chosen |
[
{
"from": "system",
"value": "Add db migrate to laravel template\n"
},
{
"from": "human",
"value": "<?php\n/* (c) Anton Medvedev <anton@medv.io>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace ... | php | chosen |
[
{
"from": "system",
"value": "BAP-1365: Develop WAMP server application for broadcasting client data updates (PHP side)\n- session entity added\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\UserBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * @ORM\\Table(name... | php | chosen |
[
{
"from": "system",
"value": "Set the host for the cli command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Forex\\Bundle\\EmailBundle\\Command;\n\nuse Forex\\Bundle\\EmailBundle\\Entity\\EmailMessage;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Add test for duplicate tags creation\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Model_TagTest extends CMTest_TestCase {\n\n protected function tearDown() {\n CMTest_TH::clearEnv();\n }\n\n public function testCreate() {\n $tag =... | php | chosen |
[
{
"from": "system",
"value": "Fix CC field on acknowledgement email\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Mail;\n\nuse App\\Models\\DocuSignEnvelope;\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse Illuminate\... | php | chosen |
[
{
"from": "system",
"value": "Update migration script for topics.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Diskus\\Model\\Topic;\n\nclass Diskus_Create_Topics {\n\n\t/**\n\t * Make changes to the database.\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix call to deprecated getUsername() in tests\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 LICEN... | php | chosen |
[
{
"from": "system",
"value": "Update the function which return the unique colors\n"
},
{
"from": "human",
"value": "<?php\n\n class Database_operations {\n private $database;\n private $bird_db;\n \n // Class constructor\n function __construct($bird) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use short array syntax in array\n"
},
{
"from": "human",
"value": "<?php\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nrequire 'vendor/autoload.php';\n\n$app = new Silex\\Application();\n\n$app->get('/', function() {\n return \"M... | php | chosen |
[
{
"from": "system",
"value": "Add tests with 100% coverage for Algorithm\\Complete"
},
{
"from": "human",
"value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\Directed;\n\nuse Fhaculty\\Graph\\Graph;\n\nuse Fhaculty\\Graph\\Loader\\CompleteGraph;\n\nclass CompleteGraphTest extends TestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix test with DB fixtures\n"
},
{
"from": "human",
"value": "<?php\n/**\n * BasicTest.php\n * Copyright (c) 2020 james@firefly-iii.org\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistrib... | php | chosen |
[
{
"from": "system",
"value": "Add tra to plugin info\n\ngit-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@31062 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project\n// \n// All Rights Reser... | php | chosen |
[
{
"from": "system",
"value": "Fix test for page renderadapter meta trimming\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_RenderAdapter_PageTest extends CMTest_TestCase {\n\n public function testFetchDescriptionKeywordsTitle() {\n $render = new CM_Frontend_Render();\n\n $... | php | chosen |
[
{
"from": "system",
"value": "Remove Calendar obligation on construction and add unique id.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendar;\n\nclass Event\n{\n\tprotected $name;\n\n\tprotected $dateStart;\n\n\tprotected $dateEnd;\n\n\tprotected $occurrenceDateStart;\n\n\... | php | chosen |
[
{
"from": "system",
"value": "Create table with InnoDB engine\n"
},
{
"from": "human",
"value": "<?php\n\nclass m111006_004445_create_language_table extends CDbMigration\n{\n\tpublic function up()\n\t{\n\t\t$this->createTable('tbl_language', array(\n\t\t\t'id' => 'pk',\n\t\t\t'language' =>... | php | chosen |
[
{
"from": "system",
"value": "Move admin application route to it's own documented method"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lily\\Example\\Application;\n\nuse Lily\\Application\\RoutedApplication;\n\nuse Lily\\Example\\Application\\AdminApplication;\n\nclass FrontEndApplication ... | php | chosen |
[
{
"from": "system",
"value": "Disable import of `content_modified_at` for assets [WEB-1870]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Transformers\\Inbound\\Collections;\n\nuse App\\Transformers\\Datum;\nuse App\\Transformers\\Inbound\\CollectionsTransformer;\n\nclass Asset exte... | php | chosen |
[
{
"from": "system",
"value": "Make the Registry use the manager option\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the PierstovalCharacterManagerBundle package.\n *\n * (c) Alexandre Rock Ancelet <pierstoval@gmail.com>\n *\n * For the full copyright and license infor... | php | chosen |
[
{
"from": "system",
"value": "Add more information to application description"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n *\n * @package In2pire\n * @subpackage MemcachedCli\n * @author Nhat Tran <nhat.tran@inspire.vn>\n */\n\nnamespace In2pire\\Memcached\\Cli;\n\nclass Application... | php | chosen |
[
{
"from": "system",
"value": "Remove type argument for load()"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DocumentManipulationBundle\\Document;\n\nuse Ddeboer\\DocumentManipulationBundle\\File\\File;\nuse Ddeboer\\DocumentManipulationBundle\\Manipulator\\ManipulatorChain;\n\n/**... | php | chosen |
[
{
"from": "system",
"value": "Enable viewcache for test of imagecomponent\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_Image_Crop_ImageComponent extends Kwc_Basic_Image_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret... | php | chosen |
[
{
"from": "system",
"value": "Update path for yii framework.\n"
},
{
"from": "human",
"value": "<?php\n\n$rootPath = dirname(__FILE__);\nrequire($rootPath . '/protected/components/Environment.php');\n\n$host = $_SERVER['HTTP_HOST'];\n$environment = new Environment($host, $rootPath);\n$environmen... | php | chosen |
[
{
"from": "system",
"value": "Stop travis/phpunit complaining about defined constants\n\nLocal phpunit didn't throw this error\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jadu\\Pulsar\\Twig\\Extension;\n\nclass GetConstantExtensionTest extends \\PHPUnit_Framework_TestCase\n{\n publi... | php | chosen |
[
{
"from": "system",
"value": "Use the interface in docblock\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Setting\\Tests;\n\nuse Modules\\Core\\Tests\\BaseTestCase;\n\nabstract class BaseSettingTest extends BaseTestCase\n{\n /**\n * @var \\Modules\\Setting\\Repositories\\Elo... | php | chosen |
[
{
"from": "system",
"value": "Load localization file for the plugin\n"
},
{
"from": "human",
"value": "<?php\r\n/*\r\nPlugin Name: WooCommerce Komoju Gateway\r\nPlugin URI: https://komoju.com\r\nDescription: Extends WooCommerce with Komoju gateway.\r\nVersion: 0.1\r\nAuthor: Komoju\r\nAuthor URI... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in the file header.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Google\\Site_Kit\\Core\\Assets\\External\\GoogleCharts\n *\n * @package Google\\Site_Kit\n * @copyright 2019 Google LLC\n * @license https://www.apache.org/licenses/LICENSE-2.0 ... | php | chosen |
[
{
"from": "system",
"value": "Allow the callback parameter name to be changed in the constructor.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Dingo\\Api\\Http\\ResponseFormat;\n\nclass JsonpResponseFormat e... | php | chosen |
[
{
"from": "system",
"value": "Update to use theme header.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<head>\n <!-- Latest compiled and minified CSS -->\n <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha... | php | chosen |
[
{
"from": "system",
"value": "Change UserProfileView base on logged-in value\n"
},
{
"from": "human",
"value": "<?php\nrequire_once __DIR__ . '/base.php';\nrequire_once __DIR__ . '/text-button.php';\nrequire_once __DIR__ . '/../../lib/utils.php';\n\nclass UserProfileView extends RawDataContainer... | php | chosen |
[
{
"from": "system",
"value": "Allow null reserved_by value for broken post records\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nuse ActiveRecord\\DateTime;\n\n/**\n * @property int $id\n * @property int $post_id\n * @property int $reserved_by\n * @property... | php | chosen |
[
{
"from": "system",
"value": "Allow editor to be customized\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Actions;\n\nuse App\\Shell;\n\nclass OpenInEditor\n{\n public function __invoke()\n {\n app('console')->info('Opening your editor.');\n\n (new Shell)->execIn... | php | chosen |
[
{
"from": "system",
"value": "Set default charset for tables to utf-mb4\n\nThat way *all* Unicode-Characters can find their way into the CFP and not only those of the first Unicode-Plane. Which is missing f.e. the emojis… ;)"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/... | php | chosen |
[
{
"from": "system",
"value": "Fix scenarios where WP_Error::get_error_code() return string\n"
},
{
"from": "human",
"value": "<?php\n\nclass Aplazame_Aplazame_Http_WpClient implements Aplazame_Sdk_Http_ClientInterface {\n\n\tpublic function send( Aplazame_Sdk_Http_RequestInterface $request ) {\n... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Try to send to 0.0.0.0 instead of localhost\"\n\nThis reverts commit 6eea8961661327251a086b8d1fef2813471a6fc8.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\nrequire __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';\n\n... | php | chosen |
[
{
"from": "system",
"value": "Trim initial slash on names\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace StrictPhp\\TypeFinder;\n\nuse phpDocumentor\\Reflection\\DocBlock;\nuse phpDocumentor\\Reflection\\DocBlock\\Tag\\VarTag;\nuse phpDocumentor\\Reflection\\TypeResolver;\nuse phpDocument... | php | chosen |
[
{
"from": "system",
"value": "Add interface functions as abstract on trait to ensure correct operation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vectorface\\Cache\\Common;\n\n/**\n * Wraps (get|set|delete) operations with their multiple counterparts\n *\n * This is useful when the un... | php | chosen |
[
{
"from": "system",
"value": "Fix for moving parent - accidentally moving site! "
},
{
"from": "human",
"value": "<?php\nclass changeSitetreeForm extends SitetreeForm \n{\n public function setup() \n {\n parent::setup();\n \n // set sitetree for form\n $tree = siteManager::getInst... | php | chosen |
[
{
"from": "system",
"value": "Remove some kind of test from HHVM\n\nSeems like someone left a test code here. to bad!\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phansible\\Roles;\n\nuse Phansible\\BaseRole;\nuse Phansible\\Model\\VagrantBundle;\n\nclass Hhvm extends BaseRole\n{\n p... | php | chosen |
[
{
"from": "system",
"value": "Check string is_numeric to stop PHP 7 error\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Palmtree\\Csv\\Normalizer;\n\n/**\n * NumberNormalizer converts numeric strings to ints and floats.\n */\nclass NumberNormalizer extends AbstractNormalizer\n{\n prot... | php | chosen |
[
{
"from": "system",
"value": "Add dependency on Filter to texts module\n"
},
{
"from": "human",
"value": "<?\nclass DependencyTexts extends Dependency\n{\n\tpublic function __construct(){\n\t\t$this->addPackage(\"Db\");\n\t\t$this->addPlugin(\"Host\", \"Host\");\n\t\t$this->addPlugin(\"Language\... | php | chosen |
[
{
"from": "system",
"value": "Add Email Validation for Subscribtions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\n\nclass SubscribtionRequest extends Request\n{\n /**\n * Determine if the user is authorized to make this r... | php | chosen |
[
{
"from": "system",
"value": "Use real model as basis for mock.\n"
},
{
"from": "human",
"value": "<?php if ( ! defined('BASEPATH')) exit('Invalid file request.');\n\n/**\n * OmniLog module tests.\n *\n * @author Stephen Lewis <stephen@experienceinternet.co.uk>\n * @copyright Experien... | php | chosen |
[
{
"from": "system",
"value": "Add mai configuration on filel"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'database' => [\n 'host' => 'localhost',\n 'db_name' => 'test',\n 'user' => 'root',\n 'password' => ''\n ], \n 'locale' => [\n 't... | php | chosen |
[
{
"from": "system",
"value": "Fix routing for first timers wizard"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\User;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\n\nclass WizardController extends Controller\n{... | php | chosen |
[
{
"from": "system",
"value": "Add default_fields to auto create\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\n/**\n * Creates the record if it does not exist and is a string\n *\n * @package Jam\n * @category Associations\n * @author ... | php | chosen |
[
{
"from": "system",
"value": "Add $sectionValue->presentValue() for date formatting\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hub\\Client\\Model;\n\nclass SectionValue\n{\n private $key;\n private $label;\n private $value;\n private $repeat;\n \n\n public function g... | php | chosen |
[
{
"from": "system",
"value": "Add missing use for \\Doctrine\\DBAL\\Cache\\QueryCacheProfile\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Storage\\Database;\n\nuse Bolt\\Events\\FailedConnectionEvent;\nuse Doctrine\\DBAL\\DBALException;\n\n/**\n * Extension of DBAL's Connection cl... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.