conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix for not-markdown texts on .md pages"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * DokuWiki Plugin markdownextra (Action Component)\r\n *\r\n * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html\r\n * @author Andreas Gohr <andi@splitbrain.org>\r\n */\... | php | chosen |
[
{
"from": "system",
"value": "Implement function for getting values to a specific trait type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TraitTypeRepository\n *\n * This class was generated by the PhpStorm \"Php ... | php | chosen |
[
{
"from": "system",
"value": "Add decoding of the recieved data\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Main entry point\n *\n * @author Ivanis Kouamé <ivanis.kouame@smile.fr>\n * @copyright 2015 Smile\n */\n\nconst ROOT_PATH = __DIR__;\n\nrequire_once __DIR__ . '/../app/bootstrap.p... | php | chosen |
[
{
"from": "system",
"value": "FIX Remove the 'add' better button for ElementalAreaField\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DNADesign\\Elemental\\Forms;\n\nuse SilverStripe\\Forms\\GridField\\GridFieldConfig;\nuse SilverStripe\\Forms\\GridField\\GridFieldButtonRow;\nuse SilverS... | php | chosen |
[
{
"from": "system",
"value": "Make epsilon smaller to be able to compare smaller scores\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace lucidtaz\\minimax\\engine;\n\nuse Closure;\nuse lucidtaz\\minimax\\game\\Decision;\n\nclass DecisionWithScore\n{\n /**\n * @var Decision\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Fix XML Checking on HHVM\n"
},
{
"from": "human",
"value": "<?php\n\nfunction isXml($filename) {\n\t$xml = XMLReader::open($filename);\n\t// The validate parser option must be enabled for\n\t// this method to work properly\n\t$xml->setParserProperty(XMLReader::VALID... | php | chosen |
[
{
"from": "system",
"value": "Implement flash failover on audio player\n"
},
{
"from": "human",
"value": "<?php\n/*\nPlugin Name: SimpleCast\nPlugin URI: http://marketing.uoregon.edu\nDescription: Simple Shoutcast Player\nVersion: 1.0\nAuthor: Joshua Rose\nAuthor URI: http://marketing.uoregon.ed... | php | chosen |
[
{
"from": "system",
"value": "Use libreoffice rather than soffice to distinguish from OpenOffice.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Witti\\FileConverter\\Engine\\Convert;\n\nuse Witti\\FileConverter\\Engine\\EngineBase;\nclass LibreOffice extends EngineBase {\n public function... | php | chosen |
[
{
"from": "system",
"value": "Add Cache-Control for Styles route"
},
{
"from": "human",
"value": "<?php namespace Samuell\\ContentEditor\\Http\\Controllers;\n\nuse Response;\nuse Illuminate\\Routing\\Controller;\nuse Samuell\\ContentEditor\\Models\\Settings;\n\nclass AdditionalStylesController e... | php | chosen |
[
{
"from": "system",
"value": "Set return on parent when using api::create\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: mark.smith\n * Date: 04/09/2017\n * Time: 19:31\n */\n\nnamespace AppBundle\\Utils\\Api;\n\nuse AppBundle\\Utils\\Api;\n\nclass Redis extends... | php | chosen |
[
{
"from": "system",
"value": "Fix in constructor of currency price tag\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nilz\\Money\\PriceTag;\n\nuse Nilz\\Money\\Currency\\ExchangeRate;\nuse Nilz\\Money\\MoneyInterface;\n\n/**\n * Class CurrencyPriceTag\n * @author Nilz\n */\nclass Currenc... | php | chosen |
[
{
"from": "system",
"value": "Change footer to show \"Powered by Orchestra Platform\" instead of a copyright.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Request;\nuse Orchestra\\Su... | php | chosen |
[
{
"from": "system",
"value": "Add append method to store.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class ExtractorStorage\n */\nclass ExtractorStorage {\n /**\n * Store Data\n * Stores data in the data store with the given key and category.\n *\n * @param string $ca... | php | chosen |
[
{
"from": "system",
"value": "Create a temp folder when project is being created\n"
},
{
"from": "human",
"value": "<?php\n\n namespace ActiveCollab\\Shade\\Command;\n\n use ActiveCollab\\Shade\\Project, ActiveCollab\\Shade\\Element\\Video;\n use Symfony\\Component\\Console\\Command\\Command,... | php | chosen |
[
{
"from": "system",
"value": "Add width heigt column to face migration file\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\db\\Migration;\n\n/**\n * Handles the creation of table `faces`.\n * Has foreign keys to the tables:\n *\n * - `image`\n */\nclass m170124_153250_create_faces_table ex... | php | chosen |
[
{
"from": "system",
"value": "Allow external MySQL instance connection\n\nAdd the hability to connect to an unlink MySQL database by passing the MYSQL_SERVER_HOST env variable\n"
},
{
"from": "human",
"value": "<?php\ninclude 'config.sample.inc.php';\n\n$cfg['Servers'][1]['host'] = 'mysql';\n$f... | php | chosen |
[
{
"from": "system",
"value": "Fix copy'n'paste error in config description\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE ... | php | chosen |
[
{
"from": "system",
"value": "Remove compat check, TerminateEvent exists in 4.4\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Gos\\Bundle\\WebSocketBundle\\EventListener;\n\nuse Gos\\Bundle\\WebSocketBundle\\Pusher\\PusherRegistry;\nuse Symfony\\Component\\HttpKe... | php | chosen |
[
{
"from": "system",
"value": "Update for removal of config->package\n"
},
{
"from": "human",
"value": "<?php namespace Morrislaptop\\LaravelFivePackageBridges;\n\nuse ReflectionClass;\n\ntrait LaravelFivePackageBridgeTrait {\n\n\tpublic function boot()\n\t{\n\t\t$this->loadViewsFrom($this->names... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for PHP 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FileNamingResolver\\NamingStrategy;\n\nuse FileNamingResolver\\FileInfo;\n\n/**\n * @author Victor Bocharsky <bocharsky.bw@gmail.com>\n */\nclass CallbackNamingStrategy extends AbstractNamin... | php | chosen |
[
{
"from": "system",
"value": "Remove deleted posts from DOM when not showing deleted posts\n"
},
{
"from": "human",
"value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\n\n This file is part of osu!web. osu!web is distributed with the hope of\n attracting more community contribu... | php | chosen |
[
{
"from": "system",
"value": "Revert \"removed ! on barovian page\"\n\nThis reverts commit 241362cfd9c42b348014728379dcfed60f549570.\n"
},
{
"from": "human",
"value": "<?php\nrequire_once dirname( __DIR__ ) .'/barovians.php';\n$barovians = new Barovians();\n$title = 'Names for all you meet in Ba... | php | chosen |
[
{
"from": "system",
"value": "Remove tests that targeted removed code paths in LinearLeastSquares."
},
{
"from": "human",
"value": "<?php\n\nuse mcordingley\\Regression\\RegressionAlgorithm\\LinearLeastSquares;\n\nclass LinearLeastSquaresTest extends PHPUnit_Framework_TestCase\n{\n \n prot... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with summary fields when used with gridfield editable columns\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Filter that can be added to an object\n *\n * @author i-lateral (http://www.i-lateral.com)\n * @package Filterable\n */\nclass FilterOption ex... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary piece of commented out code\n\n[ci skip]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Datatype\\Traits;\n\ntrait MethodMapperTrait\n{\n\tabstract protected static function _function_prefix();\n\n\tabstract protected function &_get_object_... | php | chosen |
[
{
"from": "system",
"value": "Add a modelstate field to API error messages\n"
},
{
"from": "human",
"value": "<?php\n\nuse ChannelEngineApiClient\\Models\\BaseModel;\n\nnamespace ChannelEngineApiClient\\Models {\n\t\n\tclass Message extends BaseModel {\n\t\t\n\t\tpublic static $typeMap = array(\... | php | chosen |
[
{
"from": "system",
"value": "Fix muffin rating always showing 5 muffins\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controllers;\nuse App\\File;\nuse App\\RegExp;\n\nclass MuffinRatingController extends Controller {\n\tprotected static $auth = false;\n\n\tpublic function image(){... | php | chosen |
[
{
"from": "system",
"value": "Add 'beta' statement in brand\n"
},
{
"from": "human",
"value": "\t\t<!-- Navigation -->\r\n\t\t<nav class=\"navbar navbar-expand-lg navbar-light fixed-top\"\r\n\t\t\tid=\"mainNav\">\r\n\t\t\t<div class=\"container\">\r\n\t\t\t\t<a class=\"navbar-brand js-scroll-tri... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong array being called\n"
},
{
"from": "human",
"value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version Functions\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\n// Debugging Functions\... | php | chosen |
[
{
"from": "system",
"value": "Fix feate manage news category\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Admin;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Input;\nuse App\\Http\\Controllers\\Controller;\n\nclass NewsCategoryController e... | php | chosen |
[
{
"from": "system",
"value": "Add typehints for ServiceRegistryInterface::all() calls\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 * fil... | php | chosen |
[
{
"from": "system",
"value": "Validate tags() for prevent error when tags() is empty\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Cviebrock\\EloquentSluggable\\SluggableInterface;\nuse Cviebrock\\EloquentSluggable\\SluggableTrait;\nuse Illuminate\\Database\\Eloquent\\Model;\... | php | chosen |
[
{
"from": "system",
"value": "Create a pattern to replace with the shortcodes.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Filter that enable the use patterns to create visual content more easy.\n * Drupal\\visual_content_layout\\Plugin\\Filter\\FilterVisualContent.\n *\n */\n\... | php | chosen |
[
{
"from": "system",
"value": "Extend services… and actually return the service\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension;\n\nuse Pimple as Container;\n\n/**\n * Storage helpers.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\ntrait StorageTrait\n{\n /**... | php | chosen |
[
{
"from": "system",
"value": "general: Add package handler to class map\n"
},
{
"from": "human",
"value": "<?php\n$Gcm__ = array(\n\t'GatewayApiController'=>'controllers/GatewayApiController.php',\n\t'ManagementApiController'=>'controllers/ManagementApiController.php',\n\t'SpringApiController'=>... | php | chosen |
[
{
"from": "system",
"value": "Fix adv-meta custum values ignored\n"
},
{
"from": "human",
"value": "<?php \n\ninclude '../../passwd/analytics-key.inc.php';\n\n// Override any of the default settings below:\n\n$config['site_title'] = 'schmitt.co'; // Site title\n$config['theme'] =... | php | chosen |
[
{
"from": "system",
"value": "DELETE FORGOTEN INLINE STYLE USED DURING DEBUG MODE"
},
{
"from": "human",
"value": "<!DOCTYPE html>\r\n<html>\r\n<head lang=\"en\">\r\n <meta charset=\"UTF-8\">\r\n <title>An error occurred</title>\r\n</head>\r\n<body>\r\n <div class=\"login-err-msg\" styl... | php | chosen |
[
{
"from": "system",
"value": "Implement simple-gui-tempalte on News view\n"
},
{
"from": "human",
"value": "<?php\ninclude_once($_SERVER['DOCUMENT_ROOT'] . '/templates/header.php');\n?>\n\n <div class=\"container\">\n\n <h1 class=\"sr-only\">News</h1>\n <div class='row masonry-r... | php | chosen |
[
{
"from": "system",
"value": "Add migrations bundle to kernel\n"
},
{
"from": "human",
"value": "<?php\n\nuse Tomahawk\\HttpKernel\\Kernel;\n\nclass AppKernel extends Kernel\n{\n\n public function registerBundles()\n {\n $bundles = array(\n new \\Tomahawk\\Bundle\\Framewo... | php | chosen |
[
{
"from": "system",
"value": "Select only public_id on guest middleware\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\n\nclass GuestAuth extends Authenticate\n{\n\n /**\n * Check if the user is logged in OR has the public_id of the project st... | php | chosen |
[
{
"from": "system",
"value": "ADD - added sortable data object for product groups and options\n"
},
{
"from": "human",
"value": "<?php\n\nObject::add_extension(\"Member\",\"SiteSprocketMember\");\n\nDirector::addRules(10, array (\n\tSiteSprocketMemberProfile::$url_segment => 'SiteSprocketMemberP... | php | chosen |
[
{
"from": "system",
"value": "Make the automatic object transformer able to transform doctrine collections\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Transformer;\n\nuse RuntimeException;\nuse Traversable;\n\n/**\n * AutomaticObjectToArrayTransformer\n * Tries to ... | php | chosen |
[
{
"from": "system",
"value": "Fix notice while retrieving array indexes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kelunik\\Feature;\n\nuse Amp\\Failure;\nuse Kelunik\\Feature\\Strategy\\Strategy;\n\nclass Feature {\n private $features;\n\n public function __construct() {\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Clean up the definition loader\n"
},
{
"from": "human",
"value": "<?php namespace Watson\\Industrie;\n\nuse RecursiveDirectoryIterator;\nuse RecursiveIteratorIterator;\n\nclass DefinitionLoader {\n\n /**\n * Locations to search for model definitions.\n *\... | php | chosen |
[
{
"from": "system",
"value": "Use ResponseHeadersBag constants instead of strings for Content-Disposition validation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Bundle\\SnappyBundle\\Snappy\\Response;\n\nuse Symfony\\Component\\HttpFoundation\\Response as Base;\n\nabstract class S... | php | chosen |
[
{
"from": "system",
"value": "Comment the Actions::adminPrintStyles cause we've conflicts with WP styles\n"
},
{
"from": "human",
"value": "<?php\nrequire_once 'vendor/autoload.php';\n\nuse Libs\\Actions;\nuse Libs\\Filters;\n\n// --------------------------------------------------------------\n/... | php | chosen |
[
{
"from": "system",
"value": "Remove accidentally committed testing code.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Pines' information.\n *\n * @package Pines\n * @license http://www.gnu.org/licenses/agpl-3.0.html\n * @author Hunter Perrin <hunter@sciactive.com>\n * @copyright SciActive.... | php | chosen |
[
{
"from": "system",
"value": "Return the feed on application/atom+xml requests\n\nIf on the NewsHolder URL is requested an application/atom+xml response,\nreturn the Atom feed instead of rendering the news in HTML.\n"
},
{
"from": "human",
"value": "<?php\n\nclass NewsHolder extends Page {\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add the config option to allow the migration"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Use Gravatar\n |-----------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in bundle extension\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Becklyn\\AssetsBundle\\DependencyInjection;\n\n\nuse Becklyn\\AssetsBundle\\Asset\\AssetGenerator;\nuse Becklyn\\AssetsBundle\\Finder\\AssetsFinder;\nuse Symfony\\Component\\Config\\F... | php | chosen |
[
{
"from": "system",
"value": "Fix search Directories for LinkTag-News\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_LinkTag_News_DirectoriesController extends Kwf_Controller_Action_Auto_Grid\n{\n protected function _initColumns()\n {\n $this->_columns->add(new Kwf_Grid_C... | php | chosen |
[
{
"from": "system",
"value": "Disable cas and ldap by default\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'layout' => 'ui::layouts.public.full',\n 'captcha' => false,\n 'identifier' => 'email',\n 'login' => [\n 'implementation' => \\Laravolt\\Aut... | php | chosen |
[
{
"from": "system",
"value": "Rename service view in controller"
},
{
"from": "human",
"value": "<?php \nnamespace App\\Core\\Controller;\nuse App\\Core\\DependencyInjection\\ContainerAware;\nuse App\\Core\\DependencyInjection\\ContainerInterface;\nuse App\\Libs\\Redirection;\nuse App\\Libs\\Fla... | php | chosen |
[
{
"from": "system",
"value": "Add constants for Execution Statuses IDs\n"
},
{
"from": "human",
"value": "<?php\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Bruno P. Kinoshita, Peter Florijn\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * t... | php | chosen |
[
{
"from": "system",
"value": "Allow staff to use Aurora.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party Services\n |-------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add a way to fetch the calendar used in the EventApi\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the CalendArt package\n *\n * For the full copyright and license information, please view the LICENSE file\n * that was distributed with this ... | php | chosen |
[
{
"from": "system",
"value": "Make sure custom thumbnails have upscaling enabled\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\File\\Image\\Thumbnail\\Type;\n\nuse Concrete\\Core\\Entity\\File\\Version as FileVersion;\nuse Concrete\\Core\\File\\Image\\Thumbnail\\Type\\Ver... | php | chosen |
[
{
"from": "system",
"value": "Fix location of migrations in trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Stratedge\\PassportFacebook\\Traits\\PassportServiceProvider;\n\ntrait LoadsPassportFacebookMigrations\n{\n protected function loadPassportFacebookMigrations()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Make sure to clear search filters before and after search\n(clearing before is defensive, after is cleanup)\n"
},
{
"from": "human",
"value": "<?php\n\nclass ArcGISDataController extends MapDataController\n{\n protected $DEFAULT_PARSER_CLASS = 'ArcGISParser';\n ... | php | chosen |
[
{
"from": "system",
"value": "Add return type-hint for sanity\n"
},
{
"from": "human",
"value": "<?php\nnamespace Spotman\\Api;\n\nabstract class AbstractMethodsCollectionApiResource extends AbstractApiResource implements ApiMethodsCollectionInterface\n{\n /**\n * @var \\Spotman\\Api\\API... | php | chosen |
[
{
"from": "system",
"value": "Update multisite disabling migration for version 9\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\n\nuse Concrete\\Core\\Updater\\Migrations\\RepeatableMigrationInterface;\nuse Concrete\\Core\\Updater\\Migratio... | php | chosen |
[
{
"from": "system",
"value": "Add modal for ipad links\n"
},
{
"from": "human",
"value": "<?php\n\nfunction ipadPopUpScript(){\n?>\n jQuery(\"a[href$='http://bullettstoreat.wpengine.com/p/ipad-magazine-subscr'+\n 'iption/']\").attr('data-reveal-id', 'ipadPopUp');\n<?php\n}\n\nfunction ipadPopU... | php | chosen |
[
{
"from": "system",
"value": "Fix foreign key name for oauth_client_metadata rollback"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateOauthClientMetadataTable extends Migration\n{\n\n /**\n... | php | chosen |
[
{
"from": "system",
"value": "Fix fetching files from directory record.\n"
},
{
"from": "human",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for more ... | php | chosen |
[
{
"from": "system",
"value": "Change the static mention of views cache path to the path on the configuration file\n"
},
{
"from": "human",
"value": "<?php namespace Fitztrev\\LaravelHtmlMinify;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\View\\Engines\\CompilerEngine;\n\nclass... | php | chosen |
[
{
"from": "system",
"value": "Secure index access and type safe comparision in statistic median\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Phpml\\Math\\Statistic;\n\nuse Phpml\\Exception\\InvalidArgumentException;\n\nclass Mean\n{\n /**\n * @param ar... | php | chosen |
[
{
"from": "system",
"value": "Fix typo: it is $this->storage, not just any local $storage\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ob_Ivan\\Cache\\Driver;\n\nuse DateTime;\nuse Ob_Ivan\\Cache\\StorageInterface;\n\nclass MemoryDriver implements StorageInterface\n{\n const KEY_EXPIRE... | php | chosen |
[
{
"from": "system",
"value": "Make sure all events extend Event\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WyriHaximus\\Ratchet\\Tests\\Event;\n\nabstract class AbstractEventTest extends \\PHPUnit_Framework_TestCase\n{\n public function testEventConst()\n {\n $fqcn = stat... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for symfony 2.7\n"
},
{
"from": "human",
"value": "<?php\nnamespace Fsv\\TypographyBundle\\Tests\\Form\\Extension;\n\nuse Fsv\\TypographyBundle\\Form\\Extension\\TextareaTypeExtension;\nuse Fsv\\TypographyBundle\\Typograph\\MdashTypograph;\nuse Symfony\\Co... | php | chosen |
[
{
"from": "system",
"value": "Fix code style in optional parent interface implementation\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_t... | php | chosen |
[
{
"from": "system",
"value": "Enable dark mode in Telescope\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Laravel\\Telescope\\Telescope;\nuse Illuminate\\Support\\Facades\\Gate;\nuse Laravel\\Telescope\\IncomingEntry;\nuse Laravel\\Telescope\\TelescopeApplicationSe... | php | chosen |
[
{
"from": "system",
"value": "Add twig global var Facebook app id info\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * 이 컨트롤러를 상속받아 구현하는 컨트롤러는 Twig 템플릿 엔진을 기본으로 로드함\n */\n\nclass MY_Controller extends CI_Controller {\n public function __construct() {\n parent::__construct();\n ... | php | chosen |
[
{
"from": "system",
"value": "Add index to access_token_id column\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateOauthRefreshTokensTable extends M... | php | chosen |
[
{
"from": "system",
"value": "Add missing debugbar alias and serviceProvider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Containers\\Debugger\\Providers;\n\nuse App\\Containers\\Debugger\\Tasks\\QueryDebuggerTask;\nuse App\\Ship\\Parents\\Providers\\MainProvider;\nuse Jenssegers\\... | php | chosen |
[
{
"from": "system",
"value": "Add support for transparent key prefixing to EVAL and the Predis\\Commands\\ScriptedCommand class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Predis\\Commands;\n\nclass ServerEval extends Command {\n public function getId() {\n return 'EVAL';\n ... | php | chosen |
[
{
"from": "system",
"value": "Add 404 request method and url when using withoutExceptionHandling\n\nWhenever a NotFoundHTTPException is thrown, it is helpful to see the request method and url. Helps to debug what route to look at instead of having to first look it up in the test file. I've been using this i... | php | chosen |
[
{
"from": "system",
"value": "Allow nullable on all fields.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateHospitalsTable extends Migration\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix problem with incorrect namespace\n"
},
{
"from": "human",
"value": "<?php\nnamespace HcCore\\Options\\Exception;\n\nuse HcCore\\Exception\\ExceptionInterface;\n\nclass DomainException extends \\InvalidArgumentException implements ExceptionInterface {}\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Add vendor-name to package.ini as vendor.\n\nLooking to find the vendor name based on a root src folder name may proof difficult at times.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Respect\\Foundation\\InfoProviders;\n\nuse DirectoryIterator;\n\nclass Vend... | php | chosen |
[
{
"from": "system",
"value": "Move $session_timeout & $session_path inside the if statement"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Common;\n\n/**\n * Wrapper for Session\n */\nclass Session extends \\RocketTheme\\Toolbox\\Session\\Session\n{\n protected $grav;\n protected ... | php | chosen |
[
{
"from": "system",
"value": "Make code a little cleaner.\n"
},
{
"from": "human",
"value": "<?php\nreturn function(\\Slim\\Slim $app, array $holeModel, array $userModel, callable $loadAuth) {\n $app->get('/', $loadAuth, function() use($app, $holeModel, $userModel) {\n $holes = $holeMo... | php | chosen |
[
{
"from": "system",
"value": "Fix \"Fatal error: Parameter $innerMappings is variadic and has a type constraint\"\n"
},
{
"from": "human",
"value": "<?php\nnamespace Mw\\JsonMapping;\n\nclass MergeMapping extends ObjectMapping\n{\n\n /**\n * @var ObjectMapping[]\n */\n private $inn... | php | chosen |
[
{
"from": "system",
"value": "Add some explanation about the location field."
},
{
"from": "human",
"value": "<?php\n\n\nreturn array(\n\n 'assets_user' => 'Assets assigned to :name',\n 'clone' => 'Clone User',\n 'contact_user' => 'Contact :name',\n 'edit' ... | php | chosen |
[
{
"from": "system",
"value": "Fix test to run under Linux CI\n"
},
{
"from": "human",
"value": "<?php\n\nuse Valet\\PhpFpm;\nuse Illuminate\\Container\\Container;\n\nclass PhpFpmTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n $_SERVER['SUDO_USER'] = user()... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Minor fix for String\"\n\nThis reverts commit 6c3d312a9c944769ed2837f97b3653d92be254da.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Contains \\jamesiarmes\\PhpEws\\Type\\TransitionTargetType.\n */\n\nnamespace jamesiarmes\\PhpEws\\Type;\n\n/**\n * Spe... | php | chosen |
[
{
"from": "system",
"value": "Fix URL of locator records in packaged themes\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Filesystem\\FileLocator;\n\nuse Concrete\\Core\\Package\\PackageList;\nuse Concrete\\Core\\Page\\Theme\\Theme;\nuse Illuminate\\Filesystem\\Filesystem;\... | php | chosen |
[
{
"from": "system",
"value": "Fix: Reduce visibility of field to maximum needed\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by Gary Hockin.\n * Date: 04/12/14\n * @GeeH\n */\n\nnamespace Application\\Service;\n\nuse Zend\\Log\\Logger;\n\nclass ErrorHandlingService\n{\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Use no-progress flag for NPM\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Rocketeer\n *\n * (c) Maxime Fabre <ehtnam6@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed ... | php | chosen |
[
{
"from": "system",
"value": "[NEW] Handle {ref-id:...} in XML import for query properties.\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * productupdater_ProductdataScriptDocumentElement\r\n * @package modules.productupdater.persistentdocument.import\r\n */\r\nclass productupdater_Product... | php | chosen |
[
{
"from": "system",
"value": "Refactor test using testbench, make first test for database driver\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class LaralyticsTest\n */\nclass LaralyticsTest extends TestCase\n{\n // @TODO: add PHPUnit command line\n}\n"
},
{
"from": "gpt",
"... | php | chosen |
[
{
"from": "system",
"value": "FIX Import RunBuildTaskJob namespace to fix undefined class error\n"
},
{
"from": "human",
"value": "<?php\n\nuse SilverStripe\\Core\\Injector\\Injector;\nuse Symbiote\\QueuedJobs\\Services\\QueuedJobService;\nuse SilverStripe\\CronTask\\Interfaces\\CronTask;\n\n/**... | php | chosen |
[
{
"from": "system",
"value": "[Statie] Fix markdown filter extra spaces\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\Statie\\Templating\\FilterProvider;\n\nuse ParsedownExtra;\nuse Symplify\\Statie\\Contract\\Templating\\FilterProviderInterface;\n\nfin... | php | chosen |
[
{
"from": "system",
"value": "Allow error message to be overwritten inline\n\nThe error message for unique_with passed into Validator::make() was not used.\nIt was always overwritten by the error message defined in the language files.\n"
},
{
"from": "human",
"value": "<?php namespace Felixkiss\... | php | chosen |
[
{
"from": "system",
"value": "Fix namespacing of send() arg and add docblock\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FullyBaked\\Pslackr;\n\ninterface Transport\n{\n public function send(FullyBaked\\Pslackr\\Messages\\Message $message);\n}\n"
},
{
"from": "gpt",
"val... | php | chosen |
[
{
"from": "system",
"value": "Update missed HTTP handler to PSR-15\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types = 1);\n\nnamespace App\\Http;\n\nuse Interop\\Http\\Server\\RequestHandlerInterface;\nuse Prooph\\EventMachine\\EventMachine;\nuse Psr\\Http\\Message\\ResponseInter... | php | chosen |
[
{
"from": "system",
"value": "Add link for creating new animal.\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n@section('content')\n @if(count($animals) == 0)\n {{__('There are no animals.')}}\n @else\n <table class=\"table table-responsive table-bordered\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove the --env default setting, it's not needed when testing a command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ParaunitTestCase\\TestCase;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Appl... | php | chosen |
[
{
"from": "system",
"value": "Remove use call for ArrayCollection.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Repository\\Framework;\n\nuse App\\Entity\\Framework\\LsDefFrameworkType;\nuse Doctrine\\Bundle\\DoctrineBundle\\Repository\\ServiceEntityRepository;\nuse Doctrine\\Commo... | php | chosen |
[
{
"from": "system",
"value": "Send bruker til hjem-område hvis logget inn\n\nClose #97\nIkke spør om innlogging en gang til.. :)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UKMNorge\\DeltaBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass Defa... | php | chosen |
[
{
"from": "system",
"value": "Define connection in client constructor.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Convenience class- wraps the specific functionality of the api in a\n * friendlier interface.\n *\n * @author Sam Schmidt <samuel@dersam.net>\n * @since 2016-02-11\n */\n\nnam... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.