conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change static reference to self\n"
},
{
"from": "human",
"value": "<?php namespace PhilipBrown\\WorldPay;\n\nuse Assert\\Assertion;\n\nclass Currency {\n\n /**\n * @var string\n */\n private $name;\n\n /**\n * @var array\n */\n private static $currencies... | php | chosen |
[
{
"from": "system",
"value": "Set worker lifetime to 20 minutes, not 20 seconds\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file configures default behavior for all workers\n *\n * To modify these parameters, copy this file into your own CakePHP APP/Config directory.\n *\n */\n\n\n$... | php | chosen |
[
{
"from": "system",
"value": "Update interface description and callable definition\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Interop\\Async;\n\n/**\n * Simple interface for awaitable objects representing the future value of asynchronous operations.\n */\ninterface Awaitable\n{\n /... | php | chosen |
[
{
"from": "system",
"value": "Make site optional for RenderEvironment\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_RenderEnvironment extends CM_Class_Abstract {\n\n /** @var CM_Model_User|null */\n protected $_viewer;\n\n /** @var CM_Site_Abstract */\n protected $_site;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Change in validator.email service alias to match the validator FQCN\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 informatio... | php | chosen |
[
{
"from": "system",
"value": "Use instanceof to include subclasses\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package elemental\n */\nclass ElementalGridFieldDeleteAction extends GridFieldDeleteAction {\n\n public function getColumnContent($gridField, $record, $columnName) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Update icat API functions to new location. Fix made by someone else.\n"
},
{
"from": "human",
"value": "<?php\nrequire_once 'icat.php';\n?>\n<!doctype html>\n<html>\n<head>\n<title>Scoreboard</title>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" /... | php | chosen |
[
{
"from": "system",
"value": "Fix visibility on a test method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emonkak\\Database\\Tests;\n\nuse Emonkak\\Database\\PDO;\n\n/**\n * @covers Emonkak\\Database\\PDO\n *\n * @requires extension sqlite3\n */\nclass PDOTest extends AbstractPDOTest\n... | php | chosen |
[
{
"from": "system",
"value": "Remove some debugging code. Add more debug info.\n"
},
{
"from": "human",
"value": "<?php\n\nfunction collect_cpuUsage($debug, $log) {\n $usage = explode(\" \", exec('vmstat 1 2'));\n\t\n\tprint_r($usage);\n\t\n\t// Get CPU usage\n\t$cpu = 100 - $usage[43];\n\t\... | php | chosen |
[
{
"from": "system",
"value": "Add \"name_mask\" value in configuration file"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Filesystem Disk\n |-----------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Change version from 2.2 to 2.3\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once dirname(__FILE__).'/omise-plugin/helpers/charge.php';\nrequire_once dirname(__FILE__).'/omise-plugin/helpers/currency.php';\nrequire_once dirname(__FILE__).'/omise-plugin/helpers... | php | chosen |
[
{
"from": "system",
"value": "Test commit from another location."
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Affinity\\AppBundle\\Controller;\r\n\r\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\r\nuse Symfony\\Component\\Security\\Core\\SecurityContext;\r\nuse Symfon... | php | chosen |
[
{
"from": "system",
"value": "Add set_included function to twig to change the status of a template\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\Core\\Twig\\Extensions;\n\nuse Twig\\Environment;\nuse Twig\\Extension\\AbstractExtension;\nuse Twig\\TwigFunction;\n\nfinal class Incl... | php | chosen |
[
{
"from": "system",
"value": "Fix reference to ProjectRepository in the gateway\n"
},
{
"from": "human",
"value": "<?php namespace CJAN\\Gateways;\n\nclass ProjectGateway {\n\n\tprotected $projectRepository;\n\n\tpublic __construct(ProjectRepository $projectRepository)\n\t{\n\t\t$this->projectRe... | php | chosen |
[
{
"from": "system",
"value": "Fix success method called event if not exists\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Mail;\n\nuse Illuminate\\Container\\Container;\nuse Illuminate\\Mail\\Mailable as BaseMailable;\n\nclass Mailable extends BaseMailable\n{\n public function se... | php | chosen |
[
{
"from": "system",
"value": "Update web pages for 1.0.7\n\ngit-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1641 e217846f-e12e-0410-a4e5-89ccaea66ff7\n"
},
{
"from": "human",
"value": "<?php\r\n$title = \"Glidein Service :: Download\";\r\ninclude_once(\"../../includes/header.inc\");\r\n?>\r... | php | chosen |
[
{
"from": "system",
"value": "Remove News button from social bar\n"
},
{
"from": "human",
"value": "<div class=\"btn-group btn-group-sm\" role=\"group\" aria-label=\"Social Library Links\">\n<?php if ( !in_array($_SERVER['REMOTE_ADDR'],array('10.14.27.13','10.14.22.162','10.14.22.163')) ):?>\n ... | php | chosen |
[
{
"from": "system",
"value": "Make the mock actually a mock instead of a spy\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Foo;\n\nclass FooTest extends \\PHPUnit_Framework_TestCase {\n\n public function testDummy()\n {\n $dependency = $this->prophesize(\\Foo\\DependencyInte... | php | chosen |
[
{
"from": "system",
"value": "Set type of the button to submit.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RKA;\n\nuse Zend\\Form\\Form;\nuse Zend\\InputFilter\\InputFilterProviderInterface;\n\nclass ExampleForm extends Form implements InputFilterProviderInterface\n{\n public funct... | php | chosen |
[
{
"from": "system",
"value": "Update image path for Windows builder test\n"
},
{
"from": "human",
"value": "<?php\nuse BryanCrowe\\Growl\\Builder\\GrowlNotifyWindowsBuilder;\n\nclass GrowlNotifyWindowsBuilderTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Set artisan binary in console kernel\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKernel\n{\n /*... | php | chosen |
[
{
"from": "system",
"value": "Use streams instead of strings for the response when reading.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace h4cc\\StackFlysystem\\Handler;\n\nuse h4cc\\StackFlysystem\\HandlerInterface;\nuse League\\Flysystem\\Filesystem;\nuse Symfony\\Component\\HttpFoundat... | php | chosen |
[
{
"from": "system",
"value": "Make sure admin user class is loaded for commentaries\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ATPComic\\Model;\n\nrequire_once(\"Arc.php\");\n\nclass Commentary extends \\ATP\\ActiveRecord\n{\n\tpublic function displayName()\n\t{\n\t\treturn \"'\" . $t... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing space for the generated code\n"
},
{
"from": "human",
"value": "<?php\nnamespace ClassTemplate;\nuse ClassTemplate\\Utils;\n\nclass ClassMethod extends UserFunction\n{\n public $scope = 'public';\n\n public function setScope($scope)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace issue in search controller.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * FluxBB - fast, light, user-friendly PHP forum software\n * Copyright (C) 2008-2012 FluxBB.org\n * based on code by Rickard Andersson copyright (C) 2002-2008 PunBB\n *\n * Thi... | php | chosen |
[
{
"from": "system",
"value": "[2.0] Fix bug in detection of global Doctrine Cli Configuration finding the empty replacement configuration before the correct one.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Doctrine/Common/ClassLoader.php';\n\n$classLoader = new \\Doctrine\\Common\\... | php | chosen |
[
{
"from": "system",
"value": "Improve handling of modules in tests loader\n"
},
{
"from": "human",
"value": "<?php\n\n$contents = \"\";\nconst TESTS_DIRECTORY = __DIR__ . \"/cases/\";\n\n$directory = new RecursiveDirectoryIterator(TESTS_DIRECTORY);\n$iterator = new RecursiveIteratorIterator($dir... | php | chosen |
[
{
"from": "system",
"value": "Remove Drush location hack for travis/phpunit\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n * A script containing any set-up steps required for PHPUnit testing.\n */\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n$env_prefix = (new \\Platformsh\\Cli\... | php | chosen |
[
{
"from": "system",
"value": "Add blank line for psr2\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Snout\\Tests {\n require __DIR__ . '/../vendor/autoload.php';\n}\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Snout\\Tests {\n\n require __DIR__ . '/../vendor/autolo... | php | chosen |
[
{
"from": "system",
"value": "Refactor event create test to check for words instead of response code\n"
},
{
"from": "human",
"value": "<?php\n\nclass EventsCest\n{\n public function testIfICantCreateAnEventWithoutBeingAuthenticated(AcceptanceTester $I)\n {\n $I->am('guest');\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct error in return type\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab Payments project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace ActiveCollab\\Pay... | php | chosen |
[
{
"from": "system",
"value": "Remove call to parent constructor in Controller\n"
},
{
"from": "human",
"value": "<?php namespace Devfactory\\Variables\\Controllers;\n\nuse Config;\nuse Input;\nuse Lang;\nuse Redirect;\nuse URL;\nuse View;\n\nuse \\Variables;\n\nuse Illuminate\\Routing\\Controlle... | php | chosen |
[
{
"from": "system",
"value": "Add more information to callback matchers exception messages\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpSpec\\Matcher;\n\nuse PhpSpec\\Formatter\\Presenter\\PresenterInterface;\n\nuse PhpSpec\\Exception\\Example\\FailureException;\n\nclass CallbackMatc... | php | chosen |
[
{
"from": "system",
"value": "Add test for additional namespace models. (currently red).\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Test\\Unit;\n\nuse Test\\TestCase;\nuse Taskforcedev\\CrudApi\\Helpers\\CrudApi;\n\nclass ModelHelperTest extends TestCase\n{\n public function testGe... | php | chosen |
[
{
"from": "system",
"value": "Add Ionicons to icon font list\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Kibo\\Phast\\Filters\\CSS\\FontSwap;\n\nuse Kibo\\Phast\\Services\\ServiceFilter;\nuse Kibo\\Phast\\ValueObjects\\Resource;\n\nclass Filter implements ServiceFilter {\n const F... | php | chosen |
[
{
"from": "system",
"value": "Fix missing group in configuration publishing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BotMan\\BotMan;\n\nuse BotMan\\BotMan\\Cache\\LaravelCache;\nuse BotMan\\BotMan\\Container\\LaravelContainer;\nuse BotMan\\BotMan\\Storages\\Drivers\\FileStorage;\nus... | php | chosen |
[
{
"from": "system",
"value": "Use better icon for create-button of Grid\n\nUse \"fa-plus\" icon instead of \"fa-save\" for create button"
},
{
"from": "human",
"value": "<?php\n\nnamespace Encore\\Admin\\Grid\\Tools;\n\nuse Encore\\Admin\\Grid;\n\nclass CreateButton extends AbstractTool\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove unused set*(Collection) methods on models\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 ... | php | chosen |
[
{
"from": "system",
"value": "Increase decimal size to 5\n\nIncrease decimal size to 5 places"
},
{
"from": "human",
"value": "<?php\n/**\n * Adds automatic geocoding to a {@link Addressable} object. Uses the Google\n * Maps API to save latitude and longitude on write.\n *\n * @package silverstr... | php | chosen |
[
{
"from": "system",
"value": "Add a constant for the path to the main directory\n\nThis allows the tools to be more easily extended.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Bootstrap to load the classes.\n *\n * Include this in the bootstrap for you plugin tests.\n *\n * @package WP_... | php | chosen |
[
{
"from": "system",
"value": "Remove null type in docblock before assigning to array variable"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Roave\\BetterReflection\\TypesFinder;\n\nuse phpDocumentor\\Reflection\\Type;\nuse phpDocumentor\\Reflection\\TypeResolver... | php | chosen |
[
{
"from": "system",
"value": "Add support for PHP 5.5 DateTimeInterface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phive\\Queue;\n\nuse Phive\\Queue\\Exception\\InvalidArgumentException;\n\nclass QueueUtils\n{\n private function __construct()\n {\n }\n\n /**\n * @param... | php | chosen |
[
{
"from": "system",
"value": "Add shortcut function for absolute images.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AbleCore;\n\nclass HTML {\n\n\tpublic static function image($source, $alt = '', $title = '', array $attributes = array(), array $options = array())\n\t{\n\t\t$default_op... | php | chosen |
[
{
"from": "system",
"value": "Print unescaped to avoid problems with umlauts in other languages\n"
},
{
"from": "human",
"value": "<?php\np($l->t('Hello %s,', array($_['invitee'])) . \"\\n\\n\");\n\np($l->t('%s has invited you to join %s.' . \" \", array($_['inviter'], $_['productname'])));\np($... | php | chosen |
[
{
"from": "system",
"value": "Allow static method in exception\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright Copyright (c) netz98 GmbH (https://www.netz98.de)\n *\n * @see PROJECT_LICENSE.txt\n */\n\nnamespace N98\\Guillotine\\Exception;\n\nuse Magento\\Framework\\Exception\\Loca... | php | chosen |
[
{
"from": "system",
"value": "Add 'Official' class to remote posts from berniesanders.com\n"
},
{
"from": "human",
"value": "<?php\n get_header();\n\n use SandersForPresident\\Wordpress\\Services\\News\\NewsFeedService;\n\n $newsFeedService = new NewsFeedService();\n $news = $newsFeedService... | php | chosen |
[
{
"from": "system",
"value": "Remove composer requirements for phpunit\n"
},
{
"from": "human",
"value": "<?php\nerror_reporting(E_ALL);\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\nPHPUnit_Framework_Error_Notice::$enabled = true;\n"
},
{
"from": "gpt",
"value": "<?p... | php | chosen |
[
{
"from": "system",
"value": "Test that all tests works without annotation reader in php8\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n$_ENV['TMP_DIR'] = __DIR__ . '/tmp';\n$unlink = static function ($path) use (&$unlink) {\n foreach ((array) glob(rtrim($path, DIREC... | php | chosen |
[
{
"from": "system",
"value": "Modify to use right toolkit.\n\nFirst blood!\n"
},
{
"from": "human",
"value": "#!/usr/bin/php\n<?php\n/*\n * list_buckets.php\n *\n * List S3 buckets.\n *\n * Copyright 2009-2010 Amazon.com, Inc. or its affiliates. All Rights\n * Reserved.\n *\n * Licensed under th... | php | chosen |
[
{
"from": "system",
"value": "Correct typo in priority label\n"
},
{
"from": "human",
"value": "<?php\n\nclass GalleryImage extends DataExtension {\n public static $db = array(\n 'Sort' => 'Int'\n );\n\n public static $belogs_many_many = array(\n 'Gallery' => 'GalleryPa... | php | chosen |
[
{
"from": "system",
"value": "Add adnotations to mappend & mempty\n"
},
{
"from": "human",
"value": "<?php\nnamespace Widmogrod\\Functional;\n\nuse Widmogrod\\FantasyLand\\Monoid;\n\nconst mempty = 'Widmogrod\\Functional\\mempty';\n\nfunction mempty(Monoid $a)\n{\n return $a->getEmpty();\n}\n... | php | chosen |
[
{
"from": "system",
"value": "Fix migration (remove default value for TEXT)\n"
},
{
"from": "human",
"value": "<?php\n\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Migration_BusinessHoursField extends CI_Migration\n{\n\tpublic function up()\n\t{\n\n\t\t$db = $this->l... | php | chosen |
[
{
"from": "system",
"value": "Update for project list display\n"
},
{
"from": "human",
"value": "@extends('layouts.default')\n\n@section('main')\n\n<h1>MageHack Projects:</h1>\n<div class=\"projects-container\" ng-controller=\"ProjectsController\">\n <div class=\"project\" ng-repeat=\"project... | php | chosen |
[
{
"from": "system",
"value": "Update HTML to \"rich\" in description\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverStripe\\ContentWidget;\n\nuse SilverStripe\\Forms\\FieldList;\nuse SilverStripe\\Forms\\TextField;\nuse SilverStripe\\Forms\\HTMLEditor\\HTMLEditorField;\nuse SilverSt... | php | chosen |
[
{
"from": "system",
"value": "Check for the presence of $_SERVER\n"
},
{
"from": "human",
"value": "<?php\nnamespace COI\\Social;\n\nfunction getClassName($object) {\n if (!is_object($object) && !is_string($object)) {\n return false;\n }\n\n return trim(strrchr((is_string($object... | php | chosen |
[
{
"from": "system",
"value": "Set PUBLIC_ROOT to INSTANCE_ROOT/public if applicable\n"
},
{
"from": "human",
"value": "<?php\n\nif(php_sapi_name() != 'cli')\n{\n\tdie('Error: index.setup.php may only be invoked from the command-line');\n}\n\ndefine('INSTANCE_ROOT', realpath(getcwd()) . '/');\n\n... | php | chosen |
[
{
"from": "system",
"value": "Split item details to tabs\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @var $this \\yii\\web\\View\n * @var $item \\common\\models\\CatalogItem\n */\n\n$this->title = $item->name\n?>\n\n<div class=\"row\">\n <div class=\"col-md-4\">\n <?= $this->rend... | php | chosen |
[
{
"from": "system",
"value": "Set content type for API response\n"
},
{
"from": "human",
"value": "<?PHP\n\nnamespace Firelit;\n\nclass ApiResponse extends Response {\n\t\n\tprotected $response = array();\n\tprotected $responseSent = false;\n\tprotected $responseFormat = 'JSON';\n\t\n\tpublic fu... | php | chosen |
[
{
"from": "system",
"value": "Add group and order by to infoOpTargetDominions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Models;\n\nclass Realm extends AbstractModel\n{\n public function councilThreads()\n {\n return $this->hasMany(Council\\Thread::class);\n... | php | chosen |
[
{
"from": "system",
"value": "Fix PHPDoc description for beforeSendPerformed() method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CL\\Swiftmailer;\n\nuse Swift_Events_SendListener;\nuse Closure;\n\n/**\n * @author Ivan Kerin <ikerin@gmail.com>\n * @copyright 2015, Clippings Ltd.\n *... | php | chosen |
[
{
"from": "system",
"value": "Add ability to pass options to modules\n"
},
{
"from": "human",
"value": "<?php\n/*\nPlugin Name: Soil\nPlugin URI: https://roots.io/plugins/soil/\nDescription: Clean up WordPress markup, use relative URLs, nicer search URLs, and disable trackb... | php | chosen |
[
{
"from": "system",
"value": "Update boostrap to allow running the test suite outside a dummy project\n"
},
{
"from": "human",
"value": "<?php\n\nsystem(sprintf('php %s', escapeshellarg(__DIR__.'/bin/vendors')));\n\nrequire_once __DIR__.'/'.$_SERVER['SYMFONY'].'/Symfony/Component/ClassLoader/Uni... | php | chosen |
[
{
"from": "system",
"value": "Add has_post_thumbnail check to standard posts\n"
},
{
"from": "human",
"value": "<header>\n <h1 class=\"entry-title\"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h2>\n</header>\n<div class=\"clearfix\"></div>\n<?php get_template_part('partials... | php | chosen |
[
{
"from": "system",
"value": "Hide default variant when displaying items\n"
},
{
"from": "human",
"value": "<?php\n/** @var \\WEEEOpen\\Tarallo\\Feature[] $features */\n/** @var \\WEEEOpen\\Tarallo\\Feature[] $product */\n$groups = $this->getGroupedFeatures($this->getUltraFeatures($features));\n... | php | chosen |
[
{
"from": "system",
"value": "[Command] Add tests for new ID mechanism\n"
},
{
"from": "human",
"value": "<?php\nnamespace SmoothPhp\\Test\\CommandBus;\n\n/**\n * Class CommandTest\n * @author Simon Bennett <simon.bennett@smoothphp.com>\n */\nclass CommandTest extends \\PHPUnit_Framework_TestCas... | php | chosen |
[
{
"from": "system",
"value": "Use task runner util in console tests\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Aedart\\Scaffold\\Contracts\\Tasks\\ConsoleTask;\nuse Mockery as... | php | chosen |
[
{
"from": "system",
"value": "Use new setter methods at parent class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n * Containt Drupal\\AppConsole\\Command\\GeneratorFormBaseCommand.\n */\n\nnamespace Drupal\\AppConsole\\Command;\n\nclass GeneratorConfigFormBaseCommand extends Generato... | php | chosen |
[
{
"from": "system",
"value": "Handle error bags as well as single messaged errors\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Http\\Middleware;\n\nuse Closure;\nuse Krucas\\Notification\\Middleware\\NotificationMiddleware as Middleware;\n... | php | chosen |
[
{
"from": "system",
"value": "Use singleton method for binding shared instance."
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Events;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass EventServiceProvider extends ServiceProvider {\r\n\r\n\t/**\r\n\t * Register the serv... | php | chosen |
[
{
"from": "system",
"value": "Fix inheritence structure on (Organizer) GeoCordinatesUpdated event\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace CultuurNet\\UDB3\\Organizer\\Events;\n\nuse CultuurNet\\UDB3\\Offer\\Events\\AbstractGeoCoordinatesUpdated;\n\nclass Ge... | php | chosen |
[
{
"from": "system",
"value": "Put Tejas email in contact form\n"
},
{
"from": "human",
"value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) ||\n empty($_POST['email']) ||\n empty($_POST['phone']) ||\n empty($_POST['message']) ||\n !filter_var($_POST['email'... | php | chosen |
[
{
"from": "system",
"value": "Allow to upload avatar for vehicle.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Katsana\\Sdk\\One;\n\nclass Vehicles extends Request\n{\n /**\n * List all vehicles avai... | php | chosen |
[
{
"from": "system",
"value": "Allow return of raw translations\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Translation\\ValueObjects;\n\nuse Illuminate\\Support\\Collection;\n\nclass TranslationGroup\n{\n /**\n * @var Collection\n */\n private $translations;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add litle doc to disable/enable error display\n"
},
{
"from": "human",
"value": "<?php\n\n// You can adjust this following constants if necessary.\n\n// The APP constant is where your application folder located.\ndefine('APP', dirname(__FILE__) . '/');\n\n// The IND... | php | chosen |
[
{
"from": "system",
"value": "Work on base migration command.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Database\\Console\\Migrations;\n\nuse Illuminate\\Console\\Command;\n\nclass BaseCommand extends Command\n{\n /**\n * Get the path to the migration directory.\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix declaring extra constants when `intl` is loaded\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 t... | php | chosen |
[
{
"from": "system",
"value": "Fix for SQLite3 and PostgreSQL databases"
},
{
"from": "human",
"value": "<?php\nnamespace OCA\\Passwords\\Db;\n\nuse OCP\\IDb;\nuse OCP\\AppFramework\\Db\\Mapper;\n\nclass PasswordMapper extends Mapper {\n\n\tpublic function __construct(IDb $db) {\n\t\tparent::__co... | php | chosen |
[
{
"from": "system",
"value": "Fix the hard-coded Elasticsearch index\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\Config;\nuse App\\Providers\\ElasticSearch;\nuse Illuminate\\Support\\Facades\\Input;\n\nUse Utils;\nuse Request... | php | chosen |
[
{
"from": "system",
"value": "Refresh product before checking stock"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners;\n\nuse App\\User;\nuse App\\Product;\nuse App\\Mail\\ProductStockLow;\nuse App\\Mail\\ProductOutOfStock;\nuse App\\Events\\ProductStockChanged;\nuse Illuminate\... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace of chunk filter"
},
{
"from": "human",
"value": "<?php\n\nnamespace Http\\Message\\Encoding;\n\n/**\n * Decorate a stream which is chunked.\n *\n * Allow to decode a chunked stream\n *\n * @author Joel Wurtz <joel.wurtz@gmail.com>\n */\nclass DechunkSt... | php | chosen |
[
{
"from": "system",
"value": "FIX: Deal with the folder missing case\n"
},
{
"from": "human",
"value": "<?php\nnamespace WebOfTalent\\Links;\nuse SilverStripe\\ORM\\DataExtension;\n\n/**\n * Get a handle on a links folder for rendering purposes\n *\n * Class LinksExtension\n * @package WebOfTale... | php | chosen |
[
{
"from": "system",
"value": "Put Laravel storage outside source tree\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Application Path\n\t|-------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix encoding issue that was converting UTF-8 characters to question marks\n"
},
{
"from": "human",
"value": "<?\nrequire_once('config.inc.php');\n\nfunction crash($string){\n\tob_end_clean();\n\tdie($string);\n}\n\n$db_connection = mysqli_connect($db_host,$db_user,$... | php | chosen |
[
{
"from": "system",
"value": "Remove Buddypress hook from <head>\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html>\n<head>\n\t<title><?php wp_title(\"|\", true, \"right\"); bloginfo(\"name\");?></title>\n\t<meta charset=\"utf-8\" />\n\t<!-- Load up the Ubuntu fonts -->\n\t<link rel=\"st... | php | chosen |
[
{
"from": "system",
"value": "Update self reference in constructor"
},
{
"from": "human",
"value": "<?php\n\nclass Tree\n{\n\tpublic $species;\n\tpublic $latitude;\n\tpublic $longitude;\n\t\n\tfunction __construct($spe, $lat, $lon)\n\t{\n\t\t$species = $spe;\n\t\t$latitude = $lat;\n\t\t$longitud... | php | chosen |
[
{
"from": "system",
"value": "[http] Unify criteria for split name\n\nAdd missing Etag from zendframework/zf2#5302 c22ec11bf67f7d3f36edcd824ecdb26960c789d5\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframe... | php | chosen |
[
{
"from": "system",
"value": "Switch license from MIT to AGPL in plugin file\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\nPlugin Name: Castlegate IT WP Postcard\nPlugin URI: http://github.com/castlegateit/cgit-wp-postcard\nDescription: Quick and easy pre-defined templates for Postman.\nVers... | php | chosen |
[
{
"from": "system",
"value": "Rename '@StrangePan' in header to 'Twitter'. Simplifies header menu.\n"
},
{
"from": "human",
"value": "<nav class=\"main\">\n\t<ul>\n\t\t<li><a href=\"<?=$relRoot;?>\">Home</a></li>\n\t\t<li><a href=\"<?=$relRoot;?>?p=resume\">Resume</a></li>\n\t\t<li><a href=\"<?=... | php | chosen |
[
{
"from": "system",
"value": "Allow criteria via log variable\n"
},
{
"from": "human",
"value": "<?php\nnamespace Craft;\n\nclass AuditLogVariable {\n\n public function log() \n {\n \n return craft()->auditLog->log();\n \n }\n \n public function view($id)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Comment updates for test bootstrap file.\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('phpunit-config.php');\n\n// Get MarkLogic version for skipping tests\n$serverConfig = $mlphp->getServerConfig();\n$mlphp->config['mlversion'] = $serverConfig['version']... | php | chosen |
[
{
"from": "system",
"value": "Remove extra blank lines before class closing brace\n"
},
{
"from": "human",
"value": "<?php namespace CL\\Atlas;\n\n/**\n * @author Ivan Kerin\n * @copyright (c) 2014 Clippings Ltd.\n * @license http://www.opensource.org/licenses/isc-license.txt\n */\ninter... | php | chosen |
[
{
"from": "system",
"value": "Set name for not-found and access-denies pages\n\nThis name will be shown in the page title and breadcrumbs instead of the component-key.\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Errors_Component extends Kwc_Abstract\n{\n public static function getSett... | php | chosen |
[
{
"from": "system",
"value": "Use TextReporter when in cli mode.\n\n"
},
{
"from": "human",
"value": "<?php\r\n require_once('simpletest/unit_tester.php');\r\n require_once('simpletest/reporter.php');\r\n \r\n require_once(dirname(__FILE__).'/acceptance_test.php');\r\n require_onc... | php | chosen |
[
{
"from": "system",
"value": "Remove reference to deprecated TicketDB class\n"
},
{
"from": "human",
"value": "<?php\nini_set('display_errors', 1);\nerror_reporting(E_ALL);\nrequire_once('class.TicketAdminPage.php');\nrequire_once('class.FlipsideTicketDB.php');\n$page = new TicketAdminPage('Burn... | php | chosen |
[
{
"from": "system",
"value": "Add version string to app class\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\tCopyright (c) 2012 Colin Rotherham, http://colinr.com\n\thttps://github.com/colinrotherham\n*/\n\n\tnamespace CRD\\Core;\n\n\tclass App\n\t{\n\t\tpublic static $name = '';\n\t\tpublic ... | php | chosen |
[
{
"from": "system",
"value": "Fix link on index view.\n"
},
{
"from": "human",
"value": "@extends('fluxbb::layout.main')\n\n@section('main')\n\n{{-- TODO: Escape all the variables!!! --}}\n<ul>\n@foreach ($categories as $cat_info)\n<?php $category = $cat_info['category']; ?>\n\t<li>\n\t\t{{ $cat... | php | chosen |
[
{
"from": "system",
"value": "Update ZF2 supported version info\n"
},
{
"from": "human",
"value": "<?php\nreturn array(\n 'view_manager' => array(\n 'template_map' => array(\n 'layout/layouttwb' => __DIR__ . '/../view/layout/layouttwb.phtml',\n ),\n 'templ... | php | chosen |
[
{
"from": "system",
"value": "Add a comment id to template"
},
{
"from": "human",
"value": "<?php\n$account_name = BackendAccount::getName();\n$Comment = new CommentObj($comment['id']);\nif ($Comment->array):\n\t$comment = $Comment->array;\n\tif (filter_var($comment[$account_name]['username'], F... | php | chosen |
[
{
"from": "system",
"value": "Fix problem with detecting step lines with failed steps\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Concerns;\n\nuse PHPUnit\\Framework\\Assert;\n\nclass ArtisanResult\n{\n private $output;\n private $status;\n private $parameters;\n\n p... | php | chosen |
[
{
"from": "system",
"value": "Fix bug where string containing only a zero weren't concatenating correctly\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ATP\\Reducer;\n\nclass Concatenate\n{\n\tprivate $_sep = \"\";\n\t\n\tpublic function __construct($sep = \"\")\n\t{\n\t\t$this->_sep = $... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.