conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set null renderer with setter injection\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BEAR\\Package\\Provide\\Error;\n\nuse BEAR\\RepositoryModule\\Annotation\\Cacheable;\nuse BEAR\\Resource\\NullRenderer;\nuse BEAR\\Resource\\Res... | php | chosen |
[
{
"from": "system",
"value": "Use doctrine_extensions.default_locale instead of en_US as default locale\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\DoctrineExtensionsBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse DoctrineExtensions\\Sluggable\\SluggableList... | php | chosen |
[
{
"from": "system",
"value": "Change the name to be a unique index.\n\n - this is bad practice, I should have migrated it properly.\n - Also, the reason I'm doing this is to make sure we don't duplicate X&Y.\n - This is just a bad way of doing this all around, but it's cheap.\n - right now cheap is good (gi... | php | chosen |
[
{
"from": "system",
"value": "Update php version for magento connect\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'extension_name' => 'Allopass_Hipay',\n 'summary' => 'Official HiPay Fullservice payment extension.',\n 'description' => 'HiPay Fu... | php | chosen |
[
{
"from": "system",
"value": "Correct UI URL in 'web' command for envs with special characters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Platformsh\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix service provider not found\n"
},
{
"from": "human",
"value": "<?php\n\nabstract class PingpongTestCase extends \\Pingpong\\Testing\\TestCase {\n\n /**\n * @return string\n */\n public function getBasePath()\n {\n return realpath(__DIR__ .... | php | chosen |
[
{
"from": "system",
"value": "Make url class work with composer/folder changes\n"
},
{
"from": "human",
"value": "<?php\r\nnamespace Simox;\r\n\r\nclass Url extends SimoxServiceBase\r\n{\r\n\tprotected $base_uri;\r\n\t\r\n\tpublic function __construct()\r\n {\r\n $this->base_uri = \"/\... | php | chosen |
[
{
"from": "system",
"value": "Set default value of property \"initProperty\" of custom object annotation.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\... | php | chosen |
[
{
"from": "system",
"value": "Check config for jukebox mode\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners;\n\nuse App\\Events\\SomeEvent;\nuse App\\Events\\SongChanged;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\n\nclass Son... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect login url for sign in form on frontpage\n"
},
{
"from": "human",
"value": "<form name=\"loginform\" action=\"<?php bloginfo(\"wpurl\");?>/wp-login.php\" method=\"post\">\n\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo esc_url($_SERVER... | php | chosen |
[
{
"from": "system",
"value": "Fix Visitor class not found\n"
},
{
"from": "human",
"value": "<?php namespace Pingpong\\Admin\\Observers;\n\nclass VisitorObserver {\n\n /**\n * Handle the specified event.\n *\n * @return void\n */\n public function handle()\n {\n $... | php | chosen |
[
{
"from": "system",
"value": "Add test for query string to ruby style converter\n"
},
{
"from": "human",
"value": "<?php\n\nclass ClientPublicConstructorForTest extends \\Delighted\\Client\n{\n public function __construct($arg = [])\n {\n parent::__construct($arg);\n }\n}\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Remove direct, add .htaccess to prevent access to includes\n"
},
{
"from": "human",
"value": "<?php\n\trequire('../sql/database.php');\n\t\n\tif(isset($_GET[\"postid\"])){\n\t\t$postid = $_GET[\"postid\"];\n\t\t\n\t\t$sql = \"DELETE from postdata WHERE POSTID='$post... | php | chosen |
[
{
"from": "system",
"value": "Add in missing src to path. Add project root constant.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the PhpJobQueue package.\n *\n * (c) Mark Fullbrook <mark.fullbrook@gmail.com>\n *\n * For the full copyright and license information, plea... | php | chosen |
[
{
"from": "system",
"value": "Fix syntax error in config and make it \"work\"\n"
},
{
"from": "human",
"value": "<?php\nif (!defined('3DS_DEPOT')) die('Private area.');\n\n// Define DB Constants\ndefine('DB_HOST', 'localhost');\ndefine('DB_USERNAME', 'root');\ndefine('DB_PASSWORD', '');\ndefine(... | php | chosen |
[
{
"from": "system",
"value": "Add fe80::1 to list of loopback addresses.\n\nOn my Mac, my loopback interface is configured (via `/etc/hosts`, out of the box) to have both a link-local and a node-local loopback address, with the link-local address taking precedence:\n\n```\nlo0: flags=8049<UP,LOOPBACK,RUNNIN... | php | chosen |
[
{
"from": "system",
"value": "Add lang_id parameter into breadcrumbs.\n\n:)\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\n\n/* @var $this yii\\web\\View */\n/* @var $model app\\models\\CttStaticdataCountrys */\n\n$this->title = Yii::t('app', 'Update {modelClass}: ', [\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix whoopsie in single quotes vs double quotes example\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nabstract class AbstractTest implements \\mre\\PHPench\\TestInterface\n{\n protected $test;\n\n function setUp(... | php | chosen |
[
{
"from": "system",
"value": "Update priority of Content-Type listener\n\n- Should happen between authorization (-600) and validation (-650)\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause\n * @copyright Copyright (c) 2014 Zen... | php | chosen |
[
{
"from": "system",
"value": "Fix to wholesale group detection\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Package\\CommunityStore\\Src\\CommunityStore\\Utilities;\n\nuse \\Concrete\\Core\\User\\Group\\Group;\nuse \\Concrete\\Core\\Support\\Facade\\Config;\n\nclass Wholesale {\... | php | chosen |
[
{
"from": "system",
"value": "Replace singleton to bind for our main class in service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Edujugon\\GoogleAds\\Providers;\n\nuse Edujugon\\GoogleAds\\Console\\RefreshTokenCommand;\nuse Edujugon\\GoogleAds\\GoogleAds;\nuse Illuminate\\Sup... | php | chosen |
[
{
"from": "system",
"value": "Change class name to match filename\n\nThis is required in Linux for PSR-0."
},
{
"from": "human",
"value": "<?php\n\n/**\n * For Linux filename compatibility, this file needs to be named Sip.php, or\n * camelize() needs to be special cased in setupSubresources\n */... | php | chosen |
[
{
"from": "system",
"value": "Use $app instead of $this\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Layer\\Blog\\BlogPlugin;\nuse Layer\\Cms\\CmsPlugin;\nuse Layer\\Pages\\PagesPlugin;\nuse Layer\\Users\\UsersPlugin;\n\nclass Application extends \\Layer\\Application {\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Set up saml's autoloader before yii's (for tests, too).\n"
},
{
"from": "human",
"value": "<?php\n\n// Define a constant to indicate that this is a testing environment.\ndefine('APPLICATION_ENV', 'testing');\n\nrequire_once __DIR__.'/../utils/Utils.php';\n \n... | php | chosen |
[
{
"from": "system",
"value": "Add debug information to compiler\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Mustache PHP Compiler\n *\n * (c) July 2011 - Manuel Odendahl - wesen@ruinwesen.com\n */\n\nnamespace Mustache;\n\nrequire_once(dirname(__FILE__).'/Parser.php');\nrequire_once(dirna... | php | chosen |
[
{
"from": "system",
"value": "Cover setting the sample rate\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vend\\Statsd;\n\nuse \\PHPUnit_Framework_TestCase as BaseTest;\n\nabstract class MetricInterfaceTest extends BaseTest\n{\n /**\n * @param string $key\n * @param mixed $val... | php | chosen |
[
{
"from": "system",
"value": "Add visually hidden custom classes\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_nu... | php | chosen |
[
{
"from": "system",
"value": "Remove include for migrated logic\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Bootstrapping unit tests.\n *\n * @package HylianShield\n * @subpackage Test\n * @copyright 2013 Jan-Marten \"Joh Man X\" de Boer\n */\n\n// As of PHP 5.5, it is required to have a t... | php | chosen |
[
{
"from": "system",
"value": "Replace & in source with & in output\n\nAvoid accidental HTML entitites by escaping '&' in input with '&' so\nthat the code output can really be treated as raw code.\n"
},
{
"from": "human",
"value": "<?php\n\nclass GoogleCodePrettify {\n\n public static $p... | php | chosen |
[
{
"from": "system",
"value": "Remove check for get_fields to fix loading order\n\nThis is check is unnecessary because the add_filter option just returns false if we're unable to hook into that function.\r\nIt will also cause the plugin to fail if it loads before Advanced Custom Fields"
},
{
"from":... | php | chosen |
[
{
"from": "system",
"value": "MINOR: Remove comments from classifier interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Camspiers\\StatisticalClassifier\\Classifier;\n\ninterface ClassifierInterface\n{\n // public function getSource();\n // public function prepare();\n publ... | php | chosen |
[
{
"from": "system",
"value": "Add code to exception message since name can be null"
},
{
"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 * file tha... | php | chosen |
[
{
"from": "system",
"value": "Update SuiteCRM version to SuiteCRM 7.3.1.\n"
},
{
"from": "human",
"value": "<?php\n if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');\n\n$suitecrm_version = '7.3';\n$suitecrm_timestamp = '2015-08-14 17:00pm';"
},
{
"from": "... | php | chosen |
[
{
"from": "system",
"value": "Allow to use value as closure.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nif (! function_exists('messages')) {\n /**\n * Add a message to the bag.\n *\n * @param string... | php | chosen |
[
{
"from": "system",
"value": "Tidy up of class body\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the nigelgreenway/demander package.\n *\n * (c) Nigel Greenway <nigel_greenway@me.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * fi... | php | chosen |
[
{
"from": "system",
"value": "Enable production mode in API responses\n"
},
{
"from": "human",
"value": "<?php\ndefined('YII_DEBUG') or define('YII_DEBUG', true);\ndefined('YII_ENV') or define('YII_ENV', 'dev');\n\nrequire(__DIR__ . '/../vendor/autoload.php');\nrequire(__DIR__ . '/../vendor/yiis... | php | chosen |
[
{
"from": "system",
"value": "Allow \"O42\" to find packages by monogram in Owners typeaheads\n\nSummary: When a user queries by package monogram explicitly, search by package ID.\n\nTest Plan: {F2305075}\n\nReviewers: chad\n\nReviewed By: chad\n\nDifferential Revision: https://secure.phabricator.com/D17142... | php | chosen |
[
{
"from": "system",
"value": "Fix banner displaying by scoping it to the proper base\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Styleguide\\Http\\Controllers;\n\nuse App\\Http\\Controllers\\Controller;\nuse Factories\\Banner;\nuse Illuminate\\Http\\Request;\n\nclass BannerController e... | php | chosen |
[
{
"from": "system",
"value": "Implement `Twig_Extension_GlobalsInterface` to Fix Depreciation Warning\n"
},
{
"from": "human",
"value": "<?php\n/**\n * symfony\n * User: thomas\n * Date: 20.11.13\n * Time: 17:59\n */\n\nnamespace Hampe\\Bundle\\ZurbInkBundle\\Twig;\n\nuse Hampe\\Bundle\\ZurbInkB... | php | chosen |
[
{
"from": "system",
"value": "Fix for Host IP in NamedVirtualHost setup\n\nThe servers use an IP Address for the host in the configuration details,\nbut we're running a NamedVirtualHost setup, so we need to have a\nresolution for the curl call done by the index.php during login.\n\nPulling ServerName as the... | php | chosen |
[
{
"from": "system",
"value": "Document the tiles tracker so it will be easier to understand in the future, hopefully\n"
},
{
"from": "human",
"value": "<?php\nnamespace AppBundle\\Twig;\n\nclass TilesTracker extends \\Twig_Extension\n{\n private $tiles = array();\n\n public function getFun... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in edit use case form\n"
},
{
"from": "human",
"value": "<?php\nnamespace DlcUseCase\\Form;\n\nuse DlcUseCase\\Form\\BasePriority;\nuse Zend\\Form\\Element;\nuse Zend\\Form\\Form as ZendForm;\n\nclass EditUseCase extends BaseUseCase\n{\n public function i... | php | chosen |
[
{
"from": "system",
"value": "Fix of issue with Wordpress located not in site root directory\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(realpath($_SERVER[\"DOCUMENT_ROOT\"]) . '/wp-load.php');\nrequire_once('includes/phpqrcode.php');\n\nif (isset($_GET['order'])) {\n $qrCode = g... | php | chosen |
[
{
"from": "system",
"value": "Add Exception if element is not instance of RouteInterface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SiberianWolf\\Router;\n\n/**\n * Ensuring that every route in collection is from type Route\n * Class RouteCollection\n * @package SiberianWolf\\Router\n... | php | chosen |
[
{
"from": "system",
"value": "Remove name param from constructor\n\nBreak QueryBuilder::forge() method instantiating objects.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nclass Player extends \\Pragma\\ORM\\Model\n{\n const GENOME_HOST = 0;\n const GENOME_NOR... | php | chosen |
[
{
"from": "system",
"value": "Make the controller work with json\n"
},
{
"from": "human",
"value": "<?php\n class ImageController extends ControllerBase {\n public function create( $image ) {\n require_once 'models/image.php';\n require_once 'models/extentions.php... | php | chosen |
[
{
"from": "system",
"value": "Add aliases for [] and []= to Kernel\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phuby;\n\nclass Kernel {\n function extend($module) {\n return $this->__extend__($module);\n }\n\n function inspect() {\n return '<'.$this->__class()->n... | php | chosen |
[
{
"from": "system",
"value": "Add chooseMostRecentDate helper and use it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Merge;\n\nuse Northstar\\Exceptions\\NorthstarValidationException;\n\nclass Merger\n{\n public function merge($field, $target, $duplicate)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add ul tag before li to prevent left align text\n"
},
{
"from": "human",
"value": "<?php if (isset($msg)): ?>\n <?php foreach ($msg as $type=>$list): ?>\n <div class=\"single panel <?php echo $type; ?>\">\n <div class=\"warp\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal during redirection safety check for searching for Phabricator base-uri with no trailing slash\n\nSummary: Fixes T13412. If you search for \"https://phabricator.example.com\" with no trailing slash, we currently redirect you to \"\", which is fouled by a safety check i... | php | chosen |
[
{
"from": "system",
"value": "Make the drush command recognize the custom alias name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CommerceGuys\\Platform\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\... | php | chosen |
[
{
"from": "system",
"value": "THEATRE-113: Sort employees by group if it passed as a parameter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Repository;\n\nuse App\\Entity\\Employee;\nuse Doctrine\\Common\\Persistence\\ManagerRegistry;\nuse Symfony\\Contracts\\Translation\\Translato... | php | chosen |
[
{
"from": "system",
"value": "Resolve routing depreciation in Laravel v5.3\n\nThis will remove the Route::controller() call and replace it with an explicit route call."
},
{
"from": "human",
"value": "<?php\n\nuse GeneaLabs\\LaravelMixpanel\\Http\\Controllers\\StripeWebhooksController;\nuse Illu... | php | chosen |
[
{
"from": "system",
"value": "Write method must be public\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MattermostHandler;\n\nuse GuzzleHttp\\Client;\nuse Monolog\\Logger;\nuse Monolog\\Handler\\AbstractProcessingHandler;\n\nclass MattermostHandler extends AbstractProcessingHandler\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add logic to support group owners\n"
},
{
"from": "human",
"value": "<?php namespace JamylBot;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Group extends Model {\n\n\tprotected $fillable = ['name'];\n\n public function users()\n {\n $this->bel... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary wrapping div from search block.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Displays the search form block.\n *\n * Available variables:\n * - $search_form: The complete search form ready for print.\n * - $search: Associative arr... | php | chosen |
[
{
"from": "system",
"value": "Fix - change loacl counters value after updateCounter\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: titan\n * Date: 02.03.17\n * Time: 21:16\n */\n\nnamespace titanproger\\redis_models;\n\n\nclass TRedisModelHash extends TRedisMod... | php | chosen |
[
{
"from": "system",
"value": "Fix spl_autoload_register so it won't conflict with other register\n"
},
{
"from": "human",
"value": "<?php\nclass Elegant {\n\n\tfunction __construct()\n\t{\n\t\t$mod_path = APPPATH . 'models/';\n\t\tif(file_exists($mod_path)) $this->_read_model_dir($mod_path);\n\t... | php | chosen |
[
{
"from": "system",
"value": "FIX: Remove now obsolete path to folder\n"
},
{
"from": "human",
"value": "<?php\n\n//define global path to Components' root folder\nif(!defined('LINK_EDIT_TOOLS_PATH'))\n{\n\tdefine('LINK_EDIT_TOOLS_PATH', rtrim(basename(dirname(__FILE__))));\n}\n\n"
},
{
"... | php | chosen |
[
{
"from": "system",
"value": "ENHANCEMENT: Allow GPX and KML files to be uploaded\n"
},
{
"from": "human",
"value": "<?php\n\nObject::add_extension(\"DataObject\",\"MappableData\");\nObject::add_extension(\"DataList\",\"MappableDataObjectSet\");\n//define global path to Components' root folder\n... | php | chosen |
[
{
"from": "system",
"value": "Allow nav to be overridden, use navbar by default.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Theme Name: Bootstrap\n * Template: Master\n * Author: Paladin Digital\n */\n$theme = 'themes::paladindigital.laravel-bootstrap';\n\n?><!DOCTYPE html>\n<html>\n<head>... | php | chosen |
[
{
"from": "system",
"value": "Fix sorting of experimental browser in the comparison browser picker\n"
},
{
"from": "human",
"value": "<?php\n\n\tclass Browsers {\n\n\t\tstatic function getAll($release) {\n\t\t\t$results = array();\n\n\t\t\t$types = array('desktop', 'tablet', 'mobile', 'televisio... | php | chosen |
[
{
"from": "system",
"value": "Check if path exists before inclusion\n"
},
{
"from": "human",
"value": "<?php\n class TestrunController extends ControllerBase {\n protected $environment = 'test';\n\n public function create( $name ) {\n include_once 'tests/base.php';\n ... | php | chosen |
[
{
"from": "system",
"value": "Use cli args for commits\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/**\n * Suite runner\n *\n * PHP version 7.0\n *\n * @category SevenPress\\Metrics\n * @package Cli\n * @author Pieter Hordijk <info@pieterhordijk.com>\n * @copyrigh... | php | chosen |
[
{
"from": "system",
"value": "Trim whitespace from photo url.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace app\\components;\n\nuse yii\\base\\Component;\nuse yii\\helpers\\Url;\nuse werx\\Url\\Builder;\n\nclass PhotoManager extends Component\n{\n private $builder = null;\n public ... | php | chosen |
[
{
"from": "system",
"value": "Add Bitcoin protocol link for the listed address\n"
},
{
"from": "human",
"value": "<p>Comments and site feedback can be left in the ChatBox or in the IRC channel <a\n href=\"irc://irc.gamesurge.net:6667/getdotastats\">#GetDotaStats</a> on GameSurge.</p>\n<p>... | php | chosen |
[
{
"from": "system",
"value": "Add venue heading for title bar\n"
},
{
"from": "human",
"value": "<?php\n/*******************************************************************************\n * Copyright (c) 2015 Eclipse Foundation and others.\n * All rights reserved. This program and the accompanyin... | php | chosen |
[
{
"from": "system",
"value": "Remove hard dependency on behavior bundle\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * (c) Jeroen van den Enden <info@endroid.nl>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n */\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Set date lang on the localized middleware\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distrib... | php | chosen |
[
{
"from": "system",
"value": "Remove call to class_basename which only exists when Laravel is used.\n"
},
{
"from": "human",
"value": "<?php namespace Dxi\\Commands\\Dataset\\Contact;\n\nuse Dxi\\Commands\\Command;\n\nclass Create extends Command {\n\n /**\n * Get the payload for the comm... | php | chosen |
[
{
"from": "system",
"value": "Refactor publish command and allow multiple resource values\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Auth\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add route to get a single assembly\n"
},
{
"from": "human",
"value": "<?php\n\nRoute::resource('/assemblies', 'AssembliesController', [\n 'only' => ['index']\n]);\n"
},
{
"from": "gpt",
"value": "<?php\n\nRoute::resource('/assemblies', 'AssembliesCont... | php | chosen |
[
{
"from": "system",
"value": "Add header comment to config.\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nreturn array(\n\n\t/**\n\t * The file extension used for TAL view files. Default is 'php'.\n\t */\n\t'ext' => 'php',\n\n\t/**\n\t * List ... | php | chosen |
[
{
"from": "system",
"value": "Remove link blog in menu\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Olitaz\\HomeBundle\\Menu;\n\nuse Knp\\Bundle\\MenuBundle\\Menu;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Router;\n\nclass MainMenu extends Menu\... | php | chosen |
[
{
"from": "system",
"value": "Delete useless param $response in redirect()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rudolf\\Framework\\Controller;\n\nuse Rudolf\\Component\\Http\\Response;\n\nabstract class BaseController\n{\n protected $request;\n\n public function __construc... | php | chosen |
[
{
"from": "system",
"value": "Remove test button from dashboard\n"
},
{
"from": "human",
"value": "@extends('mconsole::app')\n\n@section('content')\n \n <div class=\"btn red btn-outline\">TEST</div>\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"portl... | php | chosen |
[
{
"from": "system",
"value": "Use long array syntax to support PHP 5.x.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vikpe;\n\nclass HtmlHeadingNormalizerTest extends \\PHPUnit_Framework_TestCase\n{\n const TEST_FILES_DIR = __DIR__.'/file/';\n\n private function getTestFileContent... | php | chosen |
[
{
"from": "system",
"value": "Add a test for the character fetching\n"
},
{
"from": "human",
"value": "<?php namespace Destiny;\n\nclass ClientTest extends TestCase {\n\n /**\n * Constructor\n */\n public function __construct()\n {\n parent::__construct();\n }\n\n /... | php | chosen |
[
{
"from": "system",
"value": "Fix exception in propel subscriber\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Component\\Pager\\Event\\Subscriber\\Sortable;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Knp\\Component\\Pager\\Event\\ItemsEvent;\n\nclass... | php | chosen |
[
{
"from": "system",
"value": "Replace form type names with FQCN.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and licens... | php | chosen |
[
{
"from": "system",
"value": "Fix blocks and use ViewData\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enhavo\\Bundle\\ShopBundle\\Block;\n\nuse Enhavo\\Bundle\\BlockBundle\\Model\\BlockInterface;\nuse Enhavo\\Bundle\\ShopBundle\\Entity\\ProductListBlock;\nuse Enhavo\\Bundle\\ShopBundle... | php | chosen |
[
{
"from": "system",
"value": "Use config to cache from composer.json\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Config\\Console;\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Illumin... | php | chosen |
[
{
"from": "system",
"value": "Use alt thumb for front page tysky block\n\nif set\n"
},
{
"from": "human",
"value": "<?php\n $meta = get_post_meta($post->ID);\n?>\n\n<a href=\"<?php the_permalink() ?>\">\n <article <?php post_class('margin-bottom-small'); ?> id=\"post-<?php the_ID(); ?>\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Add support for wildcard in server.httpsDomains\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Util_Https\n{\n /**\n * Returns if the current request is https\n */\n public static function supportsHttps()\n {\n return isset($_SERVER['HTT... | php | chosen |
[
{
"from": "system",
"value": "Remove broken and obsolete WikiLoveLocal::getMessages() method\n\nThis returns NULL instead of Array due to the global no longer\nexisting as of 6e96cb0.\n\nChange-Id: Ic89d3ee3e436a8b0d896c2362be1f408baeebd1f\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Custom... | php | chosen |
[
{
"from": "system",
"value": "Modify the form base command\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Contains Drupal\\Console\\Command\\GeneratorFormBaseCommand.\n */\n\nnamespace Drupal\\Console\\Command;\n\nclass FormBaseCommand extends FormCommand\n{\n protected functio... | php | chosen |
[
{
"from": "system",
"value": "[FlexLoader] Check for * missing paths in FlexPathsFatcory\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\FlexLoader\\Flex;\n\nuse function Safe\\glob;\n\nfinal class FlexPathsFactory\n{\n /**\n * @return string[]\n ... | php | chosen |
[
{
"from": "system",
"value": "Replace hardcoded database path by a function (for future usage)\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'check_setup.php';\nrequire 'vendor/password.php';\nrequire 'vendor/PicoTools/Dependency_Injection.php';\nrequire 'vendor/PicoDb/Database.php';\nrequ... | php | chosen |
[
{
"from": "system",
"value": "Refactor to use dataconverted results\n"
},
{
"from": "human",
"value": "<?php \n\tinclude 'header.php';\n \trequire_once 'dbconfig.php'; \n \trequire_once 'database.php';\n \t$db = new Database(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE);\n\t$db->openConnecti... | php | chosen |
[
{
"from": "system",
"value": "Remove the url param from the URL, it's not needed anymore\n"
},
{
"from": "human",
"value": "<div style=\"left: 110px; top: 90px; position: absolute;\">SCROLL DOWN</div>\n<img src=\"play.png\" onclick=\"alert('never triggered');\" width=\"80\" height=\"80\" style=\... | php | chosen |
[
{
"from": "system",
"value": "_s: Use braces in all conditionals.\n\nFormatting updates for file comment, conditional braces, and indentation."
},
{
"from": "human",
"value": "<?php\n/**\n * The sidebar containing the main widget areas.\n *\n * @package _s\n */\n\nif ( ! is_active_sidebar( 'side... | php | chosen |
[
{
"from": "system",
"value": "Change account list <dl> to .list-group\n"
},
{
"from": "human",
"value": "@extends ('layouts.home')\n@section ('title', 'Social Accounts')\n\n@section ('page-content')\n<div id=\"account-lists\" class=\"card\">\n <h5 class=\"card-header\">Account Lists</h5>\n ... | php | chosen |
[
{
"from": "system",
"value": "Use the Bundle class from the RADBundle as base\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass AppBundle extends Bundle\n{\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Put the constructor in the meta interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface for metadata api.\n *\n * @since 1.0\n * @author Christopher Davis <chris@pmg.co>\n * @license GPLv2\n * @copyright Performance Media Group 2012\n ... | php | chosen |
[
{
"from": "system",
"value": "Add time stamp to tweet\n\nДобавляется в начало твита время для обхода защиты от повторяющихся постов."
},
{
"from": "human",
"value": "<?php\n/*\n* @version 0.1 (auto-set)\n*/\n\r\n\r\n/**\r\n* Title\r\n*\r\n* Description\r\n*\r\n* @access public\r\n*/\r\n\r\n func... | php | chosen |
[
{
"from": "system",
"value": "Revert \"[MOD] Comment unused class\"\n\nThis reverts commit b952175697c59a959ab694f04ef6e40924c6b2e4.\n"
},
{
"from": "human",
"value": "<?php\n\n//use Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = r... | php | chosen |
[
{
"from": "system",
"value": "Change of request (sensitive problem)\n"
},
{
"from": "human",
"value": "<?php\n\nclass Search {\n\n\tprotected static $_pdo;\n\tprotected $_table = \"aliments\";\n\n\tpublic function __construct() {\n\t\ttry {\n\t\t\tself::$_pdo = new PDO('mysql:host=localhost; dbn... | php | chosen |
[
{
"from": "system",
"value": "Set app requirements to Symfony 5\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) Pierre du Plessis <open-source@solidworx.co>\n *\n * This source file is subject to the MIT licens... | php | chosen |
[
{
"from": "system",
"value": "Put Project \"Manage\" item back\n\nSummary:\nRef T12174. This isn't really a \"newManageItem()\" since Projects have a separate manage screen.\n\nThat is, I incorrectly changed the \"Manage [This Project]\" item into a \"Edit Menu\" item, so some options (like \"Archive Projec... | php | chosen |
[
{
"from": "system",
"value": "Update the connection method to separate the parameters, and set attributes on the PDO\n"
},
{
"from": "human",
"value": "<?php\n\nclass Database {\n\tpublic static function ConnectDb() {\n\t\treturn new PDO('mysql:host=localhost;dbname=notes;charset=utf8', 'root', ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.