conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix scheduled import option syntax\n\nConfirmed that this is the correct syntax. Otherwise, it complains\nabout the command not being found.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands\\Import;\n\nuse Aic\\Hub\\Foundation\\AbstractCo...
php
chosen
[ { "from": "system", "value": "Add length validation to string form field\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\FormBundle\\Entity\\FormSubmissionFieldTypes;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Kunstmaan\\FormBundle\\Entity\\FormSubmissionField;\nuse Kunstmaan\\F...
php
chosen
[ { "from": "system", "value": "CRM-1321: Refactor sync commands\n - minor unit tests fixesxy\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\IntegrationBundle\\Tests\\Unit\\Utils;\n\nuse Oro\\Bundle\\IntegrationBundle\\Utils\\FormUtils;\nuse Oro\\Bundle\\IntegrationBundle\\Ma...
php
chosen
[ { "from": "system", "value": "Revert \"Added missing generator commands to Lumen provider\"\n\nThis reverts commit 3fb2cb778edcad84c3904bd8a26a6fc843cf83d9.\n" }, { "from": "human", "value": "<?php\nnamespace Prettus\\Repository\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n *...
php
chosen
[ { "from": "system", "value": "Add more strings for Paste title changes\n\nSummary: See downstream: <https://phabricator.wikimedia.org/T154367>\n\nTest Plan: {F2286968}\n\nReviewers: chad\n\nReviewed By: chad\n\nDifferential Revision: https://secure.phabricator.com/D17126\n" }, { "from": "human", ...
php
chosen
[ { "from": "system", "value": "Add git pull back in\n" }, { "from": "human", "value": "<?php\n\nrequire 'core.php';\n\n// No unauthenticated deploys!\nprotectPage();\n\n// Run relevant deploy.\n$hash = $_GET['project'];\n$targets = getDeployTargets();\nforeach ($targets as $target)\n{\n if ($t...
php
chosen
[ { "from": "system", "value": "Add class path to index controller view model\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository\n * @copyright ...
php
chosen
[ { "from": "system", "value": "Remove permissios seeder from default seeders\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass LaravelGovernorDatabaseSeeder extends Seeder\n{\n public function run()\n {\n Eloquent::unguard();\n\n $this->cal...
php
chosen
[ { "from": "system", "value": "Fix CM upgrade issues, use request's clientId for message-client\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_FormAction_Message_Create extends CM_FormAction_Abstract {\n\n protected function _getRequiredFields() {\n return array('venue', 'tex...
php
chosen
[ { "from": "system", "value": "Add read only functionnality on published node\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPOrchestra\\ModelBundle\\Validator\\Constraints;\n\nuse Symfony\\Component\\Translation\\Translator;\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\...
php
chosen
[ { "from": "system", "value": "Change element location rule to evade Zombie error during form reset\n" }, { "from": "human", "value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ru\...
php
chosen
[ { "from": "system", "value": "Add position to fieldables table migration\n\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateFieldablesTable extends Migration {\n\n\t/**\n\t * Run the migratio...
php
chosen
[ { "from": "system", "value": "Modify from ion_auth to sentinel\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nuse Library\\Auth\\Auth;\n\nclass Login extends CI_Controller {\n\n public function __construct()\n {\n parent:...
php
chosen
[ { "from": "system", "value": "Add test for module help\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Birke\\Mediawiki\\Api\\Tests;\n\nclass MediawikiApiClientTest extends \\Guzzle\\Tests\\GuzzleTestCase\n{ \n public function testHelp()\n {\n $client = $this->getServiceB...
php
chosen
[ { "from": "system", "value": "Handle collections and tag pages with base item template.\n" }, { "from": "human", "value": "@extends('folio::layout-v2')\n\n@php\n $item = $item ?? null;\n $css = $css ?? Folio::asset('css/folio.css');\n\n $header_view = $header_view ?? config('folio.heade...
php
chosen
[ { "from": "system", "value": "[Serializer] Improve test coverage of the MaxDepth annotation\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, pleas...
php
chosen
[ { "from": "system", "value": "Disable Admin controller user acl\n" }, { "from": "human", "value": "<?php\n\nnamespace Devlabs\\SportifyBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Devlab...
php
chosen
[ { "from": "system", "value": "Make sure to avoid PHP error if no module will be available for the dashboard\n" }, { "from": "human", "value": "<?php\n/**\n * @package Mautic\n * @copyright 2014 Mautic Contributors. All rights reserved.\n * @author Mautic\n * @link http://mautic...
php
chosen
[ { "from": "system", "value": "Tweak the code to avoid fabbot false positives\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 LI...
php
chosen
[ { "from": "system", "value": "Update old fixtures and add a method to filter site on deleted=false\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPOrchestra\\ModelBundle\\Repository;\n\nuse Doctrine\\ODM\\MongoDB\\DocumentRepository;\nuse PHPOrchestra\\ModelInterface\\Model\\SiteInterfa...
php
chosen
[ { "from": "system", "value": "Use whitelist when creating account\n" }, { "from": "human", "value": "<?php\n\n$cid = $_POST[\"username\"];\n$old_passwd = $_POST[\"password\"];\n$email = $_POST[\"email\"];\n$nick = $_POST[\"nick\"];\n$new_passwd = $_POST[\"new_password\"];\n$redirect = $_GET[\"re...
php
chosen
[ { "from": "system", "value": "Remove error handler here as well\n" }, { "from": "human", "value": "<?php\n/*\n * This is just a dummy page pretending to log a user in.\n * The idea is to test sessions on the server\n */\nrequire(__DIR__ . '/../vendor/autoload.php');\n\nuse \\Socketty\\ErrorHandl...
php
chosen
[ { "from": "system", "value": "Update CDN version to latest bootstrap, added note about using cdn version over compiled\n" }, { "from": "human", "value": "<?php\n\nfunction enqueue_scripts() {\n\n\n // CSS\n $screen = '/style/screen.css';\n $screenFilePath = get_template_directory() . $screen;...
php
chosen
[ { "from": "system", "value": "Automate the declaration of custom fixers.\n" }, { "from": "human", "value": "<?php\n\nuse Hoa\\Devtools\\Resource\\PHPCsFixer\\Fixer;\n\n// Hoa defined fixers.\n$fixers = [\n 'Author.php',\n 'Copyright.php',\n 'PhpdocAccess.php',\n 'PhpdocThrows.php',\n...
php
chosen
[ { "from": "system", "value": "III-2522: Fix language factory method test\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3;\n\nuse InvalidArgumentException;\nuse PHPUnit_Framework_TestCase;\n\nclass LanguageTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @test\n ...
php
chosen
[ { "from": "system", "value": "Fix method signature clash with parent method\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\nnamespace Helmich\\Psr7Assert\\Constraint;\n\nuse PHPUnit\\Framework\\Assert;\nuse PHPUnit\\Framework\\Constraint\\Constraint;\nuse Psr\\Http\\Message\\...
php
chosen
[ { "from": "system", "value": "Update caching for User type.\n" }, { "from": "human", "value": "<?php namespace ProcessWire\\GraphQL\\Type;\n\nuse GraphQL\\Type\\Definition\\ObjectType;\nuse GraphQL\\Type\\Definition\\Type;\nuse ProcessWire\\GraphQL\\Type\\Traits\\CacheTrait;\n\nclass UserType\n{...
php
chosen
[ { "from": "system", "value": "Throw same thing on failure on every case\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\n...
php
chosen
[ { "from": "system", "value": "Fix overzealous subscribing in EditEngine\n\nSummary:\nSee T9905#148799. The CommentEditField generated empty comment transactions; these are dropped later, but before they are dropped they would trigger implicit CCs.\n\nThe implicit CC rule should probably be narrower, but we ...
php
chosen
[ { "from": "system", "value": "Fix parameter name mismatch with interface\n" }, { "from": "human", "value": "<?php\n/**\n *\n * This file is part of Aura for PHP.\n *\n * @license http://opensource.org/licenses/mit-license.php MIT\n *\n */\nnamespace Aura\\SqlQuery\\Common;\n\nuse Aura\\SqlQuery\...
php
chosen
[ { "from": "system", "value": "Fix client IP on dashboard\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Libs\\Controller;\n\n\nclass DashboardController extends Controller{\n\n /**\n * Display a listing of the resource.\...
php
chosen
[ { "from": "system", "value": "FIX to ignore directories, not just their contents\n\nUsing eGit in eclipse, the trailing slash is causing folders to not be excluded." }, { "from": "human", "value": "<?php\n\nnamespace GDM\\SSAutoGitIgnore;\n\nuse Composer\\Script\\Event;\n\nclass UpdateScript {\n...
php
chosen
[ { "from": "system", "value": "Remove unnecessary call for modules\n" }, { "from": "human", "value": "<?php\n\nnamespace Amazon\\Pay\\Test\\Mftf\\Helper;\n\nuse Magento\\FunctionalTestingFramework\\Helper\\Helper;\n\nclass WaitForPopup extends Helper {\n\n public function waitForPopup() {\n ...
php
chosen
[ { "from": "system", "value": "Remove old code that was never documented or used.\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Foundation\\Testing;\n\nuse Mockery;\nuse PHPUnit_Framework_TestCase;\n\nabstract class TestCase extends PHPUnit_Framework_TestCase\n{\n use Appli...
php
chosen
[ { "from": "system", "value": "Use query builder to delete versions\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) Pierre du Plessis <open-source@solidworx.co>\n *\n * This source file is subject to the MIT lic...
php
chosen
[ { "from": "system", "value": "Fix typo on config namespaces.controller to namespace.controllers\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse App, URL;\nuse Illuminate\\Routing\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvider extends ServiceProv...
php
chosen
[ { "from": "system", "value": "Set appropriate login page redirection\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\n\nclass Authenticate\n{\n /**\n * The Guard implementation.\n *\n * @var Guar...
php
chosen
[ { "from": "system", "value": "Add the ability to set config on run event\n" }, { "from": "human", "value": "<?php\n\nnamespace Nimbusoft\\Parrot\\Event;\n\nuse Nimbusoft\\Parrot\\Parrot;\nuse League\\Event\\AbstractEvent;\n\nclass RunEvent extends AbstractEvent\n{\n public function __construc...
php
chosen
[ { "from": "system", "value": "Remove old thing in gtu search map\n" }, { "from": "human", "value": "<?php echo '<?xml version=\"1.0\" encoding=\"UTF-8\"?>';?>\n<kml xmlns=\"http://earth.google.com/kml/2.0\">\n <Document>\n\n\n<?php foreach($items as $item):?>\n <Placemark> ...
php
chosen
[ { "from": "system", "value": "Fix the tags loading more than 5 tags.\n" }, { "from": "human", "value": "<?php\n\nif($_SERVER['REQUEST_METHOD'] == 'POST' && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {\n\t\n\trequire_once 'db-connect.inc.php';\n\n\t$db = ConnectDb();\n\t$stmt = $db->p...
php
chosen
[ { "from": "system", "value": "Allow customization of implicit inclusion validator error message for list fields.\n" }, { "from": "human", "value": "<?php\r\n\r\n\tabstract class ListField extends Field\r\n\t{\r\n\t\tprotected $items = array();\r\n\t\t\r\n\t\tpublic function __construct($name, $i...
php
chosen
[ { "from": "system", "value": "Add backward compatibility on constants init." }, { "from": "human", "value": "<?php\nnamespace FrosyaLabs\\Lang;\n\n/** \n * Class used for formatting the month\n * \n * @author Nanang F. Rozi\n * @since 1.0.2\n */\nclass MonthFormatter\n{\n private const LONG_...
php
chosen
[ { "from": "system", "value": "Make time ranges consistent across examples\n" }, { "from": "human", "value": "<?php\n\nrequire('../src/tempodb.php');\ndate_default_timezone_set(\"America/Chicago\");\n\n$tdb = new TempoDB(\"your-api-key\", \"your-api-secret\");\n\n$series_key = \"php-increment\";\...
php
chosen
[ { "from": "system", "value": "Implement a stub for candidacy controller step 1\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Reque...
php
chosen
[ { "from": "system", "value": "Fix bug in onBootsrap function" }, { "from": "human", "value": "<?php\nnamespace TreeLayoutStack;\nclass Module implements \\Zend\\ModuleManager\\Feature\\AutoloaderProviderInterface{\n\n\t/**\n\t * @param \\Zend\\EventManager\\EventInterface $oEvent\n\t */\n\tpubli...
php
chosen
[ { "from": "system", "value": "Add default value for List Filter\n" }, { "from": "human", "value": "<?php\nnamespace Podlove\\Modules\\Networks\\Template;\n\nuse Podlove\\Template\\Wrapper;\n\n/**\n * List Template Wrapper\n *\n * Requires the \"Networks\" module.\n *\n * @templatetag podlove\n *...
php
chosen
[ { "from": "system", "value": "Add test for country list in Laravel Addressing class\n" }, { "from": "human", "value": "<?php\n\nuse Galahad\\LaravelAddressing\\LaravelAddressing;\n\n/**\n * Class LaravelAddressingTest\n *\n * @author Junior Grossi <juniorgro@gmail.com>\n */\nclass LaravelAddress...
php
chosen
[ { "from": "system", "value": "Change mailing list button to say 'sign up'\n" }, { "from": "human", "value": "<form class=\"mailing-list-form\">\n<div class=\"row\">\n\t<div class=\"small-3 columns\">\n\t\t<label for=\"email-label\" class=\"right inline\">Your Email</label>\n\t</div>\n\t<div clas...
php
chosen
[ { "from": "system", "value": "Fix - No isAdmin function\n" }, { "from": "human", "value": "<div class=\"navigation\">\n <div class=\"ui list\">\n <div class=\"mobile\"><a href=\"javascript:void(0);\" class=\"active\"><i class=\"sidebar icon\"></i></a></div>\n <div><a href=\"{{ r...
php
chosen
[ { "from": "system", "value": "[QA] Improve Guitar Pro 4 Mix Change parser\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PhpTabs package.\n *\n * Copyright (c) landrok at github.com/landrok\n *\n * For the full copyright and license information, please see\n * <https...
php
chosen
[ { "from": "system", "value": "Verify user login before changing the password reset mail\n" }, { "from": "human", "value": "<?php\n\n// Init owncloud\nrequire_once '../../lib/base.php';\nOC_JSON::checkLoggedIn();\nOCP\\JSON::callCheck();\n\n$l=OC_L10N::get('core');\n\n// Get data\nif( isset( $_PO...
php
chosen
[ { "from": "system", "value": "Add test for random lastName\n" }, { "from": "human", "value": "<?php\n\nnamespace Faker\\Test\\Provider\\ru_RU;\n\nuse Faker\\Generator;\nuse Faker\\Provider\\ru_RU\\Person;\nuse PHPUnit\\Framework\\TestCase;\n\nclass PersonTest extends TestCase\n{\n /**\n *...
php
chosen
[ { "from": "system", "value": "Test changes in myfeature branch\n" }, { "from": "human", "value": "<?php\n\n\n/* DEVELOPMENT BRANCH */\n\n\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonModule for the canonical source repository...
php
chosen
[ { "from": "system", "value": "Update email in contact form\n" }, { "from": "human", "value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_POST['email'],FI...
php
chosen
[ { "from": "system", "value": "Change method 'alias' to 'bind' for provide facade\n" }, { "from": "human", "value": "<?php\n\nnamespace AndrewNovikof\\Objects;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class ObjectsServiceProvider\n * @package Objects\n */\nclass ObjectsServiceProvi...
php
chosen
[ { "from": "system", "value": "Add php doc to rule controller.\n" }, { "from": "human", "value": "<?php\n/**\n * RuleController.php\n * Copyright (C) 2016 Sander Dorigo\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details....
php
chosen
[ { "from": "system", "value": "Add possibility to perform a full content swap when installing packages through CIF file (useful for starting point packages)\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Backup\\ContentImporter\\Importer\\Routine;\n\nuse Concrete\\Core\\Attri...
php
chosen
[ { "from": "system", "value": "Include http notification plugin instead of event notification" }, { "from": "human", "value": "<?php\n$serverRoot = realpath(__DIR__ . '/../../../../../');\n\nrequire_once($serverRoot . '/tests/lib/KalturaClient.php');\nrequire_once($serverRoot . '/tests/lib/Kaltur...
php
chosen
[ { "from": "system", "value": "Add a save to Session::flash().\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Support;\n\nuse \\Session,\n\tLaravel\\Messages as M;\n\nclass Messages extends M {\n\n\t/*...
php
chosen
[ { "from": "system", "value": "Use the new serialization api\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Ecommerce-Core package\n *\n * @package Ecommerce-Core\n */\n\n/**\n * Traits namespace\n */\nnamespace Heystack\\Ecommerce\\Transaction\\Traits;\n\n/**\n * Prov...
php
chosen
[ { "from": "system", "value": "Disable php notices for now\n" }, { "from": "human", "value": "<?php\n\n// Delegate static file requests back to the PHP built-in webserver\nif (php_sapi_name() === 'cli-server'\n && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))\n) {\n re...
php
chosen
[ { "from": "system", "value": "Fix bad interface_exists check on class\n" }, { "from": "human", "value": "<?php\n\nnamespace Swarrot\\SwarrotBundle\\Event;\n\nuse Symfony\\Contracts\\EventDispatcher\\Event;\nuse Symfony\\Component\\EventDispatcher\\Event as DeprecatedEvent;\n\nif (interface_exist...
php
chosen
[ { "from": "system", "value": "[Tests] Add new first user response to acceptance tests" }, { "from": "human", "value": "<?php\n\nuse Codeception\\Util\\Fixtures;\n\n/**\n * First user site setup tests\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass FirstUserCest\n{\n /** @var...
php
chosen
[ { "from": "system", "value": "Fix metadata print in list hmac keys" }, { "from": "human", "value": "<?php\n/**\n * Copyright 2019 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 * You may...
php
chosen
[ { "from": "system", "value": "Correct URL used for refunding application fees\n\nFixes #208.\n\nSee also stripe/stripe-ruby#351.\n" }, { "from": "human", "value": "<?php\n\nnamespace Stripe;\n\nclass ApplicationFee extends ApiResource\n{\n /**\n * This is a special case because the applic...
php
chosen
[ { "from": "system", "value": "Remove return type breaking failing test\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Moka\\Tests;\n\nabstract class IncompleteAbstractTestClass implements TestInterface\n{\n public $public;\n\n protected $protected;\n\n p...
php
chosen
[ { "from": "system", "value": "Add level attribute and proper sorting.\n" }, { "from": "human", "value": "<?php\n\nnamespace common\\models\\comments;\n\nclass AdjacencyListComment extends Comment\n{\n /**\n * @inheritdoc\n */\n public static function tableName()\n {\n ret...
php
chosen
[ { "from": "system", "value": "Make the shouldSkipProperty code more readable\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2011 Johannes M. Schmitt <schmittjoh@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except...
php
chosen
[ { "from": "system", "value": "Add x and y field for laralytics_custme table migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\n/**\n * Class CreateLaral...
php
chosen
[ { "from": "system", "value": "Tweak a method name in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Phive\\TaskQueue\\Tests;\n\nuse Phive\\TaskQueue\\SimpleSerializer;\n\nclass SimpleSerializerTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @var SimpleSerializer\n ...
php
chosen
[ { "from": "system", "value": "Add tests for cloneable and abstract interface with methods\n" }, { "from": "human", "value": "<?php\n\nnamespace ParserReflection\\Stub;\n\nabstract class ExplicitAbstractClass {}\n\nabstract class ImplicitAbstractClass\n{\n abstract function test();\n}\n\nfinal...
php
chosen
[ { "from": "system", "value": "BAP-11418: Implement Upload (Import) functionality\n- remove not used import\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\ImportExport\\Strategy;\n\nuse Oro\\Bundle\\ImportExportBundle\\Strategy\\Import\\ConfigurableAddOrRepl...
php
chosen
[ { "from": "system", "value": "FIX form factory method signatur\n" }, { "from": "human", "value": "<?php\n\nnamespace Forms;\n\nuse Events\\EventDispatcher;\nuse Forms\\Form;\nuse Validation\\Validator;\n\nclass FormFactory \n{\n public static function make(Form $formClass)\n {\n ret...
php
chosen
[ { "from": "system", "value": "Add sumRating methods to fetch rating when using +1/-1 style ratings.\n" }, { "from": "human", "value": "<?php namespace willvincent\\Rateable;\n\ntrait Rateable\n{\n /**\n * This model has many ratings.\n *\n * @return Rating\n */\n public fun...
php
chosen
[ { "from": "system", "value": "Remove comment and unused use statement\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2016 SURFnet bv\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 * Y...
php
chosen
[ { "from": "system", "value": "Change frontpage and link it with about page\n" }, { "from": "human", "value": "<?php\n\n/* @var $this yii\\web\\View */\n\nuse yii\\helpers\\Html;\n\n$this->title = 'EventKit';\n?>\n<div class=\"site-index\">\n\n <div class=\"jumbotron\">\n <h1>Welcome to...
php
chosen
[ { "from": "system", "value": "Add missing array to php webservice\n" }, { "from": "human", "value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Organisms with given ids\n */\nclass Organisms extends \\WebService {\n\n /**\n * @param $queryda...
php
chosen
[ { "from": "system", "value": "Validate date filter for event\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Event;\nuse Carbon\\Carbon;\nuse Illuminate\\Http\\Request;\n\nclass EventsController extends Controller\n{\n public function show(Event $event)...
php
chosen
[ { "from": "system", "value": "Make migrations compatible with L53\n" }, { "from": "human", "value": "<?php\n\nnamespace PragmaRX\\Sdk\\Core\\Migrations;\n\nuse Illuminate\\Database\\Console\\Migrations\\RollbackCommand as IlluminateRollbackCommand;\n\nclass RollbackCommand extends IlluminateRoll...
php
chosen
[ { "from": "system", "value": "Add return type to resultInterface\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PHPBench package\n *\n * (c) Daniel Leech <daniel@dantleech.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t...
php
chosen
[ { "from": "system", "value": "Fix invalid object state error\n" }, { "from": "human", "value": "<?php\n\nnamespace Indigo\\Iterators;\n\n/**\n * This is an extension of the SPL AppendIterator.\n *\n * Accepts a Traversable containing Iterators.\n *\n * @author Márk Sági-Kazár <mark.sagikazar@gma...
php
chosen
[ { "from": "system", "value": "Add 'config' option for PhpSpec\n" }, { "from": "human", "value": "<?php\n\nnamespace RMiller\\BehatSpec;\n\nuse Behat\\Testwork\\ServiceContainer\\Extension;\nuse Behat\\Testwork\\ServiceContainer\\ExtensionManager;\nuse RMiller\\ErrorExtension\\ErrorExtension;\nus...
php
chosen
[ { "from": "system", "value": "refactor(database): Fix MySQL pool createConnection return type\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Leevel\\Database\\Mysql;\n\nuse Leevel\\Database\\Manager;\nuse Leevel\\Database\\MysqlPoolConnection;\nuse Leevel\\Data...
php
chosen
[ { "from": "system", "value": "Change python command to python2.7\n" }, { "from": "human", "value": "<?php\n date_default_timezone_set('America/Chicago');\n\n\n $file = $_FILES['uploadedfile']['tmp_name'];\n $names = $_FILES['uploadedfile']['name'];\n\n $target = $dir.'In/'.$names;\n ...
php
chosen
[ { "from": "system", "value": "Fix for order exists helper\n\nThis will return partial matches when using the orderNumber query parameter filter.\n" }, { "from": "human", "value": "<?php\nnamespace LaravelShipStation\\Helpers;\n\nclass Orders extends Endpoint\n{\n /**\n * Create a single o...
php
chosen
[ { "from": "system", "value": "Fix for Symfony 2.8, with an explicit (correct-case) template file\n" }, { "from": "human", "value": "<?php\n\nnamespace KPhoen\\ContactBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Template;\nuse Symfony\\Component\\HttpFoundation\...
php
chosen
[ { "from": "system", "value": "Fix command fix:participant not saving correctly\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse App\\Notifications\\TargetDrawn;\nuse URLParser;\n\nclass FixParticipant extends Command\n{\n /**\n * The name and signature ...
php
chosen
[ { "from": "system", "value": "Check if PHP supports $options\n" }, { "from": "human", "value": "<?php\n/* ===========================================================================\n * Copyright (c) 2018-2019 Zindex Software\n *\n * Licensed under the MIT License\n * ===========================...
php
chosen
[ { "from": "system", "value": "BB-7804: Test and merge to master\n - fixed notice in builds of functional tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\TestFrameworkBundle\\Migrations\\Schema\\v1_9;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBun...
php
chosen
[ { "from": "system", "value": "Order tags: users first, guest after\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Paging_Tag_VenueUserLatest extends Denkmal_Paging_Tag_Abstract {\n\n /**\n * @param Denkmal_Model_Venue $venue\n * @param DateTime|null $createdMin\n ...
php
chosen
[ { "from": "system", "value": "Set guid type to require SQL comment hint\n" }, { "from": "human", "value": "<?php\n/*\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANT...
php
chosen
[ { "from": "system", "value": "Fix renaming of table columns for other database drivers\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass AlterTableIncidentsRenameComponentColumn extends Migration\n{...
php
chosen
[ { "from": "system", "value": "Add cid:// file:// file: schemes\n\nAdd cid:// file:// file: schemes, this permits add images with HtmlHelper:\r\n´´´php\r\necho $this->Html->image('cid://full/path/image');\r\necho $this->Html->image('file://full/path/image');\r\n´´´" }, { "from": "human", "value":...
php
chosen
[ { "from": "system", "value": "Use mysqli to not spam logs with deprecation errors\n" }, { "from": "human", "value": "<?php\n\nrequire_once(\"/etc/nubis-config/securitywiki.php\");\n\n$conn = mysql_connect($DB_SERVER, $DB_USERNAME, $DB_PASSWORD);\n\nif (!$conn) {\n http_response_code(500);\n ...
php
chosen
[ { "from": "system", "value": "Hide pager stats without results\n\nSigned-off-by: Gerco van Heerdt <43740ea33a86c60a8dadd26e55cb69b32c6ef141@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nlist($pager, $type) = $s['d'];\n\n?>\n<p>\nDisplaying <?= $pager->getDisplayed() ?> / <?= $pager->get...
php
chosen
[ { "from": "system", "value": "Add authorize constant to payment transitions" }, { "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 d...
php
chosen
[ { "from": "system", "value": "Add tests for correct class name which ignores non-php files.\n\nIs this code necessary since we should be ignoring non-php files already?\n" }, { "from": "human", "value": "<?php\n\nnamespace li3_quality\\tests\\cases\\test\\rules;\n\nclass HasCorrectClassNameTest ...
php
chosen
[ { "from": "system", "value": "Replace use of SCRIPT_URI for OS X Server compatibility (mod_php environment).\n" }, { "from": "human", "value": "<?php\n\n// Setup\nrequire_once '../cassowary/cassowary-setup.php';\n\n// logout if necessary\n\nif (phpCAS::isAuthenticated()) {\n\tphpCAS::logoutWithR...
php
chosen
[ { "from": "system", "value": "Allow for meta_values in head" }, { "from": "human", "value": "\t\t<?php if ($content_type = Controller::$view->mime_type): ?>\n\t\t\t<?php if (!empty(Controller::$view->charset)) { $content_type .= ';charset=' . Controller::$view->charset; } ?>\n\t\t\t <meta http-e...
php
chosen
[ { "from": "system", "value": "Use resolve helper instead of app\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * For detailed copyright and license information, please view the\n * LICENSE file that was distributed with this source code.\n */\n\nuse Flarum\...
php
chosen