conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "(Feature): Add complementary role to aside\n"
},
{
"from": "human",
"value": "<aside class=\"sidebar\">\n <?php dynamic_sidebar('sidebar') ?>\n <?php if (!is_home()) { dynamic_sidebar('page-sidebar'); }\n else { dynamic_sidebar('home-sidebar'); } ?>\n</aside>\n"
... | php | chosen |
[
{
"from": "system",
"value": "Make production environment point to legacy base url\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * Date: 7/24/17\n */\n\nnamespace OK\\Credentials\\Environment;\n\n\nclass ProductionEnvironment extends Environment\n{\n /**\n * Env... | php | chosen |
[
{
"from": "system",
"value": "Update GLPI to 0.91 in unit tests\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('commonfunction.php');\ninclude_once (GLPI_ROOT . \"/config/based_config.php\");\ninclude_once (GLPI_ROOT . \"/inc/dbmysql.class.php\");\ninclude_once (GLPI_CONFIG_DIR . \"/conf... | php | chosen |
[
{
"from": "system",
"value": "Send reset password mail via queue\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Mail;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Mail\\Mailable;\nuse Illuminate\\Queue\\SerializesModels;\n\nclass PasswordResetMail extends Mailable\n{\n use ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"id removed from the form\"\n\nThis reverts commit da4fb1f2d304bce4a3af778137b852fba90169d2.\n"
},
{
"from": "human",
"value": "{!! Honeypot::generate('my_name', 'my_time') !!}\n{!! BootForm::hidden('locale')->value(isset($model->locale) ? $model->locale : c... | php | chosen |
[
{
"from": "system",
"value": "Fix apply microdata for links\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * Date: 2017-02-01\n * Time: 23:06\n */\n\nnamespace mp\\bmicrodata;\n\nuse yii\\widgets\\Breadcrumbs;\n\n/**\n * Class BreadcrumbsMicrodata\n * @package mp\\bmicr... | php | chosen |
[
{
"from": "system",
"value": "Add logging to InfoStart debugging\n"
},
{
"from": "human",
"value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version Functions\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\n// Debugging Func... | php | chosen |
[
{
"from": "system",
"value": "Add validator for new event occurrences IDs in UUID format [WEB-1428]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models\\Web;\n\nuse App\\Models\\WebModel;\n\n/**\n * An occurrence of an event on the website\n */\nclass EventOccurrence extends WebMod... | php | chosen |
[
{
"from": "system",
"value": "Fix labels once and for all.\n"
},
{
"from": "human",
"value": "<?php\n\nclass DownloadStatsPage extends Page {\n}\n\nclass DownloadStatsPage_Controller extends Page_Controller {\n\n\tfunction DownloadStatsChartUrl() {\n\t\t$downloads = DataObject::get(\"DownloadPag... | php | chosen |
[
{
"from": "system",
"value": "Remove iOS app from footer.\n"
},
{
"from": "human",
"value": " <footer>\n <div class=\"footer\">\n <p class=\"text-muted text-center\">\n\t\t\t\t\t<a class=\"text-muted\" href=\"https://play.googl... | php | chosen |
[
{
"from": "system",
"value": "CRM-1835: Create B2B customer identity\n - minor bug fixes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\IntegrationBundle\\Migrations\\Schema\\v1_6;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\\Migrat... | php | chosen |
[
{
"from": "system",
"value": "Add image column to character table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateCharactersTable extends Migration\n{\n\t/**\n\t * Run the migrations.\n\t *\... | php | chosen |
[
{
"from": "system",
"value": "Add version constant and set it to 0.7.1\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Change component category to media\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_FullWidthImage_Component extends Kwc_TextImage_ImageEnlarge_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $re... | php | chosen |
[
{
"from": "system",
"value": "Add persistent flag to reset.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Site Kit Cache CLI Commands\n *\n * @package Google\\Site_Kit\\Core\\CLI\n * @copyright 2021 Google LLC\n * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0\n ... | php | chosen |
[
{
"from": "system",
"value": "Improve IN clause in WHERE\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BW\\BlogBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * PostRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custom\n * repository method... | php | chosen |
[
{
"from": "system",
"value": "Exit with returncode 1 if the composer autoloader is missing\n"
},
{
"from": "human",
"value": "<?php\n\nif (!@include(__DIR__ . '/../vendor/.composer/autoload.php')) {\n die(\n \"You must set up the project dependencies, run the following commands:\"\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant class loader register call\n"
},
{
"from": "human",
"value": "<?php\n\n$loader = require __DIR__.'/../vendor/autoload.php';\n$loader->add('React\\Tests', __DIR__);\n$loader->register();\n"
},
{
"from": "gpt",
"value": "<?php\n\n$loader =... | php | chosen |
[
{
"from": "system",
"value": "Use fake email for test.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass UserTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function run()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add dateOfSale and short version test\n"
},
{
"from": "human",
"value": "<?php \n\nrequire_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload\n\nuse Biblys\\EuroTax as Tax;\n\nclass testEuroTax extends PHPUnit_Framework_TestCase\n{\n... | php | chosen |
[
{
"from": "system",
"value": "Make Event interface method names more relevant.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful\\Event;\n\ninterface EventInterface\n{\n\tpublic function getId();\n\n\tpublic function getStartDateFull();\n\n\tpublic function setStartDateF... | php | chosen |
[
{
"from": "system",
"value": "Update generateToken() to return JSONResponse\n"
},
{
"from": "human",
"value": "<?php\n/**\n * ownCloud - oauth2\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Jonathan Neugebauer\... | php | chosen |
[
{
"from": "system",
"value": "FIX GraphQL test warnings when they do not assert anything\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Github\\Tests\\Api;\n\nclass GraphQLTest extends TestCase\n{\n /**\n * @test\n */\n public function shouldTestGraphQL()\n {\n $ap... | php | chosen |
[
{
"from": "system",
"value": "Test for the full generation of the file"
},
{
"from": "human",
"value": "<?php\n\nnamespace XLSXExporter;\n\nclass CompleteTest extends \\PHPUnit_Framework_TestCase\n{\n\n public function testComplete()\n {\n $a = new ProviderArray([\n [\"fn... | php | chosen |
[
{
"from": "system",
"value": "Fix oversight with placeholder value of variable"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\n/**\n * Handles requests through the browser ie at the live site\n */\nclass WebController extends Contr... | php | chosen |
[
{
"from": "system",
"value": "Remove tabs / spaces mix."
},
{
"from": "human",
"value": "<?php\n\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase {\n\n /**\n * Creates the application.\n *\n * @return Symfony\\Component\\HttpKernel\\HttpKernelInterface\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix the view composer, don't poorly check incident statuses\n"
},
{
"from": "human",
"value": "<?php\n\n\tView::composer('index', function($view) {\n\t\t$date = date('Y-m-d');\n\n\t\t$incidents = Incident::whereRaw('DATE(created_at) = \"' . $date . '\"')\n\t\t\t\t\t... | php | chosen |
[
{
"from": "system",
"value": "Store `Y-m-d H:i:s` into a readable constant name\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Publ... | php | chosen |
[
{
"from": "system",
"value": "Add modal for ipad links\n"
},
{
"from": "human",
"value": "<?php\n\nfunction ipadPopUpScript(){\n?>\n jQuery(\"a[href$='http://bullettstoreat.wpengine.com/p/ipad-magazine-subscription/']\").attr('data-reveal-id', 'ipadPopUp');\n<?php\n}\n\nfunction ipadPopUpModal(... | php | chosen |
[
{
"from": "system",
"value": "Fix PHPCS error with use statement\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Surfnet\\StepupRa\\RaBundle\\Service;\n\nuse Surfnet\\StepupMiddlewareClientBundle\\Configuration\\Service\\InstitutionWithPersonalRaLocationsService as ApiInstitutionWithPerson... | php | chosen |
[
{
"from": "system",
"value": "Add price per layer in order view\n"
},
{
"from": "human",
"value": "<?php\nclass Magebay_Productbuilderpro_Block_Adminhtml_Additional_Product_Info extends Mage_Core_Block_Abstract\n{\n protected function _toHtml()\n {\n $item = $this->getParentBlock()-... | php | chosen |
[
{
"from": "system",
"value": "Support for true as config value (Default config is used if true is passed)"
},
{
"from": "human",
"value": "<?php\n\n/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * a... | php | chosen |
[
{
"from": "system",
"value": "Update FAQ from 1.0 -> 4.0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CodeDay\\Http\\Controllers;\n\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass FaqController extends Controller\n{\n public function getAll()\n {\n $result = '';\n fore... | php | chosen |
[
{
"from": "system",
"value": ":art: Remove the api prefix [ci skip]\n\nThis project is always a API Only so we don't need the prefix anymore.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DoeSangue\\Providers;\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Foundation\\Suppo... | php | chosen |
[
{
"from": "system",
"value": "Add line separator in debug logs\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kanboard\\Subscriber;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\n\nclass BootstrapSubscriber extends \\Kanboard\\Core\\Base implements EventSubscriberI... | php | chosen |
[
{
"from": "system",
"value": "Add small delay to allow PhantomJS to finish its startup process.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP version 5.6\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace Codeup\\Cons... | php | chosen |
[
{
"from": "system",
"value": "Comment Token from future errors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware stack.\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove placeholder for amount to prevent confusion\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Intracto\\SecretSantaBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\O... | php | chosen |
[
{
"from": "system",
"value": "Use PHP date function instead of Javascript.\n"
},
{
"from": "human",
"value": "<footer class=\"footer\">\n <div class=\"container-fluid\">\n <div class=\"copyright pull-right\">\n © <script>document.write(new Date().getFullYear())</script>... | php | chosen |
[
{
"from": "system",
"value": "Revert \"pass dependencies to BacklogCore instance\"\n\nThis reverts commit 997a8cac8f0f3531b1931cfee9b9c64148bc16b0.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Monolog\\Logger;\n\nrequire_once '../vendor/autoload.php';\n\n/* set PHP config defaults */\nini_set... | php | chosen |
[
{
"from": "system",
"value": "Add method to check the validity of a conduit certificate.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Auth\\UserTrait;\nuse Illuminate\\Auth\\UserInterface;\n\nclass User extends Eloquent implements UserInterface{\n\n\t// This is used for password a... | php | chosen |
[
{
"from": "system",
"value": "Remove obsolete passed argument in config() call\n\n… and reuse already instantiated config object variable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drubo\\EventSubscriber;\n\nuse Drubo\\DruboAwareTrait;\nuse Symfony\\Component\\Console\\Event\\ConsoleC... | php | chosen |
[
{
"from": "system",
"value": "Fix the line length in the updated tx rejection code.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DigiTickets\\VerifoneWebService\\Message\\NonSessionBased;\n\nuse DigiTickets\\VerifoneWebService\\Message\\AbstractRemoteResponse;\n\nclass PurchaseResponse ... | php | chosen |
[
{
"from": "system",
"value": "Fix problem with header lenght\n\n"
},
{
"from": "human",
"value": "<?php\nreturn [\n 'settings' => [\n\n 'determineRouteBeforeAppMiddleware' => false,\n 'displayErrorDetails' => true,\n 'events_upload' => __DIR__.'/../public/uploads/evenemen... | php | chosen |
[
{
"from": "system",
"value": "Fix the \"Get Started\" button link\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('page-type')home @stop\n\n@section('content')\n <div class=\"jumbotron jumbotron-home\">\n <h1 class=\"impact-text\">Pack right for every trip.</h1>\... | php | chosen |
[
{
"from": "system",
"value": "Fix bug if no voting\n"
},
{
"from": "human",
"value": "@extends('main')\n@section('head')\n<style>\n.row\n{\n margin-top: 5%;\n}\n#meme\n{\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n#progress\n{\n margin-top: 1%;\n}\n</style>\n@... | php | chosen |
[
{
"from": "system",
"value": "Backgroundjobs: Fix bug in admin interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n* ownCloud\n*\n* @author Jakob Sack\n* @copyright 2012 Jakob Sack owncloud@jakobsack.de\n*\n* This library is free software; you can redistribute it and/or\n* modify it under t... | php | chosen |
[
{
"from": "system",
"value": "Update gateways to use new sendData method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Dummy\\Message;\n\nuse Omnipay\\Common\\Message\\AbstractRequest;\n\n/**\n * Dummy Authorize Request\n */\nclass AuthorizeRequest extends AbstractRequest\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add correct $_SESSION[user] variable to Projects Test Class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb;\n\nclass ProjectsTest extends \\PHPUnit_Framework_TestCase\n{\n const NICKNAME = 'listingProjectsTestUser';\n const USERID = 'listingPr... | php | chosen |
[
{
"from": "system",
"value": "Fix a bug where the correct link wasn't rendering\n\nPreviously, the href tag wasn't being set, at all. So the default route\nwas always being linked to, instead of the add new feed route. This\ncorrects that behaviour.\n"
},
{
"from": "human",
"value": "<?php\n/* v... | php | chosen |
[
{
"from": "system",
"value": "FIX Typo in requirements call to TreeDropdownField javascript resource\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverStripe\\Subsites\\Forms;\n\nuse SilverStripe\\Control\\Controller;\nuse SilverStripe\\Control\\HTTPRequest;\nuse SilverStripe\\Forms\\T... | php | chosen |
[
{
"from": "system",
"value": "III-666: Fix projector for the search readmodel of variations.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Variations\\ReadModel\\Search;\n\nuse Broadway\\EventHandling\\EventListenerInterface;\nuse CultuurNet\\UDB3\\EventHandling\\Delega... | php | chosen |
[
{
"from": "system",
"value": "Remove default setting for TOC hierarchy\n"
},
{
"from": "human",
"value": "<?php\n# THIS ONE DOES NOT HAVE AddPageByArray ANY MORE :-)\n\ninclude(\"../mpdf.php\");\n\n$html_data = file_get_contents(\"body.html\");\n$html = substr($html_data, 12, strlen($html_data)-... | php | chosen |
[
{
"from": "system",
"value": "Use commit URL to get repo name\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace ApiClients\\Client\\Github\\Resource\\Async\\Repository;\n\nuse ApiClients\\Client\\Github\\CommandBus\\Command\\Repository\\DetailedCommitCommand;\nuse Ap... | php | chosen |
[
{
"from": "system",
"value": "Allow singular route model bindings.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvid... | php | chosen |
[
{
"from": "system",
"value": "Implement getArrayCopy method to solve error:\nZend\\\\Stdlib\\\\Hydrator\\\\ArraySerializable::extract expects the provided\nobject to implement getArrayCopy()"
},
{
"from": "human",
"value": "<?php\r\nnamespace WiContactAPI\\V1\\Rest\\Contact;\r\n\r\nuse Doctrine\... | php | chosen |
[
{
"from": "system",
"value": "Mark migration 20180130000000 as repeatable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\n\nuse Concrete\\Core\\Entity\\File\\Version;\nuse Concrete\\Core\\Updater\\Migrations\\AbstractMigration;\n\nclass Ver... | php | chosen |
[
{
"from": "system",
"value": "[Statie] Add github_edit_post_url funciton Twig format\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\Statie\\Templating\\FilterProvider;\n\nuse Symplify\\Statie\\Configuration\\StatieConfiguration;\nuse Symplify\\Statie\\Co... | php | chosen |
[
{
"from": "system",
"value": "Add data to log for spec map\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Humbug\n *\n * @category Humbug\n * @package Humbug\n * @copyright Copyright (c) 2015 Pádraic Brady (http://blog.astrumfutura.com)\n * @license https://github.com/padraic/humbug/... | php | chosen |
[
{
"from": "system",
"value": "Add position and type constants"
},
{
"from": "human",
"value": "<?php\n/**\n * EnablementDateException.php\n *\n * @copyright 2014 George D. Cooksey, III\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\n\nnamespace Veritas\\Iden... | php | chosen |
[
{
"from": "system",
"value": "Document the type of and\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Defuse\\Crypto;\n\nfinal class DerivedKeys\n{\n private $akey = null;\n private $ekey = null;\n\n /**\n * Returns the authentication key.\n */\n public function getAu... | php | chosen |
[
{
"from": "system",
"value": "Use getBlockPrefix instaad of override deprecated getName"
},
{
"from": "human",
"value": "<?php\n\nnamespace {{ ns }};\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Opti... | php | chosen |
[
{
"from": "system",
"value": "Add link to facebook apps page\n"
},
{
"from": "human",
"value": "<?php defined('C5_EXECUTE') or die('Access denied.'); ?>\n<br>\n<div class='control-group'>\n <?=$form->label('apikey', t('Api Key'))?>\n <div class='controls'>\n <?=$form->text('apikey',... | php | chosen |
[
{
"from": "system",
"value": "Add import option to nav\n"
},
{
"from": "human",
"value": "<nav class=\"navigation -white -floating\">\n <a class=\"navigation__logo\" href=\"/\"><span>DoSomething.org</span></a>\n <div class=\"navigation__menu\">\n @if (Auth::user())\n <ul ... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Use a permission check on cms access to determine if people can work with event locations\n"
},
{
"from": "human",
"value": "<?php\n/**\n * An event location is an address where an event can be held, and also pulls\n * in capacity information to a calendar d... | php | chosen |
[
{
"from": "system",
"value": "Add a weekly update job for the endpoint resources\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKer... | php | chosen |
[
{
"from": "system",
"value": "Add test case for search term without hits\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb\\ajax\\listing;\n\nuse \\fennecweb\\WebService as WebService;\n\nclass TraitsTest extends \\PHPUnit_Framework_TestCase\n{\n\n public function testExecute()\... | php | chosen |
[
{
"from": "system",
"value": "Update request handler to pass key value pairs of\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UserControlSkeleton;\n\nclass Requests\n{\n\tpublic $data;\n\n\tpublic function __construct()\n\t{\n\t\t$this->data = $_POST;\n\t}\n}\n"
},
{
"from": "gpt... | php | chosen |
[
{
"from": "system",
"value": "Add validation rules for project creation.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Project extends Eloquent {\n\n\tprotected $fillable = ['title', 'slug'];\n\n\t/**\n\t * @return \\Illuminate\\Database\\Eloquent\\Collection\n\t */\n\tpublic function sprint... | php | chosen |
[
{
"from": "system",
"value": ":package: Remove the parseToPsrUri method from interface.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Risan\\OAuth1\\Signature;\n\nuse Psr\\Http\\Message\\UriInterface;\n\ninterface BaseStringBuilderInterface\n{\n /**\n * Build the signature base st... | php | chosen |
[
{
"from": "system",
"value": "Update fenced block parsing for spec change\n\nSee commonmark/commonmark.js@59980020\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the league/commonmark package.\n *\n * (c) Colin O'Dell <colinodell@gmail.com>\n *\n * Original code based on... | php | chosen |
[
{
"from": "system",
"value": "Fix Attempting to Display Blank Errors\n\nFix attempting to display blank errors in single pages\n\n- This is particularly apparent with the newer `Controller::$error`\n property.\n"
},
{
"from": "human",
"value": "<?php\ndefined('C5_EXECUTE') or die(_(\"Access Den... | php | chosen |
[
{
"from": "system",
"value": "BAP-11622: Optimize email body cleanup process\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Migrations\\Schema\\v1_28;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\\Migration;\nuse Oro\\Bund... | php | chosen |
[
{
"from": "system",
"value": "Fix for icalendar output....... It was being sent twice before... one with \\n and one with \\r\\n. Clear the buffer contents after you get the contents then send it out.\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This template file is for the icalendar an... | php | chosen |
[
{
"from": "system",
"value": "Make unserialization error message more friendly\n"
},
{
"from": "human",
"value": " protected function parsePayload($payload, $force = false)\n {\n if ($force || !isset($this->_payload_array))\n {\n $format = $this->getFormat();\n $serializer = $t... | php | chosen |
[
{
"from": "system",
"value": "Add tag relationship to budget model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Budget extends Model {\n //\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App;\n\nuse Illum... | php | chosen |
[
{
"from": "system",
"value": "Add checkout method to controller extension\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Extension for Content Controller that provide methods such as cart link and category list\n * to templates\n *\n * @author i-lateral (http://www.i-lateral.com)\n * @packa... | php | chosen |
[
{
"from": "system",
"value": "Modify id of textarea with label\n"
},
{
"from": "human",
"value": "<div class=\"field\">\n <label for=\"{{ $name }}\" class=\"label\">{{ title_case($name) }}</label>\n <textarea class=\"textarea @if($errors->has($name)) is-danger @endif\" rows=\... | php | chosen |
[
{
"from": "system",
"value": "[Theme] Make debugging easier by not isolating test client\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Fix issue where disk translatables were not translatable!\n"
},
{
"from": "human",
"value": "<?php\n\nuse Anomaly\\Streams\\Platform\\Database\\Migration\\Migration;\n\n/**\n * Class AnomalyModuleFilesCreateDisksStream\n *\n * @link http://pyrocms.com/\n * ... | php | chosen |
[
{
"from": "system",
"value": "Load and use form_helper's _attributes_to_string\n"
},
{
"from": "human",
"value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\nif(!function_exists('bs_icon'))\n{\n\tfunction bs_icon($sIcon = FALSE)\n\t{\n\t\treturn '<span class=\"g... | php | chosen |
[
{
"from": "system",
"value": "Implement the csv request detector"
},
{
"from": "human",
"value": "<?php\nuse Cake\\Event\\EventManager;\n\nEventManager::instance()->on('Controller.initialize', function (Cake\\Event\\Event $event) {\n $controller = $event->subject();\n if ($controller->componen... | php | chosen |
[
{
"from": "system",
"value": "Use raw parsing mode for asset_compress.ini\n\nThis will avoid parsing issues due to special characters like \"^\" in URLs.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Cake\\Core\\Plugin;\n\n// The function `parse_ini_file` may be dis... | php | chosen |
[
{
"from": "system",
"value": "Use ActiveRecord from root namespace for param typehint\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emergence\\CMS;\n\nclass Page extends AbstractContent\n{\n // ActiveRecord configuration\n public static $defaultClass = __CLASS__;\n public static... | php | chosen |
[
{
"from": "system",
"value": "Fix more broken-ness travis catches but local build does not\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Asana;\n\nuse Asana\\Test\\AsanaTest;\nuse Asana\\Test\\MockRequest;\n\nuse Asana\\Dispatcher\\OAuthDispatcher;\n\n// Extend dispatcher to expose prote... | php | chosen |
[
{
"from": "system",
"value": "Change theme activate route's rule\n"
},
{
"from": "human",
"value": "<?php\n\nRoute::get('@admin/theme/', 'Theme\\Admin\\Theme::index', 'theme_index');\nRoute::get('@admin/theme/activate/{alpha:name}/', 'Theme\\Admin\\Theme::activate', 'theme_activate');\nRoute::ge... | php | chosen |
[
{
"from": "system",
"value": "Fix extending service provider name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Laravel Commentable.\n *\n * (c) Brian Faust <hello@brianfaust.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "system",
"value": "Check for the specific error being thrown\n"
},
{
"from": "human",
"value": "<?php\n\nclass ArraysTest extends \\PHPUnit\\Framework\\TestCase\n{\n public function testFlatten()\n {\n $this->assertEquals(\n ['a', 'b', 'c', 'd'],\n M... | php | chosen |
[
{
"from": "system",
"value": "Change visibility from public to protected \n\nFix problem if this core class is overloaded multiple times (d3config for example)"
},
{
"from": "human",
"value": "<?php\n/**\n * vt Smarty Extension Demo\n * Copyright (C) 2013 Marat Bedoev\n *\n * This file is pa... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with multiple extensions using same hoook\n"
},
{
"from": "human",
"value": "<?php\n\nclass Store_check_ext\n{\n public $name = 'Store Check Payments';\n public $version = '0.0.1';\n public $description = 'Example custom payment gateway for Expres... | php | chosen |
[
{
"from": "system",
"value": "Allow users to manually zoom in on mobile devices."
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"<?= LANG ?>\">\n<head>\n <title><?= PageTitle() ?></title>\n\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initi... | php | chosen |
[
{
"from": "system",
"value": "Add 'removed' to imperative blacklist\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of CaptainHook.\n *\n * (c) Sebastian Feldmann <sf@sebastian.feldmann.info>\n *\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "III-1642: Add support for GIF and PNG image types\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Media\\Properties;\n\nuse InvalidArgumentException;\nuse ValueObjects\\String\\String;\n\nclass MIMEType extends String\n{\n protected static... | php | chosen |
[
{
"from": "system",
"value": "Add breadcrumbs support at the section page.\n"
},
{
"from": "human",
"value": "<?php\n/** @var $this yii\\web\\View */\n/** @var $section common\\models\\Section */\n\nuse yii\\helpers\\Html;\n\n$this->title = $section->parent === null ? $section->title : $section-... | php | chosen |
[
{
"from": "system",
"value": "Disable auto fetch by default\n"
},
{
"from": "human",
"value": "<?php\n///////////////////////////////////////\n// Config.\n\n$config[\"info\"] = array(\n \"debug\" => FALSE,\n \"version\" => \"1.0\",\n \"title\" => \"The OpenGL vs Mesa matrix\",\n \"de... | php | chosen |
[
{
"from": "system",
"value": "ADD campo data_public e reorganização do código\n"
},
{
"from": "human",
"value": "<?php\nrequire_once(\"conexao/conexao.php\");\n\n$titulo = addslashes(trim($_POST['titulo'] ));\n$categoria = addslashes(trim($_POST['categoria']));\n$descricao = addslashes(trim... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Remove safe_twig test missed in rebase\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Tests\\Provider;\n\nuse Bolt\\Tests\\BoltUnitTest;\nuse Bolt\\Twig\\Extension\\BoltExtension;\nuse Bolt\\Twig\\SafeEnvironment;\nuse Twig_Environment as Enviro... | php | chosen |
[
{
"from": "system",
"value": "Set some default connection information to maintain consistency for the dataCollector\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Leezy\\PheanstalkBundle;\n\nuse Pheanstalk_Pheanstalk;\n\nclass ConnectionLocator\n{\n private $connections;\n private $... | php | chosen |
[
{
"from": "system",
"value": "[Security\\Csrf] Split CsrfTokenGenerator into CsrfTokenManager and TokenGenerator\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 lic... | php | chosen |
[
{
"from": "system",
"value": "Add function to calculate distance between points\n"
},
{
"from": "human",
"value": "<?php\nnamespace GeoTools\\Model;\n\nfinal class Point2D\n{\n /**\n * @var double\n */\n public $x;\n\n /**\n * @var double\n */\n public $y;\n\n /**\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.