conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add debugging to slave daemon\n"
},
{
"from": "human",
"value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version Functions\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\n// Debugging Functions... | php | chosen |
[
{
"from": "system",
"value": "Add verify of current user id on email verification\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Foundation\\Auth;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Auth\\Events\\Verified;\n\ntrait VerifiesEmails\n{\n use RedirectsUsers;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Add missing variable name in doc block\n"
},
{
"from": "human",
"value": "<?php\ndeclare (strict_types = 1);\n\nnamespace GrottoPress\\Jentil\\Setups\\MetaBoxes;\n\nuse GrottoPress\\Jentil\\Setups\\AbstractSetup;\nuse GrottoPress\\Jentil\\IdentityTrait;\n\nabstract ... | php | chosen |
[
{
"from": "system",
"value": "Add (empty-ish) method that will eventually need to exist.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sil\\SilAuth\\auth;\n\nuse Psr\\Log\\LoggerInterface;\n\nclass IdBroker\n{\n /** @var LoggerInterface */\n protected $logger;\n \n public funct... | php | chosen |
[
{
"from": "system",
"value": "Secure user profile controller action.\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 li... | php | chosen |
[
{
"from": "system",
"value": "Validate recipients only when creating a new conversation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Validator;\n\nuse FD\\PrivateMessageBundle\\Entity\\Conversation;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextI... | php | chosen |
[
{
"from": "system",
"value": "Modify title to always include Laravit string\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"csrf-token\" content=\"{{ csrf... | php | chosen |
[
{
"from": "system",
"value": "Fix mysqli driver connect, name and database\n"
},
{
"from": "human",
"value": "<?php\n\n class DB_MYSQLI implements IDriver\n {\n private $mysqli;\n\n public function connect($host, $user, $password)\n {\n $this->mysqli = new m... | php | chosen |
[
{
"from": "system",
"value": "Fix backwards compatibility in installer\n\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('init.php');\nrequire_once(INCLUDES_PATH.'/system-functions.php');\nrequire_once(INCLUDES_PATH.'/routing.php');\n\n$options = [\n 'min_range' => 1,\n 'max_range' ... | php | chosen |
[
{
"from": "system",
"value": "Make 'Edit threshhold' notif appear regardless of title existence\n\nIf a user recieves 'this is your X edit' they should get this notif\nregardless of whether the edit they created was deleted. We should\nmake sure the title is there only for deciding whether or not to\ncreate... | php | chosen |
[
{
"from": "system",
"value": "Change API key to unit test version\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Enable Tracking\n\t|------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add some missing return types to internal/final classes\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 vi... | php | chosen |
[
{
"from": "system",
"value": "Use methods instead of property\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('is_field_translatable')) {\n /**\n * Check if a Field is translatable.\n *\n * @param Illuminate\\Database\\Eloquent\\Model $model\n * @param Il... | php | chosen |
[
{
"from": "system",
"value": "Fix code format with php-cs-fixer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cassowary\\Adapter;\n\nclass RedisAdapter implements AdapterInterface\n{\n const BLACKLIST_KEY = 'blacklist';\n\n /**\n * @var \\Redis\n */\n private static $red... | php | chosen |
[
{
"from": "system",
"value": "Add hook to Board Settings"
},
{
"from": "human",
"value": "<div class=\"page-header\">\n <h2><?= t('Board settings') ?></h2>\n</div>\n<form method=\"post\" action=\"<?= $this->url->href('ConfigController', 'save', array('redirect' => 'board')) ?>\" autocomplete=... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in exception name\n"
},
{
"from": "human",
"value": "<?php\n\nclass InvalidClassException extends Exception {}\nclass NotFoundException extends RuntimeException {}\nclass DataAccessException extends RuntimeException {}\nclass CacheException extends DataAcce... | php | chosen |
[
{
"from": "system",
"value": "(fix): Use main config for elasticsearch hosts\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Search events listeners\n */\nnamespace Minds\\Core\\Search;\n\nclass Client extends \\Elasticsearch\\Client\n{\n public function __construct(array $opts = [])\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix exchanger issue while changing Virtual currency to PLN\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hatimeria\\BankBundle\\Currency;\n\nuse Hatimeria\\BankBundle\\Decimal\\Decimal;\n\n/**\n * Currency exchanger\n * \n * supported currencies: PLN, Virtua... | php | chosen |
[
{
"from": "system",
"value": "Include dynamic file name link\n"
},
{
"from": "human",
"value": "<?php\n date_default_timezone_set('America/Chicago');\n $dir = $_SERVER['DOCUMENT_ROOT'];\n\n\n $file = $_FILES['uploadedfile']['tmp_name'];\n $names = $_FILES['uploadedfile']['name'];\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix name attribute in impuestos locales\n"
},
{
"from": "human",
"value": "<?php\nnamespace CfdiUtils\\Elements\\ImpLocal10;\n\nuse CfdiUtils\\Elements\\Common\\AbstractElement;\n\nclass ImpuestosLocales extends AbstractElement\n{\n public function addRetencionLo... | php | chosen |
[
{
"from": "system",
"value": "Call Artisan dump-autoload after session:table\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Session\\Console;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass SessionTableCommand extends Command {\n\n\t/**\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Add .pull-right to resources sidebar nav.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "@extends('orchestra/foundation::layout.main')\n\n@section('content')\n\n<div class=\"row\">\n\n\t<div class=... | php | chosen |
[
{
"from": "system",
"value": "Replace annotation with constructor injection\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 Pet... | php | chosen |
[
{
"from": "system",
"value": "Adjust braces to match Magento conventions\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Solr response\n *\n * @category Asm\n * @package Asm_Solr\n * @author Ingo Renner <ingo@infielddesign.com>\n */\nclass Asm_Solr_Model_Solr_Response\n{\n\t/**\n\t * @var Ap... | php | chosen |
[
{
"from": "system",
"value": "Adjust for TED urls without html suffix\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Ted.php\n *\n * @package Providers\n * @author Michael Pratt <pratt@hablarmierda.net>\n * @link http://www.michael-pratt.com/\n *\n * For the full copyright and license infor... | php | chosen |
[
{
"from": "system",
"value": "Remove unused form class variable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Analytics\\Actions;\n\nuse Backend\\Core\\Engine\\Base\\ActionDelete;\nuse Backend\\Core\\Engine\\Model;\n\n/**\n * This is the reset-action. It will remove yo... | php | chosen |
[
{
"from": "system",
"value": "Remove usage of apc class loader\n"
},
{
"from": "human",
"value": "<?php\n\nini_set('date.timezone', 'UTC');\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * @var \\Symfony\\Component\\ClassLoader\... | php | chosen |
[
{
"from": "system",
"value": "Add email subject for exception reporting\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\nuse Mail;\n\nclass Handler extends ExceptionHandler\n{\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Make the time not 11:00\n\n11:00 is not a very pretty time, so changing it to 12:34 makes it more interesting."
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Console;\n\nuse App\\Jobs\\DailyDuesSummary;\nuse App\\Jobs\\NoAttenda... | php | chosen |
[
{
"from": "system",
"value": "Remove closing php tag and immediately-followed opening php tag\n"
},
{
"from": "human",
"value": "<?php\ndeclare (strict_types = 1);\n\n\\Jentil()->utilities->loader->loadPartial('header', 'micro'); ?>\n\n<?php \\do_action('jentil_before_header'); ?>\n\n<header id=... | php | chosen |
[
{
"from": "system",
"value": "Use ::class keyword when possible\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 LICENSE\n * fil... | php | chosen |
[
{
"from": "system",
"value": "Check is collection empty before foreach\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rudolf\\Component\\Helpers\\Navigation;\n\nclass MenuItemCollection\n{\n private $collection;\n\n public function add(MenuItem $item)\n {\n if (null == $it... | php | chosen |
[
{
"from": "system",
"value": "Move card.heading & panel.heading yields to .card-heading"
},
{
"from": "human",
"value": "@if ( ! empty($title))\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-12 pt-3\">\n\t\t\t{!! $title !!}\n\t\t</div>\n\t</div>\n\t<br />\n@endif\n\n@yield('before.card')\n@yiel... | php | chosen |
[
{
"from": "system",
"value": "Allow puphpet machine to see dev env\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP lin... | php | chosen |
[
{
"from": "system",
"value": "Fix user destroy destroy table name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests\\Admin;\n\nuse App\\Http\\Requests\\Request;\n\nclass DestroyUserRequest extends Request\n{\n /**\n * Determine if the user is authorized to make thi... | php | chosen |
[
{
"from": "system",
"value": "Add nullable on api_token column\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddApiTokenOnUsers extends Migration\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Update unit test for `Address`.\n"
},
{
"from": "human",
"value": "<?PHP\n\n/**\n * An Address value object.\n *\n * This Value Object use commerceguys/addressing library\n * (https://github.com/commerceguys/addressing).\n *\n * Other useful libraries:\n * - https:... | php | chosen |
[
{
"from": "system",
"value": "Remove Fork cms copyright comment"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Instagram\\Engine;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was dis... | php | chosen |
[
{
"from": "system",
"value": "Adjust path one last time.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\StatsD\\Laravel5\\Provider;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse League\\StatsD\\Client as Statsd;\n\n/**\n * StatsD Service provider for Laravel\n *\n * @author Ar... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/App/Validator/Constraints/UniqueEmailValidator.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Valid... | php | chosen |
[
{
"from": "system",
"value": "Fix permission check in `UserContentAction::validateBulkRevert()`\n"
},
{
"from": "human",
"value": "<?php\nnamespace wcf\\data\\user;\nuse wcf\\system\\edit\\EditHistoryManager;\nuse wcf\\system\\WCF;\n\n/**\n * Executes actions on user generated content.\n * \n * ... | php | chosen |
[
{
"from": "system",
"value": "Set https as default app url\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Application Debug Mode\n |----------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Make each test type a link to the edit page instead of using a form\n"
},
{
"from": "human",
"value": "<!-- resources/views/admin/testtype_index.blade.php -->\n\n@extends('layouts.app')\n\n@section('content')\n<h2>Test Types</h2>\n\n<table class=\"table\">\n\t<tbody... | php | chosen |
[
{
"from": "system",
"value": "[UI] Allow all admins to view user profile\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * ... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/Validator/Constraints/TimezoneValidator.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Validator\\C... | php | chosen |
[
{
"from": "system",
"value": "Use eav setup updateAttribute() instead of raw sql\n"
},
{
"from": "human",
"value": "<?php\n/* @var $installer Ikonoshirt_Pbkdf2_Model_Mysql4_Setup */\n$installer = $this;\n\n$installer->startSetup();\n\n$installer->getConnection()->modifyColumn($installer->getTabl... | php | chosen |
[
{
"from": "system",
"value": "Fix error in ReflectionClass when adding filter\n\nApparently this fails in PHP8 because of how this resolves in a\nReflectioClass? I'm not entirely sure I get this, but this fixes it.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Garp_Form_Element_Email\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Change require statement to require_once\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../paths.php';\nrequire VENDOR_DIR.'autoload.php';\nrequire STENCIL_DIR.'stencil.php';\n\nuse Stencil\\Stencil as Stencil;\n\nclass StencilTest extends PHPUnit_Fra... | php | chosen |
[
{
"from": "system",
"value": "Support passing request dynamically loaded classes\n"
},
{
"from": "human",
"value": "<?php\n\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one... | php | chosen |
[
{
"from": "system",
"value": "Update service for getting full organism names\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Mapping;\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\Entity\\FennecUser;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\n\nclass FullB... | php | chosen |
[
{
"from": "system",
"value": "Access package config L5 style"
},
{
"from": "human",
"value": "<?php namespace Jaybizzle\\Safeurl;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass SafeurlServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading of the provider is deferred... | php | chosen |
[
{
"from": "system",
"value": "Fix Rendering Response with Status Code\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RCatlin\\Blog\\Behavior;\n\nuse Refinery29\\ApiOutput\\Resource\\ResourceFactory;\nuse Refinery29\\Piston\\Response;\n\ntrait RenderResponse\n{\n /**\n * @param Resp... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in associative array\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Service for the Salesforce data API.\n *\n * @license http://opensource.org/licenses/MIT The MIT License (MIT)\n */\n\nnamespace Salesforce\\Service;\n\nuse GuzzleHttp\\ClientInterface... | php | chosen |
[
{
"from": "system",
"value": "Work on mongo features started\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DbMockLibrary\\DbImplementations;\n\nclass Mongo extends AbstractMockLibrary\n{\n /**\n * Insert into database\n *\n * @param string $collection\n * @param string... | php | chosen |
[
{
"from": "system",
"value": "Correct logical error that prevented new shop products from coming through [WEB-812]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands\\Import;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass ImportScheduleDaily exten... | php | chosen |
[
{
"from": "system",
"value": "Use DocumentManager::merge instead of find\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * (c) Matthieu Bontemps <matthieu@knplabs.com>\n * (c) Thibault Duplessis <thibault.duplessis@gmail.com>\n *\n * This source file is subject to the MIT license that is bundl... | php | chosen |
[
{
"from": "system",
"value": "Fix redirect default on password reset\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Foundation\\Auth\\ResetsPasswords;\n\nclass ResetPasswordController extends Control... | php | chosen |
[
{
"from": "system",
"value": "Allow overriding default exception message\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\Search\\Exception;\n\n/**\n * Exception thrown when an search query unexpectedly does not return any results.\n *\n * @author robo\n * @since 2.0\n */\nclass N... | php | chosen |
[
{
"from": "system",
"value": "Validate parameters for the `allRaw` method too.\n"
},
{
"from": "human",
"value": "<?php namespace Rossedman\\Teamwork;\n\nuse Rossedman\\Teamwork\\Traits\\RestfulTrait;\n\nclass Time extends AbstractObject {\n\n use RestfulTrait;\n\n protected $wrapper = '... | php | chosen |
[
{
"from": "system",
"value": "[Command] Check base command returns a UUID on creation\n"
},
{
"from": "human",
"value": "<?php\nnamespace SmoothPhp\\CommandBus;\n\n\nuse Ramsey\\Uuid\\Uuid;\nuse SmoothPhp\\Contracts\\CommandBus\\Command;\n\n/**\n * Class Command\n * @package SmoothPhp\\CommandBu... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Codestyle fix for robo task file\"\n\nThis reverts commit b2ba24e39ae8fdbd2476a71338bbcf0aa23c5953.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This is project's console commands configuration for Robo task runner.\n *\n * @see http://robo.li/\n */\... | php | chosen |
[
{
"from": "system",
"value": "Change column names of result\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TraitTypeRepository\n *\n * This class was generated by the PhpStorm \"Php Annotations\" Plugin. Add your ow... | php | chosen |
[
{
"from": "system",
"value": "Update service provider Applications , JwtAuth\n"
},
{
"from": "human",
"value": "<?php namespace Applications;\n\nuse ReflectionClass;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ApplicationsServiceProvider extends ... | php | chosen |
[
{
"from": "system",
"value": "Improve error message for duplicates.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Api;\n\nuse App\\Models\\User;\nuse App\\Models\\UserToken;\nuse Auth;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass UserController extends Con... | php | chosen |
[
{
"from": "system",
"value": "Make Houses load from the last 3 months, not hardcoded.\n"
},
{
"from": "human",
"value": "<?php\n\nclass HousePrice extends Module {\n\n public $url = \"https://data.bathhacked.org/resource/ifh9-xtsp.json\";\n \n function getData() {\n $postcodelat ... | php | chosen |
[
{
"from": "system",
"value": "Put size elements into place for JS renderer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Outspaced\\ChartsiaBundle\\Chart\\Renderer;\n\nuse Outspaced\\ChartsiaBundle\\Chart\\Charts;\nuse Outspaced\\ChartsiaBundle\\Chart\\Config;\n\nclass JavaScript\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Test of name & about me\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class HomePresenterTest\n *\n * @author: Jiří Šifalda <sifalda.jiri@gmail.com>\n * @date: 14.05.13\n */\nnamespace Flame\\Tester\\Example;\n\nuse Flame\\Tester\\SeleniumTestCase;\n\n$container... | php | chosen |
[
{
"from": "system",
"value": "Make it, you know, actually clear the cache\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ob\\CacheNukeBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component... | php | chosen |
[
{
"from": "system",
"value": "Define abstract base method as abstract\n"
},
{
"from": "human",
"value": "<?php\n/**\n * abstract compiler pass for extref things\n */\n\nnamespace Graviton\\DocumentBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\Co... | php | chosen |
[
{
"from": "system",
"value": "Fix when using multiple entity managers.\n\nAs per doctrine 2.4 default entity manager is referenced by doctrine.orm.entity_manager."
},
{
"from": "human",
"value": "<?php\nnamespace Tbbc\\MoneyBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\Depend... | php | chosen |
[
{
"from": "system",
"value": "Remove test server url and disable guzzle exceptions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RIPS\\APIConnector;\n\nuse GuzzleHttp\\Client;\nuse RIPS\\APIConnector\\Requests\\UserRequests;\nuse RIPS\\APIConnector\\Requests\\OrgRequests;\nuse RIPS\\APIC... | php | chosen |
[
{
"from": "system",
"value": "Fix menu with missing values (->values()...)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Code16\\Sharp\\View\\Components;\n\nuse Code16\\Sharp\\View\\Components\\Utils\\MenuItem;\nuse Illuminate\\Support\\Collection;\nuse Illuminate\\View\\Component;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Fix complaints from CS fixer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Test\\Unit;\n\nuse Korobi\\WebBundle\\Document\\Chat;\nuse Korobi\\WebBundle\\IRC\\Parser\\IRCTextParser;\nuse Korobi\\WebBundle\\IRC\\Parser\\LogParser;\nuse Symfo... | php | chosen |
[
{
"from": "system",
"value": "Use original case for type in exception"
},
{
"from": "human",
"value": "<?php\n\nnamespace SwaggerGen\\Swagger;\n\n/**\n * Describes a Swagger Header object, which may be part of a Response.\n *\n * @package SwaggerGen\n * @author Martijn van der Lee <martij... | php | chosen |
[
{
"from": "system",
"value": "Add \"batched\" flag to config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ftrrtf\\RollbarBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;... | php | chosen |
[
{
"from": "system",
"value": "Move robot check code to USer class"
},
{
"from": "human",
"value": "<?php\nnamespace Vela\\Core;\n\nuse \\Sabre\\HTTP\\Request;\n\nClass User\n{\n private $request;\n \n public function __construct(Request $request)\n {\n $this->request = $request;\n }\n ... | php | chosen |
[
{
"from": "system",
"value": "Clean GET and POST params before create an instance\n"
},
{
"from": "human",
"value": "<?php\n\n namespace AmoCRM;\n\n class Client\n {\n private $parameters = null;\n\n public function __construct($domain, $login, $apikey)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove memcached from social media.\n\nThis module has a built-in cache.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Modularity\\Module\\Social;\n\nclass Social extends \\Modularity\\Module\n{\n public function __construct()\n {\n $this->regis... | php | chosen |
[
{
"from": "system",
"value": "Fix not calling run before outputing\n"
},
{
"from": "human",
"value": "<?php\nnamespace envtesting;\n/**\n * Copy & Paste example\n *\n * @author Roman Ozana <ozana@omdesign.cz>\n */\n//if (file_exists(__DIR__ . '/Envtesting.php')) require_once __DIR__ . '/Envtesti... | php | chosen |
[
{
"from": "system",
"value": "Fix exception with adding paths that don't exist.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcTwig\\Service;\n\nuse Zend\\ServiceManager\\FactoryInterface;\nuse Twig_Loader_Filesystem;\nuse Zend\\ServiceManager\\ServiceLocatorInterface;\n\nclass TwigDef... | php | chosen |
[
{
"from": "system",
"value": "Remove _ prefix for private class attribute\n\nWas from Pear coding conventions but doesnt make sense anymore since PHP has now access modifiers\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Singleton Helper Trait\n *\n * @author Pier... | php | chosen |
[
{
"from": "system",
"value": "Make Bootstrap form renderer optional\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Annotate\\Framework\\ComponentModel;\n\nuse Annotate\\Framework\\Application\\Components\\BaseComponent;\nuse Annotate\\Framework\\ComponentModel\\Forms\\IFillable;\nuse Nett... | php | chosen |
[
{
"from": "system",
"value": "Add a basic health check route\n\n"
},
{
"from": "human",
"value": "<?php\n\n// Shows the dashboard, if enabled\n$app->get('/', [\n 'middleware' => \\Nord\\ImageManipulationService\\Http\\Middleware\\DashboardPageEnabledMiddleware::class,\n 'uses' => 'Da... | php | chosen |
[
{
"from": "system",
"value": "Validate using is_numeric instead of is_int\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Configuration\\Validators;\n\nuse Adldap\\Configuration\\ConfigurationException;\n\nclass IntegerValidator extends Validator\n{\n /**\n * {@inheritdoc}\n... | php | chosen |
[
{
"from": "system",
"value": "Update service provider to use bindShared.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Support;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\... | php | chosen |
[
{
"from": "system",
"value": "Add logic to get request to return error if key not found\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UserControlSkeleton;\n\nclass Requests\n{\n\tprotected $data;\n\n\tpublic function __construct()\n\t{\n\t\tforeach ($_POST as $key => $value) {\n\t\t\t$th... | php | chosen |
[
{
"from": "system",
"value": "Clone object before modifying it\n\nfixes replacements done multiple times\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Assets_Dependency_Decorator_StringReplace extends Kwf_Assets_Dependency_Decorator_Abstract\n{\n private $_replacements;\n public func... | php | chosen |
[
{
"from": "system",
"value": "Add a newline after each imported asset, fixes LESS compile errors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pipe;\n\nclass ImportProcessor extends \\MetaTemplate\\Template\\Base\n{\n const IMPORT_PATTERN = '/\n @import[\\s]*(?:\"([^\"]+)\"|url... | php | chosen |
[
{
"from": "system",
"value": "Fix bookmark adding and removing\n"
},
{
"from": "human",
"value": "<?php\n\nclass Bookmarks_Controller extends List_Controller {\n\n protected $view = 'interface.bookmarks';\n\n protected $viewdata = array (\n 'recordToolbarView' => 'components.res... | php | chosen |
[
{
"from": "system",
"value": "Add blank line before return\n"
},
{
"from": "human",
"value": "<?php\n\nclass Ebanx_Gateway_Model_Import extends Mage_Directory_Model_Currency_Import_Abstract\n{\n\tprotected $_messages = array();\n\t/**\n\t * @var \\Ebanx\\Benjamin\\Facade\n\t */\n\tprotected $eba... | php | chosen |
[
{
"from": "system",
"value": "Test the replacement method too"
},
{
"from": "human",
"value": "<?php\n\nnamespace tests\\Http\\Discovery;\n\nuse Http\\Discovery\\Exception\\NotFoundException;\nuse Http\\Discovery\\Psr17FactoryDiscovery;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Http\\Message\... | php | chosen |
[
{
"from": "system",
"value": "Change permissions for user search\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Policies;\n\nuse App\\User;\nuse App\\APIUser;\nuse Illuminate\\Auth\\Access\\HandlesAuthorization;\nuse Illuminate\\Http\\Request;\n\nclass APIUserPolicy\n{\n use Handl... | php | chosen |
[
{
"from": "system",
"value": "Add some sensible defaults to slide image upload field\n"
},
{
"from": "human",
"value": "<?php\n\nclass CarouselSlide extends DataObject {\n\tprivate static $db = array(\n\t\t'Title' => 'Varchar(100)',\n\t\t'External' => 'Boolean',\n\t\t'ExternalLink' => 'Varchar(2... | php | chosen |
[
{
"from": "system",
"value": "Use proper namespace for package\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Widget;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass WidgetServiceProvider extend... | php | chosen |
[
{
"from": "system",
"value": "BAP-3243: Create chart view layer\n- CR changes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ChartBundle\\Model;\n\nuse Oro\\Bundle\\ChartBundle\\Model\\Data\\DataInterface;\n\nclass ChartView\n{\n /**\n * @var \\Twig_Environment\n *... | php | chosen |
[
{
"from": "system",
"value": "Set controller to readonly. We don't allow read access to search results.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version\t\t$Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Search\n * @copyright\tCopyright (C) 2011 Timble CVBA and... | php | chosen |
[
{
"from": "system",
"value": "Return user and tutor table\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rayku\\ApiBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\nclass TutorRepository extends EntityRepository\n{\n\tpublic function findOnlineTutors($expire_online)\n\t{\n\t\t$qu... | php | chosen |
[
{
"from": "system",
"value": "Make small article block comment links clickable\n"
},
{
"from": "human",
"value": " <?php $comments = $article->getNumValidatedComments(); ?>\n <div class=\"article-block section <?php echo $article->getCategory()->getCat(); ?>\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix newlines on monsters' descriptions.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Presenters;\n\nclass Monster extends \\Robbo\\Presenter\\Presenter\n{\n function presentSymbol() {\n list($fg, $bg) = colorPairToCSS($this->object->color);\n return sp... | php | chosen |
[
{
"from": "system",
"value": "Complete the information for the help-plugin\n"
},
{
"from": "human",
"value": "<?php\ndate_default_timezone_set('UTC');\n/**\n *\n */\nclass time extends Script\n{\n protected $helpMessage = 'Returns the actual UTC time';\n\n public function run()\n {\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.