conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use function collect instead of class Collection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Collection;\nuse Facades\\App\\Services\\SmsTools as SmsTools;\nuse Illuminate\\Support\\ServiceProvider;\nuse Validator;\n\nclass AppServic... | php | chosen |
[
{
"from": "system",
"value": "Undo relative paths as it is causing include errors in traffic\n"
},
{
"from": "human",
"value": "<?php\n// mySQL configuration\n// used for accessing database\ninclude ('../../config.php');\n\nglobal $config_table, $server, $user, $password, $base;\n$server = $dat... | php | chosen |
[
{
"from": "system",
"value": "FIX Return resolved module name rather than original class module name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverLeague\\Console\\Command\\Object;\n\nuse SilverLeague\\Console\\Command\\SilverStripeCommand;\nuse SilverLeague\\Console\\Framework\\Ut... | php | chosen |
[
{
"from": "system",
"value": "Improve translation of some file strings\n\nSummary: Ref T7149. hue hue hue hue\n\nTest Plan: hue hue\n\nReviewers: chad\n\nReviewed By: chad\n\nSubscribers: epriestley\n\nManiphest Tasks: T7149\n\nDifferential Revision: https://secure.phabricator.com/D12080\n"
},
{
"fr... | php | chosen |
[
{
"from": "system",
"value": "Add CSRF filter to '/profile' Route.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Routes - all standard routes are defined here.\n *\n * @author David Carr - dave@daveismyname.com\n * @version 3.0\n */\n\nuse Core\\Router;\nuse Helpers\\Hooks;\n\n\n/** Define s... | php | chosen |
[
{
"from": "system",
"value": "Remove { error, and move things around\n"
},
{
"from": "human",
"value": "<?PHP // $Id$\n // Authentication by looking up an IMAP server\n\n// This code is completely untested so far - IT NEEDS TESTERS!\n// Looks like it should work though ...\n\n$CFG->auth... | php | chosen |
[
{
"from": "system",
"value": "Send rest of request params\n"
},
{
"from": "human",
"value": "<?php\nuse PHPUnit\\Framework\\TestCase;\n\nclass DelegatedAuthorizationsTest extends TestCase\n{\n public function testDelegatedAuthorizations()\n {\n $profileId = \"profileId\";\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix for reflected XSS security issue.\n"
},
{
"from": "human",
"value": "<?php\n\n// Make sure we are called from index.php\nif (!defined('SECURITY')) die('Hacking attempt');\n\nif ($setting->getValue('maintenance') && !$user->isAdmin($user->getUserId($_POST['userna... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in Cart Resolver spec"
},
{
"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 was distributed with... | php | chosen |
[
{
"from": "system",
"value": "Implement disable service with requiredFields and endpoint\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adyen\\Service\\Resource\\Recurring;\n\nclass Disable extends \\Adyen\\Service\\Resource\n{\n\n}"
},
{
"from": "gpt",
"value": "<?php\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Use codegrid and properly render riot tags on preview enabled\n"
},
{
"from": "human",
"value": "<?php namespace ProcessWire; ?>\n<?php $language = $content->codelanguage->title == 'riot' ? 'html' : $content->codelanguage->title; ?>\n<? if($content->showcode):?>\n ... | php | chosen |
[
{
"from": "system",
"value": "Use Jigsaw\\Filesystem instead of Illuminate\\Filesystem\n"
},
{
"from": "human",
"value": "<?php namespace Jigsaw\\Jigsaw;\n\nuse Illuminate\\Filesystem\\Filesystem;\nuse Illuminate\\Support\\Str;\n\nclass TemporaryFilesystem\n{\n private $tempPath;\n private... | php | chosen |
[
{
"from": "system",
"value": "Disable CRSF token verification for /pusher/ endpoint\n"
},
{
"from": "human",
"value": "<?php namespace Strimoid\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as IlluminateCsrf;\nuse Illuminate\\Session\\TokenMism... | php | chosen |
[
{
"from": "system",
"value": "Fix documentation for CMS and also fix URLs to not wrongly append trailing slash.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orm\\Zed\\Url\\Persistence;\n\nuse Spryker\\Zed\\Url\\Persistence\\Propel\\AbstractSpyRedirectQuery as BaseSpyRedirectQuery;\n\n/*... | php | chosen |
[
{
"from": "system",
"value": "[Snappy] Update to upstream Snappy lib\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Grom\\Silex;\n\nuse Silex\\Application;\nuse Silex\\ExtensionInterface;\nuse Knplabs\\Snappy\\Image;\nuse Knplabs\\Snappy\\Pdf;\n\n/**\n * Silex extension to integrate Snapp... | php | chosen |
[
{
"from": "system",
"value": "Fix controller's namespace on routing\n"
},
{
"from": "human",
"value": "<?php\n\nuse \\App\\Http\\Controllers\\jsonApi\\WorkdayController;\n\n$app->get(\n 'workdays',\n ['uses' => WorkdayController::class.'@index']\n);\n$app->get(\n 'workdays/{id}',\n [... | php | chosen |
[
{
"from": "system",
"value": "Add notification that user has been logged off due to inactivity\n\ngit-svn-id: 245d8f85226f8eeeaacc1269b037bb4851d63c96@790 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n"
},
{
"from": "human",
"value": "<?php\r\ninclude 'db.php';\r\ninclude 'lib/php/load.php';\r\ninclude ... | php | chosen |
[
{
"from": "system",
"value": "Append to log file instead of overwrite it\n"
},
{
"from": "human",
"value": "<?php\n\nfunction debug_collectionInfoStart($debug) {\n if ($debug == TRUE) {\n echo \"[DEBUG] Collecting data\\n\";\n }\n}\n\nfunction debug_collectionInfoEnd($debug) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add setup function to organism test for listing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass OrganismsTest exte... | php | chosen |
[
{
"from": "system",
"value": "Set open_basedir to restrict file access to the current directory\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Bootstrap\\ViewComposer;\nuse App\\Controllers;\nuse DI\\Container;\nuse DI\\Bridge\\Slim\\Bridge;\nuse Dotenv\\Dotenv;\nuse PHLAK\\Config\\Config;... | php | chosen |
[
{
"from": "system",
"value": "Decrease load generated by the benchmark\n"
},
{
"from": "human",
"value": "<?php\n\nclass Benchmark\n{\n public function run($runCount = 100000)\n {\n $functions = array(\"abs\", \"acos\", \"asin\", \"atan\", \"floor\", \"exp\", \"sin\", \"tan\", \"sqr... | php | chosen |
[
{
"from": "system",
"value": "Fix unit test that refers to a now-aliased time zone.\n\n"
},
{
"from": "human",
"value": "<?php\nclass A01_Frontend_ProfileCest extends CestAbstract\n{\n /**\n * @before setupComplete\n * @before login\n */\n public function setProfileInfo(Functio... | php | chosen |
[
{
"from": "system",
"value": "Revert \"revert changes in example\"\n\nThis reverts commit fd2ba5245c6c8c388a0c693b736d9b2f5b720794.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once '../lib/Postmark/Autoloader.php';\n\\Postmark\\Autoloader::register();\n\n// this file should be the target... | php | chosen |
[
{
"from": "system",
"value": "Test: Remove default assertion for Default controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neblion\\AppBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Add service provider for sqlite database"
},
{
"from": "human",
"value": "<?php\nrequire_once __DIR__.'/../vendor/autoload.php';\n\n$app = new Silex\\Application();\n\n$app->get('/hello/{name}', function ($name) use ($app) {\n return 'Hello '.$app->escape($name);\n... | php | chosen |
[
{
"from": "system",
"value": "Fix CSS getting required in AJAX request\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Package\\KintDebug;\n\nuse Concrete\\Core\\Package\\Package;\nuse View;\n\ndefined('C5_EXECUTE') or die(t(\"Access Denied.\"));\n\nrequire_once __DIR__ . '/vendor/... | php | chosen |
[
{
"from": "system",
"value": "Add an event to change the menu configuration before resolving\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LAG\\AdminBundle\\Event;\n\nclass AdminEvents\n{\n const HANDLE_REQUEST = 'lag.admin.handleRequest';\n\n const HANDLE_FORM = 'lag.admin.handleF... | php | chosen |
[
{
"from": "system",
"value": "Use settings from conf file\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__ . '/src/Vlc.php';\nrequire file_exists(__DIR__ . '/conf.php') ? __DIR__ . '/conf.php' : __DIR__ . '/default.conf.php';\n\n$vlc = new \\jcisio\\Karaoke\\Vlc('127.0.0.1', 8080, '12... | php | chosen |
[
{
"from": "system",
"value": "Change syntax of template call to match other files in views/\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n @while(have_posts()) @php(the_post())\n @include('partials/content-single-'.get_post_type())\n @endwhile\n@endsecti... | php | chosen |
[
{
"from": "system",
"value": "Fix test, disable view cache as getTemplateVars is dynamic\n\nbefore view cache was disabled for the whole test\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Mail_Placeholder_Content_Component extends Kwc_Abstract\n{\n public function getTemplateVars(Kwf_Co... | php | chosen |
[
{
"from": "system",
"value": "Validate user exists before sending its info out\n"
},
{
"from": "human",
"value": "<?php\n$u = new User();\n$ui = UserInfo::getByID($u->getUserID());\n\nif ($u) {\n $userInfo = [\n 'name' => $u->getUserName(),\n 'firstName' => $ui->getAttribute('first_... | php | chosen |
[
{
"from": "system",
"value": "Enable multi-domain support for favourite-component\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Favourites_Box_Component extends Kwc_Abstract\n{\n public function getTemplateVars()\n {\n $ret = parent::getTemplateVars();\n $ret['favourite... | php | chosen |
[
{
"from": "system",
"value": "Use `set` instead of `remember` for CloudFront IPs [API-189]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Support\\Facades\\Cache;\nuse Illuminate\\Support\\Facades\\Storage;\nuse Illuminate\\Console\\Command;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Replace Twig global namespaces to support Twig 3\n\nUse of the globally namespaced Twig functions was deprecated in Twig 2.x and removed in Twig 3.x.\r\n\r\nThis commit simply replaces the globally namespaced functions with their namespaced equivalents."
},
{
"from": "h... | php | chosen |
[
{
"from": "system",
"value": "Add background for user profile hints in user badge manager\n"
},
{
"from": "human",
"value": "<?php\n\nif($loguser['powerlevel'] > 3)\n{\n\tWrite(\"\n\t\t\t\t<table class=\\\"outline margin\\\" style=\\\"margin-top:1.5em;\\\">\n\t\t\t\t\t<tr class=\\\"header0\\\">\... | php | chosen |
[
{
"from": "system",
"value": "Use new headers method to avoid apache specific functions\n"
},
{
"from": "human",
"value": "<?php\n\tnamespace Bolt\\Api\\Request;\n\n\tclass Headers extends \\Bolt\\Base\n\t{\n\t\tprivate $headers;\n\n\t\tpublic function __construct($auto = false)\n\t\t{\n\t\t\tif... | php | chosen |
[
{
"from": "system",
"value": "Remove unused method from interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Scheb\\TwoFactorBundle\\Model\\Google;\n\ninterface TwoFactorInterface\n{\n /**\n * Return true if the user should do two-factor authentication.\n *\n * @return ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace to work with sf2.2\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sonata package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license information, please view the LICENSE\... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary eventManager from Helper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tco\\Checkout\\Helper;\n\nuse Magento\\Framework\\App\\Helper\\Context;\nuse Magento\\Sales\\Model\\Order;\nuse Magento\\Framework\\App\\Helper\\AbstractHelper;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Fix event key in click handler.\n"
},
{
"from": "human",
"value": "<?php namespace yfwz100\\wechat\\router;\n\nclass TextHandler {\n\n private $handlers;\n\n function __construct() {\n $this->handlers = array();\n }\n\n function match($regexp, $callback=NULL)... | php | chosen |
[
{
"from": "system",
"value": "Add a toggler for screenshots\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Behat\\JournalExtension\\Formatter;\n\nuse Behat\\Behat\\Definition\\DefinitionInterface;\nuse Behat\\Behat\\Formatter\\HtmlFormatter;\nuse Behat\\Gherkin\\Node\\StepNode;\nuse Behat... | php | chosen |
[
{
"from": "system",
"value": "Add confirmation to `php artisan extension:refresh` command.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Extension\\Console;\n\nclass RefreshCommand extends ExtensionC... | php | chosen |
[
{
"from": "system",
"value": "Change refresh time to 4 seconds\n"
},
{
"from": "human",
"value": "<?php\n\nclass CodesController extends \\BaseController {\n\n\tpublic function process($code)\n\t{\n $code = Code::where('code', '=', $code)->first();\n\n if(is_null($code) || $code->u... | php | chosen |
[
{
"from": "system",
"value": "Increment clicks in url show method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Petty\\Http\\Controllers;\n\nuse Petty\\Http\\Requests;\nuse Petty\\Http\\Controllers\\Controller;\nuse Petty\\Http\\Requests\\UrlRequest;\nuse Petty\\Models\\Url;\n\nclass Url... | php | chosen |
[
{
"from": "system",
"value": "Set callback param to false\n"
},
{
"from": "human",
"value": "<?php\n\nuse Proud\\Core;\n\nclass AgencyMenu extends Core\\ProudWidget {\n\n function __construct() {\n parent::__construct(\n 'agency_menu', // Base ID\n __( 'Agency menu', 'wp-agency' ),... | php | chosen |
[
{
"from": "system",
"value": "Fix Link function coming from controller, not module\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Created by PhpStorm.\n * User: Conrad\n * Date: 24/06/2016\n * Time: 9:06 AM\n */\nclass ModuleController extends Controller\n{\n /**\n * @var ContentModu... | php | chosen |
[
{
"from": "system",
"value": "Add type hint for $message & fix mixed indenting.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2010 by DracoBlue.net, licensed under the terms of MIT\n */\n\n/**\n * PhpDebugToolbarLoggerAppender logs all log messages to the PhpDebugToolbar.\n */\nclas... | php | chosen |
[
{
"from": "system",
"value": "Fix the relative path to vendor resources\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace InfyOm\\RoutesExplorer;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass RoutesExplorerServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap any appl... | php | chosen |
[
{
"from": "system",
"value": "[CS] Replace easy occurences of ?: with ??\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "system",
"value": "Add the default ElasticSearch host for Docker container.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Jean Silva <me@jeancsil.com>\n * @license MIT\n */\nnamespace Jeancsil\\FlightSpy\\Service\\ElasticSearch;\n\nuse Elasticsearch\\ClientBuilder;\n\nfina... | php | chosen |
[
{
"from": "system",
"value": "Allow an SS_Map to be passed to setOptions as well as an array\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Field which implements Select2 tag functionality (http://http://ivaynberg.github.io/select2/)\n *\n * By default expects select2 to be installed via co... | php | chosen |
[
{
"from": "system",
"value": "Change example to use scope trait\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Alex Bilbie <hello@alexbilbie.com>\n * @copyright Copyright (c) Alex Bilbie\n * @license http://mit-license.org/\n *\n * @link https://github.com/thephpleag... | php | chosen |
[
{
"from": "system",
"value": "Add check for whether filter control is set.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UWDOEM\\Framework\\Filter;\n\n\nclass FilterControls {\n\n static public function getControl($handle, $key, $default = null) {\n return array_key_exists(\"$h... | php | chosen |
[
{
"from": "system",
"value": "Fix query to WHERE In from WHERE\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace app\\controllers;\n\nuse app\\models\\FlightFilterForm;\nuse app\\models\\OutdoorLogs;\nuse app\\models\\forge\\Brand;\nuse yii\\helpers\\VarDumper;\n\nclass FlightController exte... | php | chosen |
[
{
"from": "system",
"value": "Use Ds\\Set instead of array for allowed StyleBlock classes\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... | php | chosen |
[
{
"from": "system",
"value": "Fix PDO password param definition"
},
{
"from": "human",
"value": "<?php\nchdir(dirname(__DIR__));\n\nif (php_sapi_name() === 'cli-server' && is_file( dirname(__FILE__) . $_SERVER['REQUEST_URI'])) {\n return false;\n}\n\n# setup autoloading\nrequire 'vendor/autol... | php | chosen |
[
{
"from": "system",
"value": ":hammer: Update the request builder interface.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Risan\\OAuth1\\Request;\n\ninterface RequestBuilderInterface\n{\n /**\n * Get the ConfigInterface instance.\n *\n * @return \\Risan\\OAuth1\\ConfigInt... | php | chosen |
[
{
"from": "system",
"value": "Return types in manager tests\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Fix config function for multi environment support\n"
},
{
"from": "human",
"value": "<?php\n\n\n//\n// Вспомогательные функции\n//\n\n/**\n * Функция для получения конфигурационных параметров из файла\n * @param string $param Параметр в виде раздел.параметр\n * @re... | php | chosen |
[
{
"from": "system",
"value": "Implement two new bundle interface methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\TimeBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle as BaseBundle;\n\nclass TimeBundle extends BaseBundle\n{\n}\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "BAP-3835: Package Manager does not take in account root folder\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\DistributionBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\C... | php | chosen |
[
{
"from": "system",
"value": "Update the userdata migration for address and phone\n\nThe user address and phone number do not need to be unique. This fixes\nan issue where the data is null. It is also possible for applicants\nto be at the same address and phone.\n\nSigned-off-by: Marc Jones <bb1304e98184a66... | php | chosen |
[
{
"from": "system",
"value": "Test changes in develop branch\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonModule for the canonical source repository\n * @copyright Copyright (c) 2005-2... | php | chosen |
[
{
"from": "system",
"value": "Add rough and ready geo-fence method\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('MotionX.php');\n\n/**\n * Parse KML\n */\nclass Parser {\n\n private $sourceFile;\n private $xml;\n\n public function __construct($sourceFile) {\n $this->set... | php | chosen |
[
{
"from": "system",
"value": "BAP-738: Rename buttons \"Add new\" to \"Add {entity_name}\"\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Acme\\Bundle\\DemoFlexibleEntityBundle\\Tests\\Functional\\Controller;\n\n/**\n * Test related class\n *\n * @author Romain Monceau <romain@akeneo.c... | php | chosen |
[
{
"from": "system",
"value": "Bump to beta 2 (real branch)\n"
},
{
"from": "human",
"value": "<?php //$Id$\n\n/// This file defines the current version of the\n/// backup/restore code that is being used. This can be\n/// compared against the values stored in the \n/// database (backup_version)... | php | chosen |
[
{
"from": "system",
"value": "Fix ChildPages_Teaser for invisible page\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_List_ChildPages_Teaser_Generator extends Kwf_Component_Generator_Table\n{\n protected $_hasNumericIds = false;\n protected $_idColumn = 'child_id';\n protected $_us... | php | chosen |
[
{
"from": "system",
"value": "Replace config() helper for Lumen\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neves\\Events;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Contracts\\Events\\Dispatcher as EventDispatcher;\n\nclass EventServiceProvider extends ServiceProvid... | php | chosen |
[
{
"from": "system",
"value": "Make main link go to dashboard for election"
},
{
"from": "human",
"value": "<?php\r\n\r\nrequire_once('config.php');\r\nglobal $config;\r\n\r\n$userid = session_get_user_id();\r\n$stmt = $pdo->prepare(\"SELECT `election` FROM `access` WHERE `user`= ?\");\r\n$stmt->... | php | chosen |
[
{
"from": "system",
"value": "Implement absolutely qualified namespace resolution.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Phortress;\n\n/**\n * The global environment for a program.\n *\n * @package Phortress\n */\nclass GlobalEnvironment extends NamespaceEnvironment {\n\t/**\n\t * ... | php | chosen |
[
{
"from": "system",
"value": "Fix error in post mention emails\n"
},
{
"from": "human",
"value": "Hey {{ $user->username }}!\n\n{{ $blueprint->sender->username }} replied to your post (#{{ $blueprint->post->number }}) in {{ $blueprint->post->discussion->title }}.\n\n{{ \\Flarum\\Core::config('ba... | php | chosen |
[
{
"from": "system",
"value": "Add WAMP PATH and VHOST PATH (Defaut WAMP 64 v3, mostly used)\n"
},
{
"from": "human",
"value": "<?php\r\n// MySQL Parameters\r\ndefine(\"MYSQL_USER\", \"root\");\r\ndefine(\"MYSQL_PASSWORD\", \"\");\r\ndefine(\"MYSQL_HOST\", \"localhost\");\r\n\r\n// Show Options\r... | php | chosen |
[
{
"from": "system",
"value": "[ChopBox] Fix indentation and arrange imports from shortest tolongest\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ChopBox\\Http\\Controllers;\n\nuse ChopBox\\helpers\\PostChop;\nuse ChopBox\\Http\\Requests\\ChopsFormRequest;\nuse Illuminate\\Support\\Facad... | php | chosen |
[
{
"from": "system",
"value": "Change max filesize for uploaded images\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Http\\Controllers;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\nuse App\\Image;\n\nclass ImageController extends Controller\n{\n /**\n * Display the... | php | chosen |
[
{
"from": "system",
"value": "Fix serverUrl invokable call in the mailer plugin\n"
},
{
"from": "human",
"value": "<?php\nnamespace RbComment\\Mvc\\Controller\\Plugin;\n\nuse Zend\\Mail\\Message;\nuse Zend\\Mime\\Part as MimePart;\nuse Zend\\Mime\\Message as MimeMessage;\nuse Zend\\Mvc\\Controll... | php | chosen |
[
{
"from": "system",
"value": "Add documentation about the getValue method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HiPay\\Wallet\\Mirakl\\Cashout\\Model\\Operation;\n\nuse HiPay\\Wallet\\Mirakl\\Common\\AbstractEnumeration;\n\n/**\n * Status class\n * Represent the status of an oper... | php | chosen |
[
{
"from": "system",
"value": "Allow to have text nodes when using t:extends. They can be twig nodes"
},
{
"from": "human",
"value": "<?php\nnamespace Goetas\\Twital\\Node;\n\nuse Goetas\\Twital\\Node;\nuse Goetas\\Twital\\Exception;\nuse Goetas\\Twital\\Compiler;\nuse Goetas\\Twital\\Helper\\DOM... | php | chosen |
[
{
"from": "system",
"value": "Check Loader instance identity, not equality\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Foundation\\AliasLoader;\n\nclass FoundationAliasLoaderTest extends PHPUnit_Framework_TestCase\n{\n public function testLoaderCanBeCreatedAndRegisteredOnce()\... | php | chosen |
[
{
"from": "system",
"value": "Adjust setting responsiveRefreshRate to trigger resize before elementWidthChange\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Owlcarousel_Kwc_Carousel_Component extends Kwc_Abstract_List_Component\n{\n public static function getSettings()\n {\n $... | php | chosen |
[
{
"from": "system",
"value": "Add comment to service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Statamic\\Addons\\Sitemap;\n\nuse Illuminate\\Routing\\Route;\nuse Illuminate\\Routing\\RouteCollection;\nuse Statamic\\Extend\\ServiceProvider;\n\nclass SitemapServiceProvider ext... | php | chosen |
[
{
"from": "system",
"value": "Adjust conditional for offcanvas closing divs\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The template for displaying the footer\n *\n * Contains the closing of the \"off-canvas-wrap\" div and all content after.\n *\n * @package WordPress\n * @subpackage Found... | php | chosen |
[
{
"from": "system",
"value": "[DOWNLOAD] Validate access to download requested path\n"
},
{
"from": "human",
"value": "<?php namespace Jayked\\Laravelfilemanager\\controllers;\n\nuse Jayked\\Laravelfilemanager\\controllers\\Controller;\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\... | php | chosen |
[
{
"from": "system",
"value": "Convert dashboard alias using dots with dashes\n\nUsing dots in an identifier is common in config files.\nBy converting it as `-`, it enables using the dashboard\nalias as jquery selector.\n"
},
{
"from": "human",
"value": "<?php\n\nApp::uses('PhpReader', 'Configure... | php | chosen |
[
{
"from": "system",
"value": "BAP-16497: Change ClassLoader component\n- trigger unit test run\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\Tests\\Unit\\Command\\Stubs;\n\nuse Symfony\\Component\\ClassLoader\\UniversalClassLoader;\nuse Symfony\\Component\... | php | chosen |
[
{
"from": "system",
"value": "Fix a type in annotation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Module\\Web\\Controller;\n\nuse Air\\View\\ViewFactoryInterface;\n\n/**\n * Class AbstractWebController\n * @package App\\Module\\Web\\Controller\n * @author Petr Pliska <petr.pliska... | php | chosen |
[
{
"from": "system",
"value": "Fix single responsibility warning from CodeClimate\n"
},
{
"from": "human",
"value": "<?php namespace Ejcnet\\Sourcebot;\n\nclass Sourcebot {\n\n public function helloWorld($bool = true)\n {\n return $bool;\n }\n\n}\n"
},
{
"from": "gpt",
"value": ... | php | chosen |
[
{
"from": "system",
"value": "Fix account->queue->members JSON property name.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Services_Twilio_Rest_Members\n extends Services_Twilio_ListResource\n{\n /**\n * Return the member at the front of the queue. Note that any operations \n ... | php | chosen |
[
{
"from": "system",
"value": "Delete page warning working with child page count\n"
},
{
"from": "human",
"value": "<p>Are you sure you want to delete this page? This cannot be recovered.</p>\n\n<?\n\t$msg = '';\n\n\tif ($count = $page->mptt->count() > 0):\n\t\t$titlelist = '';\n\t\t\n\t\tforeach... | php | chosen |
[
{
"from": "system",
"value": "Set service objects can be null.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Encapsulation of model manipulation and business rules\n */\nabstract class Jaded_Service\n{\n\t/**\n\t * Singleton instances of services\n\t */\n\tprotected static $aInstances = arra... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Abbreviations changed in accordance with national standard\"\"\n"
},
{
"from": "human",
"value": "<?php\n/**\n * System messages translation for CodeIgniter(tm)\n *\n * @author\tCodeIgniter community\n * @copyright\tCopyright (c) 2014 - 2015, Briti... | php | chosen |
[
{
"from": "system",
"value": "Remove before normalization and use blue light as default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Avanzu\\AdminThemeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Defin... | php | chosen |
[
{
"from": "system",
"value": "Remove Todo and unused services property\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drupal\\AppConsole\\Test\\DataProvider;\n\n/**\n * Class ModuleDataProviderTrait\n * @package Drupal\\AppConsole\\Test\\DataProvider\n */\ntrait ControllerDataProviderTrai... | php | chosen |
[
{
"from": "system",
"value": "Insert the word submitted into the table\n\n-Presently used a dummy variable as user, to be changed to the current\nsession user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SpellingDictionary;\n\nclass Words {\n\tpublic function addWord() {\n\t\t$dbw = Dat... | php | chosen |
[
{
"from": "system",
"value": "Throw meaningful exception message if given url is not valid.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Marein\\Nchan\\Http;\n\nfinal class Url\n{\n /**\n * @var string\n */\n private $value;\n\n /**\n * Url constructor.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "[TL-48] Remove slack dependency from interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface for JiraWebhookData converters.\n *\n * @credits https://github.com/kommuna\n * @author Chewbacca chewbacca@devadmin.com\n *\n * For the full copyright and li... | php | chosen |
[
{
"from": "system",
"value": "Fix accidental forward dependency in old commit summary migration\n\nSummary: See IRC. This migration inadvertently depends on the columns in the commit table, because it calls `save()`, and thus broke for installs with data after we added the `importStatus` column. Since that ... | php | chosen |
[
{
"from": "system",
"value": "Test all services and variables the provider register by default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clippings\\ParsedownProvider\\Test;\n\nuse Pimple\\Container;\nuse Clippings\\ParsedownProvider\\ParsedownServiceProvider;\n\nclass ParsedownServic... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Add TYPO3 CMS 8 as compatible version"
},
{
"from": "human",
"value": "<?php\n\n/************************************************************************\n * Extension Manager/Repository config file for ext \"bootstrap_package\".\n ***************************... | php | chosen |
[
{
"from": "system",
"value": "Update PSR-2 and remove unused use\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Form\\Service\\Widget;\nuse Loader;\nuse View;\nuse Request;\nclass Typography {\n\n\n /**\n * Creates form fields and JavaScript includes to add a font pic... | php | chosen |
[
{
"from": "system",
"value": "Load required helper class and pass auth user info to the View\n"
},
{
"from": "human",
"value": "<?php\nnamespace Cms\\Controller;\n\nuse App\\Controller\\AppController as BaseController;\nuse Cake\\Event\\Event;\nuse Cms\\Model\\Table\\ArticlesTable;\n\nclass AppC... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.