conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set up route to find/locations\n"
},
{
"from": "human",
"value": "<?php\nnamespace Orchid;\n\nreturn array(\n 'controllers' => array(\n 'invokables' => array(\n ),\n ),\n 'router' => array(\n 'routes' => array(\n ),\n ),\n ... | php | chosen |
[
{
"from": "system",
"value": "FIX Added additional hook point for a request made to Security/login directly\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author marcus\n */\nclass BasicAuthEnablerExtension extends Extension {\n\tstatic $do_reenable = false;\n\t\n\tpublic function onBefore... | php | chosen |
[
{
"from": "system",
"value": "Add some blank lines for readability\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Opdavies\\Sculpin\\Bundle\\ContentGeneratorBundle\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterfac... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Fix typo which happened in migration to lesser magic\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@21596 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n\nfunction prefs_error_list() {\n\treturn array(\n\t\t'error_repor... | php | chosen |
[
{
"from": "system",
"value": "Disable default registerCommands method as all commands are registered as tagged services\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Elcodi package.\n *\n * Copyright (c) 2014 Elcodi.com\n *\n * For the full copyright and license inf... | php | chosen |
[
{
"from": "system",
"value": "Use object oriented syntax for container filling\n"
},
{
"from": "human",
"value": "<?php\n\tsession_start();\n\n\trequire '../vendor/autoload.php';\n\n\tuse Service\\ErrorHandler\\ErrorHandler;\n\tuse Service\\Factory\\Eloquent\\EloquentFactory;\n\tuse Slim\\Views\... | php | chosen |
[
{
"from": "system",
"value": "Clean up a non-empty string guard\n"
},
{
"from": "human",
"value": "<?php\nnamespace Peppercorn\\St1;\n\nuse Phava\\Base;\nuse Phava\\Base\\Preconditions;\nuse Phava\\Base\\Strings;\n\nclass File\n{\n\n /**\n * Contains all lines from this file\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Simplify null check with optional()\n"
},
{
"from": "human",
"value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\nnamesp... | php | chosen |
[
{
"from": "system",
"value": "Update max length for x-ray tube housing/insert model validation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass UpdateTubeRequest extends FormRequest\n{\n /**\n * Determi... | php | chosen |
[
{
"from": "system",
"value": "Add a get Data method\n"
},
{
"from": "human",
"value": "<?php namespace Walisph\\Merchant\\Eloquent;\n\nuse Illuminate\\Database\\Eloquent\\Model as Eloquent;\nuse Walisph\\Merchant\\ProductInterface;\n\nclass ProductRepository extends Eloquent implements ProductIn... | php | chosen |
[
{
"from": "system",
"value": "Fix missing import for throwing timeout Exception"
},
{
"from": "human",
"value": "<?php\n\nnamespace ConnectionManager\\Extra;\n\nuse React\\SocketClient\\ConnectorInterface;\nuse React\\EventLoop\\LoopInterface;\nuse React\\Promise\\Deferred;\n\nclass ConnectionMa... | php | chosen |
[
{
"from": "system",
"value": "Portal.Push: Use some additional refined logic\n"
},
{
"from": "human",
"value": "<?php namespace App\\Commands;\n\nuse App\\Commands\\Command;\nuse App\\Models\\Container;\nuse DroneMill\\EventsocketClient\\Client;\nuse Log;\nuse Config;\n\nuse Illuminate\\Contract... | php | chosen |
[
{
"from": "system",
"value": "Align timestamp to right on notifications page\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('title', 'Notifications')\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2>Notifications</h2>\n <div class=\"box mt-3\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Update manipulation class in context primary key\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rentgen\\Schema;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\nuse Rentgen\\Rentgen;\nuse Rentgen\\Database\\Table;\nuse Rentgen\\Database... | php | chosen |
[
{
"from": "system",
"value": "Change email from contact@hedi-kestouri.tn to hedi@kastouri.com\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']) |... | php | chosen |
[
{
"from": "system",
"value": "Remove empty line before code\n"
},
{
"from": "human",
"value": "\n<?php\n/**\n * @file src/Model/Storage/StorageException.php\n * @brief Storage backend system\n */\n\nnamespace Friendica\\Model\\Storage;\n\n/**\n * @brief Storage Exception\n */\nclass StorageExcep... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on variable names. Remove return value from connect() because objects are passed by reference."
},
{
"from": "human",
"value": "<?php\n\nnamespace OnlyBits\\Inputs;\n\nuse OnlyBits\\Connectors\\ConnectInterface;\nuse OnlyBits\\Connectors\\Wire;\n\nclass TwoS... | php | chosen |
[
{
"from": "system",
"value": "Fix missing AppSectionsPass in Bundle\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Park-Manager AppSectioningBundle package.\n *\n * (c) Sebastiaan Stok <s.stok@rollerscapes.net>\n *\n * This source file is subject to the MIT license t... | php | chosen |
[
{
"from": "system",
"value": "Check the element type before making the comparison (== for objects, === for everything else)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the JsonSchema package.\n *\n * For the full copyright and license information, please view the LICE... | php | chosen |
[
{
"from": "system",
"value": "Make JSON error code comparison type-strict\n"
},
{
"from": "human",
"value": "<?php\nnamespace Spark\\Handler;\n\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse Spark\\Exception\\HttpBadReques... | php | chosen |
[
{
"from": "system",
"value": "Change exception message + use sprintf() to make string nicer\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Factory Trait\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2018, Pierre-Henry Sor... | php | chosen |
[
{
"from": "system",
"value": "Refactor Dusk Breadcrumbs test to be more efficient\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Browser;\n\nuse App\\Models\\User;\nuse Laravel\\Dusk\\Browser;\nuse Tests\\DuskTestCase;\n\nclass BreadcrumbsTest extends DuskTestCase\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in url to github repo inside footer\n"
},
{
"from": "human",
"value": "<footer>\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"column-1-4\">\n <div class=\"footer-div\">\n <h2 class=\"orange-border\">FOCUS</h2>\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix test setUp method signatures\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enqueue\\Bundle\\Tests\\Functional;\n\nuse Enqueue\\Bundle\\Tests\\Functional\\App\\AppKernel;\nuse Enqueue\\Client\\TraceableProducer;\nuse Symfony\\Bundle\\FrameworkBundle\\Clie... | php | chosen |
[
{
"from": "system",
"value": "Refactor test, check if price is an integer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Albergrala\\Crawlers;\n\nuse Albertgrala\\Crawlers\\PcComponentesCrawler;\n\nclass PcComponentesCrawlerTest extends \\PHPUnit_Framework_TestCase\n{\n\n\tprotected funct... | php | chosen |
[
{
"from": "system",
"value": "Add test for states() method shortcut\n"
},
{
"from": "human",
"value": "<?php\n\nuse Galahad\\LaravelAddressing\\AdministrativeAreaCollection;\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class AdministrativeAreaCollectionTest\n *\n * @author Junior Grossi ... | php | chosen |
[
{
"from": "system",
"value": "Set mysql charset as utf8\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Author: Abel Halo <zxz054321@163.com>\n */\nreturn [\n 'debug' => false,\n];"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Author: Abel Halo <zxz054321@163.com>\n */\nreturn [... | php | chosen |
[
{
"from": "system",
"value": "Fix CS and reverse logic\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of BundleFu.\n *\n * (c) 2011 Jan Sorgalla <jan.sorgalla@dotsunited.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was d... | php | chosen |
[
{
"from": "system",
"value": "[CI] Remove cloned PEAR from include path\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../src/loader.php';\n\n\n// Add PEAR to include path for Travis CI\nif(!class_exists('PEAR_RunTest'))\n\tset_include_path(get_include_path() . PATH_SEPARAT... | php | chosen |
[
{
"from": "system",
"value": "Use resources for technology costs"
},
{
"from": "human",
"value": "<?php\r\nnamespace OGetIt\\Technology;\r\n\r\nuse OGetIt\\Common\\OGetIt_Resources;\r\n\r\nabstract class OGetIt_Technology {\r\n\t\r\n\t/**\r\n\t * @var integer\r\n\t */\r\n\tprivate $_type;\r\n\t\... | php | chosen |
[
{
"from": "system",
"value": "Fix url rewrites in nginx\n"
},
{
"from": "human",
"value": "<?php\n\n/* GNU FM -- a free network service for sharing your music listening habits\n\n Copyright (C) 2009 Free Software Foundation, Inc\n\n This program is free software: you can redistribute it and/... | php | chosen |
[
{
"from": "system",
"value": "Make sure properties with dashes are handled correctly\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Scato\\Serializer\\ObjectAccess;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\nuse stdClass;\n\nclass SimpleAccessorSpec extends ObjectBeha... | php | chosen |
[
{
"from": "system",
"value": "Append new individual batch operation data to the end of the batch data array.\n\narray_merge() is *slow* as the number of operations gets larger.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Everyman\\Neo4j\\Command\\Batch;\nuse Everyman\\Neo4j\\Client,\n\tE... | php | chosen |
[
{
"from": "system",
"value": "Change to write to the IO18 pin\n"
},
{
"from": "human",
"value": "<?php \n\tif(isset($_GET['trigger']) && $_GET['trigger'] == 1) {\n\t\terror_reporting(E_ALL);\n\t\texec('gpio write 7 0');\n\t\tusleep(1000000);\n\t\texec('gpio write 7 1');\n\t}\n?>\n<!DOCTYPE html>... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if we can't parse url\n"
},
{
"from": "human",
"value": "<?php\nnamespace PhpBrew\\Downloader;\n\nclass UrlDownloader\n{\n public $logger;\n\n public function __construct($logger)\n {\n $this->logger = $logger;\n }\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add failing test for 'Numeric Annotation Glyphs aren't correctly removed'.\n\nIssue: https://github.com/amyboyd/pgn-parser/issues/1\n"
},
{
"from": "human",
"value": "<?php\n\nuse AmyBoyd\\PgnParser\\Game;\nuse AmyBoyd\\PgnParser\\PgnParser;\n\nclass GameTest extend... | php | chosen |
[
{
"from": "system",
"value": "Add db name for unit tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Application configuration shared by all test types\n */\nreturn [\n 'language' => 'en-US',\n 'controllerMap' => [\n 'fixture' => [\n 'class' => 'yii\\faker\\FixtureC... | php | chosen |
[
{
"from": "system",
"value": "Use fluent interface for DRYer code.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The MIT License\... | php | chosen |
[
{
"from": "system",
"value": "Update test references to array_peek()\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nectary\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\n\n/**\n * @group utility\n */\nclass Array_Utilities_Test extends TestCase {\n\tpublic function test_array_peak() {\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unneeded component from user interface [WEB-133]\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-md-8\">\n <div c... | php | chosen |
[
{
"from": "system",
"value": "Add function test to ensure `Recoil::stop()` does not wait for sleeping strands.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1); // @codeCoverageIgnore\n\nnamespace Recoil;\n\ncontext('api/stop', function () {\n it('stops the kernel', functio... | php | chosen |
[
{
"from": "system",
"value": "Fix insufficient interface method argument\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mpyw\\Co;\n\ninterface CoInterface\n{\n const RETURN_WITH = '__RETURN_WITH__';\n const RETURN_ = '__RETURN_WITH__'; // alias\n const RET = '__RETURN_WITH__'; //... | php | chosen |
[
{
"from": "system",
"value": "Use correct environment for Intercom\n\nWhoops ¯\\_(ツ)_/¯\n"
},
{
"from": "human",
"value": "@if (app()->environment('local') && $appId = config('services.intercom.app_id'))\n <script>\n window.intercomSettings = {\n @if (Auth::check())\n ... | php | chosen |
[
{
"from": "system",
"value": "Make preg_replace_callback test more thorough\n\nCheck that the callback isn't called more than once, see #666\n"
},
{
"from": "human",
"value": "<?php\nnamespace pcre\\preg_replace_callback_001;\n\nfunction f() {\n\techo preg_replace_callback('~-([a-z])~', function... | php | chosen |
[
{
"from": "system",
"value": "Handle arrays in post input\n"
},
{
"from": "human",
"value": "<?php\nclass Inputs\n{\n protected static $_instance = Null;\n\n public static function instance()\n {\n if (!self::$_instance)\n self::$_instance = new self;\n\n return... | php | chosen |
[
{
"from": "system",
"value": "Order elements properly so that stacking works\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nclass ScreenElements {\r\n\t\r\n\tpublic function get_by_screen($screen) {\r\n\t\treturn ScreensDB::select(\"* FROM status_screens_elements WHERE screen_id = \".$screen->i... | php | chosen |
[
{
"from": "system",
"value": "Modify logout button to right\n"
},
{
"from": "human",
"value": "<!-- Static navbar -->\n<nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=... | php | chosen |
[
{
"from": "system",
"value": "Hide ‘photo's from (blog) page’.\n"
},
{
"from": "human",
"value": "<?php snippet_detect('html_head', array(\n\t'criticalcss' => false,\n\t'prev_next' => true,\n\t'prerender' => true\n)); ?>\n\n\t<?php snippet('banner'); ?>\n\n\t<main role=\"main\" class=\"Contain\"... | php | chosen |
[
{
"from": "system",
"value": "Add list:site command enable option\n"
},
{
"from": "human",
"value": "<?php\n/**\n * SiteCLI - Help you manage Nginx local development configuration\n *\n * @author panlatent@gmail.com\n * @link https://github.com/panlatent/site-cli\n * @license https://opensou... | php | chosen |
[
{
"from": "system",
"value": "Add basic tests for core functionality of ClassLoader\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BetterReflectionTest\\Util\\Autoload;\n\nuse BetterReflection\\Reflection\\ReflectionClass;\nuse BetterReflection\\Util\\Autoload\\ClassLoader;\nuse BetterRef... | php | chosen |
[
{
"from": "system",
"value": "Define the server protcol properly\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('SERVER_PROTOCOL', 'HTTP/1.1');\n$_SERVER['DOCUMENT_ROOT'] = str_replace( 'deploy/tests', '', __DIR__ );\n$_SERVER['SERVER_NAME'] = gethostname();\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Fix a bug where close event was not sent\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace HomoChecker\\View;\n\nclass ServerSentEventView implements ViewInterface\n{\n public $event;\n\n public function __construct($event)\n {... | php | chosen |
[
{
"from": "system",
"value": "Update auth token form layout\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-8 col-md-offset-2\">\n <div class=\"panel panel-default\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Add police and toolbar at the top API level.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Api_Admin should be used for building your own application's administration\n * model. The benefit is that you'll have access to a number of add-ons which\n * are specific... | php | chosen |
[
{
"from": "system",
"value": "Make PDO connections persistent and exceptional\n"
},
{
"from": "human",
"value": "<?php\n/* Site-wide utility functions */\n\nrequire_once('secureConstants.php');\n\nfunction mysqliConn() {\n\t$db = new mysqli(\n\t\t$GLOBALS['DB']['SERVER'],\n\t\t$GLOBALS['DB']['US... | php | chosen |
[
{
"from": "system",
"value": "Add the field that are mass assignable on the tasks table\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Begin;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Task extends Model\n{\n /**\n * The database table used by the model.\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Update the find method in the repository to work with variants\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coreplex\\Meta\\Eloquent;\n\nuse Coreplex\\Meta\\Contracts\\Repository as Contract;\nuse Coreplex\\Meta\\Exceptions\\MetaGroupNotFoundException;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Fix: Add missing $ before parameter name in docblock\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Route;\n\ntrait RouteConditionTrait\n{\n /**\n * @var string\n */\n protected $host;\n\n /**\n * @var string\n */\n protect... | php | chosen |
[
{
"from": "system",
"value": "Fix the broken Twig 'finder' function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace allejo\\stakx\\Twig;\n\nuse Symfony\\Component\\Finder\\Finder;\n\nclass FinderFunction\n{\n public static function get ()\n {\n return new \\Twig_SimpleFunction... | php | chosen |
[
{
"from": "system",
"value": "Use PSR-0 structure for the test too\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Test\\Staq;\n\nrequire_once( __DIR__ . '/../../vendor/autoload.php' );\n\nclass Application_Test extends \\PHPUnit_Framework_TestCase {\n\n\n\n\t/*****************************... | php | chosen |
[
{
"from": "system",
"value": "Reset in Reminders in Portuguese"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Password Reminder Language Lines\n |----------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Remove reference to Drupal ID.\n"
},
{
"from": "human",
"value": "{!! Form::open(['action' => 'UsersController@search', 'method' => 'GET']) !!}\n<div class=\"form-actions -inline\">\n <li>{!! Form::text('query', request()->get('query'), ['class' => 'text-field -s... | php | chosen |
[
{
"from": "system",
"value": "Add contentTypeRole to rest controller\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: GeoMash\n * Date: 3/17/14\n * Time: 4:13 PM\n */ "
},
{
"from": "gpt",
"value": "<?php\nnamespace application\\nutsNBolts\\controller\... | php | chosen |
[
{
"from": "system",
"value": "Add methods to taskManager test\n"
},
{
"from": "human",
"value": "<?php\r\n\r\ninclude_once('includes/autoload.php');\r\n\r\nclass taskManagerTest extends PHPUnit_Framework_TestCase {\r\n\t\r\n\t// set up global app var\r\n\tpublic function setUp() {\r\n\t\t// init... | php | chosen |
[
{
"from": "system",
"value": "Make it work when situated in a subfolder"
},
{
"from": "human",
"value": "<?php\n/**\n * Initialize the application\n *\n * @author Christophe Gosiau <christophe@tigron.be>\n * @author Gerry Demaret <gerry@tigron.be>\n */\n\nrequire_once '../config/global.php';\n\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unneeded env var to set siteaccess"
},
{
"from": "human",
"value": "<?php\n\nnamespace Boris\\Loader\\Provider;\n\nclass EzPublish extends AbstractProvider\n{\n public $name = 'ezpublish';\n\n public function assertDir($dir)\n {\n return is_fi... | php | chosen |
[
{
"from": "system",
"value": "Make cities a property, set inside constructor\n\n"
},
{
"from": "human",
"value": "<?php\nnamespace SepomexPhp;\n\nclass Locations implements \\IteratorAggregate, \\Countable\n{\n /** @var Location[] */\n private $collection;\n\n public function __construc... | php | chosen |
[
{
"from": "system",
"value": "Change namespace in example classes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AndrewNovikof\\Objects;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class ObjectsServiceProvider\n * @package Objects\n */\nclass ObjectsServiceProvider extends Ser... | php | chosen |
[
{
"from": "system",
"value": "Hide groups the user is already member of in user add group form.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace User\\Form;\n\nuse App\\Entity\\User;\nuse Doctrine\\ORM\\EntityRepository;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong name for private field.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Predis\\Options;\n\nclass CustomOption extends Option {\n private $__validate, $_default;\n\n public function __construct(Array $options) {\n $validate = isset($opti... | php | chosen |
[
{
"from": "system",
"value": "Fix validation messages in category\n"
},
{
"from": "human",
"value": "<?php namespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Validator;\n\nclass Category extends Model {\n\n\n\tprotected $fillable = ['name'];\n\n\tprivate static $messages = [\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Replace outdated join function with implode\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of PHP Mess Detector.\n *\n * Copyright (c) Manuel Pichler <mapi@phpmd.org>.\n * All rights reserved.\n *\n * Licensed under BSD License\n * For full copy... | php | chosen |
[
{
"from": "system",
"value": "Change the route of the form tp App\\Http\\SettingsController\n"
},
{
"from": "human",
"value": "<form method=\"POST\" action=\"{{ action('\\GeniusTS\\Preferences\\Controllers\\SettingsController@update') }}\">\n <input type=\"hidden\" name=\"_method\" value=\"PA... | php | chosen |
[
{
"from": "system",
"value": "fix(spec): Remove headers from php-vcr request matching\n"
},
{
"from": "human",
"value": "<?php\nuse filter\\Filter;\nuse VCR\\VCR;\n\n$this->args()->argument('reporter', 'default', 'verbose');\n\nVCR::configure()->setCassettePath(__DIR__.'/spec/fixtures');\nVCR::t... | php | chosen |
[
{
"from": "system",
"value": "Remove presenter prop from Trait.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Presenters;\n\ntrait PresentableTrait {\n\n /*\n * The Presenter class\n *\n * @var mixed\n */\n protected $presenter;\n\n /**\n * View presente... | php | chosen |
[
{
"from": "system",
"value": "Save user data right from the object\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Meatings\\Repositories;\n\nuse Meatings\\User;\n\nclass UserRepository {\n\n public function findByUsernameOrCreate($userData)\n {\n\n return User::firstOrCreate(... | php | chosen |
[
{
"from": "system",
"value": "[Security] Fix security.interactive_login event const doc block\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, p... | php | chosen |
[
{
"from": "system",
"value": "Add labels, form group div to signin form.\n"
},
{
"from": "human",
"value": "@extends('layout.master')\n\n@section('main_content')\n\n<div class =\"container col-md-6\">\n\n {{ Form::open(['route' => 'sessions.store', 'class' => 'form-signin']) }}\n <h2 class=\... | php | chosen |
[
{
"from": "system",
"value": "Remove Sf4.2 deprecation on TreeBuilder constructor"
},
{
"from": "human",
"value": "<?php\n\nnamespace AlterPHP\\EasyAdminExtensionBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Def... | php | chosen |
[
{
"from": "system",
"value": "Fix (JWT Service): Text files should end with a newline character\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Service;\n\nuse Doctrine\\ORM\\Tools\\Pagination\\Paginator;\nuse Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\T... | php | chosen |
[
{
"from": "system",
"value": "Update a Phabricator -> Arcanist include path for scripts in Phabricator\n\nSummary: Ref T13395. Since there's very little code which really makes sense in \"scripts/\", I've moved most of it to other places.\n\nTest Plan: Ran `bin/phd`.\n\nManiphest Tasks: T13395\n\nDifferenti... | php | chosen |
[
{
"from": "system",
"value": "Reset configuration pool compiler pass type to default.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Darvin\\ConfigBundle;\n\nuse Darvin\\ConfigBundle\\DependencyInjection\\Compiler\\ConfigurationPoolPass;\nuse Symfony\\Component\\DependencyInjection\\Compi... | php | chosen |
[
{
"from": "system",
"value": "Reformat and normalize messages, include -h and --help parameters\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Script to validate a cfdi and show all the errors found\n */\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse CFDIReader\\CFDIFactory;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Add new unit test files to testsuite\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(dirname(__FILE__).'/../vendor/simpletest/autorun.php');\nrequire_once(dirname(__FILE__).'/../Mustache.php');\n\nclass MustacheTestSuite extends TestSuite {\n function Must... | php | chosen |
[
{
"from": "system",
"value": "Work on the profiles tests\n"
},
{
"from": "human",
"value": "<?php namespace Tests\\Feature;\n\nuse Tests\\DatabaseTestCase;\n\nclass ProfilesTest extends DatabaseTestCase\n{\n\t/** @test **/\n\tpublic function a_user_has_a_profile()\n\t{\n\t\t$user = create('App\\... | php | chosen |
[
{
"from": "system",
"value": "Make dfp library path come first on include path\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP Datafeed Library\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * with this package in the file LICENSE.txt.\n * It i... | php | chosen |
[
{
"from": "system",
"value": "Add invalid Pause creation test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AmineBenHariz\\Attendance\\Tests;\n\n/**\n * Class PauseTest\n * @package AmineBenHariz\\Attendance\\Tests\n */\nclass PauseTest extends \\PHPUnit_Framework_TestCase\n{\n\n}\n"
}... | php | chosen |
[
{
"from": "system",
"value": "Use new discussion URL format\n"
},
{
"from": "human",
"value": "Hey {{ $user->username }}!\n\n{{ $blueprint->post->user->username }} made a post in a discussion you're following: {{ $blueprint->post->discussion->title }}\n\nTo view the new activity, check out the f... | php | chosen |
[
{
"from": "system",
"value": "Edit the console for create a user.\n\n:)\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * See in\n * https://github.com/yiisoft/yii2/blob/master/docs/guide/tutorial-console.md\n *\n */\n\nnamespace app\\commands;\n\nuse Yii;\nuse yii\\console\\Controller;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "[web] Add code to check if conf.php exists, if not, then an error message is displayed\n\n"
},
{
"from": "human",
"value": "<?php\n# $Id$\n#\n# read and evaluate the configuration file\n#\ninclude_once \"./conf.php\";\n\n# These are settings derived from the configu... | php | chosen |
[
{
"from": "system",
"value": "Fix trait, methods are declared as abstract instead of inside docblock\n"
},
{
"from": "human",
"value": "<?php namespace GenericCollections\\Traits;\n\n/**\n * This methods apply to BaseCollectionInterface and\n * its shared between all the different AbstractCollec... | php | chosen |
[
{
"from": "system",
"value": "Fix tests to not use deprecated file\n"
},
{
"from": "human",
"value": "<?php\n\n$file = __DIR__.'/../vendor/autoload.php';\nif (file_exists($file)) {\n $autoload = require $file;\n} else {\n throw new RuntimeException('Install dependencies to run test suite.'... | php | chosen |
[
{
"from": "system",
"value": "UPDATE - Added some code\n"
},
{
"from": "human",
"value": "<?php\n\n //A PHP script to fetch, return and possibly store the latest headlines from the /r/onion and /r/notonion subreddits.\n \n \n\n?>\n"
},
{
"from": "gpt",
"value": "<?php\n\n //A PHP... | php | chosen |
[
{
"from": "system",
"value": "Add model method to store contract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Contracts;\n\ninterface Store\n{\n /**\n * Return all of the results.\n *\n * @return array\n */\n public function results();\n... | php | chosen |
[
{
"from": "system",
"value": "Access Google Maps API by https protocol\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace kossmoss\\GoogleMaps;\n\n/**\n * Asset for Gmap3 JavaScript library\n * @link https://github.com/kossmoss/yii2-google-maps-api\n * @copyright Copyright (c) 2016 kossmoss <... | php | chosen |
[
{
"from": "system",
"value": "Implement add() function with apc_store()\n"
},
{
"from": "human",
"value": "<?php\n class Better_PHP_Cache\n {\n public function __construct()\n {\n\n }\n\n public function add($entry_name, $entry_value, $time_to_live)\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Set null default value to max\n\nThis avoid this error:\r\nType error: Too few arguments to function Avanzu\\AdminThemeBundle\\Event\\NotificationListEvent::__construct(), 0 passed in /var/www/html/cti/vendor/avanzu/admin-theme-bundle/Controller/NavbarController.php on line 39 ... | php | chosen |
[
{
"from": "system",
"value": "Fix deprecation error because missing the static keyword\n"
},
{
"from": "human",
"value": "<?php\nnamespace PastryBag\\Di;\n\nuse Aura\\Di\\Container;\nuse Aura\\Di\\ContainerBuilder;\nuse Aura\\Di\\ContainerConfigInterface;\n\nclass PastryBag\n{\n\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix better link style on index page\n"
},
{
"from": "human",
"value": "<h1>Welcome to Kwitter</h1>\n\n<p>\n Ut ornare lectus sit amet est placerat in egestas erat imperdiet sed euismod nisi porta lorem mollis aliquam ut porttitor leo a diam sollicitudin tempor. Ut ... | php | chosen |
[
{
"from": "system",
"value": "Update the view in prep to display logged transactions.\n"
},
{
"from": "human",
"value": "<?php require_once \"../config.php\"; ?>\n<!DOCTYPE html>\n<html>\n\n<head>\n <?php require_once SITEROOT.\"/templates/top.php\"; ?>\n</head>\n\n<body>\n <noscript>\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.