conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use --path instead of deprecated --package.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Memory\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass MemoryCommand ex... | php | chosen |
[
{
"from": "system",
"value": "Improve indented code block parsing.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\CommonMark\\Parser\\Block;\n\nuse FluxBB\\CommonMark\\Common\\Text;\nuse FluxBB\\CommonMark\\Node\\CodeBlock;\nuse FluxBB\\CommonMark\\Node\\Container;\nuse FluxBB\\Co... | php | chosen |
[
{
"from": "system",
"value": "Fix setting up legacy Contenttype object\n\n$this->app['storage']->getContenttype($contentType) can return object or array."
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Storage;\n\nuse Bolt\\Storage\\Mapping\\ContentType;\nuse Silex\\Application;\n\n/**... | php | chosen |
[
{
"from": "system",
"value": "BB-2045: Update EntityAclExtension to use custom permissions\n - fixed permissions configuration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\SecurityBundle\\Migrations\\Schema;\n\nuse Doctrine\\DBAL\\Types\\Type;\n\nuse Psr\\Log\\LoggerInterfa... | php | chosen |
[
{
"from": "system",
"value": ":key: Change dir to serve resources from public dir\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | View Storage Paths\n |--------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix issues identified by Psalm\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view the LICEN... | php | chosen |
[
{
"from": "system",
"value": "Fix conflict with other js file\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: Remove Post Attachment\n * Plugin URI: https://github.com/romainberger/wordpress-remove-post-attachment\n * Description: Allows detaching medias from a post from the g... | php | chosen |
[
{
"from": "system",
"value": "Add check to ensure second argument is an integer\n"
},
{
"from": "human",
"value": "<?php\nnamespace DMS\\Bundle\\TwigExtensionBundle\\Twig\\Date;\n\n/**\n * Adds support for Padding a String in Twig\n */\nclass PadStringExtension extends \\Twig_Extension\n{\n /... | php | chosen |
[
{
"from": "system",
"value": "CC-3081: Upgrade 1.9.5->2.0 fails (PHP fatal error on db)\n\n-fixed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DoctrineMigrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration,\n Doctrine\\DBAL\\Schema\\Schema;\n\nclass Version20111114222927 ex... | php | chosen |
[
{
"from": "system",
"value": "Fix sending Amazon SES email with header by using protected properties in PHPMailer."
},
{
"from": "human",
"value": "<?php\n\nnamespace ByJG\\Mail\\Wrapper;\n\nuse Aws\\Common\\Credentials\\Credentials;\nuse Aws\\Ses\\SesClient;\nuse ByJG\\Mail\\Envelope;\nuse ByJG... | php | chosen |
[
{
"from": "system",
"value": "Fix update script to delete language items\n"
},
{
"from": "human",
"value": "<?php\n\nuse wcf\\data\\language\\item\\LanguageItemAction;\nuse wcf\\data\\language\\item\\LanguageItemList;\n\n$languageItems = [\n 'wcf.acp.group.option.user.attachment.allowedExtens... | php | chosen |
[
{
"from": "system",
"value": "Add new line according to PSR-2\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FactoryMethod;\n\ninterface BookFactoryInterface\n{\n /**\n * @return BookFactoryInterface\n */\n public function createBook();\n}"
},
{
"from": "gpt",
"v... | php | chosen |
[
{
"from": "system",
"value": "Fix type in property name variable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpSpec\\Util;\n\nuse ReflectionClass;\nuse ReflectionProperty;\n\nclass Instantiator\n{\n public function instantiate($className)\n {\n return unserialize($this->c... | php | chosen |
[
{
"from": "system",
"value": "Refactor template assignment of top menu + isFileWritable()\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Piwik - Open source web analytics\n *\n * @link http://piwik.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n *\n * @category Piw... | php | chosen |
[
{
"from": "system",
"value": "Refactor header to comply to Foundation Sites structure\n"
},
{
"from": "human",
"value": "<nav id=\"adminNav\" class=\"top-bar\" data-topbar role=\"navigation\">\n\t<ul class=\"title-area\">\n\t\t<li class=\"name\">\n\t\t\t<h1><a href=\"{{ url('admin') }}\">Angel A... | php | chosen |
[
{
"from": "system",
"value": "Fix Ghost execution bug and multiple execution bug\n\nhttp://www.concrete5.org/developers/bugs/5-6-2-1/ghost-execution-of-queuable-jobs/\r\nhttp://www.concrete5.org/developers/bugs/5-6-2-1/slices-of-many-queable-jobs-could-be-executed-together/\nFormer-commit-id: f5df8effb2a7bf... | php | chosen |
[
{
"from": "system",
"value": "Simplify command line installation instructions.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n\n<html>\n<head>\n\t<title>FluxBB</title>\n</head>\n\n<body>\n\n\t<h1>Not installed</h1>\n\t<p>It looks like FluxBB has not been installed yet.</p>\n@if ($has_instal... | php | chosen |
[
{
"from": "system",
"value": "Add global config for cors\n"
},
{
"from": "human",
"value": "<?php namespace Octobro\\API;\n\nuse App;\nuse System\\Classes\\PluginBase;\n\nclass Plugin extends PluginBase\n{\n public function boot()\n {\n // Register Cors\n App::register('\\Fru... | php | chosen |
[
{
"from": "system",
"value": "Update Travis.yml + Process UnitTest\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Core\\Tests;\n\nuse Core\\Entity\\Image;\nuse Core\\Service\\ImageProcessor;\n\n\nclass ImageProcessorTest extends BaseTest\n{\n /**\n */\n public function testProce... | php | chosen |
[
{
"from": "system",
"value": "Use 'sync' as queue name for Sync Queues, used while logging failed sync jobs when running from within another parent job\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Queue\\Jobs;\n\nuse Illuminate\\Container\\Container;\nuse Illuminate\\Contrac... | php | chosen |
[
{
"from": "system",
"value": "Remove example of removed functionality\n"
},
{
"from": "human",
"value": "<?php\n\nuse function Md\\Phunkie\\Functions\\show\\show;\n\nrequire_once dirname(__DIR__) . \"/vendor/autoload.php\";\nrequire_once __DIR__ . \"/option.php\";\nrequire_once __DIR__ . \"/list... | php | chosen |
[
{
"from": "system",
"value": "Improve some comments a bit, making them more in-line with PHP docs: use \"mixed\" rather than \"numeric\".\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vectorface\\MySQLite\\MySQL;\n\nuse InvalidArgumentException;\n\n/**\n * Provides Comparison MySQL compa... | php | chosen |
[
{
"from": "system",
"value": "Add test for administrative area collection shortcuts\n"
},
{
"from": "human",
"value": "<?php\n\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class AdministrativeAreaTest\n *\n * @author Junior Grossi <juniorgro@gmail.com>\n */\nclass AdministrativeAreaTest ... | php | chosen |
[
{
"from": "system",
"value": "Remove HTML comments from wrapper"
},
{
"from": "human",
"value": "<!doctype html>\n<html <?php language_attributes(); ?>>\n <?php get_template_part('partials/head'); ?>\n <body <?php body_class(); ?>>\n <!--[if IE]>\n <div class=\"alert alert-warning\">\n... | php | chosen |
[
{
"from": "system",
"value": "refactor(users): Create relationship for users table\n\nmodifield: app/User.php\n\nsee #124\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Remove default c9 hello world message.\n"
},
{
"from": "human",
"value": "<?php\n// A simple web site in Cloud9 that runs through Apache\n// Press the 'Run' button on the top to start the web server,\n// then click the URL that is emitted to the Output tab of the co... | php | chosen |
[
{
"from": "system",
"value": "Update expectation for details/organism test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Details;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass OrganismTest extends ... | php | chosen |
[
{
"from": "system",
"value": "Debug info to find out why travis fails.\n"
},
{
"from": "human",
"value": "<?php\n\n$loader = require __DIR__ . '/../../vendor/autoload.php';\n$loader->add('Phormium\\\\ModGen\\\\Tests', __DIR__ . '/../');\n\nPhormium\\DB::configure(PHORMIUM_CONFIG_FILE);\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Make the \"routeIs\" method compatible with Lumen.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravel\\Lumen\\Http;\n\nuse Illuminate\\Support\\Arr;\nuse Illuminate\\Http\\Request as BaseRequest;\n\nclass Request extends BaseRequest\n{\n /**\n * De... | php | chosen |
[
{
"from": "system",
"value": "Use data-bgset instead of data-bg.\n\nhttps://github.com/aFarkas/lazysizes/issues/101\n"
},
{
"from": "human",
"value": "<?php // [1] Regular background image; resized thumb (thumbs.dev.width) ?>\n<?php if($lazyload == false && c::get('resrc') == false): ?>\n\tstyle... | php | chosen |
[
{
"from": "system",
"value": "Allow for a ZMQ socket to handle receiving for RPC.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Prooph\\ServiceBus\\Message\\ZeroMQ;\n\nuse ZMQSocket;\n\nclass ZeroMQSocket\n{\n /** @var \\ZMQSocket */\n private $socket;\n\n /** @var string */\n ... | php | chosen |
[
{
"from": "system",
"value": "Return an empty Media object from postMedia for early integration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Keyteq\\Keymedia;\n\nuse Keyteq\\Keymedia\\API\\Configuration;\nuse Keyteq\\Keymedia\\Model\\Mapper\\MapperFactory;\nuse Keyteq\\Keymedia\\Util\\R... | php | chosen |
[
{
"from": "system",
"value": "Call parent tearDown method to allow additional extension\n"
},
{
"from": "human",
"value": "<?php namespace Laracasts\\TestDummy;\n\nuse TestCase, Artisan, DB;\n\n/**\n * Helper parent class for Laravel users.\n * Extend this class from your test classes.\n *\n * @... | php | chosen |
[
{
"from": "system",
"value": "Update login information according to user management\n"
},
{
"from": "human",
"value": "<?php\n\t$db_host\t\t= 'localhost';\n\t$db_username\t= 'root';\n\t$db_password\t= '';\n\t$db_database\t= 'ssbo_ticketing';\n?>"
},
{
"from": "gpt",
"value": "<?php\n... | php | chosen |
[
{
"from": "system",
"value": "Add support for single files\n\nThere may be a time where a user would like to pass just a single file to the formatter instead of an entire directory."
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the php-formatter package\n *\n * Copyright ... | php | chosen |
[
{
"from": "system",
"value": "Add a few things to ensure unit tests work.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Created on Jan 13, 2009\n * \n * FILE INFORMATION:\n * \n * $HeadURL$\n * $Id$\n * $LastChangedDate$\n * $LastChangedBy$\n * $LastChangedRevision$\n */\n\nrequire_once(dirna... | php | chosen |
[
{
"from": "system",
"value": "Fix text align rigth on the monster list table.\n"
},
{
"from": "human",
"value": "<table class=\"table table-bordered tablesorter\">\n<thead>\n<tr>\n <th></th>\n <th>Name</th>\n <th>HP</th>\n <th>Dmg</th>\n <th>MaxDmg</th>\n <th>AvgDmg</th>\n <th>Melee sk</t... | php | chosen |
[
{
"from": "system",
"value": "Define arquivo principal de execução do sistema\n"
},
{
"from": "human",
"value": "<?php\n/**\n* Carrega o sistema\n*\n* Responsável por carregar os outros arquivos do sistema e inicializar as\n* propriedades necessárias\n*\n* PHP 5\n*\n* Alf CMS\n* Copyright 2013-2... | php | chosen |
[
{
"from": "system",
"value": "Change actions to object actions"
},
{
"from": "human",
"value": "<?php\n\nnamespace Admingenerator\\GeneratorBundle\\Builder\\Admin;\n\n/**\n * This builder generates php for custom actions\n * @author Piotr Gołębiewski <loostro@gmail.com>\n */\nclass CustomBuilder... | php | chosen |
[
{
"from": "system",
"value": "Make the NULL WKT test more specific.\n"
},
{
"from": "human",
"value": "<?php\n/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4; */\n\n/**\n * PHP version 5\n *\n * @package omeka\n * @subpackage nlfeatures\n * @author Scholars' Lab <>\n * @auth... | php | chosen |
[
{
"from": "system",
"value": "Change treff home to the journal home\n"
},
{
"from": "human",
"value": "<?php\n\nsession_start();\ninclude_once 'functions.php';\ncreateHeader(array(\"style.css\"), array());\n\n?>\n\n<div class=\"main_body\">\n\t<div class=\"info\">\n\t\t<h1>Need a half-way meetin... | php | chosen |
[
{
"from": "system",
"value": "Use __destruct to validate implicitly.\n"
},
{
"from": "human",
"value": "<?php namespace Essence;\n\nuse Closure;\n\nclass Essence\n{\n\n /**\n * @var array\n */\n protected $configuration = [\n \"exception\" => \"Essence\\Exceptions\\Assertion... | php | chosen |
[
{
"from": "system",
"value": "Switch to new spec update command.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass SetupCommand extends Command\n{\n protected $signature = 'setup';\n protected $description = 'Runs al... | php | chosen |
[
{
"from": "system",
"value": "Clean up view service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace REBELinBLUE\\Deployer\\Providers;\n\nuse Illuminate\\Contracts\\View\\Factory;\nuse Illuminate\\Support\\ServiceProvider;\nuse REBELinBLUE\\Deployer\\Composers\\ActiveUserComposer;\... | php | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix functional test by explicitly naming sequence\n\nThe auto-generated name of a sequence exceeds the maximum length, is\ntruncated and thus duplicates an already existing name in the schema.\nThis is solved by manually giving a name to the sequence.\n\nThis bug affec... | php | chosen |
[
{
"from": "system",
"value": "Fix the class we extend.\nuse info to say we fired out event\n"
},
{
"from": "human",
"value": "<?php\nnamespace Svpernova09\\HomesteadSkeleton\\Commands;\n\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Illuminate\\Filesystem\\Filesystem;\nclass SeedMak... | php | chosen |
[
{
"from": "system",
"value": "Rename Page's title to name in the Form entity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\NodeBundle\\Form;\n\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Form\\AbstractType;\n\n/**\n * PageAdminType\n */\nclass... | php | chosen |
[
{
"from": "system",
"value": "Drop the should in spec names\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Raekke\\Utils;\n\nuse PHPSpec2\\ObjectBehavior;\n\nclass Collection extends ObjectBehavior\n{\n function it_should_behave_like_an_array()\n {\n $this->shouldHaveTy... | php | chosen |
[
{
"from": "system",
"value": "Move message to individual language file"
},
{
"from": "human",
"value": "<?php\nuse yii\\helpers\\Html;\n\n/* @var $this yii\\web\\View */\n/* @var $model yii2mod\\cms\\models\\CmsModel */\n\n$this->title = Yii::t('app', 'Update Page: ', [\n 'modelClass' => 'Cms... | php | chosen |
[
{
"from": "system",
"value": "Update API parse to JSON format\n"
},
{
"from": "human",
"value": "<?php\n\theader(\"Content-type: text/html; charset=UTF-8\");\n require_once(\"DB_config.php\");\n require_once(\"DB_class.php\");\n\n $db = new DB();\n $db->connect_db($_DB['host'], $_DB[... | php | chosen |
[
{
"from": "system",
"value": "fix: Test with Mockery class is compatible with PHP 5.4\n"
},
{
"from": "human",
"value": "<?php\nnamespace Granam\\Tests\\Tools;\n\nabstract class TestWithMockery extends \\PHPUnit_Framework_TestCase\n{\n protected function tearDown()\n {\n \\Mockery::... | php | chosen |
[
{
"from": "system",
"value": "Fix for non static method being called statically\n"
},
{
"from": "human",
"value": "<?php namespace Wasp\\DI;\n\n/**\n * Static container awareness trait\n *\n * @package Wasp\n * @subpackage Di\n * @author Dan Cox\n */\nTrait StaticContainerAwareTrait\n{\n\t/**\n\... | php | chosen |
[
{
"from": "system",
"value": "Add the CommerceGuys solution ID.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CommerceGuys\\AuthNet\\DataTypes;\n\nclass TransactionRequest extends BaseDataType\n{\n const AUTH_ONLY = 'authOnlyTransaction';\n const PRIOR_AUTH_CAPTURE = 'priorAuthCapt... | php | chosen |
[
{
"from": "system",
"value": "Handle response status and headers in default adapter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hochstrasser\\Wirecard;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse GuzzleHttp\\Psr7\\Response;\nuse GuzzleHttp\\Psr7;\n\nabstract class Adapter\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove sort on category or product remove\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Shopware\\SwagCustomSort\\Subscriber;\n\nuse Enlight\\Event\\SubscriberInterface;\n\nclass Backend implements SubscriberInterface\n{\n protected $bootstrap;\n\n pub... | php | chosen |
[
{
"from": "system",
"value": "Add try catch and log\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Models\\Check;\nuse Barryvdh\\Snappy\\Facades\\SnappyPdf;\nuse Carbon\\Carbon;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\URL;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Build to get specific build\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace WyriHaximus\\Travis\\Resource\\Sync;\n\nuse Rx\\Observable;\nuse Rx\\React\\Promise;\nuse WyriHaximus\\Travis\\Resource\\Async\\Repository as AsyncRepository;... | php | chosen |
[
{
"from": "system",
"value": "Add newly introduced tracking parameters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MssPhp\\Schema\\Request;\n\nuse JMS\\Serializer\\Annotation\\Type;\n\nclass Tracking {\n /**\n * @Type(\"string\")\n */\n public $partner;\n}\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Fix code examples in PHPDoc\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Make checkbox columns automatically persistent.\n\n\nsvn commit r228\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Swat\n * @license http://opensource.org/licenses/gpl-license.php GNU Public License\n * @copyright silverorange 2004\n */\nrequire_once('S... | php | chosen |
[
{
"from": "system",
"value": "Allow the default Remarkup <p> tag to be inline-styled for mail\n\nSummary: Ref T10694. Browsers / mail clients have default `<p>` rules, particularly margin/padding. This allows the inline stuff to turn them off with explicit `\"padding: 0; margin: 0;\"` so it can control spac... | php | chosen |
[
{
"from": "system",
"value": "Update test case create is not available because of field edit permission.\n"
},
{
"from": "human",
"value": "<?php namespace ProcessWire\\GraphQL\\Test\\Permissions;\n\nuse ProcessWire\\GraphQL\\Test\\GraphqlTestCase;\nuse ProcessWire\\GraphQL\\Utils;\n\nuse functi... | php | chosen |
[
{
"from": "system",
"value": "Use WebTesCase instead of KernelTestCase to fix tests in older Symfony versions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Isolate\\Symfony\\IsolateBundle\\Tests\\Functional;\n\nuse Isolate\\Symfony\\IsolateBundle\\Tests\\Functional\\app\\AppKernel;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Add table prefix to Alter table"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass AddNullableToLastReadInParticipantsTable extends Migration\n{\n /**\n * Run the m... | php | chosen |
[
{
"from": "system",
"value": "Use proper opening tag for config file\n"
},
{
"from": "human",
"value": "<?\n\n/**\n *\n * 'repositoriesPath' can either be a string to a path relative to the project root\n * or it can be an array of absolute and relative paths to repositories:\n * 'repositoriesPa... | php | chosen |
[
{
"from": "system",
"value": "Add basic support for creating urls\n\nHere I'm implementing a VERY rudimentary controller action for creating\nURLs. No, it doesn't do any kind of validation or any other form of\nsanitisation or defensive coding. I'm well aware of that. But that will\nchange over coming commi... | php | chosen |
[
{
"from": "system",
"value": "Add indexes to type and bucket columns\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddColumnsToCategorizePosts extends ... | php | chosen |
[
{
"from": "system",
"value": "Handle 'id' as primary key with PostgreSQL\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') or die('No direct access allowed.');\n\n$dbpath = getenv('DBPATH');\n$dbhost = getenv('DBHOST');\n$dbname = getenv('DBNAME');\n$dbuser = getenv('DBUSER');\n$dbpass... | php | chosen |
[
{
"from": "system",
"value": "Change wrong variable name cv_term_id to correct one type_cvterm_id\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait informatio\n */\nclass Traits extends \\WebService {\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Tests default to MySQL strict\"\n\nThis reverts commit 53d1ba7fcfa1e238b8e24e8071436ced8f45ec58.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pheasant\\Tests;\n\nclass MysqlTestCase extends \\PHPUnit_Framework_TestCase\n{\n\tpublic function setUp()... | php | chosen |
[
{
"from": "system",
"value": "Update require/include to use standardized names\n"
},
{
"from": "human",
"value": "<?php\nrequire_once LEIZEL_BASE_DIR . 'app/model/Registry/PersonalWebLinks.php';\n\nclass Page_Astral extends Controller\n{\n public function perform()\n {\n $personal_w... | php | chosen |
[
{
"from": "system",
"value": "Make helper methods public to be used inside closures\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Promise\\Tests;\n\nclass TestCase extends \\PHPUnit_Framework_TestCase\n{\n protected function expectCallableExactly($amount)\n {\n $mock = $this... | php | chosen |
[
{
"from": "system",
"value": "Fix the en language file"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'modules' => [\n 'title' => 'Modules',\n 'read' => 'Can read modules?',\n 'install' => 'Can install modules?',\n 'uninstall' => 'Can uninstall... | php | chosen |
[
{
"from": "system",
"value": "Fix newline trimming in page renderer breaking GA tracking\n"
},
{
"from": "human",
"value": "\n\t</div>\n\n\t<footer><?=get_footer()?></footer>\n\n<script src=\"https://code.jquery.com/jquery-2.1.4.min.js\"></script>\n<script>if(!window.jQuery)document.write('\\x3C... | php | chosen |
[
{
"from": "system",
"value": "Fix subject getter to support subject alts\n\n\ngit-svn-id: 28fe03dfd74dd77dcc8ecfe99fabcec8eed81bba@3722 8555b757-d854-4b86-925a-82fd84c90ff4\n"
},
{
"from": "human",
"value": "<div class=\"box\">\n<?php\n if(!Config::get('lang_selector_enabled')) {\n $op... | php | chosen |
[
{
"from": "system",
"value": "Use git version for package version\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause\n * @copyright Copyright (c) 2015 Matthew Weier O'Phinney (https://mwop.net)\n */\n\nrequire __DIR__ . '/../vend... | php | chosen |
[
{
"from": "system",
"value": "Allow user to change connection flags\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\Imap;\n\nuse Ddeboer\\Imap\\Exception\\AuthenticationFailedException;\n\nclass Server\n{\n protected $hostname;\n protected $port;\n protected $connection;\... | php | chosen |
[
{
"from": "system",
"value": "Allow the alias to be null\n\nFollow up fix to the previous commit\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author \"Michael Collette\" <metrol@metrol.net>\n * @package Metrol/DBSql\n * @version 1.0\n * @copyright (c) 2016, Michael Colle... | php | chosen |
[
{
"from": "system",
"value": "Revert \"using option skip for skip system/Autoloader/Autoloader.php for UnderscoreToCamelCaseVariableNameRector with reason comment\"\n\nThis reverts commit c95d52e45abe03693f2e28ae45aa92eaabe197e0.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Rector\\Core\\Conf... | php | chosen |
[
{
"from": "system",
"value": "Update service provider to use bindShared.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Widget;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\F... | php | chosen |
[
{
"from": "system",
"value": "Fix validation error in products.php since h3 couldn't be child of span in category partial.\n"
},
{
"from": "human",
"value": "<?php $id = $category['id']; ?>\n<a class=\"category-link\" href=\"products.php?category_id=<?php echo $id; ?>\">\n <article class=\"cate... | php | chosen |
[
{
"from": "system",
"value": "Fix Tinymce editor not showing Bootstrap components correctly by adding container-fluid class to body.\n"
},
{
"from": "human",
"value": "<script src=\"{{ URL::to('vendor/redooor/redminportal/js/tinymce/tinymce.min.js') }}\"></script>\n<script>\n !function ($) {\... | php | chosen |
[
{
"from": "system",
"value": "Check if target is directory in top choose component\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Directories_TopChoose_Component extends Kwc_Directories_Top_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\... | php | chosen |
[
{
"from": "system",
"value": "Add function to retrieve client name via case number\n\ngit-svn-id: 236d1da889b004185c53d75d23fb6bdc6a50cecb@712 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n"
},
{
"from": "human",
"value": "<?php\n\nclass get_names {\n\t\n\t\n\t\n\tfunction get_users_name($username)\n\t\... | php | chosen |
[
{
"from": "system",
"value": "Fix change controller for hashids\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright (c) 2016 Jacob Martin\n * @license MIT https://opensource.org/licenses/MIT\n */\n\nnamespace App\\Http\\Controllers\\Admin\\Crud;\n\nuse App\\Http\\Controllers\\Controller... | php | chosen |
[
{
"from": "system",
"value": "Add website code to body class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright © 2017 Sam Granger. All rights reserved.\n *\n * @author Sam Granger <sam.granger@gmail.com>\n */\n\nnamespace SamGranger\\StoreCodeBodyClass\\Plugin;\n\nuse Magento\\Framewor... | php | chosen |
[
{
"from": "system",
"value": "Change loading order of TFA requirements\n\nChange loading order of TFA requirements within autoloader\n"
},
{
"from": "human",
"value": "<?php\n// Autoloader\nrequire('Providers/Rng/MCryptRNGProvider.php');\nrequire('Providers/Rng/IRNGProvider.php');\nrequire('Prov... | php | chosen |
[
{
"from": "system",
"value": "Return types in manager tests\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Add pending getter and setter"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Description of User\n *\n * @author pirhoo\n */\nclass User extends Record{\n \n private $email;\n private $password;\n private $trust_level; \n \n public function g... | php | chosen |
[
{
"from": "system",
"value": "Remove file from SharedFileTable seed\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse REBELinBLUE\\Deployer\\SharedFile;\n\nclass SharedFileTableSeeder extends Seeder\n{\n public function run()\n {\n DB::table('shared_... | php | chosen |
[
{
"from": "system",
"value": "Include template snippets and retab code\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html <?php language_attributes(); ?> class=\"no-js no-svg\">\n <head>\n <meta charset=\"<?php bloginfo('charset'); ?>\">\n <meta name=\"viewport\" content=\"width=de... | php | chosen |
[
{
"from": "system",
"value": "Reduce sizes of tags sidebar\n"
},
{
"from": "human",
"value": "<p class=\"px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider\" id=\"communities-headline\">\n Tags\n</p>\n\n<div class=\"mt-3 space-y-2\" aria-labelledby=\"tags-menu\">\n <a \n ... | php | chosen |
[
{
"from": "system",
"value": "Remove instance config from closure\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n 'table' => '',\n\n 'instance' => function()\n {\n return App::make('Algorit\\Synchronizer\\Storage\\SyncInterface');\n },\n\n 'create' => fun... | php | chosen |
[
{
"from": "system",
"value": "Fix type in DataType test\n"
},
{
"from": "human",
"value": "<?php\n\nclass DataTypeTest extends PHPUnit_Framework_TestCase {\n\n\tpublic function testAutoload() {\n\t\t$this->assertInstanceOf('DataType', new DataType);\n\t}\n\n\tpublic function testImportDataType()... | php | chosen |
[
{
"from": "system",
"value": "Allow null values to be provided for source.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Http\\Requests;\n\nclass SignupRequest extends Request\n{\n /**\n * Determine if the user is authorized to make this request.\n *\n * @return boo... | php | chosen |
[
{
"from": "system",
"value": "Set host correctly in production.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/config.php';\n\n// uMailPHP's configuration.\n\\uMailPHP\\Mail::configure([\n 'site_name' => 'Tilmeld Example Site',\n 'site_link' => 'http://localhost:8080/exampl... | php | chosen |
[
{
"from": "system",
"value": "Fix issue in PHP 5.3\n"
},
{
"from": "human",
"value": "<?php\n\n// Files that are needed that aren't classes, as well as basic initialization\n// Core requirements\ndefine('IN_SCRIPT', 1);\ndefine('HESK_PATH', '../');\nrequire_once(__DIR__ . '/vendor/autoload.php')... | php | chosen |
[
{
"from": "system",
"value": "Use PSR-7 way of accessing uri\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Slim JSON Web Token Authentication middleware\n *\n * Copyright (c) 2015 Mika Tuupola\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licen... | php | chosen |
[
{
"from": "system",
"value": "Remove unused pages from menu bar"
},
{
"from": "human",
"value": "<div class=\"sidebar\">\n <ul class=\"nav nav-pills nav-stacked\">\n <li<?php if(isset($site_page) && $site_page=='profile') :?> class=\"active\"<?php endif; ?>><a href=\"/profile\">My profile</a... | php | chosen |
[
{
"from": "system",
"value": "Add method to check that padCharacter is not empty or null\n"
},
{
"from": "human",
"value": "<?php\nnamespace DMS\\Bundle\\TwigExtensionBundle\\Twig\\Text;\n\n/**\n * Adds support for Padding a String in Twig\n */\nclass PadStringExtension extends \\Twig_Extension\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.