conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove alias from service provider.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Widget;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Foundati... | php | chosen |
[
{
"from": "system",
"value": "Add missing return type hint\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Dash\n *\n * @link http://github.com/DASPRiD/Dash For the canonical source repository\n * @copyright 2013-2015 Ben Scholzen 'DASPRiD'\n * @license http://opensource.org/licenses/BS... | php | chosen |
[
{
"from": "system",
"value": "Use different TED talk - don't load insecure images.\n"
},
{
"from": "human",
"value": "<div id=\"mainWrapper\" class=\"dark-bg\">\r\n <div id=\"header\" >\r\n <div class=\"row center-text\">\r\n <div class=\"small-12 columns\">\r\n ... | php | chosen |
[
{
"from": "system",
"value": "Delete posts through the posts manager so other services get the update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Rogue\\Models\\Post;\n\nclass DeletePosts extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove Emulation logs directory one time at the beggining of the test suite\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Tests\\Emulation;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase as BaseWebTestCase;\nuse Symfony\\C... | php | chosen |
[
{
"from": "system",
"value": "Fix export class name in generatedd admin modules\n"
},
{
"from": "human",
"value": " public function executeExport(sfWebRequest $request)\n {\n $this->doExport(array(\n 'format' => $request->getParameter('format', 'csv'),\n 'extension' => $request->g... | php | chosen |
[
{
"from": "system",
"value": "Check if the model is empty first in collection relationship\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EGALL\\Transformer\\Relationships;\n\nuse EGALL\\Transformer\\Relationship;\n\n/**\n * ModelToCollectionRelationship Class\n *\n * @package EGALL\\Tran... | php | chosen |
[
{
"from": "system",
"value": "Add support for Monolog 1.2.0\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Fix accepted application notification reference\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners\\VisitTransfer;\n\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse App\\Events\\VisitTransfer\\ApplicationAccepted;\n\nclass NotifyTrainingDepart... | php | chosen |
[
{
"from": "system",
"value": "Add missing newline at end of file\n\nSee #2509\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\system\\form\\builder\\field;\n\n/**\n * Provides default implementations of `INullableFormField` methods.\n * \n * @author\tMatthias Schmidt\n * @copyright\t200... | php | chosen |
[
{
"from": "system",
"value": "Change back database name to mediadb\n"
},
{
"from": "human",
"value": "<?php\n\n return [\n 'driver'=>'mysqli',\n 'host'=>'localhost',\n 'user'=>'root',\n 'password'=>'',\n 'database'=>'mangadb'\n ];\n\n?>\n"
},
{
"f... | php | chosen |
[
{
"from": "system",
"value": "Update styling to accommodate for newly implemented columns\n"
},
{
"from": "human",
"value": "<?php if (isset($message)): ?>\n<div class=\"row align-center\">\n\t<div class=\"small-12 columns\">\n\t\t<table class=\"hover stack\" style=\"table-layout: fixed\">\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Tweak event fire to be consistent with v1.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration,\n\tIlluminate\\Support\\Facades\\Event;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Change to API to include a validation check for Mobile App\n"
},
{
"from": "human",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Api extends CI_Controller {\n\n\tfunction __construct()\n\t{\n parent::__construct();... | php | chosen |
[
{
"from": "system",
"value": "Use actual value in queries rather than object-cast-to-string\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenConext\\EngineBlockBundle\\Authentication\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse OpenConext\\EngineBlock\\Authentication\\Value... | php | chosen |
[
{
"from": "system",
"value": "Handle ClearDB specially when re-writing configuration\n"
},
{
"from": "human",
"value": "<?php\n\nchdir(__DIR__);\n\n$placeholders = null;\n$placeholderPattern = '/\\%\\%([A-Z_]+)\\%\\%/i';\n$config = file_get_contents('../wp-config.php');\n\npreg_match_all($placeh... | php | chosen |
[
{
"from": "system",
"value": "Fix mised autoload dependency for dissect\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2012, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.org/licenses/mit-lic... | php | chosen |
[
{
"from": "system",
"value": "Add Model::newInstance() and create() methods example.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PunyApp:\n * The puny developer framework for rapid compiling.\n */\n\nclass SampleModel extends PunyApp_Model {\n\n public function addUser($user_id, $email,... | php | chosen |
[
{
"from": "system",
"value": "Include a slug for the upcoming event\n"
},
{
"from": "human",
"value": "<?php\n// Copyright 2019 Peter Beverloo. All rights reserved.\n// Use of this source code is governed by the MIT license, a copy of which can\n// be found in the LICENSE file.\n\nerror_reportin... | php | chosen |
[
{
"from": "system",
"value": "Add Debugbar for comprovation errors for debug\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|-----------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Return person information when logging in\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Validates login using basic authentication\n */\n\nrequire_once __DIR__ . '/../bootstrap.php';\n\nlogout(); //Destroy any old sessions\nAuthenticate();\n\n$result = new Entit... | php | chosen |
[
{
"from": "system",
"value": "Set correct memcached store in Vanilla.\n"
},
{
"from": "human",
"value": "<?php if (!defined('APPLICATION')) exit();\n\n// Cache\n$Configuration['Cache']['Enabled'] = TRUE;\n$Configuration['Cache']['Method'] = 'memcached';\n"
},
{
"from": "gpt",
"value"... | php | chosen |
[
{
"from": "system",
"value": "Update link to example Bootstrap classes."
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n \n // Always show the paginator, even if there are no pages?\n 'always_show' => false,\n // Show the first/last page links?\n 'show_first_last' => fals... | php | chosen |
[
{
"from": "system",
"value": "Update Test Listner to be able to customize\n"
},
{
"from": "human",
"value": "<?php\nnamespace LaravelRocket\\Foundation\\Tests\\Listeners;\n\nclass DatabaseSetupListener extends \\PHPUnit_Framework_BaseTestListener\n{\n protected $suites = ['Application Test Su... | php | chosen |
[
{
"from": "system",
"value": "Enable logging in the demo\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<head>\n <title>Myna PHP Demo</title>\n</head>\n<body>\n <h1>Myna PHP Demo</h1>\n<?php\nrequire_once '../src/autoload.php';\n\n$experimentId = '8ebfeab2-c308-413f-93ff-45beb6039... | php | chosen |
[
{
"from": "system",
"value": "Fix setup for table trl test\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Trl_Table_Root_Master extends Kwc_Abstract\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['generators']['table'] = array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix broken include of Cl\\PHPUnitTestCase"
},
{
"from": "human",
"value": "<?php\n// Define application environment\ndefined('APPLICATION_ENV')\n || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));\n\nif (APPLICATION... | php | chosen |
[
{
"from": "system",
"value": "Use authentication service to signout\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: dtome\n * Date: 18/02/17\n * Time: 18:24\n */\n\nnamespace Slx\\UserInterface\\Controllers\\User;\n\nuse Silex\\Application;\n\nclass SignOutContro... | 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 Show ID\nPlugin URI: http://github.com/castlegateit/cgit-wp-show-id\nDescription: Show post and page ID in WordPress admin panel.\nVersion:... | php | chosen |
[
{
"from": "system",
"value": "Add log when registering device\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mcfedr\\TwitterPushBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Method;\nuse Sensi... | php | chosen |
[
{
"from": "system",
"value": "Fix query for FAQ entity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Class Faq Repository\n *\n * @author Andrew Prohorovych <prohor... | php | chosen |
[
{
"from": "system",
"value": "Add possibility to configure the action CHANGELOG update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Liip\\RMT\\Action;\n\nuse Liip\\RMT\\Changelog\\ChangelogManager;\nuse Liip\\RMT\\Context;\n\n/**\n * Update the changelog file\n */\nclass ChangelogUpdate... | php | chosen |
[
{
"from": "system",
"value": "Add node parser interface docs.\n"
},
{
"from": "human",
"value": "<?php\nnamespace DemandwareXml\\Parser;\n\nuse XMLReader;\n\ninterface NodeParserInterface\n{\n public function __construct(XMLReader $reader);\n public function isMatch(): bool;\n public fu... | php | chosen |
[
{
"from": "system",
"value": "Add failsafe to HTTP request\n"
},
{
"from": "human",
"value": "<?php namespace Laito;\n\n/**\n * Http class\n *\n * @package default\n * @author Mangolabs\n */\n\nclass Http extends Core\n{\n\n /**\n * @var array Fixed parameters array\n */\n private ... | php | chosen |
[
{
"from": "system",
"value": "Update class name validator implementation.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpSpec\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Conso... | php | chosen |
[
{
"from": "system",
"value": "Add piwik visitor tracking to tracking parameters.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neuron\\Net;\n\n/**\n * Class QueryTrackingParameters\n * @package Neuron\\Net\n */\nclass QueryTrackingParameters\n{\n\t/**\n\t * @return QueryTrackingParameter... | php | chosen |
[
{
"from": "system",
"value": "Change size of inline images\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n *\n * @author Knut Kohl <github@knutkohl.de>\n * @copyright 2012-2013 Knut Kohl\n * @license GNU General Public License http://www.gnu.org/licenses/gpl.txt\n * @version $... | php | chosen |
[
{
"from": "system",
"value": "Fix Mercurial \"Last Modified\" query\n\nSummary:\nTo determine when a file was last modified, we currently run `hg log ... -b branch ... file`. However, this is incorrect, because Mercurial does not interpret \"-b x\" as \"all ancestors of the commit named x\" like Git does, a... | php | chosen |
[
{
"from": "system",
"value": "Test the transaction execution command handler\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace PerFiUnitTest\\Domain\\Transaction\\CommandHandler;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ExecuteTransactionTest extends TestCase\n... | php | chosen |
[
{
"from": "system",
"value": "Load fin/jsio on the fun app pages\n"
},
{
"from": "human",
"value": "<?php\n$exec = \"/usr/local/bin/node run.js\";\nexec($exec, $output);\necho \"<!doctype html>\\n<html>\\n<head></head>\\n<body>\\n<script>\\n\" . implode($output, \"\\n\") . \"\\n</script>\\n</bod... | php | chosen |
[
{
"from": "system",
"value": "Add test for keyHashFunction option in the FileSystem driver, test for success and for the exception.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Stash package.\n *\n * (c) Robert Hafner <tedivm@tedivm.com>\n *\n * For the full copyri... | php | chosen |
[
{
"from": "system",
"value": "Update Admin page scenario test\n\n- check for different fields depending on COM or ORG\n- Updated UI text check\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/* @var $scenario Codeception\\Scenario */\r\n\r\n$I = new AcceptanceTester($scenario);\r\n\r\n$I->amGoin... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in persistent connect test\n"
},
{
"from": "human",
"value": "<?php\n\n$connectionOpts = ['host' => '127.0.0.1', 'user' => 'ndo', 'password' => 'ndo', 'dbname' => 'ndo'];\n$poolOpts = ['persistent' => true, 'poolSize' => 1];\n\nfunction get_pg_pid($pool)\n{... | php | chosen |
[
{
"from": "system",
"value": "Implement Autoloader in PSR-0 standard\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class AutoLoader\n * @file AutoLoader.php\n *\n * PHP version 5.3.9+\n *\n * @author Alexander Yancharuk <alex@itvault.info>\n * @date Fri Jun 01 10:19:04 2012\n * @copyr... | php | chosen |
[
{
"from": "system",
"value": "Fix modal when there's no options available\n"
},
{
"from": "human",
"value": "<?php\nif (isset($meta) && is_object($meta)) {\n $_title = $meta->label;\n $_key = $meta->key;\n $tipo = $meta->type;\n $options = $meta->config['options'];\n ?>\n\n <di... | php | chosen |
[
{
"from": "system",
"value": "Fix syntax error in routing.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ChristsLightMinistries\\WebBundle\\Controller;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerAware;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Se... | php | chosen |
[
{
"from": "system",
"value": "Fix IO Properties decode error\n"
},
{
"from": "human",
"value": "<?php \n\nnamespace Uro\\TeltonikaFmParser\\Codec;\n\nuse Uro\\TeltonikaFmParser\\Model\\IoValue;\nuse Uro\\TeltonikaFmParser\\Model\\IoElement;\nuse Uro\\TeltonikaFmParser\\Model\\IoProperty;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Add URL access to pin\n\nAllows us to get the original URL to link to the pin"
},
{
"from": "human",
"value": "<?php \n/**\n * Copyright 2015 Dirk Groenen \n *\n * (c) Dirk Groenen <dirk@bitlabs.nl>\n * \n * For the full copyright and license information, please vie... | php | chosen |
[
{
"from": "system",
"value": "Fix URL detection error for upper case in the installer\n\nSigned-off-by: Richard Lea <5e20e57f18b15612bae274c2aef7dc395ee6b2a1@zoho.com>\n"
},
{
"from": "human",
"value": "<?php\n\n$version = (float) substr(phpversion(), 0, 3);\n$rc_url = 'http://' . $_SERVER['SERV... | php | chosen |
[
{
"from": "system",
"value": "Debug info is no longer returned automatically with every exception.\nUse Factual::debug() instead."
},
{
"from": "human",
"value": "<?php\n\n/**\n * Represents an Exception that happened while communicating with Factual.\n * Includes information about the request t... | php | chosen |
[
{
"from": "system",
"value": "BAP-6772: Remove organization calendar type from community edition\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\PlatformBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Conf... | php | chosen |
[
{
"from": "system",
"value": "Update service provider to work with Laravel 5.4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Scriptotek\\Sru\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Scriptotek\\Sru\\Client as SruClient;\n\nclass SruServiceProvider extends ServiceProv... | php | chosen |
[
{
"from": "system",
"value": "Test non-Element nodes are not present\n"
},
{
"from": "human",
"value": "<?php\nnamespace phpgt\\dom;\n\nclass HTMLCollectionTest extends \\PHPUnit_Framework_TestCase {\n\npublic function testType() {\n\t$document = new HTMLDocument(TestHelper::HTML);\n\t$this->ass... | php | chosen |
[
{
"from": "system",
"value": "Add new line for CLI to help Code terminal make file path clickable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Morrislaptop\\VarDumperWithContext;\n\nuse Symfony\\Component\\VarDumper\\Dumper\\CliDumper as BaseDumper;\n\nclass CliDumper extends BaseDumper... | php | chosen |
[
{
"from": "system",
"value": "openid: Fix notice about unititialized variable."
},
{
"from": "human",
"value": "<?php\n\n/* Find the authentication state. */\nif (!array_key_exists('AuthState', $_REQUEST) || empty($_REQUEST['AuthState'])) {\n\tthrow new SimpleSAML_Error_BadRequest('Missing manda... | php | chosen |
[
{
"from": "system",
"value": "PLAT-22874: Add error handling upon failure to parse MPD content as XMl\n"
},
{
"from": "human",
"value": "<?php\n\nclass DeliveryProfileLiveDash extends DeliveryProfileLive\n{\n\tfunction __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->DEFAULT_RENDERER_C... | php | chosen |
[
{
"from": "system",
"value": "Use httpbin to perform functional tests"
},
{
"from": "human",
"value": "<?php\n\nuse React\\EventLoop\\Factory;\nuse Clue\\React\\Buzz\\Browser;\n\nclass FunctionalBrowserTest extends TestCase\n{\n private $loop;\n private $browser;\n\n public function set... | php | chosen |
[
{
"from": "system",
"value": "Add a basic test for ElementPlant\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('tests/php/base.php');\nrequire_once('framework/php/classes/plants/EchoPlant.php');\n\nclass CASHPlantTests extends UnitTestCase {\n\n\tfunction testEchoPlant(){\n\t\t$eplant ... | php | chosen |
[
{
"from": "system",
"value": "Add route generator for Slim v3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlimAdditions;\n\nclass RouteGenerator\n{\n private $controller_cache = array();\n private $app;\n\n public function __construct($app)\n {\n $this->app = $app;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix CS issue in build\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace App\\Service\\Speaker;\n\nuse League\\Flysystem\\FilesystemInterface;\nuse Psr\\Http\\Message\\UploadedFileInterface;\nuse Ramsey\\Uuid\\Uuid;\n\nfinal class Flys... | php | chosen |
[
{
"from": "system",
"value": "Return die instead of echoing"
},
{
"from": "human",
"value": "<?php\n\nheader('Content-Type: application/json');\n\n$input = file_get_contents('php://input');\n$params = (object) json_decode($input, true);\n\n$to = '<valid-email>';\n$subect = '<the-subject... | php | chosen |
[
{
"from": "system",
"value": "[Runtime] Fix passing $debug parameter to `ErrorHandler`"
},
{
"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 ... | php | chosen |
[
{
"from": "system",
"value": "[UPDATE] Add update-autoload on clear-all command\n"
},
{
"from": "human",
"value": "<?php\nclass commands_ClearAll extends commands_AbstractChangeCommand\n{\n\t/**\n\t * @return String\n\t */\n\tfunction getUsage()\n\t{\n\t\treturn \"\";\n\t}\n\t\n\t/**\n\t * @retu... | php | chosen |
[
{
"from": "system",
"value": "Add statement to check if fennec_ids are set in the request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Details;\n\nuse AppBundle\\Entity\\FennecUser;\nuse AppBundle\\Service\\DBVersion;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag... | php | chosen |
[
{
"from": "system",
"value": "Fix line endings and check returned type.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Minty templating library.\n * (c) Dániel Buga <daniel@bugadani.hu>\n *\n * For licensing information see the LICENSE file.\n */\n\nnamespace Minty\... | php | chosen |
[
{
"from": "system",
"value": "Update usage to read team usage where available\n"
},
{
"from": "human",
"value": "<?php namespace Zara4\\API\\ImageProcessing;\n\nuse Zara4\\API\\Communication\\Util;\n\n\nclass Usage {\n\n\n public static function cumulativeUsageForCurrentBillingUsage($accessToke... | php | chosen |
[
{
"from": "system",
"value": "Create test environment first to prevent the modified bootstrap configuration to be overwritten\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Definition of class LanguageServiceTest\n *\n * @copyright 2014-today Justso GmbH\n * @author j.schirrmacher@justso... | php | chosen |
[
{
"from": "system",
"value": "Allow delimeter to be specified\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * LICENSE: This source code is subject to the license that is available\n * in the LICENSE file distributed along with this package.\n *\n * @package Penelope\n * @author Matthe... | php | chosen |
[
{
"from": "system",
"value": "Remove unsued code until configuration is defined\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the WobbleCodeRestBundle package.\n *\n * (c) WobbleCode <http://www.wobblecode.com/>\n *\n * For the full copyright and license information, pl... | php | chosen |
[
{
"from": "system",
"value": "Make usage of parse_str() cleaner\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Purl package, a project by Jonathan H. Wage.\n *\n * (c) 2013 Jonathan H. Wage\n *\n * For the full copyright and license information, please view the LICEN... | php | chosen |
[
{
"from": "system",
"value": "Add img_path field to Incidents table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateIncidentsTable extends Migratio... | php | chosen |
[
{
"from": "system",
"value": "Remove line replace laravel namespace\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Caffeinated\\Modules\\Console;\n\nuse Module;\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\... | php | chosen |
[
{
"from": "system",
"value": "Implement the new deferred providers interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Modules\\Recipe\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DeferredServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if lo... | php | chosen |
[
{
"from": "system",
"value": "Change the session lifetime duration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PicoFarad\\Session;\n\nconst SESSION_LIFETIME = 2678400;\n\n\nfunction open($base_path = '/', $save_path = '')\n{\n if ($save_path !== '') session_save_path($save_path);\n\... | php | chosen |
[
{
"from": "system",
"value": "Add method to get all defined options\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpTabs\\Component;\n\n\nabstract class Config\n{\n /**\n * @var array config options\n */\n private static $data = array();\n\n\n /**\n * Gets a defined option\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix authorship on new file\n"
},
{
"from": "human",
"value": "<?php\n/*\n * The MIT License\n *\n * Copyright (c) 2012 Shuhei Tanuma\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentatio... | php | chosen |
[
{
"from": "system",
"value": "Fix bootstraping in console controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace haqqi\\storm;\n\n\nuse yii\\base\\Application;\nuse yii\\base\\BootstrapInterface;\nuse yii\\base\\Event;\nuse yii\\web\\View;\n\nclass Bootstrap implements BootstrapInterfa... | php | chosen |
[
{
"from": "system",
"value": "Return new instance on each facade call\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SimpleSoftwareIO\\QrCode\\Facades;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass QrCode extends Facade\n{\n /**\n * Get the registered name of the component.... | php | chosen |
[
{
"from": "system",
"value": "Remove errors from alert view\n"
},
{
"from": "human",
"value": "@if (session()->has('alert.message'))\n <div class=\"alert alert-{{ session()->get('alert.style') }} alert-dismissible fade in\" role=\"alert\">\n <button type=\"button\" class=\"close\" data... | php | chosen |
[
{
"from": "system",
"value": "[Fixture] Set EUR as base currency in fixtures\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 wa... | php | chosen |
[
{
"from": "system",
"value": "Fix Image Admin for components where multiple exist for one db id\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Abstract_Image_ImageFile extends Kwf_Form_Field_File\n{\n public function __construct($fieldname = null, $fieldLabel = null)\n {\n pare... | php | chosen |
[
{
"from": "system",
"value": "Use getAnswer() instead of verify() as service does not cache answers"
},
{
"from": "human",
"value": "<?php\n/**\n * ZnZend\n *\n * @author Zion Ng <zion@intzone.com>\n * @link http://github.com/zionsg/ZnZend for canonical source repository\n */\n\nnamespace ZnZe... | php | chosen |
[
{
"from": "system",
"value": "Enable sending empty string to remove file existing file"
},
{
"from": "human",
"value": "<?php\nnamespace Tenet\\Filter;\n\nuse SplFileInfo;\nuse Tenet\\FilterInterface;\nuse Tenet\\Accessor;\n\nclass FileFilter implements FilterInterface\n{\n\tpublic function conv... | php | chosen |
[
{
"from": "system",
"value": "Add empty results to make Select2 happy\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\n\n$term= $_REQUEST['term'];\n\n$products= array();\n\nif (!$term) {\n die_jsonp(\"Need to supply some search terms.\");\n}\n\n$products= Model::factory('Product')... | php | chosen |
[
{
"from": "system",
"value": "Move human_filesize() into an include\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Autoload any class file when it is called.\n */\nfunction __autoload_libraries($class_name)\n{\n\n\t$filename = 'class.' . $class_name . '.php';\n\tif (file_exists(INCLUDE_PATH... | php | chosen |
[
{
"from": "system",
"value": "Improve phrasing of note and wrap at 80 chars\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sil\\SilAuth\\saml;\n\nclass User\n{\n public static function convertToSamlFieldNames(\n string $employeeId,\n string $firstName,\n string $last... | php | chosen |
[
{
"from": "system",
"value": "Fix logger for php 5.3\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright (c) Ouzo contributors, http://ouzoframework.org\n * This file is made available under the MIT License (view the LICENSE file for more information).\n */\n\nnamespace Ouzo\\Logger;\n\nu... | php | chosen |
[
{
"from": "system",
"value": "Make the plugin an event subscriber\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BudgeIt\\ComposerBuilder;\n\nuse Composer\\Composer;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Plugin\\PluginInterface;\n\nclass Plugin implements PluginInterface\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Throw exception when trying to access undefined property\n"
},
{
"from": "human",
"value": "<?php\nnamespace Fathomminds\\Rest;\n\nuse Fathomminds\\Rest\\Contracts\\ISchema;\nuse Fathomminds\\Rest\\Schema\\TypeValidators\\ValidatorFactory;\nuse Fathomminds\\Rest\\Ex... | php | chosen |
[
{
"from": "system",
"value": "Use correct command in docblock type hint\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace ApiClients\\Client\\Github\\CommandBus\\Handler\\Repository;\n\nuse ApiClients\\Client\\AppVeyor\\AsyncClient;\nuse ApiClients\\Client\\AppVeyor\... | php | chosen |
[
{
"from": "system",
"value": "Check that sorting works with strings too\n"
},
{
"from": "human",
"value": "<?php\n\nclass ArrTest extends PHPUnit_Framework_TestCase {\n function testFlatten() {\n $this->assertEquals(\n array('a', 'b', 'c', 'd'),\n Missing\\Arr::flatten(array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Make the box URL be an actual link in the sample Vagrantfile snippets\n\n"
},
{
"from": "human",
"value": "<?php\n\n/* @var string $boxName */\n/* @var string $provider */\n/* @var string $manifestUrl */\n\n?>\nVAGRANTFILE_API_VERSION = \"2\"\n\nVagrant.configure(VA... | php | chosen |
[
{
"from": "system",
"value": "Set name for users in migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddPasswordAndUsernameFields extends Migration\n{\n /**\n * Run the migrations.... | php | chosen |
[
{
"from": "system",
"value": "Add support for testing URL redirects.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Bear CMS addon for Bear Framework\n * https://bearcms.com/\n * Copyright (c) Amplilabs Ltd.\n * Free to use under the MIT license.\n */\n\nnamespace BearCMS\\Internal;\n\nuse B... | php | chosen |
[
{
"from": "system",
"value": "Add exception if instagram result has non 200 status\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Codenetix\\SocialMediaImporter\\Importers;\n\nuse Codenetix\\SocialMediaImporter\\Exceptions\\RequestedDataNotFoundException;\nuse Codenetix\\SocialMediaImport... | php | chosen |
[
{
"from": "system",
"value": "Validate data, and use a different password creation method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Security;\n\nuse HWI\\Bundle\\OAuthBundle\\OAuth\\Response\\UserResponseInterface;\nuse HWI\\Bundle\\OAuthBundle\\Security\\Core\\Use... | php | chosen |
[
{
"from": "system",
"value": "Enhance Business Unit Test coverage\n\nSeparate tests responsibilities\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Business;\nuse App\\Presenters\\BusinessPresenter;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass BusinessUnitTest exten... | php | chosen |
[
{
"from": "system",
"value": "Test if provider config exists\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oauth2\\Client;\n\ninclude('Exception.php');\ninclude('Token.php');\ninclude('Provider.php');\n\n/**\n * OAuth2.0\n *\n * @author Phil Sturgeon < @philsturgeon >\n */\nclass Provide... | php | chosen |
[
{
"from": "system",
"value": "Use same PHP_EOL for line ending\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pagon\\Logger;\n\nclass Console extends LoggerInterface\n{\n protected $options = array(\n 'auto_write' => true\n );\n\n public function write()\n {\n if... | php | chosen |
[
{
"from": "system",
"value": "Modify Entry Controller Test to be a Controller Test Case.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'PHPUnit/Framework/TestCase.php';\n\nclass EntryControllerTest extends PHPUnit_Framework_TestCase\n{\n\n public function setUp()\n {\n /*... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.