conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Check for config file if it already exists.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pharam\\Console\\Commands;\n\nuse Pharam\\Application;\nuse Pharam\\Console\\Command;\nuse Illuminate\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Console\\Input\\... | php | chosen |
[
{
"from": "system",
"value": "Fix isSuccessful method not exists"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Alipay\\Message;\n\nuse Omnipay\\Common\\Message\\AbstractResponse;\n\nclass RefundNotifyResponse extends AbstractResponse\n{\n\n /**\n * @var ExpressCompletePurch... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Added some PHPDoc tags and changed some formats.\"\n\nThis reverts commit e07e8e5c97683a88c2c551d5190cb2d1ebf09845."
},
{
"from": "human",
"value": "<?php\n/**\n * Initialize the router and set routes<br>\n * ==================<br>\n * New routes are added ... | php | chosen |
[
{
"from": "system",
"value": "Allow more types, as the helper allows more\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Becklyn\\RadBundle\\Model;\n\n/**\n * Trait for doctrine models that use a sortable handler\n */\ntrait SortableModelTrait\n{\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Allow string + params as builder\n\nFixes #2\n"
},
{
"from": "human",
"value": "<?php namespace Barryvdh\\StackMiddleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Container\\Container;\n\nclass Wrapper\n{\n /** @var Container $container */\n protected $con... | php | chosen |
[
{
"from": "system",
"value": "Remove empty lines at end of file\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can redistribute it and... | php | chosen |
[
{
"from": "system",
"value": "Add TODO for OAuth workaround.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Phragile;\n\nuse GuzzleHttp\\Client;\n\nclass PhabricatorOAuth {\n\tpublic function requestAccessToken($authCode)\n\t{\n\t\treturn with(new Client)->get($this->accessTokenURL($authCod... | php | chosen |
[
{
"from": "system",
"value": "Check returns logged in user array.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Auth {\n\tpublic $session;\n\n\tpublic function __construct() {\n\t\t$this->session = new \\SlimSession\\Helper;\n\t}\n\n\tpublic function login( $user ) {\n\t\t$this->session->set... | php | chosen |
[
{
"from": "system",
"value": "Allow term to be specified via get parameter\n"
},
{
"from": "human",
"value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * This file contains the Search controller\n */\n\n/**\n * The controller for the search pages\n */\ncla... | php | chosen |
[
{
"from": "system",
"value": "Use option instead of argument\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @copyright Frederic G. Østby\n * @license http://www.makoframework.com/license\n */\n\nnamespace mako\\application\\commands\\migrations;\n\nuse mako\\application\\commands\\migra... | php | chosen |
[
{
"from": "system",
"value": "Implement begin & end functionality for Trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Benrowe\\Laravel\\Widgets\\Traits;\n\n/**\n * Provides the begin & end functionality for the Widget factory\n *\n * @package Benrowe\\Laravel\\Widgets\n */\ntrait Beg... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with formatting 0 bytes file size\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\nnamespace Dms\\Web\\Laravel\\Util;\n\n/**\n * The file size formatter\n *\n * @author Elliot Levin <elliotlevin@hotmail.com>\n */\nclass FileSizeFormat... | php | chosen |
[
{
"from": "system",
"value": "Extend DomainException instead of InvalidArgumentException\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AmpProject\\Exception;\n\nuse InvalidArgumentException;\n\n/**\n * Exception thrown when an invalid option value was provided.\n *\n * @package ampprojec... | php | chosen |
[
{
"from": "system",
"value": "Add HttpCache to web application\n"
},
{
"from": "human",
"value": "<?php\nnamespace Fyuze\\Kernel\\Application;\n\nuse Fyuze\\Http\\Kernel;\nuse Fyuze\\Http\\Request;\nuse Fyuze\\Http\\Response;\nuse Fyuze\\Kernel\\Fyuze;\nuse Symfony\\Component\\HttpKernel\\Contro... | php | chosen |
[
{
"from": "system",
"value": "Fix CSP header, but Firefox doen't work\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CSP\n *\n * @author Kenji Suzuki <https://github.com/kenjis>\n * @license MIT License\n * @copyright 2014 Kenji Suzuki\n * @link https://github.com/kenjis/php-csp... | php | chosen |
[
{
"from": "system",
"value": "Add Parameters to Route Closures\n\nUse 'HttpKernel\\Controller\\ControllerResolver::getArguments' to get the\nparameter arguments mapped properly to the closure function arguments\n\nFunction arguments must have the same name as the route parameters but\ncan be in any order.\n... | php | chosen |
[
{
"from": "system",
"value": "Normalize all fields for live slot\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dota2Api\\Models;\n\nclass LiveSlot extends Slot\n{\n /**\n * @var int\n */\n protected $_ultimate_state;\n /**\n * @var int\n */\n protected $_ultim... | php | chosen |
[
{
"from": "system",
"value": "Fix maze utility test script\n\n"
},
{
"from": "human",
"value": "<?php\nrequire('maze_utility.php');\n\nassert(coordinate_to_column('a1n') == 0);\nassert(coordinate_to_column('b3s') == 1);\nassert(coordinate_to_column('c5e') == 2);\nassert(coordinate_to_column('d1s... | php | chosen |
[
{
"from": "system",
"value": "Write idea for rest app\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Patsura Dmitry @ovr <talk@dmtry.me>\n */\n\n/**\n * Class IndexController\n * @Path(\"/api/\")\n */\nclass IndexController extends \\Owl\\Rest\\Controller\n{\n /**\n * @Get\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove experimental migration that called Artisan command\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass ImportAllCategori... | php | chosen |
[
{
"from": "system",
"value": "Move register default widget to app/Config/Hurad/default_widgets.php"
},
{
"from": "human",
"value": "<?php\n\nHuradWidget::registerSidebar(array('name' => __('Right Sidebar')));\nHuradWidget::registerSidebar(array('name' => __('Left Sidebar')));\n\nHuradWidget::reg... | php | chosen |
[
{
"from": "system",
"value": "Allow moderators and admins to modify replies\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Policies;\n\nuse App\\Models\\Reply;\nuse App\\User;\n\nclass ReplyPolicy\n{\n const CREATE = 'create';\n const UPDATE = 'update';\n const DELETE = 'del... | php | chosen |
[
{
"from": "system",
"value": "Fix conflict with Navigation plugin migration\n"
},
{
"from": "human",
"value": "<?php\nnamespace verbb\\navigation\\migrations;\n\nuse verbb\\navigation\\elements\\Node;\n\nuse Craft;\nuse craft\\db\\Migration;\n\nclass m181113_000000_add_paginationNode extends Mig... | php | chosen |
[
{
"from": "system",
"value": "Fix file entropy generator: throw exception if file contents empty.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Sesshin library.\n *\n * (c) Przemek Sobstel <http://sobstel.org>\n *\n * This source file is subject to the MIT license that is... | php | chosen |
[
{
"from": "system",
"value": "Use assertEquals() instead of assertStringEqualsFile() in order to compare XML documents with C14N\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * F... | php | chosen |
[
{
"from": "system",
"value": "Remove comment line / add whitespace.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ADesigns\\CalendarBundle\\Tests\\Fixtures\\EventListener;\n\nuse ADesigns\\CalendarBundle\\Entity\\EventEntity;\nuse ADesigns\\CalendarBundle\\Event\\CalendarEvent;\n\n/**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Check for existence of $_GET keys\n\n`$dir` may for example very well not get passed at well.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n* ownCloud - ajax frontend\n*\n* @author Robin Appelman\n* @copyright 2010 Robin Appelman icewind1991@gmail.com\n*\n* This ... | php | chosen |
[
{
"from": "system",
"value": "Fix icon class of share this page services\n\nUse same icon class with social network icon classes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Sharing\\ShareThisPage;\n\nclass ServiceList\n{\n protected static function getServices()\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix the final assertion API upgrade for PHPUnit\n"
},
{
"from": "human",
"value": "<?php\nuse Maghead\\Utils\\ArrayUtils;\n\n/**\n * @group utils\n */\nclass ArrayUtilsTest extends PHPUnit\\Framework\\TestCase\n{\n public function testAssocArrayCheck()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove PHP 5.4 notice since Digster is installed with composer\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Plugin Name: Digster\n * Description: Twig templates for WordPress\n * Author: Fredrik Forsmo\n * Author URI: https://forsmo.me/\n * Plugin URI: https:... | php | chosen |
[
{
"from": "system",
"value": "Enable connection to Heroku/ClearDB database\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: raynald\n * Date: 7/29/15\n * Time: 4:54 PM\n */\n\n// This file contains the database access information.\n// This file also establishes a ... | php | chosen |
[
{
"from": "system",
"value": "Allow captured groups in redirect destination URLs\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace ATPCore\\Model;\r\n\r\nclass Redirect extends \\ATP\\ActiveRecord\r\n{\r\n\tpublic static function redirect($path, $query)\r\n\t{\r\n\t\t$request = \"{$path}... | php | chosen |
[
{
"from": "system",
"value": "Fix dataProvider - it was never called\n\nIt's a bit hacky, I will try to think about a better solution.\nUntil than it's better to have the bug fixed...\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpRQ;\n\nuse Nette\\Utils\\Finder;\n\n/**\n * @author Jak... | php | chosen |
[
{
"from": "system",
"value": "Remove last name requirement in save user request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\n\nclass SaveUserRequest extends Request\n{\n /**\n * Determine if the user is authorized to make... | php | chosen |
[
{
"from": "system",
"value": "Fix timestamps handling in passenger pivot table\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Travel extends Model\n{\n protected $dates = [\"created_at\", \"updated_at\", \"departure_date\"];\n... | php | chosen |
[
{
"from": "system",
"value": "Allow MySQL versions > 5 (like MariaDB)\n"
},
{
"from": "human",
"value": "<?php\n\nfunction dbconnect() {\n global $hostname,$database,$dbuser,$dbpass,$db;\n $db = mysql_connect($hostname,$dbuser,$dbpass) or die(\"Database error\");\n mysql_sel... | php | chosen |
[
{
"from": "system",
"value": "Change structure of the 'resource' file according to new routing\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Resources. Each consists of:\n * 'resource' - url on which the data you'll be requested\n * 'controller' - name of the controller\n * 'action' - name o... | php | chosen |
[
{
"from": "system",
"value": "Make IRC Bot connect on both successful end of MOTD (376) and non-successful MOTD (422)\n\nSummary: http://www.networksorcery.com/enp/protocol/irc.htm\n\nTest Plan: augment code with an additional debug line (phlog('hi');) so I can see my case was trigged and it will fall throu... | php | chosen |
[
{
"from": "system",
"value": "Remove deprecated usage of TreeBuilder on Symfony 4\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the EzCoreExtraBundle package.\n *\n * (c) Jérôme Vieilledent <jerome@vieilledent.fr>\n *\n * For the full copyright and license information, ... | php | chosen |
[
{
"from": "system",
"value": "Add flag for insert UTF-8 BOM symbol in start CSV-file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EasyCSV;\n\nabstract class AbstractBase\n{\n protected $handle;\n protected $delimiter = ',';\n protected $enclosure = '\"';\n\n public function ... | php | chosen |
[
{
"from": "system",
"value": "[DI] Remove scalar typehint in class used in test case\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 vie... | php | chosen |
[
{
"from": "system",
"value": "Fix event import from new website\n\nAccounts for a field rename in A17's internal \"Ticket #1007\", which\nis currently commit 43e067d28c21e4d8e7e999aea04543754e9194b0.\n\nI say \"currently\" because we might end up rewriting the commit history\nof that repo to flatten it out ... | php | chosen |
[
{
"from": "system",
"value": "Fix search:audit to work with \"doc\"\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Elasticsearch;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass SearchAudit extends BaseCommand\n{\n\n protected $signa... | php | chosen |
[
{
"from": "system",
"value": "Add a statement that info search is not currently implemented\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Repositories;\n\nuse App\\Work;\nuse App\\Type;\nuse DB;\nuse Response;\n\nclass WorksRepository {\n\n\n /**\n * Queries database for all works b... | php | chosen |
[
{
"from": "system",
"value": "Save filename as instance variable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UoMCS\\PNG;\n\nclass ImageFile extends Image\n{\n public function __construct($filename)\n {\n if (!file_exists($filename))\n {\n throw new Exception('File does not... | php | chosen |
[
{
"from": "system",
"value": "Add Redis enable/disable commands tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pantheon\\Terminus\\Tests\\Functional;\n\nuse Pantheon\\Terminus\\Tests\\Traits\\LoginHelperTrait;\nuse Pantheon\\Terminus\\Tests\\Traits\\SiteBaseSetupTrait;\nuse Pantheon... | php | chosen |
[
{
"from": "system",
"value": "Update comments to better explain what everything does"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL);\nrequire 'vendor/autoload.php';\n\n// Get your credentials from a safe place when using in production\n$username = 'your_username';\n$password = ... | php | chosen |
[
{
"from": "system",
"value": "Tweak for PSR-2 compliance (newline at EOF)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SimpleSAML\\Auth;\n\nuse SimpleSAML_Auth_Source;\n\ninterface SourceFactory\n{\n /**\n * @param array $info\n * @param array $config\n * @return SimpleSA... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Bugfix: cross domain error\"\n\nThis reverts commit 401624dfb2921995dd75e67b3cbfba9e181057f2.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: HD MAIL\n * Description: This is a test for sending via ajax and wordpress wp-mail for the Happy-Dev... | php | chosen |
[
{
"from": "system",
"value": "Change to nameId for the userlogin test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Tests\\Connections;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\n\n/**\n * @file\n * Project: orcid\n * File: RepositoryTest.php\n */\nclass U... | php | chosen |
[
{
"from": "system",
"value": "Split up the external url validation in a valid and an invalid test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ForkCMS\\Bundle\\CoreBundle\\Tests\\Validator;\n\nuse ForkCMS\\Bundle\\CoreBundle\\Validator\\UrlValidator;\nuse PHPUnit\\Framework\\TestCase;\n... | php | chosen |
[
{
"from": "system",
"value": "CORE-181: Fix the require of Error handling pretty printer so that it works independant of autoloading\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once dirname( __FILE__ ) . \"/pretty printer/PrettyPrinter.php\";\nrequire_once dirname( __FILE__ ) . \"/pretty... | php | chosen |
[
{
"from": "system",
"value": "Fix event leaderboard total test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Konsulting\\JustGivingApiSdk\\Tests\\ResourceClients;\n\nclass LeaderboardTest extends ResourceClientTestCase\n{\n /** @test */\n public function it_retrieves_the_charity_le... | php | chosen |
[
{
"from": "system",
"value": "feat(actions): Use base controller methods to simplify code\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Adegoke Obasa <goke@cottacush.com>\n */\n\nnamespace CottaCush\\Yii2\\Action;\n\nuse CottaCush\\Yii2\\Controller\\BaseController;\nuse CottaCush\\Yi... | php | chosen |
[
{
"from": "system",
"value": "Fix rollback of 50 hour check migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass Add50HourCheckAnd90DayCheck extends Migration\n{\n /**\n * Run the migr... | php | chosen |
[
{
"from": "system",
"value": "Allow add external link to left menu bar\n"
},
{
"from": "human",
"value": "@if(Admin::user()->visible($item['roles']))\n @if(!isset($item['children']))\n <li>\n <a href=\"{{ admin_base_path($item['uri']) }}\"><i class=\"fa {{$item['icon']}}\"><... | php | chosen |
[
{
"from": "system",
"value": "Enable Google Analytics for the time being.\n\nCheck out GoAccess as an alternative!\n"
},
{
"from": "human",
"value": "<?php\n\n/* -----------------------------------------------------------------------------\nAnalytics, tracking, site stats\n----------------------... | php | chosen |
[
{
"from": "system",
"value": "Make sure URI handler plays nice with json_encode\n"
},
{
"from": "human",
"value": "<?php\n\nclass GPURIControllerHandler extends GPControllerHandler {\n\n public function handle($method, array $args) {\n $index = GPConfig::get()->use_index_php ? '/index.php' :... | php | chosen |
[
{
"from": "system",
"value": "Add parent loading of beforeFilter\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CakeManager (http://cakemanager.org)\n * Copyright (c) http://cakemanager.org\n *\n * Licensed under The MIT License\n * For full copyright and license information, please see the L... | php | chosen |
[
{
"from": "system",
"value": "Fix broken site due to FreeGeoIP being down\n"
},
{
"from": "human",
"value": "<?php namespace GPUG\\Http\\ViewComposers;\n\nuse Copyrighter\\CopyrighterFactory;\nuse Illuminate\\Contracts\\View\\View;\n\nclass LayoutComposer\n{\n public function compose(View $vi... | php | chosen |
[
{
"from": "system",
"value": "Fix a old Aurora\\Config move to Aurora\\Console\\Config bugs\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Aurora - A HTTP Application Server of PHP Script\n *\n * @author panlatent@gmail.com\n * @link https://github.com/panlatent/aurora\n * @license https:... | php | chosen |
[
{
"from": "system",
"value": "Drop support for wordpress forum"
},
{
"from": "human",
"value": "<?php\nif (!defined('ABSPATH')) {\n exit('restricted access');\n}\n?>\n<h3\n ><span><?php _e('Need Help ?', 'woo-poly-integration'); ?></span>\n</h3>\n\n<div class=\"inside\">\n <p>\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix event listener test after propagation change\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright (c)\n * Kirill chEbba Chebunin <iam@chebba.org>\n *\n * This source file is subject to the MIT license that is bundled\n * with this package in the file LICEN... | php | chosen |
[
{
"from": "system",
"value": "Add a static methods to track current level of class hierarchy\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Go! AOP framework\n *\n * @copyright Copyright 2013, Lisachenko Alexander <lisachenko.it@gmail.com>\n *\n * This source file is subject to the license th... | php | chosen |
[
{
"from": "system",
"value": "Resolve issue with the template adapter name\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @see https://github.com/zendframework/zend-expressive for the canonical source repository\n * @copyright Copyrigh... | php | chosen |
[
{
"from": "system",
"value": "Support all message sources known at laravel docs"
},
{
"from": "human",
"value": "@if (Session::has('flash_notification') && !empty(Session::get('flash_notification')))\n\t@if (Session::has('flash_notification.overlay'))\n\t\t@include('laravel-notifications::bootst... | php | chosen |
[
{
"from": "system",
"value": "Remove \"1\" from possible $alphabet\n\nRemove \"1\" from possible $alphabet. Fixes #1"
},
{
"from": "human",
"value": "<?php\nnamespace Allty\\Utils;\n\nclass Base58 {\n \n static $alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';\n ... | php | chosen |
[
{
"from": "system",
"value": "Use class names in service provider.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DvK\\Laravel\\Vat;\n\nuse Illuminate\\Contracts\\Container\\Container;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Facades\\Validator as RequestValida... | php | chosen |
[
{
"from": "system",
"value": "Update migration file for spatie/medialibrary\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateMediaTable extends Migr... | php | chosen |
[
{
"from": "system",
"value": "Reduce code duplication in Booloan Ddl column class\n\nPurposely ignore $isNullable from parent by resetting it in\ngetExpressionData()\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com... | php | chosen |
[
{
"from": "system",
"value": "Update Icebreath to remove \"Loading...\" messages.\n"
},
{
"from": "human",
"value": "<?php\nnamespace PVL\\RadioAdapter;\n\nuse \\Entity\\Station;\n\nclass IceBreath extends AdapterAbstract\n{\n /* Process a nowplaying record. */\n protected function _proces... | php | chosen |
[
{
"from": "system",
"value": "Fix Exception message for php5.5\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpGitHooks\\Application\\PhpCsFixer;\n\nfinal class InvalidPhpCsFixerConfigDataException extends \\Exception\n{\n protected $message = 'Invalid entry for php-cs-fixer in your ... | php | chosen |
[
{
"from": "system",
"value": "Add the admin group to the group list data.\n\nFixes the admin group disappearing from the list when updating the display as the result of a search.\n\nThis group data should probably be managed on the page entirely by the javascript GroupList object, but this seems like the in... | php | chosen |
[
{
"from": "system",
"value": "Mark diviner atoms as closed in search index\n\nSummary: Ref T4558. If a Diviner atom is a ghost (i.e. the underlying source code has been removed), mark it as closed in the search index.\n\nTest Plan: Searched for a ghost atom in global searcn and saw the results show \"Closed... | php | chosen |
[
{
"from": "system",
"value": "Swap seeding positions of known/test user.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Faker\\Factory as Faker;\nuse eien\\User;\n\nclass UserSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @re... | php | chosen |
[
{
"from": "system",
"value": "Make selected business link only visible if set"
},
{
"from": "human",
"value": "<li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">{{ trans('app.nav.user.business.menu') }} <b class=\"caret\"></b></a>\n <ul class=\"drop... | php | chosen |
[
{
"from": "system",
"value": "Add new command. Ideally this class should load all commands in this package which implement CommandInterface. Probably should be seperate factories for each command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MageMocker\\Command;\n\nuse Symfony\\Component... | php | chosen |
[
{
"from": "system",
"value": "[pH7Tpl][Predefined] Split code into a describable method\n"
},
{
"from": "human",
"value": "<?php\n/***************************************************************************\n * @title PH7 Template Engine\n * @desc Define functions (and hel... | php | chosen |
[
{
"from": "system",
"value": "Fix fatal error in php 7.0.6+: Can't mix interface and abstract\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\nnamespace Phan\\Database;\n\n/**\n * Objects implementing this interface can be\n * read from and written to a SQLite3 database\n */\ni... | php | chosen |
[
{
"from": "system",
"value": "Allow meta value to be NULL\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\Members\\Storage\\Schema\\Table;\n\nuse Bolt\\Storage\\Database\\Schema\\Table\\BaseTable;\n\n/**\n * Account meta table.\n *\n * @author Gawain Lynch <gawain.ly... | php | chosen |
[
{
"from": "system",
"value": "Fix how the config is loaded in laravel 4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter;\n\nclass Laravel4ServiceProvider extends CarpenterServiceProvider\n{\n /**\n * Bootstrap the application events.\n *\n * @retur... | php | chosen |
[
{
"from": "system",
"value": "Increase compatibility with Symfony 4.3 by using proper order of parameters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bernard;\n\nuse Bernard\\Event\\EnvelopeEvent;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\n\nclass Producer\n{\... | php | chosen |
[
{
"from": "system",
"value": "Replace eloquent by the model with the good namespace\n"
},
{
"from": "human",
"value": "<?php namespace Devfactory\\Media\\Models;\n\nuse Illuminate\\Support\\Facades\\URL;\n\nclass Media extends \\Eloquent {\n\n protected $table = 'media';\n\n protected $fillabl... | php | chosen |
[
{
"from": "system",
"value": "Add support for plugin pages, increase priority\n\nIssues:\r\nThis helper didn't work for `'tools.php?page=wp-migrate-db'` or 'admin.php?page=theseoframework-settings'.\r\nThe SEO Framework added it's menu item with a higher priority than this helper."
},
{
"from": "hum... | php | chosen |
[
{
"from": "system",
"value": "Add resouces and serialization groups for Order and OrderItem\n"
},
{
"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... | php | chosen |
[
{
"from": "system",
"value": "Copy category on new task when create a task from sub-task\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kanboard\\Model;\n\nuse Kanboard\\Core\\Base;\n\n/**\n * Class SubtaskTaskConversionModel\n *\n * @package Kanboard\\Model\n * @author Frederic Guillot\... | php | chosen |
[
{
"from": "system",
"value": "Change project migration table name\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateProjectIndividualTable extends Migration\n{\n /**\n * Run the migrati... | php | chosen |
[
{
"from": "system",
"value": "Rename endpoint from active to available\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ContentTranslator;\n\nclass WpApi\n{\n public function __construct()\n {\n add_action('rest_api_init', array($this, 'endpoints'));\n }\n\n public functi... | php | chosen |
[
{
"from": "system",
"value": "Fix typo on constructor method name\n\nrefs #31\n"
},
{
"from": "human",
"value": "<?php\nnamespace Pragma\\Router;\n\nclass RouterException extends \\Exception{\n\n\tconst GET_CONFIG_ERROR = 1;\n\tconst POST_CONFIG_ERROR = 2;\n\tconst DELETE_CONFIG_ERROR = 3;\n\tco... | php | chosen |
[
{
"from": "system",
"value": "Trim trailing slashes from the url before caclulating the prended path\n\nMost sites don't have trailing slashes, but one did ...\n"
},
{
"from": "human",
"value": "<?// Just the slug field for the display module?>\n\n<? \n$url_link = 'deep link';\nif (!empty($item-... | php | chosen |
[
{
"from": "system",
"value": "Fix cast spell request rule\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Http\\Requests\\Dominion\\Actions;\n\nuse OpenDominion\\Http\\Requests\\Dominion\\AbstractDominionRequest;\n\nclass CastSpellRequest extends AbstractDominionRequest\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Return reference from offset get\n"
},
{
"from": "human",
"value": "<?php\n\n\n\tnamespace LiftKit\\Session;\n\n\tuse LiftKit\\Session\\Exception\\Session as SessionException;\n\tuse ArrayAccess;\n\n\n\tclass Session implements ArrayAccess\n\t{\n\n\n\t\tpublic funct... | php | chosen |
[
{
"from": "system",
"value": "Allow updating the default Vercel authURL"
},
{
"from": "human",
"value": "<?php\n\nnamespace SocialiteProviders\\Vercel;\n\nuse SocialiteProviders\\Manager\\OAuth2\\AbstractProvider;\nuse SocialiteProviders\\Manager\\OAuth2\\User;\n\nclass Provider extends Abstract... | php | chosen |
[
{
"from": "system",
"value": "Use product_id stored in order item instead of getting it from product instance.\n"
},
{
"from": "human",
"value": "<?php\n\nclass SPM_ShopyMind_DataMapper_OrderItem\n{\n public function format(Mage_Sales_Model_Order_Item $orderItem)\n {\n $product = $o... | php | chosen |
[
{
"from": "system",
"value": "Fix na edição do usuário\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mixdinternet\\Admix\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass EditUsersRequest extends FormRequest\n{\n public function rules()\n {\n return... | php | chosen |
[
{
"from": "system",
"value": "Use constants with \"getRepository()\" methods.\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 copyrig... | php | chosen |
[
{
"from": "system",
"value": "Add disabled attribute to checkboxes\n\nbecause these checkboxes are not meant to be clicked"
},
{
"from": "human",
"value": "<?php\n\nfunction convert_tasks($text) {\n\t$text = preg_replace('/^\\s*<li>\\s*(<p>)?\\s*\\[x\\]/mi', '<li style=\"list-style-type:none;\">... | php | chosen |
[
{
"from": "system",
"value": "Allow accesing already mocked methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mocka;\n\nclass MethodMockCollection {\n\n /** @var MethodMock[] */\n private $_mockedMethods = array();\n\n /**\n * @param string $name\n * @return MethodMo... | php | chosen |
[
{
"from": "system",
"value": "Refactor part of 'ensureAuthenticated' into separate 'failNotSignedIn'\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * MovieContentFilter (https://www.moviecontentfilter.com/)\n * Copyright (c) delight.im (https://www.delight.im/)\n * Licensed under the GNU AGPL ... | php | chosen |
[
{
"from": "system",
"value": "Make config file reader more defensive\n"
},
{
"from": "human",
"value": "<?php\r\nnamespace Whm\\Opm\\Client\\Config;\r\n\r\nuse Symfony\\Component\\Yaml\\Yaml;\n\r\nclass Config\r\n{\r\n\r\n private $config = array();\r\n\r\n public function __construct (array $... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.