conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Clear the master password on ACP logout" }, { "from": "human", "value": "<?php\n\nnamespace wcf\\acp\\action;\n\nuse wcf\\action\\AbstractSecureAction;\nuse wcf\\system\\request\\LinkHandler;\nuse wcf\\system\\WCF;\nuse wcf\\util\\HeaderUtil;\n\n/**\n * Does the use...
php
chosen
[ { "from": "system", "value": "Fix bogus identifier name throughout file\n" }, { "from": "human", "value": "<?php\nnamespace Quickshiftin\\Assetorderer\\View\\Asset;\n\nuse\n Magento\\Framework\\View\\Asset\\Remote as RemoteAsset,\n Magento\\Framework\\View\\Asset\\LocalInterface;\n\nclass ...
php
chosen
[ { "from": "system", "value": "Check if url does exists (try to resolve!)\n" }, { "from": "human", "value": "<?php\n// Test if domain is set\nif(isset($_GET[\"domain\"]))\n{\n // Remove illegal characters\n $url = filter_var($_GET[\"domain\"], FILTER_SANITIZE_URL);\n if(!filter_var(\"htt...
php
chosen
[ { "from": "system", "value": "Use render-instance from mail for preview\n" }, { "from": "human", "value": "<?php\n\nclass CM_Component_EmailPreview extends CM_Component_Abstract {\n\n public function checkAccessible(CM_Render $render) {\n }\n\n public function prepare() {\n $emai...
php
chosen
[ { "from": "system", "value": "Configure accept attr in image form type.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and...
php
chosen
[ { "from": "system", "value": "Set tag default as enable\n" }, { "from": "human", "value": "<?php\n\nnamespace Purethink\\CoreBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse Gedmo\\Mapping\\Annotation as Gedmo;\nuse Gedmo\\SoftDeleteable\\SoftDeleteable;\nuse Gedmo\\SoftDeleteable\\Tra...
php
chosen
[ { "from": "system", "value": "Fix wording for mapping follow tooltips" }, { "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\nretu...
php
chosen
[ { "from": "system", "value": "Use Laravel database configuration by default" }, { "from": "human", "value": "<?php\n\nreturn [\n /*\n |--------------------------------------------------------------------------\n | Event Store configuration\n |-----------------------------------------...
php
chosen
[ { "from": "system", "value": "Update the local config template.\n" }, { "from": "human", "value": "<?php\n/*\n * Template for a local configuration file that should not be committed to version control.\n *\n * Copy this file to local.php.\n */\n\n$app['drivegal.client_id'] = '';\n$app['drivegal....
php
chosen
[ { "from": "system", "value": "Add default value for env var\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party Services\n |----------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix unneeded float cast and add return type\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Models;\n\nclass Race extends AbstractModel\n{\n public function dominions()\n {\n return $this->hasMany(Dominion::class);\n }\n\n publ...
php
chosen
[ { "from": "system", "value": "Remove my stupid admin/ redirect fix which doesnt work lol\n" }, { "from": "human", "value": "<?php\n\nnamespace Roots\\Sage\\Extras;\n\nuse Roots\\Sage\\Setup;\n\n/**\n * Add <body> classes\n */\nfunction body_class($classes) {\n // Add page slug if it doesn't exi...
php
chosen
[ { "from": "system", "value": "Use the project id in the url rather than the name.\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\C...
php
chosen
[ { "from": "system", "value": "BAP-10873: Apply select2-autocomplete component for business unit own...\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\FilterBundle\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\n\nuse Oro\\Bundle\\DashboardBundle\\Model\\WidgetOpti...
php
chosen
[ { "from": "system", "value": "Change content data type to longtext\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePageContents extends Migration\n{\n /**\n * Run the migrations.\n ...
php
chosen
[ { "from": "system", "value": "Improve method copyrightData() with parameter $id_img\n\n$id_img it’s ID the image\n" }, { "from": "human", "value": "<?php\n\nfunction copyrightData($type = 'name')\n{\n $type = (isset($type)) ? $type : 'name';\n\n return get_post_meta(get_post_thumbnail_id()...
php
chosen
[ { "from": "system", "value": "Use array_merge instead (for readability, etc)" }, { "from": "human", "value": "<?php\n/**\n * Starlit Db.\n *\n * @copyright Copyright (c) 2019 Starweb AB\n * @license BSD 3-Clause\n */\n\nnamespace Starlit\\Db;\n\nuse PDO;\n\nclass PdoFactory implements PdoFacto...
php
chosen
[ { "from": "system", "value": "Fix incorrect variable on edit page.\n" }, { "from": "human", "value": "@extends('app')\n\n@section('content')\n <div class=\"wrapper\">\n <div class=\"row\">\n <h1 class=\"highlighted\">Edit Category: {{{ $category->name }}}</h1>\n\n ...
php
chosen
[ { "from": "system", "value": "Change default url of Officer\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse \\RBAC;\n\nclass DashboardController extends Controller\n{\n\tpublic function index()\n\t{\n\t\t$route = '';\n\n\t\tif ...
php
chosen
[ { "from": "system", "value": "Include current length parameter in length validator error messages.\n" }, { "from": "human", "value": "<?php\r\n\r\n\tclass LengthValidator extends Validator\r\n\t{\r\n\t\tprotected $minimum = null;\r\n\t\tprotected $maximum = null;\r\n\t\t\r\n\t\tpublic function _...
php
chosen
[ { "from": "system", "value": "Use FQN for @throws tag\n\nThis avoids possible clashes between \\InvalidArgumentException and the imported InvalidArgumentException\n" }, { "from": "human", "value": "<?php\n\nuse Firebase\\Exception\\InvalidArgumentException;\nuse Firebase\\ServiceAccount;\nuse Fi...
php
chosen
[ { "from": "system", "value": "Set local path for Rocketeer commands\n" }, { "from": "human", "value": "<?php\nnamespace Rocketeer\\Satellite\\Abstracts;\n\nuse Illuminate\\Console\\Command;\nuse Rocketeer\\Satellite\\Services\\Applications\\ApplicationsManager;\nuse Symfony\\Component\\Console\\...
php
chosen
[ { "from": "system", "value": "Fix the Test Namespace Setup\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of pmg/csv-sugar.\n *\n * Copyright (c) PMG <https://www.pmg.com>.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr...
php
chosen
[ { "from": "system", "value": "Use docblock tag instead of a plain php comment. This prevents accidentally\nexporting the ::build() method on the XML-RPC server.\n\n\nsvn commit r1712\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Swat/SwatPage.php';\nrequire_once 'XML/RPC2/Server.php'...
php
chosen
[ { "from": "system", "value": "Set user->organizer to null when organizer is deleted\n" }, { "from": "human", "value": "<?php\n\nuse yii\\db\\Schema;\nuse yii\\db\\Migration;\n\nclass m150626_093838_create_user_table extends Migration\n{\n public function up() {\n $this->createTable('us...
php
chosen
[ { "from": "system", "value": "[BUGFIX] Check for existance of $releasesList[0] before using\n" }, { "from": "human", "value": "<?php\n\nnamespace Deployer;\n\ntask('buffer:stop', function () {\n $releasesList = get('releases_list');\n // Remove lock files also from previous release because...
php
chosen
[ { "from": "system", "value": "Allow \"Magic Home\" to be hidden\n\nSummary: Ref T12174. Fallback behavior on this already appears to be sensible.\n\nTest Plan:\n - Hid \"Magic Home\".\n - Viewed homepage with no dashboards on the menu.\n - Saw \"Magic Home\" content, with no item in the menu selected, wh...
php
chosen
[ { "from": "system", "value": "Add background color to container\n" }, { "from": "human", "value": "<?php\necho \"<div class=\\\"container bg-true\\\">\";\necho \"<h2>Sorry, your request could not be completed.</h2>\";\necho \"<p>It seems that the page you were trying to reach is unavailable, or ...
php
chosen
[ { "from": "system", "value": "Fix for the login route not working\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| H...
php
chosen
[ { "from": "system", "value": "[HttpKernel] Fix Symfony2 full framework tests\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 LICE...
php
chosen
[ { "from": "system", "value": "Allow access from beta site\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com/doc/current/book/i...
php
chosen
[ { "from": "system", "value": "Fix an issue 'Constructor returns value'\n" }, { "from": "human", "value": "<?php\n\nnamespace Fenrizbes\\UploadableBundle\\File;\n\nuse Symfony\\Component\\HttpFoundation\\File\\File;\n\nclass UploadableFile extends File\n{\n /**\n * Path to the project's ro...
php
chosen
[ { "from": "system", "value": "Add the get parameters to the url.\n" }, { "from": "human", "value": "<?php\n\nnamespace Showpad;\n\nuse Buzz\\Browser;\n\nfinal class BuzzAdapter implements Adapter\n{\n /**\n * @var Browser\n */\n private $browser;\n\n /**\n * Constructor\n ...
php
chosen
[ { "from": "system", "value": "Mark link to points to displaying page\n\nAs .current-page\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/base.php';\nrequire_once __DIR__ . '/../../lib/utils.php';\n\nclass NavigatorSection extends RawDataContainer implements Component {\n publ...
php
chosen
[ { "from": "system", "value": "Fix timezone issue with created_at, updated_at, and automatically generated timestamp fields\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\nuse DateTimeZone;\nuse Illuminate\\Support\\Arr;\nuse Illuminat...
php
chosen
[ { "from": "system", "value": "Add source link to EIN validation regex" }, { "from": "human", "value": "<?php\n\nnamespace Faker\\Test\\Provider\\en_US;\n\nuse Faker\\Provider\\en_US\\Company;\nuse Faker\\Generator;\n\nclass CompanyTest extends \\PHPUnit_Framework_TestCase\n{\n\n /**\n * @...
php
chosen
[ { "from": "system", "value": "Make the automatic object to array transformer generate deep arrays\n" }, { "from": "human", "value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Transformer;\n\nuse RuntimeException;\nuse Traversable;\nuse ArrayAccess;\n\n/**\n * AutomaticObjectToArrayTransformer\n * ...
php
chosen
[ { "from": "system", "value": "Update product relative link to link to the correct parent page\n" }, { "from": "human", "value": "<?php\n\nclass CataloguePageProductExtension extends DataExtension\n{\n \n public function updateRelativeLink($base, $action)\n {\n $page = CataloguePa...
php
chosen
[ { "from": "system", "value": "Use config method from plugin class\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of Herbie.\n *\n * (c) Thomas Breuss <www.tebe.ch>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed...
php
chosen
[ { "from": "system", "value": "Add a few more quotes.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Foundation;\n\nuse Illuminate\\Support\\Collection;\n\nclass Inspiring {\n\n\t/**\n\t * Get an inspiring quote.\n\t *\n\t * Taylor & Dayle made this commit from Jungfraujoch. (11,3...
php
chosen
[ { "from": "system", "value": "Rename username to use 5 character minimum\n" }, { "from": "human", "value": "<div class=\"single\">\n <div class=\"panel warp\">\n <?php echo formOpen('user/signup'); ?>\n <h1>Sign Up</h1>\n <div>\n <?php echo inputText('username'...
php
chosen
[ { "from": "system", "value": "Fix null object ref error\n" }, { "from": "human", "value": "<?php\n/**\n * @package plugins.captionSearch\n * @subpackage api.objects\n */\nclass KalturaCaptionAssetItem extends KalturaObject\n{\n\t/**\n\t * The Caption Asset object\n\t * \n\t * @var KalturaCaption...
php
chosen
[ { "from": "system", "value": "Remove allDaySlot from calendar view\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('css')\n@parent\n<link rel=\"stylesheet\" href=\"{{ asset('css/datetime.css') }}\">\n@endsection\n\n@section('content')\n<div id=\"calendar\"></div>\n@endsect...
php
chosen
[ { "from": "system", "value": "Add badge state to approval list\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Services\\Approvals\\Providers;\n\nuse AppBundle\\Entity\\BadgeHolder;\nuse AppBundle\\Services\\Approvals\\ApprovalQueueItem;\nuse AppBundle\\Services\\Approvals\\Appr...
php
chosen
[ { "from": "system", "value": "Update default unit test class with atoum refactoring\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PlemiBoomgoBundle.\n *\n * (c) Plemi <dev@plemi.org>\n *\n * For the full copyright and license information, please view the LICENSE\n *...
php
chosen
[ { "from": "system", "value": "Add todo item for shard stats collector\n" }, { "from": "human", "value": "<?php\n\nnamespace Maghead\\Sharding;\n\nuse Maghead\\Sharding\\Shard;\nuse Maghead\\Schema\\BaseSchema;\n\nclass ShardStatsCollector\n{\n protected $shards;\n\n public function __const...
php
chosen
[ { "from": "system", "value": "Remove superfluous / outdated throw NoRecordException\n" }, { "from": "human", "value": "<?php\n\nnamespace Bugcache\\Storage\\Mysql;\n\nuse Amp\\Mysql\\Pool;\nuse Amp\\Mysql\\ResultSet;\nuse Amp\\Promise;\nuse Bugcache\\Storage;\nuse Generator;\nuse function Amp\\r...
php
chosen
[ { "from": "system", "value": "[dev] Add newline to fix code lint errors\n" }, { "from": "human", "value": "<?php\nnamespace Codeception\\Module;\n\n// here you can define custom actions\n// all public methods declared in helper class will be available in $I\n\nclass UnitHelper extends \\Codecept...
php
chosen
[ { "from": "system", "value": "Change validation handler to use array input instead of assuming a request\n" }, { "from": "human", "value": "<?php\n\nnamespace Fuzz\\ApiServer\\Validation;\n\nuse Fuzz\\ApiServer\\Exception\\BadRequestException;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Htt...
php
chosen
[ { "from": "system", "value": "Fix notices when user config is not present.\n" }, { "from": "human", "value": "<?php\n\ndate_default_timezone_set('Africa/Cairo');\n\nrequire('src/PingLogger.php');\n\nrequire('config.default.php');\n\n@include('config.php');\n$config = (object) array_merge($config...
php
chosen
[ { "from": "system", "value": "Add uploads form laguage composer\n" }, { "from": "human", "value": "<?php\n\nnamespace Milax\\Mconsole\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ViewComposersServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap the applicati...
php
chosen
[ { "from": "system", "value": "Fix 'random' link by using 'url' instead of 'wpurl'\n" }, { "from": "human", "value": "<nav class=\"nav-body text-center\">\n <ul class=\"nav-with-text\">\n <li>\n <?php\n $p = get_boundary_post( true, '', true, 'category' );\n post_to_anchor_...
php
chosen
[ { "from": "system", "value": "TASK: Add support for relative source file in ReceiverSource\n" }, { "from": "human", "value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: sebastian\n * Date: 27.05.15\n * Time: 13:15\n */\n\nnamespace Sandstorm\\Newsletter\\Domain\\Model;\n\nuse Doctrine\\C...
php
chosen
[ { "from": "system", "value": "[HttpFoudation] Add ability to configure sqlite session storage.\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, pl...
php
chosen
[ { "from": "system", "value": "Switch to Filesystem::mkdir() method (from native)\n" }, { "from": "human", "value": "<?php\n\nnamespace Avalanche\\Bundle\\ImagineBundle\\DependencyInjection\\Compiler;\n\nuse RuntimeException;\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInt...
php
chosen
[ { "from": "system", "value": "Move oparl api from /api/v1/ to /api/oparl/v1\n" }, { "from": "human", "value": "<?php\n\n/* @var Illuminate\\Routing\\Router $router */\n$router->get('/', ['uses' => 'RootController@index', 'as' => 'api.index']);\n\n$router->group([\n 'as' => 'api.v1.',\...
php
chosen
[ { "from": "system", "value": "Make the output verbose by default\n" }, { "from": "human", "value": "<?php\n $grammar = isset($_GET['grammar']) ? \"grammar=\" . $_GET['grammar'] : '';\n $code = isset($_GET['code']) ? \"code=fun_code/\" . $_GET['code'] : '';\n $verbose = isset($_GET['verb...
php
chosen
[ { "from": "system", "value": "Remove mb test (not required)\n" }, { "from": "human", "value": "<?php\nclass PrerequisitesTest extends PHPUnit_Framework_TestCase\n{\n /**\n * The minimum version of PHP required for this project\n * @var string\n */\n const PHP_VERSION_REQUIRED =...
php
chosen
[ { "from": "system", "value": "Add SES_REGION to local environment file\n\nThe region used by SES was hardcoded into the config file, when all other values were set as environment variables. Tweaked to keep the region consistent with other config options" }, { "from": "human", "value": "<?php\n\n...
php
chosen
[ { "from": "system", "value": "Update laravel/mvc-basics/step-by-step/23 with theme formatting\n" }, { "from": "human", "value": "<?php\n// ~/Sites/presentation/mvc-basics/resources/views/event/tickets/create.blade.php\n// Using your text editor, create the `create.blade.php` file and paste the\n...
php
chosen
[ { "from": "system", "value": "system: Fix wrongly redefining an already abstract method\n in the WebController\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file contains an abstract WebController class,\n * containing methods specifically targeted for the\n * Web Usage.\n *\n * PHP ...
php
chosen
[ { "from": "system", "value": "Add UK spelling for UnauthorisedException\n" }, { "from": "human", "value": "<?php\n\nclass InvalidClassException extends Exception {}\nclass NotFoundException extends RuntimeException {}\nclass DataAccessException extends RuntimeException {}\nclass CacheException e...
php
chosen
[ { "from": "system", "value": "Fix fatal error in collection episodes listing\n\nAdd null as scope parameter to _items call" }, { "from": "human", "value": "<?php\n\nnamespace VHX;\n\nclass Collections extends ApiResource {\n public static function all($params = array(), $headers = null) {\n ...
php
chosen
[ { "from": "system", "value": "Remove visible unprefixed print class name\n" }, { "from": "human", "value": "<?php while (have_posts()) : the_post() ?>\n <article class=\"govuk-grid-column-full\">\n <div class=\"govuk-visible-print visible-print\">\n <p><?php echo esc_html(get_permalink(...
php
chosen
[ { "from": "system", "value": ":ambulance: Fix '__construct() cannot declare a return type'\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Laravel Database.\n *\n * (c) Brian Faust <hello@brianfaust.de>\n *\n * For the full copyright and license information, please view t...
php
chosen
[ { "from": "system", "value": "Add public method for getting private hash part\n" }, { "from": "human", "value": "<?php\nclass Kwf_Util_Hash\n{\n public static function hash($str)\n {\n $salt = Kwf_Cache_SimpleStatic::fetch('hashpp-');\n if (!$salt) {\n if ($salt = ...
php
chosen
[ { "from": "system", "value": "Make the controller class abstract\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nuse Philo\\Blade\\Blade;\n\nclass Controller\n{\n\t/**\n\t * The blade instance\n\t * @var Philo\\Blade\\Blade\n\t */\n\tprotected $blade;\n\n\t/**\n\t * Bl...
php
chosen
[ { "from": "system", "value": "Fix Symfony 4.2 deprecation warning\n" }, { "from": "human", "value": "<?php\n\nnamespace TFox\\MpdfPortBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterf...
php
chosen
[ { "from": "system", "value": "Add method description to `conduit.query`\n\nSummary: As suggested in T6950, add the method description to the response from `conduit.query`.\n\nTest Plan: Called `echo '{}' | arc call-conduit conduit.query` and verified that the response contained the method description.\n\nRe...
php
chosen
[ { "from": "system", "value": "Add loadAjax method and update methods visibility\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is a part of the ChZ-PHP package.\n *\n * (c) François LASSERRE <choiz@me.com>\n *\n * For the full copyright and license information, please view the LICE...
php
chosen
[ { "from": "system", "value": "Move daily_* fields after wizard_strength\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddDailyBonusesColumns extends Mi...
php
chosen
[ { "from": "system", "value": "Fix up some styling on user show page.\n" }, { "from": "human", "value": "@extends('layout.master')\n\n@section('main_content')\n\n<a href=\"{{ url('users/' . $user['_id'] . '/edit') }}\"> Edit User <span class=\"glyphicon glyphicon-pencil\"></span></a>\n\n@if ($aur...
php
chosen
[ { "from": "system", "value": "CRM-4296: Call customers from OroCRM via Google Voice/Hangouts\n\n- code style fixes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Placeholder;\n\nuse Oro\\Bundle\\EmailBundle\\Entity\\Email;\nuse Doctrine\\Common\\Util\\ClassUtils;...
php
chosen
[ { "from": "system", "value": "Make the select field type work like it's supposed to\n" }, { "from": "human", "value": "<?php\n/**\n * Front End Accounts\n *\n * @category WordPress\n * @package FrontEndAccounts\n * @since 0.1\n * @author Christopher Davis <http://christopherdav...
php
chosen
[ { "from": "system", "value": "Remove rows attribute. Just use CSS now\n" }, { "from": "human", "value": "<?php\n/**\n * Changes made by Pierre-Henry Soria.\n */\n\n// JavaScript file is located in the directory ~static/js/str.js which is included in the file ~templates/themes/base/tpl/layout.tpl...
php
chosen
[ { "from": "system", "value": "Hide currently bogus contact text\n" }, { "from": "human", "value": "@extends ('base')\n\n@section ('subheader')\n\n@stop\n\n@section ('content')\n <div class=\"row\">\n <div class=\"col-xs-12 col-md-8 col-md-offset-2\">\n <p>\n @...
php
chosen
[ { "from": "system", "value": "Add shift tag to exported enrollments\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<table>\n <tr>\n <th>Course ID</th>\n <th>Course</th>\n <th>Student ID</th>\n <th>Student Name</th>\n <th>Student E-mail</th>\n ...
php
chosen
[ { "from": "system", "value": "Add a get_control and doc blocks for methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Customizer;\n\nclass Section {\n\n\tpublic function add_control( Control $control ) {\n\n\t}\n\n\tpublic function remove_control( Control $control ) {\n\n\t}\n\n}\n" ...
php
chosen
[ { "from": "system", "value": "Allow different wording for the divisible by operator.\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Miny framework.\n * (c) Dániel Buga <daniel@bugadani.hu>\n *\n * For licensing information see the LICENSE file.\n */\n\nnamespace Mod...
php
chosen
[ { "from": "system", "value": "Replace pre-emptive trimming with double slash removal filter\n" }, { "from": "human", "value": "<?php namespace TightenCo\\Jigsaw;\n\nclass BasicOutputPathResolver\n{\n public function link($path, $name, $type, $page = 1)\n {\n if ($page > 1) {\n ...
php
chosen
[ { "from": "system", "value": "Remove return type since it's missing from the parent\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Drupal\\wmcontroller;\n\nuse Drupal\\Component\\Plugin\\Factory\\FactoryInterface;\nuse Drupal\\Core\\Cache\\CacheBackendInterface;\nuse Drupal\\Core\\Exten...
php
chosen
[ { "from": "system", "value": "Update the laravel 4 service provider so it is not deferred\n\nThis fixes issues with the config not loading correctly for laravel 4." }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Carpenter;\n\nclass Laravel4ServiceProvider extends CarpenterSe...
php
chosen
[ { "from": "system", "value": "Add Cloudflare IPs to trusted proxies\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Http\\Middleware;\n\nuse Fideloper\\Proxy\\TrustProxies as Middleware;\nuse Illuminate\\Http\\Request;\n\nclass TrustProxies extends Middleware\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Use morphable command to create polymorphic columns on events table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateNewEventsTableSchema extends Migration\n{\n ...
php
chosen
[ { "from": "system", "value": "Add config for disabling tools links\n" }, { "from": "human", "value": "<?php\n\nnamespace Slate\\UI;\n\nuse Slate;\n\nclass Tools implements ILinksSource\n{\n public static $weight = -500;\n public static $tools = [];\n\n public static function __classLoad...
php
chosen
[ { "from": "system", "value": "Add return values for BackendWrap\n\nWe need to return some values from the BackendWrap. It is not trivial\nwhat we are expecting here, especially from `setMultiple`. Always\nreturning `true` should be satisfactory for now.\n" }, { "from": "human", "value": "<?php\n...
php
chosen
[ { "from": "system", "value": "Change history limit to 100 when viewing on single page\n" }, { "from": "human", "value": "<?php\n namespace Page;\n\n class User\n {\n public function index()\n {\n $this->router->redirect('user/profile');\n }\n\n pub...
php
chosen
[ { "from": "system", "value": "Fix create account validation, Dashboard filters\n" }, { "from": "human", "value": "<ul>\n <?php foreach($pager->getResults() as $flight): ?>\n <li>\n <?php if($flight->getDrafted() && $flight->getStatus() == \"new\"): ?>\n <span>...
php
chosen
[ { "from": "system", "value": "Fix files that have no namespace, but with psr-0 . Eg Solar, Kohana, Zend_ etc\n" }, { "from": "human", "value": "<?php\n$class = $argv[1];\n$file = $argv[2];\n$rootpath = $argv[3];\n$autoloader = $rootpath . '/vendor/autoload.php';\nif (file_exists($autoloader)) {\...
php
chosen
[ { "from": "system", "value": "Make the current request object available in views\n" }, { "from": "human", "value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\n/**\n *\n * @package \tBoom\n * @category \tControllers\n */\nclass Boom_Controller_Page_Html extends Controller_Pag...
php
chosen
[ { "from": "system", "value": "[Security] Fix http basic authentication entry point\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 ...
php
chosen
[ { "from": "system", "value": "Remove debug query from ACL db table class" }, { "from": "human", "value": "<?php\n/**\n * ACL Roles model\n *\n * @package Core\n * @author Denysenko Dmytro\n * @copyright (c) 2009 CultSoft\n * @license http://cultsoft.org.ua/platform/license.html\n */\nclass Site_...
php
chosen
[ { "from": "system", "value": "Add new middleware to add header with project id positioned\n" }, { "from": "human", "value": "<?php\n\nnamespace Nestor\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global...
php
chosen
[ { "from": "system", "value": "Add trim and emptytonull middleware to global.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware...
php
chosen
[ { "from": "system", "value": "Use Notifiable trait on user model\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n// use Notifi...
php
chosen
[ { "from": "system", "value": "CRM-157: Add support of multiAddress to Contact API\n - added processing of contact addresses\n - added cascade validation to contact API form type\n - small code style fixes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\AddressBundle\\Entity;\n...
php
chosen
[ { "from": "system", "value": "Add database to the default paths array\n\nHolds Migrations and Seeders\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /**\n * List of folders to be analyzed.\n */\n 'paths' => [\n base_path('app'),\n ],\n\n /**\n * List of f...
php
chosen
[ { "from": "system", "value": "Remove keys. Keys were deleted, so don't mind trying to use them." }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | API Keys\n |------------------------------------...
php
chosen
[ { "from": "system", "value": "Add get request method function" }, { "from": "human", "value": "<?php \n\nnamespace Acd;\n\n/** \n* Request Class\n* @author Acidvertigo MIT Licence\n*/\n\nclass Request \n{\n\n private $headers = [];\n\n /**\n * Check HTTP request headers\n * @return...
php
chosen
[ { "from": "system", "value": "Extend isCompatible to check the keyPath\n" }, { "from": "human", "value": "<?php\n\nnamespace AlgoWeb\\PODataLaravel\\Models\\ObjectMap\\Entities\\Associations;\n\nclass AssociationStubMonomorphic extends AssociationStubBase\n{\n /**\n * @param \\AlgoWeb\\PO...
php
chosen