conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix store detail return data\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse FOS\\RestBundle\\Controller\\FOSRestController;\nuse FOS\\RestBundle\\Controller\\Annotations\\Get;\nuse FOS\\RestBundle\\Controller\\Annotations\\View;\... | php | chosen |
[
{
"from": "system",
"value": "Add a way to parse a block with twig\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\BlockEditor\\Blocks;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\nabstract class EditorBlock\n{\n /** @var ContainerInterface */\n priv... | php | chosen |
[
{
"from": "system",
"value": "Fix for MDL-10776 \"Moodle Faulty navigation in questions categories when editing questions or exporting/importing categories\"\n"
},
{
"from": "human",
"value": "<?php // $Id$\n/**\n * Sets up the tabs used by the question bank editing page\n *\n * @license http:/... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Apply tenantable global scope on Eloquent Presence Verifier (i.e. used in validation rules like unique & exists)\"\n\nThis reverts commit bf5b326067545891c1a339b3ae7a15357e2f7707.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnames... | php | chosen |
[
{
"from": "system",
"value": "Fix queue not showing correct times\n"
},
{
"from": "human",
"value": "@section(\"content\")\n\n\t<div class=\"container main\">\n\t\t<h1 class=\"text-center\">Queue</h1>\n\n\t\t<ul class=\"list-group col-md-8 col-md-offset-2\">\n\t\t\t@foreach ($queue as $q)\n\t\t\... | php | chosen |
[
{
"from": "system",
"value": "Set test parameters default to true\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flotz\\TxtLocalBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInter... | php | chosen |
[
{
"from": "system",
"value": "Switch to parent plugin action to load plugin\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\nPlugin Name: Castlegate IT WP Breadcrumb Nav Menu\nPlugin URI: http://github.com/castlegateit/cgit-wp-breadcrumb-nav-menu\nDescription: Simple breadcrumb navigation for W... | php | chosen |
[
{
"from": "system",
"value": "Add a check if order object is an object and has an id\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * GlixGalore Checkout Block\n * \n * @category Shopix\n * @package Shopix_ClixGalore\n * @author Lucas van Staden (sales@proxiblue.com.au)\n */\nclass S... | php | chosen |
[
{
"from": "system",
"value": "Enable sale using card reference (\"token\")\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\BluePay\\Message;\n\n/**\n * BluePay Sale Request\n */\nclass SaleRequest extends AbstractRequest\n{\n protected $action = 'SALE';\n\n public function g... | php | chosen |
[
{
"from": "system",
"value": "Bring back try/catch for 5.1"
},
{
"from": "human",
"value": "<?php namespace Barryvdh\\Debugbar\\Middleware;\n\nuse Closure;\nuse Barryvdh\\Debugbar\\LaravelDebugbar;\n\nclass Debugbar {\n\n /**\n * The Exception Handler\n *\n * @var LaravelDebugbar\... | php | chosen |
[
{
"from": "system",
"value": "Include the profiler toolbar on the development environment.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'key' => \"6d022a8b71d4f6a0d3b89f587257eb70\",\n);"
},
{
"from": "gpt",
"value": "<?php\n\nreturn array(\n 'key' => \"6d022a8b71d4f... | php | chosen |
[
{
"from": "system",
"value": "Change edit_profile class to edit--profile to maintain naming consistency\n"
},
{
"from": "human",
"value": "<div class=\"site-container profile\">\r\n\t<section>\r\n\t\t<h1><?php echo $user->username; ?>'s profile</h1>\r\n\t\t<figure>\r\n\t\t\t<img src=\"<?php echo... | php | chosen |
[
{
"from": "system",
"value": "Add newline to terse list content.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\CommonMark\\Node\\Block;\n\nuse FluxBB\\CommonMark\\Node\\Container;\nuse FluxBB\\CommonMark\\Node\\Inline\\String;\nuse FluxBB\\CommonMark\\Node\\NodeVisitorInterface;\... | php | chosen |
[
{
"from": "system",
"value": "Allow images to be null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Metrique\\Building\\Http\\Requests;\n\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Illuminate\\Foundation\\Http\\FormRequest;\nuse Illuminate\\Validation\\Rule;\nuse Metrique\\Buildi... | php | chosen |
[
{
"from": "system",
"value": "Add 'env' as a default variable available via {{ site.env }} in Twig templates.\n\nThe environment is available while pulling in config files so this change\nadds the environment to the 'site' variable.\n\nI've tried to avoid code duplication by adding the getConfigFile() metho... | php | chosen |
[
{
"from": "system",
"value": "Remove less than useful comments.\n"
},
{
"from": "human",
"value": "<?php namespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Sprint;\n\nclass CreateSnapshots extends Command {\n\n\t/**\n\t * The console command name.\n\t *\n\t * @var string... | php | chosen |
[
{
"from": "system",
"value": "Add note about expire time\n\nMight be confusing for users, if the expire time is not stated."
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en-US\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t</head>\n\t<body>\n\t\t<h2>Password Reset</h2>\n\n\t\t<di... | php | chosen |
[
{
"from": "system",
"value": "Use dependency injection to instantiate processing consumer class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * mbc-image-processor\n *\n * Collect image details from the imageProcessingQueue. Use image path to make http request\n * to trigger generation of imag... | php | chosen |
[
{
"from": "system",
"value": "Fix error handling for non-existent documents\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BNETDocs\\Controllers\\Document;\n\nuse \\BNETDocs\\Libraries\\Authentication;\nuse \\BNETDocs\\Libraries\\Comment;\nuse \\BNETDocs\\Libraries\\Document;\nuse \\BNETD... | php | chosen |
[
{
"from": "system",
"value": " Fix for error on creating new post in case of postgreql\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests\\Admin;\n\nuse App\\Rules\\CanBeAuthor;\nuse App\\User;\nuse Carbon\\Carbon;\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass P... | php | chosen |
[
{
"from": "system",
"value": "Build may or may not exist\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2015-2018 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed with the hope of\n * attracting more community contributions to the core ecosystem ... | php | chosen |
[
{
"from": "system",
"value": "Store credential data encrypted and decrypt for display\n"
},
{
"from": "human",
"value": "<?php\n\nclass Credential extends \\Eloquent {\n\tprotected $fillable = [\n 'service_name',\n 'organization_id',\n 'user_name',\n 'password',\n ... | php | chosen |
[
{
"from": "system",
"value": "Return null instead of void\n\nThe return value is used in unit tests for comparisons, and returning null is slightly more specific.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Ivory Http Adapter package.\n *\n * (c) Eric GELOEN <gelo... | php | chosen |
[
{
"from": "system",
"value": "Add configuration properties to the service.\n"
},
{
"from": "human",
"value": "<?php\nnamespace DTS\\eBaySDK\\Trading\\Services;\n\nclass TradingBaseService extends \\DTS\\eBaySDK\\Services\\BaseService\n{\n const HDR_API_VERSION = 'X-EBAY-API-COMPATIBILITY-LEVE... | php | chosen |
[
{
"from": "system",
"value": "Add requiresSQLCommentHint to allow doctrine migration to diff in the right way
\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kayladnls\\DoctrineAdditions\\Type;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Types\\StringType;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add constructor, getField method and start building the query method\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Title: PHP SimpleQuery\n * Version: 0.1\n * Description: Perform queries on PHP arrays\n * Author: Lawrence Okoth-Odida\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix spec for Symfony4 and type hinting in Response\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Hexanet\\Common\\MonologExtraBundle\\Logger\\Response;\n\nuse Hexanet\\Common\\MonologExtraBundle\\Logger\\Response\\ResponseLogger;\nuse Hexanet\\Common\\... | php | chosen |
[
{
"from": "system",
"value": "Make approved fields nullable and remigrate\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateWorksTable extends Migration\n{\n /**\n * Run the migrations.... | php | chosen |
[
{
"from": "system",
"value": "Use placeholder variable to fix error"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\n/**\n * Handles requests through the browser ie at the live site\n */\nclass WebController extends Controller\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Make current language accessible to all views\n"
},
{
"from": "human",
"value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvid... | php | chosen |
[
{
"from": "system",
"value": "Include integers and more by if.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Hash class file\n */\n\nnamespace Graviton\\DocumentBundle\\Entity;\n\n/**\n * Special type for hash fields\n *\n * @author List of contributors <https://github.com/libgraviton/grav... | php | chosen |
[
{
"from": "system",
"value": "Make sure the remember token is set\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Laravel\\Tests;\n\nuse Mockery as m;\nuse Adldap\\Laravel\\Auth\\ResolverInterface;\nuse Adldap\\Laravel\\Middleware\\WindowsAuthenticate;\n\nclass WindowsAuthenticateT... | php | chosen |
[
{
"from": "system",
"value": "Test the __toString() method of DrupalTestUser class.\n"
},
{
"from": "human",
"value": "<?php\n\nuse \\Codeception\\Module\\Drupal\\UserRegistry\\DrupalTestUser;\nuse \\Codeception\\Util\\Fixtures;\n\n/**\n * Unit tests for DrushTestUserManager class.\n */\nclass D... | php | chosen |
[
{
"from": "system",
"value": "Add the decoratable behavior to the dispatcher and add the winddow controller as decorator\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Kodekit Component - http://www.timble.net/kodekit\n *\n * @copyright\tCopyright (C) 2011 - 2013 Johan Janssens and Timble CVB... | php | chosen |
[
{
"from": "system",
"value": "Revert to ES search results\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace makeandship\\elasticsearch\\transformer;\nuse makeandship\\elasticsearch\\Config;\n\nclass SearchTransformer {\t\n\tpublic function transform($response)\n {\n $val = array(\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unneeded params in message api\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Response_Api_Message extends Denkmal_Response_Api_Abstract {\n\n\t/**\n\t * @var Denkmal_Params\n\t */\n\tprotected $_params;\n\n\tpublic function __construct(CM_Request_... | php | chosen |
[
{
"from": "system",
"value": "Fix URL for php -S, kill double json encode\n"
},
{
"from": "human",
"value": "<?php\n\n\treturn Affinity\\Config::create(['routes'], [\n\n\t\t//\n\t\t// API\n\t\t//\n\n\t\t'@routes' => [\n\t\t\t'base_url' => '/api/v1.0/',\n\t\t\t'links' => [\n\t\t\t\t'[!:collect... | php | chosen |
[
{
"from": "system",
"value": "Fix code style in RequiredInterface\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseStructure project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace A... | php | chosen |
[
{
"from": "system",
"value": "Fix proper handling of form submission in serializer\n"
},
{
"from": "human",
"value": "<?php\n\nclass Analytics_Options_Serializer {\n\n\tpublic static function save() {\n\n\t\t$option_name = 'analytics';\n\n\t\tif ( empty( $_POST['vendor-type'] ) ||\n\t\t empt... | php | chosen |
[
{
"from": "system",
"value": "Add additional default date check\n"
},
{
"from": "human",
"value": "<?php\nfunction convert_mysql_date_to_php_date($date) {\n if ($date == \"0000-00-00\" || $date == NULL) {\n $date = \"N/A\";\n } else {\n $date = date('d-M-y', strtotime($date))... | php | chosen |
[
{
"from": "system",
"value": "Make check function a static function so it works better with Composer scripts\n"
},
{
"from": "human",
"value": "<?php namespace Kielabokkie\\DotenvCheck;\n\nuse League\\CLImate\\CLImate;\n\nclass DotenvCheck\n{\n private $cli;\n\n public function __construct... | php | chosen |
[
{
"from": "system",
"value": "Change from constant public and secret key to retrieve it from database\n\nChange the constant of public key and secret key that was fixed, to\nretrieve it from database by using the class OmiseConfigProvider."
},
{
"from": "human",
"value": "<?php\n\nnamespace Omis... | php | chosen |
[
{
"from": "system",
"value": "Remove phpinfo() & replace with simple echo for testing\n\nBy default phpinfo can expose credentials in environment\nvariables. An unsuspecting developer may accidentally deploy\nwithout replacing this index.php first. Using `echo` is a safer\noption.\n"
},
{
"from": "h... | php | chosen |
[
{
"from": "system",
"value": "Add the form tags to view\n"
},
{
"from": "human",
"value": "@if(version_compare($version, '5.3.0') < 0)\n @include('geniusts_preferences::settings_5_2')\n@else\n @include('geniusts_preferences::settings_5_3')\n@endif\n"
},
{
"from": "gpt",
"value"... | php | chosen |
[
{
"from": "system",
"value": "[Security] Fix exception name in doc comments\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 LIC... | php | chosen |
[
{
"from": "system",
"value": "Sort aliases in list view widgets command.\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 an... | php | chosen |
[
{
"from": "system",
"value": "BUG: Fix radio field with \" in Title.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * EditableRadioField\n *\n * Represents a set of selectable radio buttons\n *\n * @package userforms\n */\n\nclass EditableRadioField extends EditableMultipleOptionField {\n\t\n\t... | php | chosen |
[
{
"from": "system",
"value": "Fix assertion.\n… since the Formatter has to be inside store emulation to retrieve correct value.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @group category\n */\nclass SPM_ShopyMind_Test_DataMapper_Category extends EcomDev_PHPUnit_Test_Case\n{\n private... | php | chosen |
[
{
"from": "system",
"value": "Fix the path() helper to work with absolute paths"
},
{
"from": "human",
"value": "<?php namespace Bkwld\\Upchuck;\n\n/**\n * Helpers generally invoked from the Faade\n */\nclass Helpers {\n\n\t/**\n\t * @var array The Upchuck config array\n\t */\n\tprivate $config;... | php | chosen |
[
{
"from": "system",
"value": "Add uploaded files to the post request.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Simovative\\Zeus\\Http\\Post;\n\nuse Simovative\\Zeus\\Http\\Request\\HttpRequest;\nuse Simovative\\Zeus\\Http\\Url\\Url;\n\n/**\n * @author mnoerenberg\n */\nclass HttpPostR... | php | chosen |
[
{
"from": "system",
"value": "Set the default timezone to 'UTC'.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n *\n * This file is part of the Apix Project.\n *\n * (c) Franck Cassedanne <franck at ouarz.net>\n *\n * @license http://opensource.org/licenses/BSD-3-Clause New BSD License\n ... | php | chosen |
[
{
"from": "system",
"value": "Exclude 'create' and 'edit' from resource routes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dingo\\Api\\Routing;\n\nuse Illuminate\\Routing\\ResourceRegistrar as IlluminateResourceRegistrar;\n\nclass ResourceRegistrar extends IlluminateResourceRegistrar\n... | php | chosen |
[
{
"from": "system",
"value": "Fix site title h1 only for frontpage"
},
{
"from": "human",
"value": "<?php\n/**\n * Site branding & logo\n *\n * @package air-light\n */\n\nnamespace Air_Light;\n\n?>\n\n <div class=\"site-branding\">\n\n <?php if ( is_front_page() && is_home() ) : ?>\n... | php | chosen |
[
{
"from": "system",
"value": "Fix testcase for Cache dispense\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CacheTest.php.\n */\n\nnamespace Pagon;\n\n\nclass CacheTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @var App\n */\n protected $app;\n\n public function setU... | php | chosen |
[
{
"from": "system",
"value": "Add callback for image upload\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n <title>MissAtomicBomb</title>\n <link rel=\"stylesheet\" href=\"/assets/bootstrap/dist/css/bootstrap.css\">\n <link rel=\"stylesheet\" href=\"... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with Exception use path.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ThinkSayDo\\EnvTenant\\Events;\n\nuse ThinkSayDo\\EnvTenant\\TenantNotResolvedException;\n\nclass TenantNotResolvedListener\n{\n public function handle(TenantNotResolvedEvent $... | php | chosen |
[
{
"from": "system",
"value": "Add main menu chat entry\n"
},
{
"from": "human",
"value": "<?php\nnamespace Rooty\\DefaultBundle\\Menu;\n\nuse Knp\\Menu\\FactoryInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerAware;\n\nclass Builder extends ContainerAware {\n public function ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace in file adapter interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nimbusoft\\Parrot\\Parrot;\n\nuse League\\Flysystem\\FilesystemInterface;\n\ninterface FileAdapterInterface\n{\n public function getName();\n\n public function setup(... | php | chosen |
[
{
"from": "system",
"value": "Correct Oxygen Rating so that the number is calculated based on the filtered set"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n$input = file(__DIR__ . '/input.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);\n\n$amounts = [];\n\nforeach(... | php | chosen |
[
{
"from": "system",
"value": "Adjust event categories in setup script\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_App_SetupScript_EventCategories extends CM_Provision_Script_OptionBased {\n\n public function load(CM_OutputStream_Interface $output) {\n Denkmal_Model_EventC... | php | chosen |
[
{
"from": "system",
"value": "Add timestamps column to database migration.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Support\\Facades\\Schema;\nuse App\\Realms\\Server;\n\nclass Crea... | php | chosen |
[
{
"from": "system",
"value": "Add ability to dump a specific key\n"
},
{
"from": "human",
"value": "<?php\nnamespace Rocketeer\\Console\\Commands\\Development;\n\nuse Rocketeer\\Abstracts\\Commands\\AbstractCommand;\n\nclass ConfigurationCommand extends AbstractCommand\n{\n /**\n * The co... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with attributes without value (default is true)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Styde\\Html\\FormModel;\n\ntrait HasAttributes\n{\n public function __call($method, $params)\n {\n return $this->attr($method, isset($params[0]... | php | chosen |
[
{
"from": "system",
"value": "Fix HTTPClientHandlerInterface in Laravel Config."
},
{
"from": "human",
"value": "<?php\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n | Telegram Bot API Access Token [REQUIRED]\n |----------------------... | php | chosen |
[
{
"from": "system",
"value": "Return object after validation for easier method chaining.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace R\\Hive\\Concrete\\Data;\n\nuse R\\Hive\\Contracts\\Data\\GenericValidator as GenericValidatorContract;\nuse Validator;\n\nclass BaseValidator implements... | php | chosen |
[
{
"from": "system",
"value": "Revert back namespace change for dompdf.\n\nChanging the namespace meant one needed to use dompdf 0.7beta.\nSuch a change should not have been done in a bugfix release.\n"
},
{
"from": "human",
"value": "<?php\nnamespace CakePdf\\Pdf\\Engine;\n\nuse CakePdf\\Pdf\\Ca... | php | chosen |
[
{
"from": "system",
"value": "Fix assertions in default spec factory\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cs278\\BankModulus\\Spec;\n\n/**\n * Default factory implementation.\n *\n * Uses the correct specification based on the current date.\n */\nfinal class DefaultSpecFactory i... | php | chosen |
[
{
"from": "system",
"value": "Allow to do app->make with parameters to pass to the constructor of guzzle client\n"
},
{
"from": "human",
"value": "<?php\nnamespace GuzzleHttp\\Subscriber\\Log\\Support;\n\nuse DebugBar\\DataCollector\\ExceptionsCollector;\nuse DebugBar\\DebugBar;\nuse GuzzleHttp\... | php | chosen |
[
{
"from": "system",
"value": "Exclude test files from indexing.\n\nMay put this into command line argument, but now just use a default one.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Padawan\\Framework\\Generator;\n\nuse Padawan\\Framework\\Utils\\PathResolver;\nuse Padawan\\Domain\\P... | php | chosen |
[
{
"from": "system",
"value": "Add course ID to the enrollments export list\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<table>\n\t<tr>\n\t\t<th>Course</th>\n\t\t<th>Student ID</th>\n\t\t<th>Student Name</th>\n\t\t<th>Student E-mail</th>\n\t\t<th>Enrollment Date</th>\n\t</tr>\n\t@... | php | chosen |
[
{
"from": "system",
"value": "Rollback change to BASE_URI (mistake)\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace NewTwitchApi;\n\nuse GuzzleHttp\\Client;\n\nclass HelixGuzzleClient extends Client\n{\n private const BASE_URI = 'https://ad5211862b1bcde69e969... | php | chosen |
[
{
"from": "system",
"value": "Make sure to use Dropbox SDK v1.1.6\n"
},
{
"from": "human",
"value": "<?php\nnamespace Dropbox;\n\n/**\n * @internal\n */\nfinal class SdkVersion {\n // When doing a release:\n // 1. Set VERSION to the version you're about to release, tag the relase, then com... | php | chosen |
[
{
"from": "system",
"value": "Remove old finds from main\n"
},
{
"from": "human",
"value": "<?php\r\nclass MainController extends RedeAppController\r\n{\r\n\r\n\tvar $name = 'Main';\r\n\tvar $uses = array();\r\n\t\r\n\tfunction index()\r\n\t{\r\n\t\t// GET HIGHLIGHTED CONTENT (3 FIRST COLUMNS)\r... | php | chosen |
[
{
"from": "system",
"value": "Convert files from dos format to unix format\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Zend Framework (http://framework.zend.com/)\r\n *\r\n * @link http://github.com/zendframework/zf2 for the canonical source repository\r\n * @copyright Copyright (... | php | chosen |
[
{
"from": "system",
"value": "Make configuration overrideable from /etc\n"
},
{
"from": "human",
"value": "<?php\r\n\trequire_once('IP2Country.php');\r\n\r\n\tdefine('DB_SERVER', 'localhost');\r\n\tdefine('DB_PORT', 3306);\r\n\tdefine('DB_NAME', 'dnscheckng');\r\n\tdefine('DB_USER', 'dnscheckng'... | php | chosen |
[
{
"from": "system",
"value": "Add column width to posts for larger displays"
},
{
"from": "human",
"value": "<div class=\"post\">\n @if (isset($post))\n <h1>{{{ $post->title }}}</h1>\n\n {{-- Escape html entities, format with paragraph tags --}}\n {{-- Leading and trailin... | php | chosen |
[
{
"from": "system",
"value": "Decrease the query count when loading a blog post\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SymfonyDay\\Bundle\\BlogBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * PostRepository\n *\n * This class was generated by the Doctrine ORM. Ad... | php | chosen |
[
{
"from": "system",
"value": "Use bcache.zxq.co for serving files via bloodcat\n"
},
{
"from": "human",
"value": "<?php\n\t// Require functions file\n\trequire_once(\"./inc/functions.php\");\n\n\t// URI and explode\n\t$uri = $_SERVER[\"REQUEST_URI\"];\n\t$uri = explode(\"/\",$uri);\n\n\t// Redir... | php | chosen |
[
{
"from": "system",
"value": "Add a new foreign key for the vehicle type\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateVehiclesTable extends Migration\n{\n /**\n * Run the migration... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect service name in compiler pass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Palmtree\\CanonicalUrlBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\D... | php | chosen |
[
{
"from": "system",
"value": "Fix include path for zend\n"
},
{
"from": "human",
"value": "<?php\n\nif( is_dir(__DIR__ . '/../../public_html/') ) {\n define('BOLT_WEB_DIR', __DIR__ . '/../../public_html/');\n} else {\n define('BOLT_WEB_DIR', __DIR__ . '/../../web/');\n}\n\nrequire_once( __... | php | chosen |
[
{
"from": "system",
"value": "Add an additional field, what\n\nAdding a what field to the array\n"
},
{
"from": "human",
"value": "<?php\n\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Welcome extends Application\n{\n\n\tfunction __construct()\n\t{\n\t\tparent::__cons... | php | chosen |
[
{
"from": "system",
"value": "Add some lines to encode all in UTF8"
},
{
"from": "human",
"value": "<?php\n\n$pdo = new PDO('mysql:host=127.0.0.1;dbname=marjo21mlo', 'root', 'root');\n\n?>\n"
},
{
"from": "gpt",
"value": "<?php\nheader('Content-Type: text/html; charset=UTF-8');\n$pdo... | php | chosen |
[
{
"from": "system",
"value": "Tag cloud improvements from Donat Studios\n"
},
{
"from": "human",
"value": "<?\n\nif( !$shutup ) :\n\n$tags = db::fetch('select tag, count(*) as c from categories_tags inner join categories using(categories_id) where `status` and `list` group by tag order by tag');... | php | chosen |
[
{
"from": "system",
"value": "Update dashboard description to show that only the most recent articles are synced.\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('content')\n<section class=\"main-inner\">\n <h2>Dashboard</h2>\n\n\t<div class=\"subscribe\">\n <... | php | chosen |
[
{
"from": "system",
"value": "Correct remote and public, and last occurence of OC::\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can... | php | chosen |
[
{
"from": "system",
"value": "Update error message (make it shorter)\n\n* Update the error message (to make it shorter)\r\n* Specify `bool` return type for `isValid` method's signature"
},
{
"from": "human",
"value": "<?php\n/**\n * Class made by pH7 (Pierre-Henry SORIA).\n */\n\nnamespace PFBC\... | php | chosen |
[
{
"from": "system",
"value": "Add the class name note\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Core functions.\n * \n * Don't forget to add own ones.\n */\n\n// `encrypt`\n//\n// Encrypts `$str` in rot13.\nfunction encrypt($str) {\n echo str_rot13($str);\n}\n\n// `decrypt`\n//\n// Dec... | php | chosen |
[
{
"from": "system",
"value": "Update feedparse() for PHP 5\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Core functions.\n * \n * Don't forget to add own ones.\n */\n\n// `encrypt`\n//\n// Encrypts `$str` in rot13.\nfunction encrypt($str) {\n echo str_rot13($str);\n}\n\n// `decrypt`\n//\n/... | php | chosen |
[
{
"from": "system",
"value": "Modify the stripped key name"
},
{
"from": "human",
"value": "<?php\nnamespace common\\commands;\n\nuse Yii;\nuse common\\models\\Company;\nuse yii\\helpers\\Url;\n\nclass CompanyDropdown\n{\n public function get(){\n $companyAccess = new CompanyAccess();\... | php | chosen |
[
{
"from": "system",
"value": "Check for validity of config array\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Yeah\\Fw\\Application;\r\n\r\n/**\r\n * Use for storing runtime configuration\r\n * \r\n * @author David Cavar\r\n */\r\nclass Config {\r\n\r\n private $config = array();... | php | chosen |
[
{
"from": "system",
"value": "Add FRSS 1.2-dev in the version list\n\nSee https://github.com/FreshRSS/FreshRSS/issues/738#issuecomment-74739891\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\t'0.8.0' => '1.0.0',\n\t'0.8.1' => '1.0.0',\n\t'0.9.0' => '1.1.0',\n\t'0.9.1' => '1.1.0',\n\... | php | chosen |
[
{
"from": "system",
"value": "Remove unused validation rule, and remove note tagging code, its now in the references observer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse App\\Tag;\nuse App\\Note;\nuse Validator;\nuse Illuminate\\Http\\Request;\nuse Laravel\\Dusk\... | php | chosen |
[
{
"from": "system",
"value": "Update to use 'app.env' for environment\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * This file is part of Laravel Zero.\n *\n * (c) Nuno Maduro <enunomaduro@gmail.com>\n *\n * For the full copyright and license information, please... | php | chosen |
[
{
"from": "system",
"value": "Add method to calculate count issues by label\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bap\\Bundle\\IssueBundle\\Entity\\Repository;\n\nuse Doctrine\\ORM\\AbstractQuery;\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * Class IssueRepository\n * @package... | php | chosen |
[
{
"from": "system",
"value": "Use the key configured to clear\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nwidart\\Modules\\Traits;\n\ntrait CanClearModulesCache\n{\n /**\n * Clear the modules cache if it is enabled\n */\n public function clearCache()\n {\n if (... | php | chosen |
[
{
"from": "system",
"value": "Add conditional PDO statement for sqlsrv \n\nAdd conditional check for PDO driver and added an edited PDO statement to address limit issue with sqlsrv PDO driver ."
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Slim HTTP Basic Authentication m... | php | chosen |
[
{
"from": "system",
"value": "Use PATCH to update a page\n"
},
{
"from": "human",
"value": "@extends('layouts.default')\n\n@section('title')\n@parent\nEdit {{ $page->title }}\n@stop\n\n@section('content')\n\n<div class=\"well\">\n <?php\n $form = array('url' => URL::route('pages.update', a... | php | chosen |
[
{
"from": "system",
"value": "Update casing in docblock in reference to class name.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface Google\\Site_Kit\\Core\\Modules\\Module_With_Settings\n *\n * @package Google\\Site_Kit\\Core\\Modules\n * @copyright 2019 Google LLC\n * @license h... | php | chosen |
[
{
"from": "system",
"value": "Fix potencial bug to behavior of child classes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bauhaus;\n\nuse Bauhaus\\Container\\ItemNotFoundException;\n\nclass Container implements ContainerInterface\n{\n private $items = [];\n\n public function __con... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.