conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use a data provider so we can show multiple failures\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Alt Three TestBench.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n... | php | chosen |
[
{
"from": "system",
"value": "Rename bool to boolean to keep consistency.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CatLab\\Requirements\\Enums;\n\n/**\n * Interface PropertyType\n * @package CatLab\\RESTResource\\Contracts\n */\nclass PropertyType\n{\n const INTEGER = 'integer';\... | php | chosen |
[
{
"from": "system",
"value": "Add form helper to view composer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Metrique\\Building\\Http\\Composers;\n\nuse Illuminate\\View\\View;\nuse Metrique\\Building\\Building;\n\nclass BuildingViewComposer\n{\n /**\n * The building repository.\n... | php | chosen |
[
{
"from": "system",
"value": "PSR-2: Add blank line before \"namespace\" declaration keyword\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU Gene... | php | chosen |
[
{
"from": "system",
"value": "Use KDatabaseBehavior::factory() to create the sluggable behavior.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version $Id$\n * @category Nooku\n * @package Nooku_Server\n * @subpackage Newsfeeds\n * @copyright Copyright (C) 2011 Timble CVBA and... | php | chosen |
[
{
"from": "system",
"value": "Remove an unnecessary call to strval()\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Poll for the response to an out-of-band challenge.\n *\n * This is called from AJAX, if the user has an out-of-band token. It acts as a proxy for the\n * `/validate/polltransac... | php | chosen |
[
{
"from": "system",
"value": "ADD deprecated fields error and error_list to provide backwards compatibility\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Fabs\\Rest\\Models;\n\n\nuse Fabs\\Serialize\\SerializableObject;\n\nclass ErrorModel extends SerializableObject\n{\n\n /** @var ... | php | chosen |
[
{
"from": "system",
"value": "Replace 'Configuration' with 'Config' when retrieving configuration\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyrigh... | php | chosen |
[
{
"from": "system",
"value": "Store ContentItem refs in PageViews by basename\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @copyright 2017 Vladimir Jimenez\n * @license https://github.com/allejo/stakx/blob/master/LICENSE.md MIT\n */\n\nnamespace allejo\\stakx\\Object;\n\nclass DynamicPa... | php | chosen |
[
{
"from": "system",
"value": "Update constants passed to `wp core is-installed`"
},
{
"from": "human",
"value": "<?php\nerror_reporting(E_ALL & ~E_NOTICE);\ndefine('MULTISITE', false);\ndefine('SUBDOMAIN_INSTALL', false);\n"
},
{
"from": "gpt",
"value": "<?php\nerror_reporting(E_ALL ... | php | chosen |
[
{
"from": "system",
"value": "[Form] Fix UnexpectedTypeException from HttpFoundation extension\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, ... | php | chosen |
[
{
"from": "system",
"value": "Fix configType when given value is already a stringify JSON\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace NyroDev\\UtilityBundle\\Form\\Type;\n\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\T... | php | chosen |
[
{
"from": "system",
"value": "Fix method signature and wrong class import\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of prooph/proophessor-do.\n * (c) 2014-2016 prooph software GmbH <contact@prooph.de>\n * (c) 2015-2016 Sascha-Oliver Prolic <saschaprolic@googlemail.com>\... | php | chosen |
[
{
"from": "system",
"value": "Add partial eta-squared effect size.\n"
},
{
"from": "human",
"value": "<?php\nnamespace MathPHP\\Statistics;\n\n/**\n * Effect size is a quantitative measure of the strength of a phenomenon.\n * https://en.wikipedia.org/wiki/Effect_size\n */\nclass EffectSize\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "fix: Fix persisten menu command fail.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * User: casperlai\n * Date: 2016/9/2\n * Time: 下午9:34\n */\n\nnamespace Casperlaitw\\LaravelFbMessenger\\Messages;\n\nuse Casperlaitw\\LaravelFbMessenger\\Contracts\\Messages\\Mess... | php | chosen |
[
{
"from": "system",
"value": "Tweak how request is generated for commandline.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Routing;\n\nuse Illuminate\\Http\\Request;\n\nclass RoutingServiceProvider ... | php | chosen |
[
{
"from": "system",
"value": "Update new tests for refactor\n"
},
{
"from": "human",
"value": "<?php namespace system\\Email;\n\nclass EmailTest extends \\CIUnitTestCase\n{\n\tpublic function testEmailValidation()\n\t{\n\t\t$config = config('Email');\n\t\t$config->validate = true;\n\t\... | php | chosen |
[
{
"from": "system",
"value": "Add route for project details\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: s216121\n * Date: 12.10.16\n * Time: 09:34\n */\n\nnamespace AppBundle\\Controller;\n\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Bun... | php | chosen |
[
{
"from": "system",
"value": "FIX Catch null active site reference\n\nIn some contexts (unsaved element) the $site object may not be available yet\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package silverstripe-multisites\n */\nclass MultisitesFileFieldExtension extends Extension {\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Use Sentry Laravel object as client.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Timetorock\\LaravelMonologSentry\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Monolog\\Formatter\\LineFormatter;\nuse Monolog\\Handler\\RavenHandler;\nuse Rav... | php | chosen |
[
{
"from": "system",
"value": "Test both require & include\n"
},
{
"from": "human",
"value": "<?php\n\nclass TestRemoveIncludeParentheses extends PHPUnit_Framework_TestCase {\n\n\t/**\n\t * @var string Code to test\n\t */\n\tprivate $code = <<<CODE\n<?php\ninclude ('a.php');\n?>\nCODE;\n\n\tpubli... | php | chosen |
[
{
"from": "system",
"value": "Fix Base Command unit test\n\nNo need to test the command via Symfony's CommandTester. We only need\nto ensure that the runCommand gets executed.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Aedart\\Scaffold\\Console\\BaseCommand;\nuse Mockery as m;\nuse Symfony\... | php | chosen |
[
{
"from": "system",
"value": "Make sure that we are connected to the cluster\n"
},
{
"from": "human",
"value": "<?php\n namespace ActiveCollab\\Resistance\\Test;\n\n use ActiveCollab\\Resistance;\n\n /**\n * @package ActiveCollab\\Resistance\\Test\n */\n abstract class TestCase extends \... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in environment variable name\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /**\n * By default Glide uses the GD library. However you can also use Glide with ImageMagick\n * if the Imagick PHP extension is installed.\n */\n 'driv... | php | chosen |
[
{
"from": "system",
"value": "Switch back order of nav and logo.\n"
},
{
"from": "human",
"value": "<header class=\"banner\" role=\"banner\">\n\t<?php if(is_front_page()) : ?>\n\t\t<div class=\"greeting\">\n\t<?php endif ?>\n <nav role=\"navigation\">\n <?php\n if (has_nav_menu('pri... | php | chosen |
[
{
"from": "system",
"value": "Remove the periods from the region tags."
},
{
"from": "human",
"value": "<?php\n\n/*\n * Copyright 2015 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo... | php | chosen |
[
{
"from": "system",
"value": "Set release version to 0.8.6\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n * @author Ma... | php | chosen |
[
{
"from": "system",
"value": "Change how Modularity checks for ACF\n\nChecking if the classes 'acf_pro' or 'ACF' are loaded instead of using\n'is_plugin_active'. This is more accurate since the 'is_plugin_active'\nfunction for instance won't notice 'must-use' plugins.\n"
},
{
"from": "human",
"v... | php | chosen |
[
{
"from": "system",
"value": "Set loglevel to integer value\n"
},
{
"from": "human",
"value": "<?php\n$CONFIG = array(\n \"loglevel\" => \"3\",\n \"logfile\" => \"/dev/stdout\"\n);\n"
},
{
"from": "gpt",
"value": "<?php\n$CONFIG = array(\n \"loglevel\" => 3,\n \"logfile\" => \"/d... | php | chosen |
[
{
"from": "system",
"value": "Use existing score search set schema function for artisan command\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 fo... | php | chosen |
[
{
"from": "system",
"value": "Remove override of abstract method\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A record iterator\n * @package Jivoo\\Models\n */\ninterface IRecordIterator extends Iterator {\n /** \n * Return the current element\n * @return IRecord A record\n */\n pub... | php | chosen |
[
{
"from": "system",
"value": "Use more verbose progress output.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aurora\\Console\\Commands;\n\nuse Aurora\\Services\\Fastly;\nuse Aurora\\Resources\\Redirect;\nuse Illuminate\\Console\\Command;\n\nclass FastlyImportCommand extends Command\n{\n... | php | chosen |
[
{
"from": "system",
"value": "Fix for new builder of laravel\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nbj\\Cockroach\\Builder;\n\nuse Illuminate\\Database\\Schema\\Builder;\n\nclass CockroachBuilder extends Builder\n{\n /**\n * Determine if the given table exists.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Use weak type if interface is not available\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Carbon package.\n *\n * (c) Brian Nesbitt <brian@nesbot.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Set memory limit to avoid hitting it\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Evenement.\n *\n * (c) Igor Wiedler <igor@wiedler.ch>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Fix additional argument parsing at examples/blog.\n\nAdditional arguments might not be set (in case of error call etc)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace APP\\viewers;\n\n/**\n * @package examples/blog\n * @author Xenophon Spafaridis <nohponex@gma... | php | chosen |
[
{
"from": "system",
"value": "Correct spelling of $driver variable\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of NotifyMe.\n *\n * (c) Joseph Cohen <joseph.cohen@dinkbit.com>\n * (c) Graham Campbell <graham@mineuk.com>\n *\n * For the full copyright and license informat... | php | chosen |
[
{
"from": "system",
"value": "Fix section end tag in Blade view.\n"
},
{
"from": "human",
"value": "@extends('fluxbb::layout.main')\n\n@section('main')\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... | php | chosen |
[
{
"from": "system",
"value": "Make sure to always restore \"debug\" state in page-example test\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Page_ExampleTest extends CMTest_TestCase {\n\n public function testAccessible() {\n $debugBackup = CM_Bootloader::getInstance()->isDebug()... | php | chosen |
[
{
"from": "system",
"value": "Update when 0 new grades\n"
},
{
"from": "human",
"value": "<html>\n<head>\n\n</head>\n<body>\n<p>\nWitaj,<br>\n</p>\n@if (count($data['added']) > 0)\n<p>\nPoniżej znajduja się twoje NOWE dodane do dziennika oceny.<br>\n@foreach($data['added'] as $grade)\nData: {{ $... | php | chosen |
[
{
"from": "system",
"value": "[CS] Move cast to variable attribution\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Rector\\Rector;\n\nuse Nette\\Utils\\Strings;\nuse PhpParser\\Node;\nuse Rector\\Node\\Attribute;\n\nabstract class AbstractPHPUnitRector extends Ab... | php | chosen |
[
{
"from": "system",
"value": "Update method name to explain what the method does"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lily\\Example\\Application;\n\nuse Lily\\Application\\MiddlewareApplication;\nuse Lily\\Application\\RoutedApplication;\n\nuse Lily\\Middleware as MW;\n\nuse Lily\... | php | chosen |
[
{
"from": "system",
"value": "Update docblock with @see view/pages/about.php\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * controllers/About.php\r\n * \r\n *\r\n * @package ITC260\r\n * @subpackage About\r\n * @author Ron Redmond\r\n * @version 1.0 2015/05/14\r\n * @link\r\n * @license h... | php | chosen |
[
{
"from": "system",
"value": "Update path filename for printing\n"
},
{
"from": "human",
"value": "<?php\n\n\n$url = $_POST['url'];\n$name = preg_split(\"/\\//\", $url, 0, PREG_SPLIT_NO_EMPTY);\n$fileName = dirname(__FILE__) . '/pdf/' . $name[sizeof($name) - 1] . '.pdf';\n\n$baseUrl = $name[0] .... | php | chosen |
[
{
"from": "system",
"value": "Fix user theme swap working when going from dark to light mode\n\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('isUsingDarkMode')) {\n /**\n * Check if the site should be rendered using dark mode.\n *\n * @return boolean\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Update Dotenv config to the new version\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of gpupo/common-schema\n * Created by Gilmar Pupo <contact@gpupo.com>\n * For the information of copyright and license you should... | php | chosen |
[
{
"from": "system",
"value": "Fix error when saving pages.\n"
},
{
"from": "human",
"value": "<?php namespace VotingApp\\Models;\n\nuse Cviebrock\\EloquentSluggable\\SluggableInterface;\nuse Cviebrock\\EloquentSluggable\\SluggableTrait;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Page e... | php | chosen |
[
{
"from": "system",
"value": "Fix return type of addStorageWrapper in PHPDoc"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-READ... | php | chosen |
[
{
"from": "system",
"value": "Fix Inventory Adjustment api key\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpsWay\\ZohoBooks\\Api;\n\nclass ItemAdjustments extends BaseApi\n{\n const API_PATH = 'inventoryadjustments';\n const API_KEY = 'inventoryadjustment';\n}\n"
},
{
"f... | php | chosen |
[
{
"from": "system",
"value": "Fix debug message order (matching function argument order)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Realm\\Model;\n\nuse RuntimeException;\n\ntrait PropertyTrait\n{\n protected $properties = [];\n\n public function addProperty(Property $property)\... | php | chosen |
[
{
"from": "system",
"value": "Add a CompletionCommand to Nut's default command list\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Nut;\n\nuse Stecman\\Component\\Symfony\\Console\\BashCompletion\\CompletionCommand;\nuse Symfony\\Component\\Console\\Application as ConsoleApplication... | php | chosen |
[
{
"from": "system",
"value": "Add default values to the TalksMeta model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenCFP\\Domain\\Model;\n\nclass TalkMeta extends Eloquent\n{\n protected $table = 'talk_meta';\n\n const CREATED_AT = 'created';\n const UPDATED_AT = null;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Use the constant instead of demand_lib()\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the php-utils.php package.\n *\n * Copyright (C) 2015 Tadatoshi Tokutake <tadatoshi.tokutake@gmail.com>\n *\n * Licensed under the MIT License\n */\n\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix handleEvent callsite to match latest spec\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace MyVendor\\MyNamespace;\n\nuse LotGD\\Core\\Game;\nuse LotGD\\Core\\Module as ModuleInterface;\nuse LotGD\\Core\\Models\\Module as ModuleMode... | php | chosen |
[
{
"from": "system",
"value": "Send router back to DI\n\nThe routes set here are not actually being set, it just coincidentally works with a single demo module due to the \"defaultNamespace\" set in services.php"
},
{
"from": "human",
"value": "<?php\n\n$router = $di->get(\"router\");\n\nforeach ... | php | chosen |
[
{
"from": "system",
"value": "Change few occurences of a public setUp() method to protected\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Symfony\\Bundle\\FrameworkBundle\\Tests\\Routing;\n\nuse Psr\\Log\\NullLogger;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNamePars... | php | chosen |
[
{
"from": "system",
"value": "Set the database connection file refactor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace src;\n\n$current = 'mysql:connect1';\n\n$db = array(\n\t'mysql' => array(\n\t\t'connect1' => array(\n\t\t\t'hostname' => 'localhost',\n\t\t\t'username' => 'root',\n\t\t\t... | php | chosen |
[
{
"from": "system",
"value": "Move Hashids binding to register method & fix alias\n\nThe `register()` method is more appropriate than `boot()` to register bindings with the container. This change also fixes the registration of the alias."
},
{
"from": "human",
"value": "<?php namespace Lio\\Serv... | php | chosen |
[
{
"from": "system",
"value": "Add a Json selector by default\n\n- Creates a Json selector that uses ZF\\ContentNegotiation\\JsonModel for\n application/json Accept headers.\n- Remove commented configuration (no longer relevant)\n- Align invokable plugin definitions\n"
},
{
"from": "human",
"val... | php | chosen |
[
{
"from": "system",
"value": "Update method should use KConfig instead of ArrayObject as parameter.\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * @version $Id$\n * @category\tKoowa\r\n * @package Koowa_Event\r\n * @copyright Copyright (C) 2007 - 2010 Johan Janssens and Mathias ... | php | chosen |
[
{
"from": "system",
"value": "Fix shell script reference - note to self add to other hooks\n"
},
{
"from": "human",
"value": "<?php\ninclude 'config.php';\n\nlist($algo, $hash) = explode('=', $_SERVER[\"HTTP_X_HUB_SIGNATURE\"], 2);\n\n$payload = file_get_contents('php://input');\n\n$payloadHash ... | php | chosen |
[
{
"from": "system",
"value": "Fix for session handler overriding\n\nThis fixes a bug where setting a session.handler_id in your symfony\nconfiguration didn't work, due to this bundle overriding it.\n\nThe setting is now only overridden if the handler_id is not null.\n"
},
{
"from": "human",
"val... | php | chosen |
[
{
"from": "system",
"value": "Remove issuer for SEPADD\nUpdate class doc\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Buckaroo\\Message;\n\n/**\n * Buckaroo iDeal Purchase Request\n */\nclass SepaDirectDebitPurchaseRequest extends AbstractRequest\n{\n public function getData... | php | chosen |
[
{
"from": "system",
"value": "Clarify use of empty construct method"
},
{
"from": "human",
"value": "<?php namespace GeneaLabs\\LaravelGovernor\\Http\\Controllers\\Nova;\n\nuse GeneaLabs\\LaravelGovernor\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Collection;\n\nclass UserControlle... | php | chosen |
[
{
"from": "system",
"value": "Remove account id from method\n"
},
{
"from": "human",
"value": "<?php namespace professionalweb\\payment\\contracts\\recurring;\n\nuse professionalweb\\payment\\contracts\\PayService;\n\n/**\n * Interface for payment systems have recurring payments\n * @package pro... | php | chosen |
[
{
"from": "system",
"value": "Fix redirect controller having no view available\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BNETDocs\\Controllers;\n\nuse \\BNETDocs\\Libraries\\Controller;\nuse \\BNETDocs\\Libraries\\Exceptions\\UnspecifiedViewException;\nuse \\BNETDocs\\Libraries\\Rout... | php | chosen |
[
{
"from": "system",
"value": "Convert comment stats to new UF\n\nConvert comment stats to new UF\n"
},
{
"from": "human",
"value": "<?php\r\n/*-------------------------------------------------------+\r\n| PHP-Fusion Content Management System\r\n| Copyright (C) PHP-Fusion Inc\r\n| http://www.php-... | php | chosen |
[
{
"from": "system",
"value": "Add example return path to config and use constant"
},
{
"from": "human",
"value": "<?php\n\n//Global configuration\ndefine('CS_CONSUMER_KEY', '');\ndefine('CS_CONSUMER_SECRET', '');"
},
{
"from": "gpt",
"value": "<?php\n\n//Global configuration\ndefine(... | php | chosen |
[
{
"from": "system",
"value": "Remove binding type local from enumeration\n\nSummary:\nRemove the binding type local from\nthe enumeration `BindingType` because it is\nnot required in the php implementation.\n\nReviewers: claus.due, #forgetit-dev\n\nReviewed By: claus.due, #forgetit-dev\n\nDifferential Revis... | php | chosen |
[
{
"from": "system",
"value": "Allow all origins by default\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Laravel CORS Defaults\n |-------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add setParam to limit the query results\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the CnetSync package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n *\n * For the full copyright and license information, please view the LICENSE\n *... | php | chosen |
[
{
"from": "system",
"value": "III-1406: Rename audience type enum instantiation spec\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Event\\ValueObjects;\n\nclass AudienceTypeTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @test\n */\n public function... | php | chosen |
[
{
"from": "system",
"value": "Fix param order of assertEquals (expected, actual) in test for Finder\\Glob\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 info... | php | chosen |
[
{
"from": "system",
"value": "Add optional parameters for symfony2/cache-clear\n\nAdd optional parameters for symfony2/cache-clear task like --no-warmup.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Magallanes package.\n*\n* (c) Andrés Montañez <andres@andresmontanez... | php | chosen |
[
{
"from": "system",
"value": "Revert \"We don't need wordpress to show us there are no posts yet!\"\n\nThis reverts commit 6bde41c012291eed5acc3ddaa1217c9fb988ec09.\n"
},
{
"from": "human",
"value": "\t<!-- <article id=\"post-0\" class=\"post no-results not-found\"> \n\t\t<header class=\"entry-h... | php | chosen |
[
{
"from": "system",
"value": "Make the MJPEG stream reload itself periodically in case the connection dies\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nclass MJPEGStream {\r\n\t\r\n\tfunction output($args) {\r\n\t\t$id = rand(0,100000);\r\n\t\techo(\"<img src=\\\"\".$args[\"url\"].\"\\\" styl... | php | chosen |
[
{
"from": "system",
"value": "Change yield to yield from\n\n...because yield from does actually work with 2.0.x-dev and PHP 7. I'm sorry. :("
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nrequire dirname(__DIR__) . '/vendor/autoload.php';\n\nuse Icicle\\Coroutine;\nuse Icicle\\Dns... | php | chosen |
[
{
"from": "system",
"value": "Fix an error on the test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PiradoIV\\Munchitos\\Test;\n\nuse \\PiradoIV\\Munchitos\\Munchitos;\n\nclass ImagesTest extends TestCase\n{\n public function setUp()\n {\n parent::setUp();\n $this->h... | php | chosen |
[
{
"from": "system",
"value": "Use the official Facebook SDK instead of our own.\n\nMore information on the official Facebook PHP SDK can be found on\n(https://developers.facebook.com/docs/reference/php).\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Fork CMS.\n *\n * Fo... | php | chosen |
[
{
"from": "system",
"value": "Add a example Listener for 'nova.framework.booting'\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Events - all standard Events are defined here.\n *\n * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com\n * @version 3.0\n */\n\nuse Support\\Facades\\Ev... | php | chosen |
[
{
"from": "system",
"value": "Fix articles list; now show all\n"
},
{
"from": "human",
"value": "<?php\nnamespace Rudolf\\Modules\\Articles\\Roll\\Admin;\n\nuse Rudolf\\Modules\\A_admin\\AdminController;\nuse Rudolf\\Modules\\Articles\\Roll;\nuse Rudolf\\Component\\Libs\\Pagination;\n\nclass Con... | php | chosen |
[
{
"from": "system",
"value": "Remove the password reset controller\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| ... | php | chosen |
[
{
"from": "system",
"value": "Fix issue when content is not initialized\n"
},
{
"from": "human",
"value": "<?php\nclass sfAlohaBackendDoctrine extends sfAlohaBackendAbstract\n{\n /**\n * {@inheritdoc}\n */\n public function getContentByName($name)\n {\n $doctrineAlohaContent = AlohaCon... | php | chosen |
[
{
"from": "system",
"value": "Update binding for lint test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TwigBridge\\Tests\\Command\\Lint;\n\nuse TwigBridge\\Tests\\Base as BridgeBase;\nuse Mockery as m;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\nuse TwigBridge\\Command\\Li... | php | chosen |
[
{
"from": "system",
"value": "Fix tests on php 5.3\n"
},
{
"from": "human",
"value": "<?php\nnamespace Change\\Events;\n\nuse Zend\\EventManager\\SharedListenerAggregateInterface;\nuse Zend\\EventManager\\SharedEventManagerInterface;\n\nuse Change\\Documents\\Events\\Event as DocumentEvent;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Use correct property name in the entity mapping projection\n"
},
{
"from": "human",
"value": "<?php\nnamespace Vda\\Query\\Projection;\n\nuse Vda\\Query\\Alias;\nuse Vda\\Query\\Field;\nuse Vda\\Util\\BeanUtil;\n\nclass EntityProjection implements IProjection\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Update for the newer version of phpunit.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Unit extends PHPUnit_Framework_TestCase {\n\n\tpublic function subject($params = array(), $options = array()) {\n\t\t$options += array(\n\t\t\t'mock' => false,\n\t\t\t'methods... | php | chosen |
[
{
"from": "system",
"value": "Revert the change to show cluster list even if you only have one\n"
},
{
"from": "human",
"value": "<?php\n# $Id: get_ganglia.php 2510 2011-03-15 01:12:34Z vvuksan $\n# Retrieves and parses the XML output from gmond. Results stored\n# in global variables: $clusters,... | php | chosen |
[
{
"from": "system",
"value": "Stop unknown ninja miner corps from breaking the homepage.\n"
},
{
"from": "human",
"value": "<div class=\"block\">\n \n <div class=\"card-heading\">Ninja Miners</div>\n\n @foreach ($ninjas as $ninja)\n @include('common.card', [\n 'size' =... | php | chosen |
[
{
"from": "system",
"value": "Add Secure Info to Domain Index\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('pageTitle', 'Current Domains')\n\n@section('content')\n <h1>Current Domains <a class=\"btn btn-success\" href=\"{{ route('domain.create') }}... | php | chosen |
[
{
"from": "system",
"value": "Fix for division by 0 warning in review rating validation.\n"
},
{
"from": "human",
"value": "<?php\nnamespace MetroPublisher\\Api\\Models;\n\nuse MetroPublisher\\Exception\\MetroPublisherException;\n\n/**\n * Class AbstractReview\n * @package MetroPublisher\\Api\\M... | php | chosen |
[
{
"from": "system",
"value": "Resolve an event attaching error\n"
},
{
"from": "human",
"value": "<?php\nuse Cake\\Event\\EventManager;\n\nEventManager::instance()\n ->attach(\n function (Cake\\Event\\Event $event) {\n $controller = $event->subject();\n if ($contr... | php | chosen |
[
{
"from": "system",
"value": "Add backwards compatibility layer for mail drivers\n\nSupport the old format (a simple list of available fields), in addition\nto the new format (a map from field names to their types + metadata).\n\nThis will be removed after beta.12 is released.\n"
},
{
"from": "human... | php | chosen |
[
{
"from": "system",
"value": "Store the event's name in the database\n"
},
{
"from": "human",
"value": "<?php\nnamespace Event;\n\nuse Application\\BaseDb;\n\nclass EventDb extends BaseDb\n{\n protected $keyName = 'events';\n\n public function save(EventEntity $event)\n {\n $data... | php | chosen |
[
{
"from": "system",
"value": "Use KTemplate instead of KDocument to load script\n"
},
{
"from": "human",
"value": "<?php\n/**\n* @version $Id$\n* @category\t\tKoowa\n* @package\t\tKoowa_Toolbar\n* @subpackage\tButton\n* @copyright Copyright (C) 2007 - 2009 Johan Janssens and Mathias Verr... | php | chosen |
[
{
"from": "system",
"value": "Put root URL the way it was."
},
{
"from": "human",
"value": "<?php\n\nnamespace Trotch\\Renderer;\n\nuse Trotch\\Container;\nuse Trotch\\Renderer;\n\nclass GeoLike extends Renderer\n{\n\n /**\n * @var string\n */\n protected $template = 'like.php';\n\... | php | chosen |
[
{
"from": "system",
"value": "Allow the login detecting page to find the cookie.\n\ndirname shortens the path the cookie applies to,\nto the entire IDE folder, not just the control script.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(\"tokenstrategy.php\");\n\nclass CookieStrategy ex... | php | chosen |
[
{
"from": "system",
"value": "Remove dependency on FirebaseNotification Contract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DouglasResende\\FCM\\Channels;\n\nuse DouglasResende\\FCM\\Messages\\FirebaseMessage;\nuse Illuminate\\Contracts\\Config\\Repository as Config;\nuse GuzzleHttp\\... | php | chosen |
[
{
"from": "system",
"value": "Replace rules call from static to self\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @link http://hiqdev.com/hipanel\n * @license http://hiqdev.com/hipanel/license\n * @copyright Copyright (c) 2015 HiQDev\n */\n\nnamespace hipanel\\base;\n\ntrait ModelTrait\n... | php | chosen |
[
{
"from": "system",
"value": "FIX Remove singleton call and check view permissions on recorded object\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DNADesign\\Elemental\\GraphQL;\n\nuse GraphQL\\Type\\Definition\\ResolveInfo;\nuse SilverStripe\\GraphQL\\OperationResolver;\nuse SilverStri... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.