conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update method signature from parent AttributeAware.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fhaculty\\Graph\\Attribute;\n\n/**\n * Interface to container that represents multiple attributes\n */\ninterface AttributeBag extends AttributeAware\n{\n //... | php | chosen |
[
{
"from": "system",
"value": "Fix error catching in thumbnail generation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Jobs;\n\nuse App\\Post;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Bus\\SelfHandling;\nuse Il... | php | chosen |
[
{
"from": "system",
"value": "Add blank line before namespace declaration\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Import Class\n * @desc Generic Importer Class for the pH7CMS.\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyri... | php | chosen |
[
{
"from": "system",
"value": "Check for existing configuration in setup command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Propaganistas\\LaravelFakeId\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Jenssegers\\Optimus\\Energon;\n\nclass FakeIdSetupCommand extends Command\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix routing - no longer dependant on alpha-order\n"
},
{
"from": "human",
"value": "<?php\nnamespace MCPI;\n\n/**\n * Core Controller\n * - Routes the entire app\n */\nclass Core_Controller extends Core_Controller_Abstract\n{\n static public function route()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add comment to main file\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('MUSTACHE_PHP_VERSION_ID', '0.1');\n\nrequire 'lib/StringScanner.php';\n\n?>"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * Mustache PHP Compiler\n *\n * This is a straight port ... | php | chosen |
[
{
"from": "system",
"value": "Remove deprecated code from form type extension\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the BootstrapBundle project.\n *\n * (c) 2013 Philipp Boes <mostgreedy@gmail.com>\n *\n * For the full copyright and license information, please vi... | php | chosen |
[
{
"from": "system",
"value": "Add Robot tasks to run all the tests and the app.\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 */\nclass RoboFile extends \\Robo\\Tasks\n... | php | chosen |
[
{
"from": "system",
"value": "Add instructional text to kiosk header and remove unnecessary margin shrinkage\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n @include('layouts/head')\n <style type=\"text/css\">\n /* Vertically center all the things - ... | php | chosen |
[
{
"from": "system",
"value": "Add early returns for Item API handler\n"
},
{
"from": "human",
"value": "<?php\nheader('Content-type:application/json');\n\n// Object\nrequire_once('./object/item.php');\n\n// Service\n\n// Database\nrequire_once('./json/item.php');\n\n// Initialize response.\n$sta... | php | chosen |
[
{
"from": "system",
"value": "Use Config in bind function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Laravel;\n\nuse Adldap\\Adldap;\nuse Adldap\\Laravel\\Exceptions\\ConfigurationMissingException;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AdldapServiceProvider exten... | php | chosen |
[
{
"from": "system",
"value": "Add test for testing load config from php format file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Maghead\\Runtime\\Config;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass FileConfigLoaderTest extends TestCase\n{\n public function testLoadSimpleFile()\n ... | php | chosen |
[
{
"from": "human",
"value": "OEE-620: Create REST API resource to get dictionary/enum items\n - added provider interface\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\nnamespace Oro\\Bundle\\EntityBundle\\Provider;\r\n\r\nuse Doctrine\\ORM\\QueryBuilder;\r\n\r\nuse Oro\\Bundle\\EntityBundle\\ORM\... | php | chosen |
[
{
"from": "system",
"value": "Update Item API handler to use api changes\n"
},
{
"from": "human",
"value": "<?php\nheader('Content-type:application/json');\nrequire_once('./json.php');\nrequire_once('./objects/item.php');\n\n/*\n routes\n*/\n\nswitch ($_SERVER['REQUEST_METHOD']) {\n case 'GET'... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary fully quantified name\n\nThe class is unnessarily fully quantified and is an warning that is also flagged up in popular IDE's such as PHPStorm. It is also arguably bad practice as it can lead to problems if directories are moved in the future."
},
{
"... | php | chosen |
[
{
"from": "system",
"value": "Add the vendor publish commands to the list of artisan commands\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Laravel\\Lumen\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends Conso... | php | chosen |
[
{
"from": "system",
"value": "Modify data collection and map direct to source file\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://gi... | php | chosen |
[
{
"from": "system",
"value": "Add more info to interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tonic\\Component\\ApiLayer\\ModelTransformer;\n\n/**\n * Responsible for object transformation.\n */\ninterface ModelTransformerInterface\n{\n /**\n * Does transformer support tr... | php | chosen |
[
{
"from": "system",
"value": "Add getDefault and getByPrefix methods\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * (c) Smalte - 2012 ~ Until the end of the world...\n *\n * Julien Breux <julien@smalte.org>\n * Fabien Serny <fabien@smalte.org>\n * Grégoire Poulain <gregoire@smalte.org>\n * A... | php | chosen |
[
{
"from": "system",
"value": "Load ReCaptcha key/secret from environment.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Sil\\PhpEnv\\Env;\n\nreturn [\n 'silauth:SilAuth',\n 'mysql.host' => Env::get('MYSQL_HOST'),\n 'mysql.database' => Env::get('MYSQL_DATABASE'),\n 'mysql.user' => E... | php | chosen |
[
{
"from": "system",
"value": "Update to alternative syntax just because...\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\t<meta charset=\"UTF-8\">\n\t<title>Cities & Suburbs</title>\n</head>\n<body>\n\t\n\t<h1>Cities and Suburbs</h1>\n\t<select name=\"city\... | php | chosen |
[
{
"from": "system",
"value": "Add shipping address request to example facade\n"
},
{
"from": "human",
"value": "<?php\n\nuse Aquatic\\AuthorizeNet\\CIM\\CreateCustomerProfile;\n\n// Facade for AuthorizeNet requests\nclass AuthorizeNet\n{\n public static function createCustomerProfile(string $... | php | chosen |
[
{
"from": "system",
"value": "Add some constraints to trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Harp\\Timestamps;\n\nuse Harp\\Harp\\AbstractModel;\n\n/**\n * @author Ivan Kerin <ikerin@gmail.com>\n * @copyright 2014, Clippings Ltd.\n * @license http://spdx.org/licenses/BS... | php | chosen |
[
{
"from": "system",
"value": "Add missing \"new\" when raising an InvaludArgumentException\n"
},
{
"from": "human",
"value": "<?php\n\nclass CSRF\n{\n /** @var string */\n const HMAC_ALGORITHM = 'sha1';\n\n /** @var string */\n const SESSION_KEY_NAME = '_csrf_key';\n\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Change variable type from string to int to avoid startup error"
},
{
"from": "human",
"value": "<?php\nreturn [\n 'pikkuleipa' => [\n 'cookie_settings' => [\n 'helios' => [\n 'path' => '/',\n 'secure' => false,\n ... | php | chosen |
[
{
"from": "system",
"value": "Move settings into \"additional\" section\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n *\n * @author Pawel Rojek <pawel at pawelrojek.com>\n * @author Ian Reinhart Geiser <igeiser at devonit.com>\n *\n * This file is licensed under the Affero General Public Lic... | php | chosen |
[
{
"from": "system",
"value": "Update GA tracking code to match subdomain\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <title>Become a member - Cowork Niagara</title>\n <link rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?fami... | php | chosen |
[
{
"from": "system",
"value": "Fix issue that photo-scroller no longer works. This is caused by update to Bootstrap assets in Yii2.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @link http://www.yiiframework.com/\n * @copyright Copyright (c) 2008 Yii Software LLC\n * @license http://www.yiifr... | php | chosen |
[
{
"from": "system",
"value": "Add compare function to lang Field"
},
{
"from": "human",
"value": "<?php\n\nnamespace Splash\\Tests\\Tools\\Fields;\n\n/**\n * @abstract Language Field : ISO Language Code\n *\n * @example en_US, fr_FR, fr_BE\n *\n * @see ISO 639-1 : http://www.iso.o... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Don't add Change Password item yet\"\"\n\nThis reverts commit 028c66f9ab99ed6e7d220ceefbe18fcdd7dbfa56.\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('content')\n @section('nav-left')\n <li><a href=\"{{ route('... | php | chosen |
[
{
"from": "system",
"value": "Add small tests to TransactionCollection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests\\Transaction;\n\nuse BitWasp\\Bitcoin\\Tests\\AbstractTestCase;\nuse BitWasp\\Bitcoin\\Transaction\\Transaction;\nuse BitWasp\\Bitcoin\\Transaction... | php | chosen |
[
{
"from": "system",
"value": "Add new method 'translate' (shortcut for translator usage).\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace H4D\\Leveret\\Application;\n\nuse H4D\\Template\\TemplateTrait;\n\nclass View\n{\n\n use TemplateTrait;\n\n public function __construct() {}\n\n}"... | php | chosen |
[
{
"from": "system",
"value": "Add available step types in the exception message when the registry cannot find a type\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr>\n * @license: MIT\n */\n \nnamespace IDCI\\Bundle\\StepBundle\\Ste... | php | chosen |
[
{
"from": "system",
"value": "Change the constructor arguement for the logging to use a ConsoleOutput rather than the interface.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CtiDigital\\Configurator\\Model;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass Logging im... | php | chosen |
[
{
"from": "system",
"value": "Fix phpdoc for created_at and updated_at properties\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Isswp101\\Persimmon\\Traits;\n\nuse Carbon\\Carbon;\n\ntrait Timestampable\n{\n /**\n * @var Carbon\n */\n public $created_at;\n\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Fix annotation handling for unit tests.\n\n"
},
{
"from": "human",
"value": "<?php\n// This is global bootstrap for autoloading\n$autoloader = require __DIR__.'/../vendor/autoload.php';\n$autoloader->addClassMap([\n 'CestAbstract' => __DIR__.'/functional/CestAbst... | php | chosen |
[
{
"from": "system",
"value": "Use the error returned from the response type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\OAuth2\\Server\\Middleware;\n\nuse League\\OAuth2\\Server\\Exception\\OAuthServerException;\nuse League\\OAuth2\\Server\\Server;\nuse Psr\\Http\\Message\\Resp... | php | chosen |
[
{
"from": "system",
"value": "Include the version in --help\n"
},
{
"from": "human",
"value": "<?php\n\n$args = join(\" \",$argv);\n$version = \"0.1\";\n\nif (preg_match(\"/--help|-h/\",$args)) {\n\tusage();\n\texit;\n}\n\ninclude \"phar://parsedown.phar/Parsedown.php\";\n\n/////////////////////... | php | chosen |
[
{
"from": "system",
"value": "Handle empty values on person better (force to NULL)\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/person.php';\n\n$person_id= (int)$_REQUEST['id'];\n\n$person= person_load($db, $person_id);\n\nif (!$person)\n die_jsonp('No such per... | php | chosen |
[
{
"from": "system",
"value": "Order in sync with docs.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Telegram\\Bot\\Objects;\n\n/**\n * Class BotCommand.\n *\n * This object represents a bot command\n *\n * @link https://core.telegram.org/bots/api#botcommand\n *\n * @property string $des... | php | chosen |
[
{
"from": "system",
"value": "Check composer install has been ran\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: WC Cyclone \n * Plugin URI: https://metorik.com\n * Description: Generate fake data for a WooCommerce store.\n * Version: 0.1\n * Author Name: Bryce Adams | Metorik\n ... | php | chosen |
[
{
"from": "system",
"value": "Rename master to main request\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\EventSubscriber;\n\nuse App\\Service\\Config;\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Symfony\\Component\\HttpFounda... | php | chosen |
[
{
"from": "system",
"value": "Fix double redirects pt 2\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Auth;\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\nuse Illuminate\\Http\\Request;\nuse Teapot\\StatusCode;\n\nclass AdminAuthenticate\n{\n /**... | php | chosen |
[
{
"from": "system",
"value": "Fix the namespace of Exception\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pum\\Bundle\\TypeExtraBundle\\Model;\n\n/**\n * The value of a coordinate object should NEVER change. You should instead use\n * new objects.\n */\nclass Coordinate\n{\n protecte... | php | chosen |
[
{
"from": "system",
"value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40403 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa... | php | chosen |
[
{
"from": "system",
"value": "Fix error noticed when running Phan under php 7.2.0alpha1\n\nIn php 7.2, `count()` can only be called on `array` or `Countable`.\nIt will emit a warning if it is called on other types, e.g. `null`,\n`string`, etc.\n"
},
{
"from": "human",
"value": "<?php declare(str... | php | chosen |
[
{
"from": "system",
"value": "Correct the expected exception to be EmptyPhpSourceCode\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BetterReflectionTest\\SourceLocator;\n\nuse BetterReflection\\Identifier\\Identifier;\nuse BetterReflection\\Identifier\\IdentifierType;\nuse BetterReflecti... | php | chosen |
[
{
"from": "system",
"value": "Modify get-status option in file\n"
},
{
"from": "human",
"value": "<?php\nfunction send_email($to_email,$subject,$message1)\n{\n require_once 'Mandrill.php';\n$apikey = '%API_key%'; // use this to encrypt your api key\n$mandrill = new Mandrill($apikey);\n\n$mess... | php | chosen |
[
{
"from": "system",
"value": "Allow marking all notifications as read\n"
},
{
"from": "human",
"value": "<?php namespace App\\Http\\Controllers;\n\nuse App\\Data\\User;\nuse Illuminate\\Http\\Request;\n\nclass UserNotificationsController extends Controller\n{\n\tpublic function __construct()\n\t... | php | chosen |
[
{
"from": "system",
"value": "Update server site for osmlive reports\n"
},
{
"from": "human",
"value": "<?php \nfunction startsWith($haystack, $needle)\n{\n $length = strlen($needle);\n return (substr($haystack, 0, $length) === $needle);\n}\n\n$c = new Memcached(); \n$c->addServer(\"loca... | php | chosen |
[
{
"from": "system",
"value": "Add api_token to hidden fields\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace eien;\n\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n use Notifiable;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Throw an exception on an unsupported callable type\n"
},
{
"from": "human",
"value": "<?php\n\nfunction create_callable($type, $mode)\n{\n switch ($type) {\n case 'method':\n return [new TestClass(), 'method'.camelize($mode)];\n\n case 's... | php | chosen |
[
{
"from": "system",
"value": "[wiki:DbFinderPlugin] Allow for easier testing with sf 1.1\n\ngit-svn-id: 1cdbda4e123179f2e1e2c55188bc07ae93e59a0a@13191 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php\n\n// Autofind the first available app environment\n$sf_root_dir = ... | php | chosen |
[
{
"from": "system",
"value": "Installation: Enable the routing bundles to your kernel\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function regist... | php | chosen |
[
{
"from": "system",
"value": "Add pagination stub and buttons to category conversation list.\n"
},
{
"from": "human",
"value": "@extends('fluxbb::layout.main')\n\n@section('main')\n\n<!-- begin board wrapper -->\n<div id=\"brdwrapper\">\n\n <div id=\"idx1\" class=\"idx\">\n\n <h2 class... | php | chosen |
[
{
"from": "system",
"value": "Remove showshildren as field from CMS\n"
},
{
"from": "human",
"value": "<?php\n\nclass GroupedProduct extends Product {\n \n /**\n * @config\n */\n private static $description = \"A product containing other products\";\n \n private static $ha... | php | chosen |
[
{
"from": "system",
"value": "Fix for collection id not sending\n"
},
{
"from": "human",
"value": "<?php function HookPdf_exportAllRender_actions_add_collection_option($top_actions,$options){\n\tglobal $lang,$pagename,$pdf_output,$pdf_output_only_annotated,$baseurl_short,$collection,$count_resul... | php | chosen |
[
{
"from": "system",
"value": "Test now extends new base unit-test-case\n"
},
{
"from": "human",
"value": "<?php\n\nuse Faker\\Factory as FakerFactory;\n\n/**\n * Class Collection Test Case\n *\n * Base test case class for most collection tests\n *\n * @author Alin Eugen Deac <aedart@gmail.com>\n... | php | chosen |
[
{
"from": "system",
"value": "Sort the results from ls\n"
},
{
"from": "human",
"value": "<?php\n\tinclude '../util.php.inc';\n\t\n\t$dir = $_GET['dir'];\n\t$path = bespin_get_file_name($dir);\n\t\n\t// Open a known directory, and proceed to read its contents\n\tif (is_dir($path)) {\n\t if ($... | php | chosen |
[
{
"from": "system",
"value": "Speed up latest issue block\n"
},
{
"from": "human",
"value": "<?php\n\tclass ArchiveLink {\n\t\tprivate $dba;\n\n\t\tfunction __construct() {\n\t\t\tglobal $dba;\n\t\t\tglobal $db;\n\n\t\t\t$this->db = $db;\n\n\t\t\t$dbaname = ARCHIVE_DATABASE;\n\n\t\t\t$dba = new ... | php | chosen |
[
{
"from": "system",
"value": "Remove very messy old language code and replace it with something that doesn't require changing every time a language is added.\n"
},
{
"from": "human",
"value": "<?php\r\nif(!empty($_COOKIE['lang']))$lang=$_COOKIE['lang'];\r\nif(!empty($_GET['lang']))$lang=$_GET['l... | php | chosen |
[
{
"from": "system",
"value": "Use set method on EnvFile object\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sven\\FlexEnv;\n\nuse Sven\\FlexEnv\\Contracts\\Parser;\n\nclass EnvParser implements Parser\n{\n public function parse(string $env): EnvFile\n {\n $lines = $this->re... | php | chosen |
[
{
"from": "system",
"value": "Revert \"snowflake - odbc drivers update\"\n\nThis reverts commit 4532642aba3a1e691d4ca1d8636d9b185d50dcf9.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Loads test fixtures into S3\n */\n\ndate_default_timezone_set('Europe/Prague');\nini_set('display_errors', t... | php | chosen |
[
{
"from": "system",
"value": "Add QOS_SIZE setting to allow ack messages being removed from queue as fatch size is set to 1\n"
},
{
"from": "human",
"value": "<?php\n/**\n * mbc-transactional-digest\n *\n * Collect transactional campaign sign up message requests in a certain time period and\n * ... | php | chosen |
[
{
"from": "system",
"value": "Fix return values in doc\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Fiber: String\n * Copyright (c) 2013 Eirik Refsdal <eirikref@gmail.com>\n */\n\nnamespace Fiber;\n\n/**\n * Fiber: String\n *\n * Class for generating string test data\n *\n * Things: - strin... | php | chosen |
[
{
"from": "system",
"value": "Fix skills interface name-space and docblock.\n"
},
{
"from": "human",
"value": "<?php namespace Kshabazz\\BattleNet\\D3\\Models;\n/**\n *\n */\n\n/**\n * Class Skill\n *\n * @package Kshabazz\\BattleNet\\D3\\Models\n */\ninterface Skill\n{\n\t/**\n\t * Constructor\... | php | chosen |
[
{
"from": "system",
"value": "Update test to prepare for nested parsing development\n"
},
{
"from": "human",
"value": "<?php\nob_start();\n?>\n\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <titl... | php | chosen |
[
{
"from": "system",
"value": "Create format() method to match old trimUrl() for Laravel 5.4 version"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace LaravelTrailingSlash;\r\n\r\nuse Illuminate\\Routing\\UrlGenerator as BaseUrlGenerator;\r\n\r\nclass UrlGenerator extends BaseUrlGenerator\r... | php | chosen |
[
{
"from": "system",
"value": "Add container div for two-column layout\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The template used for displaying page content\n *\n */\n?>\n\n<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\n\t<header class=\"entry-header\">\n\t\t<?php th... | php | chosen |
[
{
"from": "system",
"value": "Use facade because config() helper may cause some issue on teardown\nprocess during testing.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\M... | php | chosen |
[
{
"from": "system",
"value": "Fix issue where modX was not yet available\n"
},
{
"from": "human",
"value": "<?php namespace MODX\\Shell\\Command\\User;\n\nuse MODX\\Shell\\Command\\ListProcessor;\n\n/**\n * List all users for the current modX instance\n */\nclass GetList extends ListProcessor\n{... | php | chosen |
[
{
"from": "system",
"value": "Fix logging out for non-SSO users\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TitusPiJean\\Flarum\\Auth\\SSOwat\\Listeners;\n\nuse Flarum\\Core\\User;\nuse Flarum\\Event\\UserLoggedOut;\nuse Flarum\\Settings\\SettingsRepositoryInterface;\nuse Illuminate\\C... | php | chosen |
[
{
"from": "system",
"value": "Update Tags name length to 320 characters;\n\nper https://github.com/UseMuffin/Slug/pull/25#issuecomment-225242866;\n"
},
{
"from": "human",
"value": "<?php\nnamespace Muffin\\Slug\\Test\\Fixture;\n\nuse Cake\\TestSuite\\Fixture\\TestFixture;\n\nclass TagsFixture ex... | php | chosen |
[
{
"from": "system",
"value": "Add profidence to managed channels"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Config options for the Slack bot\n |-------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix xml declaration not parsed\n"
},
{
"from": "human",
"value": "<?php\n\nif(!function_exists('wp_bootstrap_the_content')) {\n \n function wp_bootstrap_the_content($content) {\n $html = new DOMDocument();\n @$html->loadHTML('<?xml encoding=\"utf-8\" ?>' .... | php | chosen |
[
{
"from": "system",
"value": "Switch slim api example to use response object\n"
},
{
"from": "human",
"value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\n\n$app = new \\Slim\\Slim();\n\n\n$app->get('/hello', function() {\n echo json_encode(array(\"message\" => \"Hello\"));\n});\n\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary else from formatAmount() method.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravel\\Cashier;\n\nclass Cashier\n{\n /**\n * The custom currency formatter.\n *\n * @var callable\n */\n protected static $formatCurren... | php | chosen |
[
{
"from": "system",
"value": "Fix invalid path when publishing vendor config.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kurt\\Repoist;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Kurt\\Repoist\\Commands\\MakeCriterionCommand;\nuse Kurt\\Repoist\\Commands\\MakeRepositoryCommand;... | php | chosen |
[
{
"from": "system",
"value": "Fix depreciation notices with Symfony >= 4.2\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the SensioLabsConnectBundle package.\n *\n * (c) SensioLabs <contact@sensiolabs.com>\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Disable browser cache for builder page\n\nThis is to avoid user uses back button after logout\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Meot\\FormBundle\\Controller;\n\nuse Meot\\FormBundle\\Entity\\Question,\n Meot\\FormBundle\\Entity\\Response,\n ... | php | chosen |
[
{
"from": "system",
"value": "Set flag keepListStartNumber for the markdown parser. Means lists will start at whatever number is writen, rather than 1.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\PostProcessor;\n\nuse cebe\\markdown\\GithubMarkdown;\n\nclass FilterMarkdown impleme... | php | chosen |
[
{
"from": "system",
"value": "Move extension loading to boot method\n\nThis will likely have to be reverted, to make things like $this->app->extend() work\nreasonably well in extensions' service providers.\n\nFor now, since we fetch the enabled extensions from the config, there is no other way\nfor us to gu... | php | chosen |
[
{
"from": "system",
"value": "Use inline-block instead of float for iframes to prevent text from\nwrapping around them.\n"
},
{
"from": "human",
"value": "<?php\n\nclass IncludeSteepGadgets {\n static function HookParser($parser) {\n $parser->setHook(\"process-model\", \"IncludeSteepGa... | php | chosen |
[
{
"from": "system",
"value": "Change jQuery.scrollTo asset folder case"
},
{
"from": "human",
"value": "<?php\n\nnamespace uran1980\\yii\\assets\\jQueryEssential;\n\nclass JqueryScrollToAsset extends \\yii\\web\\AssetBundle\n{\n public $sourcePath = '@bower/jquery.scrollTo';\n public $js =... | php | chosen |
[
{
"from": "system",
"value": "Fix bug dans les includes\n"
},
{
"from": "human",
"value": "<?php\t\n\t// Include of configurations\n\trequire_once(\"include/config.inc.php\");\n\n\t// Include of required libs\n\trequire_once(\"include/functions.inc.php\");\n\trequire_once(\"include/class.inc.php... | php | chosen |
[
{
"from": "system",
"value": "Adjust GET / and GET /certificates\n"
},
{
"from": "human",
"value": "<?php\n// Auto load composer components\nrequire '../vendor/autoload.php';\n\n// Require config\ninclude('../config.php');\n\n// Initalize Slim instance\n$app = new \\Slim\\Slim();\n$app->view(ne... | php | chosen |
[
{
"from": "system",
"value": "Update CSociety Webpage to include more info\n"
},
{
"from": "human",
"value": "<?php\n $page_title = 'Home';\n $site_title = 'Computer Society';\n $site_index = '/csociety';\n include '../header.php';\n?>\n <link href=\"/assets/bootstrap.csociety.css... | php | chosen |
[
{
"from": "system",
"value": "Remove apply from removing listener\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 * file that was distribut... | php | chosen |
[
{
"from": "system",
"value": "Fix off by 1 error\n"
},
{
"from": "human",
"value": "<?php\n\ninclude 'mysqlConfig.php';\n\nheader('Content-type: text/plain; charset=us-ascii');\nheader(\"Access-Control-Allow-Origin: *\");\n\n@mysql_select_db($dsn) or die( \"Unable to select database\");\n\n$min_... | php | chosen |
[
{
"from": "human",
"value": "Add futur http tunnel script for Asker Extension\n"
},
{
"from": "gpt",
"value": "<?php\nif ('cli' === php_sapi_name() && basename(__FILE__) === $argv[0] && isset($argv[1])) {\n switch ($argv[1]) {\n case 'update':\n $remoteFilename = 'http://sil... | php | chosen |
[
{
"from": "system",
"value": "Update grid field count view able on each page for staff\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n *\n * @package silverstripe\n * @subpackage sections\n */\nclass PeopleSection extends Section\n{\n private static $title = \"List of people\";\n\n pri... | php | chosen |
[
{
"from": "system",
"value": "Add stream link route redirects\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| Here ... | php | chosen |
[
{
"from": "system",
"value": "Fix \"version\" and \"_http\" swapped in argument list\n"
},
{
"from": "human",
"value": "<?php\nnamespace Vresh\\TwilioBundle\\Service;\n\n/**\n * This file is part of the VreshTwilioBundle.\n *\n * For the full copyright and license information, please view the LI... | php | chosen |
[
{
"from": "system",
"value": "Disable Jetpack Sharing and Likes\n\nLikes don't work without Javascript and we should wait until Sharing\nlands (https://github.com/ampproject/amphtml/pull/1856)\n"
},
{
"from": "human",
"value": "<?php\n\n// Jetpack bits.\n\nadd_action( 'pre_amp_render_post', 'amp... | php | chosen |
[
{
"from": "system",
"value": "Disable Twig cache in debug mode\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\n/**\n * This file is part of TwigView.\n *\n ** (c) 2014 Cees-Jan Kiewiet\n *\n * For the full copyright and license information, please view the LICENSE\n * file ... | php | chosen |
[
{
"from": "system",
"value": "Fix & W3 Validation Fail in a Links\n"
},
{
"from": "human",
"value": "<?php\n\t/**\n\t * Url.php\n\t * Contains the Thinker\\Http\\Url class\n\t *\n\t * @author Cory Gehr\n\t */\n\nnamespace Thinker\\Http;\n\nclass Url {\n\n\t/**\n\t * __construct()\n\t * Const... | php | chosen |
[
{
"from": "system",
"value": "Add newline at end of file.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Beskhue\\CookieTokenAuth\\Controller;\n\nuse App\\Controller\\AppController;\nuse Cake\\Event\\Event;\n\nclass CookieTokenAuthController extends AppController\n{\n public $autoRende... | php | chosen |
[
{
"from": "system",
"value": "Fix HasQueryTrait, return model objects collection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Milax\\Mconsole\\Traits;\n\nuse Milax\\Mconsole\\Exceptions\\ModelPropertyException;\nuse Milax\\Mconsole\\Processors\\TableProcessor;\n\nuse View;\n\ntrait HasQ... | php | chosen |
[
{
"from": "system",
"value": "Add the SQLite configuration entry example\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Database configuration\n *\n * @author David Carr - dave@daveismyname.com\n * @author Edwin Hoksberg - info@edwinhoksberg.nl\n * @author Virgil-Adrian Teaca - virgil@giulian... | php | chosen |
[
{
"from": "system",
"value": "Add the headers to the response\n\nhttps://developer.forecast.io/docs/v2#response-headers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Forecast;\n\nclass Forecast\n{\n const API_ENDPOINT = 'https://api.forecast.io/forecast/';\n private $api_key;\n\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.