conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove bug in unit test.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace estvoyage\\data\\tests\\units\\consumer;\n\nrequire __DIR__ . '/../../runner.php';\n\nuse\n\testvoyage\\data\\tests\\units,\n\testvoyage\\data,\n\tmock\\estvoyage\\data as mockOfData\n;\n... | php | chosen |
[
{
"from": "system",
"value": "Correct the path to the config file\n"
},
{
"from": "human",
"value": "<?php\nnamespace Thatdamnqa\\MancMetFeed;\nrequire_once 'config/config.php';\n\nuse Thatdamnqa\\MancMetFeed\\Services\\TwitterNotifierClientFactory;\nrequire __DIR__ . '/../vendor/autoload.php';\... | php | chosen |
[
{
"from": "system",
"value": "Declare vars before using it\n\nIf there are not tests, then an exception occurs:\r\n\r\n```\r\nPHP Notice: Undefined variable: methods in PROJECT/vendor/jolicode/asynit/src/Parser/TestsFinder.php on line 56\r\nPHP Fatal error: Uncaught TypeError: Return value of Asynit\\Pars... | php | chosen |
[
{
"from": "system",
"value": "Add bannerLink class to links"
},
{
"from": "human",
"value": "<?php\n// use this to display a message across the whole site; should be used sparingly.\n?>\n\n<div class=\"alert alert-info text-center\">\n<strong>LATEST NEWS:</strong><br>\nThe <a href=\"/barcrawl\">... | php | chosen |
[
{
"from": "system",
"value": "Add country code to country table.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateCountryTable extends Migration\n{\n /**\n * Run the migrations.\n ... | php | chosen |
[
{
"from": "system",
"value": "Use updated response from wings\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pterodactyl\\Transformers\\Api\\Client;\n\nuse Illuminate\\Support\\Arr;\n\nclass StatsTransformer extends BaseClientTransformer\n{\n public function getResourceName(): string\n... | php | chosen |
[
{
"from": "system",
"value": "Fix attempt for invalid/missing user agent string\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Common;\n\n/**\n * Simple wrapper for the very simple parse_user_agent() function\n */\nclass Browser {\n\n protected $useragent;\n\n public function __... | php | chosen |
[
{
"from": "system",
"value": "Fix checkprovider - parameters on service provider missing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sympla\\Auth\\Laravel;\n\nuse GuzzleHttp\\Client as Guzzle;\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\nuse Sympla\\Auth\\Laravel\... | php | chosen |
[
{
"from": "system",
"value": "Use Throwable and fixed throws annotation"
},
{
"from": "human",
"value": "<?php\nnamespace League\\Tactician\\Doctrine\\ORM;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse League\\Tactician\\Command;\nuse Error;\nuse Exception;\nuse League\\Tactician\\Middlewar... | php | chosen |
[
{
"from": "system",
"value": "Add unicode to image helpers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HeyUpdate\\EmojiBundle\\Twig\\Extension;\n\nuse HeyUpdate\\Emoji\\Emoji;\n\nclass EmojiExtension extends \\Twig_Extension\n{\n protected $emoji;\n\n public function __construct(... | php | chosen |
[
{
"from": "system",
"value": "Remove logging code from event\n"
},
{
"from": "human",
"value": "<?php\nclass ControllerExtensionModuleV2pagecache extends Controller {\n public function index() {\n ;\n }\n public function set_cookie() {\n $fp=fopen(\"/tmp/sclog.txt\",\"a\");... | php | chosen |
[
{
"from": "system",
"value": "Add doc to session class method\n"
},
{
"from": "human",
"value": "<?php\n namespace Library;\n\n class Session\n {\n /**\n * Default session expire is 1 day\n *\n * @var int\n */\n private $expire = 86400;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with incorrect case in path, damn you HFS\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pheasant\\Tests;\n\nclass EnumeratorTest extends \\Pheasant\\Tests\\MysqlTestCase\n{\n public function setUp()\n {\n parent::setUp();\n }\n\n p... | php | chosen |
[
{
"from": "system",
"value": "Disable secp256k1 tests on hhvm\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests;\n\nuse BitWasp\\Bitcoin\\Bitcoin;\nuse BitWasp\\Bitcoin\\Crypto\\EcAdapter\\PhpEcc;\nuse BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Secp256k1;\n\nclass AbstractT... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong Zed in Yves usage.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Spryker Demoshop.\n * For full license information, please view the LICENSE file that was distributed with this source code.\n */\n\nnamespace Pyz\\Yves\\Catego... | php | chosen |
[
{
"from": "system",
"value": "Fix unit tests, they were not working because of namespace changes and\nclass refactoring.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ZendTest\\Barcode\\Object\\TestAsset;\n\nclass BarcodeTest extends \\Zend\\Barcode\\Object\\AbstractObject\n{\n\n protec... | php | chosen |
[
{
"from": "system",
"value": "Make currency code parameter optional\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BinSoul\\Common\\I18n;\n\n/**\n * Formats decimal numbers.\n */\ninterface NumberFormatter\n{\n /**\n * Formats a decimal number.\n *\n * @param float $value\n... | php | chosen |
[
{
"from": "system",
"value": "Use correct path for index page\n\nsee #301\n"
},
{
"from": "human",
"value": "<?php\n\nOC::$CLASSPATH['OC_RoundCube_AuthHelper'] = OC_App::getAppPath('roundcube') . '/lib/RoundCubeAuthHelper.class.php';\n\n$this->create('roundcube_refresh', '/refresh')->post()->act... | php | chosen |
[
{
"from": "system",
"value": "Make tests work with php 5.4\n"
},
{
"from": "human",
"value": "<?php\n\nuse PHPUnit\\Framework\\TestCase;\nuse Ratchet\\Client\\Connector;\nuse React\\EventLoop\\Factory;\nuse React\\Promise\\RejectedPromise;\nuse React\\Socket\\ConnectorInterface as ReactConnector... | php | chosen |
[
{
"from": "system",
"value": "Upgrade menu widget to use yiistrap\n"
},
{
"from": "human",
"value": "<?php\n\nYii::import('bootstrap.widgets.TbMenu');\n\nclass MlLanguageMenu extends TbMenu\n{\n\t/**\n\t * Initializes the widget.\n\t */\n\tpublic function init()\n\t{\n\t\t$languages = Yii::app()... | php | chosen |
[
{
"from": "system",
"value": "Remove cache dir before command execute\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Czogori\\DamiBundle\\Helper;\n\nuse Symfony\\Component\\Finder\\Finder;\nuse Symfony\\Component\\Filesystem\\Filesystem;\n\nclass PreparationMigrationDirectory\n{\n priv... | php | chosen |
[
{
"from": "system",
"value": "Add provides since this service is deferred.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Support;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass SupportServiceP... | php | chosen |
[
{
"from": "system",
"value": "Add missing isset() when checking for generators\n"
},
{
"from": "human",
"value": "<?php\nnamespace Imbo\\EventListener\\AccessToken;\n\nuse Imbo\\EventListener\\AccessToken\\AccessTokenGenerator,\n Imbo\\EventListener\\AccessToken\\SHA256;\n\nclass MultipleAcce... | php | chosen |
[
{
"from": "system",
"value": "Update shoppingcart setup to use updated tax calculation\n"
},
{
"from": "human",
"value": "<?php\n\n\nclass CustomisableProductShoppingCart extends Extension {\n\n /**\n * Augment setup to get item price\n *\n */\n public function augmentSetup() {... | php | chosen |
[
{
"from": "system",
"value": "Update notes:\n- typo errors fixed"
},
{
"from": "human",
"value": "<?php\n\nnamespace EXS\\GeoipProvider\\Providers;\n\nuse Pimple\\ServiceProviderInterface;\nuse Pimple\\Container;\n\n/**\n * Abstract services for Maxmind GeopIp Country Detection\n *\n * Created 1... | php | chosen |
[
{
"from": "system",
"value": "UPDATE - Started work. Debugging atm\n"
},
{
"from": "human",
"value": "<?php\n\n //A PHP script to fetch, return and possibly store the latest headlines from the /r/onion and /r/notonion subreddits.\n\nfunction getTitles() {\n\t$feed = implode(file('http://reddit.... | php | chosen |
[
{
"from": "system",
"value": "Fix XSS in Delete Repository page\n\nFixes #338\n"
},
{
"from": "human",
"value": "<?php\n\n# Copyright (c) 2012 John Reese\n# Licensed under the MIT license\n\nform_security_validate( 'plugin_Source_repo_delete' );\naccess_ensure_global_level( plugin_config_get( 'm... | php | chosen |
[
{
"from": "system",
"value": "Fix icons in add content widget\n"
},
{
"from": "human",
"value": "<?php\n\nif (isset($group) && $group instanceof Strimoid\\Models\\Group)\n $url = action('ContentController@showAddForm', ['group' => $group->urlname]);\nelse\n $url = action('ContentController... | php | chosen |
[
{
"from": "system",
"value": "Remove double $ from variable\n"
},
{
"from": "human",
"value": "<?php\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Bruno P. Kinoshita, Peter Florijn\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this softwar... | php | chosen |
[
{
"from": "system",
"value": "Move logic out of the loop.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Algorithm\\GradientDescent\\Gradient;\n\nfinal class Linear implements Gradient\n{\n /** @var int */\n private $power;\n\n /**\n * @param int $pow... | php | chosen |
[
{
"from": "system",
"value": "Check if the cookie exists before accessing it. Little bit of refactoring also.\n"
},
{
"from": "human",
"value": "<?php namespace Hydrarulz\\LaravelMixpanel;\n\nuse Illuminate\\Support\\Facades\\Config;\nuse Mixpanel;\n\nclass LaravelMixpanel extends Mixpanel {\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix case linker exception throwing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace NS\\ImportBundle\\Linker;\n\nclass CaseLinkerRegistry\n{\n /**\n * @var array\n */\n private $caseLinkers;\n\n /**\n * CaseLinkerRegistry constructor.\n ... | php | chosen |
[
{
"from": "system",
"value": "Edit \"Returns total number of neurons in layer.\"\n"
},
{
"from": "human",
"value": "<?php\nnamespace NoughtsAndCrosses\\NeuralNetwork\\Layer;\nuse NoughtsAndCrosses\\NeuralNetwork\\Neuron\\NeuronInterface;\n\n/** \n * Interface for Abstract Layer.\n *\n * @package... | php | chosen |
[
{
"from": "system",
"value": "Use template for blog bundle controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SymfonyDay\\Bundle\\BlogBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\... | php | chosen |
[
{
"from": "system",
"value": "Fix Minecraft item image hosting URL\n\nSigned-off-by: JWhy <6a9f7c06e789f829524fd1a3a38b8c7d794c3a1f@jwhy.de>\n"
},
{
"from": "human",
"value": "<?php\n\n$config['jsonapi'] = array(\n \n // JSONAPI connection settings\n 'host' => 'localhost',\n 'port' =... | php | chosen |
[
{
"from": "system",
"value": "Revert some stuff due to an issue where artisan would eager load all providers, causing an issue here.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Foundation\\Provider... | php | chosen |
[
{
"from": "system",
"value": "Add declare strict type in interface where string typehint is used\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Smartbox\\Integration\\FrameworkBundle\\Components\\Queues\\Drivers;\n\n\nuse Smartbox\\Integration\\FrameworkBundle\\Components\\Queues\\Queue... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if no attribute set id is found\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SnowIO\\AttributeSetCode\\Plugin;\n\nuse Magento\\Catalog\\Api\\Data\\ProductInterface;\n\nclass AttributeSetCodeProductRepositoryPlugin\n{\n private $attributeS... | php | chosen |
[
{
"from": "system",
"value": "BAP-1534: Fix acl access levels selector on root entity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\SecurityBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configu... | php | chosen |
[
{
"from": "system",
"value": "Update domain in apache vhost template"
},
{
"from": "human",
"value": "#\n# Auto generated Apache configuration\n# @author: hyn/multi-tenant\n# @see: http://laravel-tenancy.com\n# @time: {{ date('H:i:s d-m-Y') }}\n# @website id: {{ $websit... | php | chosen |
[
{
"from": "system",
"value": "[Security] Add more tests for StringUtils::equals\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 L... | php | chosen |
[
{
"from": "system",
"value": "Correct translation for language dropdown field in link form\n"
},
{
"from": "human",
"value": "<?php\n\nclass TranslatableEditorToolbarExtension extends DataExtension {\n\t\n\tfunction updateLinkForm(&$form) {\n\t\t$field = new LanguageDropdownField('Language', _t(... | php | chosen |
[
{
"from": "system",
"value": "Refactor previous migration, better code but shouldn't affect existing production db\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration,\n Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Fix user list for secondaries companies\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\User;\n\nuse App\\Http\\Controllers\\MainController;\nuse App\\Models\\User;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Auth... | php | chosen |
[
{
"from": "system",
"value": "Add __tostring magic method for easier error dumping and debug\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Screamz\\SecureDownloadBundle\\Core\\Exceptions;\n\nuse Screamz\\SecureDownloadBundle\\Core\\Classes\\DownloadRequest;\nuse Screamz\\SecureDownloadBu... | php | chosen |
[
{
"from": "system",
"value": "Fix require statement class for passing string as the file path\n"
},
{
"from": "human",
"value": "<?php\nnamespace CodeGen\\Statement;\nuse CodeGen\\Renderable;\nuse CodeGen\\Line;\n\nclass RequireStatement extends Line implements Renderable\n{\n public $expr;\n... | php | chosen |
[
{
"from": "system",
"value": "Use disable autorum api call\n"
},
{
"from": "human",
"value": "<?php\nnamespace NewRelic\\Listener;\n\nuse Zend\\EventManager\\EventManagerInterface as Events;\nuse Zend\\Mvc\\MvcEvent;\n\nclass ResponseListener extends AbstractListener\n{\n /**\n * @param ... | php | chosen |
[
{
"from": "system",
"value": "Fix to use setOptions() syntax\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of StashServiceProvider\n *\n * (c) Ben Tollakson <btollakson.os@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t... | php | chosen |
[
{
"from": "system",
"value": "Check if v8js is available on construction of its runtime\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nacmartin\\PhpExecJs\\Runtime;\n\nclass V8jsRuntime implements RuntimeInterface\n{\n /**\n * @var \\V8Js\n * @access private\n */\n priv... | php | chosen |
[
{
"from": "system",
"value": "ADD - Updates for ARB functionality\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Decorates the {@link Member} object with extra fields needed for the SiteSprocket application\n * \n * @package SiteSprocket\n * @author Aaron Carlino\n */\nclass SiteSprocketMem... | php | chosen |
[
{
"from": "system",
"value": "Fix a typo in a comment\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Models\\Bookmark;\nuse Illuminate\\View\\View;\n\nclass BookmarksController extends Controller\n{\n /**\n * Show the ... | php | chosen |
[
{
"from": "system",
"value": "[Maintenance] Exclude copied IRI converter in ECS config\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 * fi... | php | chosen |
[
{
"from": "system",
"value": "Add more PL phone number"
},
{
"from": "human",
"value": "<?php\n\nnamespace Faker\\Provider\\pl_PL;\n\nclass PhoneNumber extends \\Faker\\Provider\\PhoneNumber\n{\n protected static $formats = array(\n '+## ### ### ####',\n '### ### ###',\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove payment_instruments in updates root\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Finix\\Resources;\n\nuse Finix\\Hal\\HrefSpec;\nuse Finix\\Resource;\n\nclass InstrumentUpdate extends Resource\n{\n public static function init()\n {\n sel... | php | chosen |
[
{
"from": "system",
"value": "Fix Migrations | Installation Failed\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass RemovedProjectIdFromBuildMeta extends AbstractMigration\n{\n public function up()\n {\n $table = $this->table('build_meta'... | php | chosen |
[
{
"from": "system",
"value": "Remove edited API for sending binary\n\n(should pass message object instead)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ratchet\\WebSocket;\nuse Ratchet\\AbstractConnectionDecorator;\nuse Ratchet\\RFC6455\\Messaging\\DataInterface;\nuse Ratchet\\RFC6455\\Me... | php | chosen |
[
{
"from": "system",
"value": ":lipstick: Make background tasks always visible under their full name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Assistant\\Module\\Common\\Task;\n\nuse Monolog\\Logger;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console... | php | chosen |
[
{
"from": "system",
"value": "Change the class name to be as same as file name"
},
{
"from": "human",
"value": "<?php namespace Cornford\\Googlmapper\\Facades;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass Mapper extends Facade {\n\n\tprotected static function getFacadeAccessor() { retur... | php | chosen |
[
{
"from": "system",
"value": "Stop ID should be string so zeros don't get truncated\n\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateBusWatchListsTable extends Migration\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix for resurrect_count default value in latest migration.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddResurrectCoun... | php | chosen |
[
{
"from": "system",
"value": "Fix WP Settings textarea template\n\nThe value was inserted twice. One time inside the text area tags and\nanother time as value attribute.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(__DIR__.'/../../form/class.btc-form-textarea.php');\n\n\n/**\n * @bri... | php | chosen |
[
{
"from": "system",
"value": "BAP-9408: Fix API requests for B2B instance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TestFrameworkBundle\\Provider;\n\nuse Oro\\Bundle\\EntityBundle\\Provider\\EntityAliasProviderInterface;\n\nclass EntityAliasProvider implements EntityAlia... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in PaymentMethodRepository method getQueryBuilderForChoiceType\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... | php | chosen |
[
{
"from": "system",
"value": "Make code more descriptive with some function comments\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace VideoHoster\\Controller;\n\nuse VideoHoster\\Tables\\VideoTable;\nuse Zend\\Mvc\\Controller\\AbstractActionController;\nuse Zend\\View\\Model\\ViewModel;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Remove testWireIsReturned(). This test is no longer needed because the wire is no longer returned on connection."
},
{
"from": "human",
"value": "<?php\n\nuse OnlyBits\\Connectors\\WireAbstract;\n\nclass WireTest extends PHPUnit_Framework_TestCase\n{\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Load configuration from a custom location\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\n/**\n * This file is part of phpDocumentor.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed ... | php | chosen |
[
{
"from": "system",
"value": "Change sql query to check if table already exist\n\nChange sql query to check if table already exist"
},
{
"from": "human",
"value": "<?php\n$installer = $this;\n$installer->startSetup();\n\n$installer->run(\"\n ALTER TABLE {$this->getTable('slideshow/slideshow')... | php | chosen |
[
{
"from": "system",
"value": "Add showNewScanForm to it tests\n"
},
{
"from": "human",
"value": "<?php\n\n/*\nCopyright (C) 2016 Teclib'\n\nThis file is part of Armadito Plugin for GLPI.\n\nArmadito Plugin for GLPI is free software: you can redistribute it and/or modify\nit under the terms of th... | php | chosen |
[
{
"from": "system",
"value": "Hide Facebook box on small screens\n"
},
{
"from": "human",
"value": "<?php if($well): ?><div class=\"panel\"><?php endif; ?>\n\t<div class=\"fb-page\" data-href=\"https://www.facebook.com/feliximperial\" data-small-header=\"true\" data-adapt-container-width=\"true\... | php | chosen |
[
{
"from": "system",
"value": "Add small message for forgotten link\n"
},
{
"from": "human",
"value": "@extends('layout.layout')\n\n@section('content')\n <div class=\"row\">\n <div class=\"eleven wide column\">\n <!-- TODO use trans()-->\n <form class=\"ui form\">\... | php | chosen |
[
{
"from": "system",
"value": "Fix migration error 'project_id' doesn't exist\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateProjectUserTable exten... | php | chosen |
[
{
"from": "system",
"value": "Fix inheritance to use a class that exists.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The MIT L... | php | chosen |
[
{
"from": "system",
"value": "Fix error, displayRegion instead of display\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This is the output for an event listing in icalendar format.\n * @package UNL_UCBCN_Frontend\n */\nUNL_UCBCN::display($this->events);\n?>"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Add homepage to plugin details"
},
{
"from": "human",
"value": "<?php namespace PopcornPHP\\RedirectToHTTPS;\n\nuse System\\Classes\\PluginBase;\n\nclass Plugin extends PluginBase\n{\n public function pluginDetails()\n {\n return [\n 'name' ... | php | chosen |
[
{
"from": "system",
"value": "Add the Latin characters into the word pattern for spelling checking\n"
},
{
"from": "human",
"value": "<?php\n\nclass Spelling extends CActiveRecord {\n\tconst WORD_PATTERN = '/\\b[а-яё]+\\b/iu';\n\n\tpublic static function model($class_name = __CLASS__) {\n\t\tret... | php | chosen |
[
{
"from": "system",
"value": "Fix validation error listener test\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Overblog\\GraphQLBundle\\Tests\\EventListener;\n\nuse GraphQL\\Error\\Error;\nuse Overblog\\GraphQLBundle\\Error\\InvalidArgumentError;\nuse Overblog... | php | chosen |
[
{
"from": "system",
"value": "Make Pholio description behave as a remarkup field (e.g., subscribe mentioned users)\n\nSummary: Ref T12732. This is pre-existing but fix it since I caught it while banging around.\n\nTest Plan: {F4967442}\n\nReviewers: chad, amckinley\n\nReviewed By: chad\n\nManiphest Tasks: T... | php | chosen |
[
{
"from": "system",
"value": "Add support for appending fixtures\n"
},
{
"from": "human",
"value": "<?php namespace Nord\\Lumen\\Doctrine\\ORM\\Console;\n\nuse Doctrine\\Common\\DataFixtures\\Executor\\ORMExecutor;\nuse Doctrine\\Common\\DataFixtures\\Loader;\nuse Doctrine\\Common\\DataFixtures\... | php | chosen |
[
{
"from": "system",
"value": "Support for `user_email` as a third type of argument that can be passed to `<user>`\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WP_CLI\\Fetchers;\n\nclass User extends Base {\n\n\tprotected $msg = \"Invalid user ID or login: '%s'\";\n\n\tpublic function ge... | php | chosen |
[
{
"from": "system",
"value": "Fix comment in aliases php script\n"
},
{
"from": "human",
"value": "<?php\n// Grab the \"Global\" settings from drupdates\n$result = json_decode(exec('python ~/.drush/settings.py'), true);\n$path = $result['workingDir']['value'];\n$driver = $result['datastoreDriver... | php | chosen |
[
{
"from": "system",
"value": "Use the slider template for pagination\n"
},
{
"from": "human",
"value": "@if ($paginator->getLastPage() > 1)\n\t<div class=\"row text-center\">\n\t\t<div class=\"col-sm-12\">\n\t\t\t<ul class=\"pagination\">\n\t\t\t\t@if ($paginator->getCurrentPage() <= 1)\n\t\t\t\... | php | chosen |
[
{
"from": "system",
"value": "Fix SiteTableSeeder to use seedRelation\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\StaticArchive\\Site;\nuse App\\Models\\Collections\\Artwork;\nuse App\\Models\\Collections\\Exhibition;\n\nclass SitesTableSeeder extends AbstractSeeder\n{\n\n pr... | php | chosen |
[
{
"from": "system",
"value": "Make code comments gender neutral\n\nReplaces gendered references to users with a neutral 'them'."
},
{
"from": "human",
"value": "<?php\n\nnamespace Auth0\\Login;\n\nuse Auth0\\Login\\Contract\\Auth0UserRepository;\nuse Illuminate\\Routing\\Controller;\n\nclass Aut... | php | chosen |
[
{
"from": "system",
"value": "Disable foreign key checks when creating round_id column\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRoundsTable extends Migration\n{\n /**\n * Run t... | php | chosen |
[
{
"from": "system",
"value": "Fix help text and debug.\n"
},
{
"from": "human",
"value": "<?php namespace FireflyIII\\Http\\Controllers;\n\nuse FireflyIII\\Helpers\\Help\\HelpInterface;\nuse Log;\nuse Preferences;\nuse Response;\n\n/**\n * Class HelpController\n *\n * @package FireflyIII\\Http\\... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Ensure objects are sorted by ID when calling getObjectsOrderedById()\"\n\nThis reverts commit 31b3611813b22f9e981836682583807503c5c1ce.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Webfactory\\ContentMapping\\Test\\Stubs;\n\nuse Webfactory\\Content... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant and incorrect test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mockery\\Generator\\StringManipulation\\Pass;\n\nuse Mockery as m;\nuse Mockery\\Generator\\StringManipulation\\Pass\\ClassNamePass;\nuse Mockery\\Generator\\MockConfiguration;... | php | chosen |
[
{
"from": "system",
"value": "Load different content for pages and posts\n"
},
{
"from": "human",
"value": "<div class=\"entry-content\">\n <?php\n /* translators: %s: Name of current post */\n echo apply_filters('the_content', $post->post_content);\n// the_content(sp... | php | chosen |
[
{
"from": "system",
"value": "Throw http 404 exception if not found\n"
},
{
"from": "human",
"value": "<?php namespace Znck\\Repositories\\Exceptions;\n\nuse Symfony\\Component\\Translation\\Exception\\NotFoundResourceException as SymfonyNotFoundResourceException;\n\nclass NotFoundResourceExcept... | php | chosen |
[
{
"from": "system",
"value": "Add 'create supplier' page to header menu\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Surfnet\\ServiceProviderDashboard\\Infrastructure\\DashboardBundle\\Menu;\n\nuse Knp\\Menu\\FactoryInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerAware... | php | chosen |
[
{
"from": "system",
"value": "Fix new features for create & update things\nCan still assign a db instance name to an entity\nPig\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Demo;\n\n/** A sample demo test class using MS SQL\n *\n * Example of how to use the permanent object.\n */\nclas... | php | chosen |
[
{
"from": "system",
"value": "Switch to a uniquely random set of numbers, so there are no winners drawn twice\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Raffle;\n\nclass RandomService\n{\n /**\n * Base URL\n */\n const BASE_URL = 'http://www.random.org/integers/?min=%d&m... | php | chosen |
[
{
"from": "system",
"value": "Allow to override the controller used for excetion handling\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flint\\Provider;\n\nuse Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener;\nuse Flint\\Controller\\ControllerResolver;\nuse Silex\\Applic... | php | chosen |
[
{
"from": "system",
"value": "Drop columns from index table upon attribute removal\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Attribute\\Key;\n\nuse Concrete\\Core\\Entity\\Attribute\\Key\\Key as AttributeKey;\nuse Concrete\\Core\\Entity\\Express\\Entity;\nuse Concrete\\... | php | chosen |
[
{
"from": "system",
"value": "Add a few more tests for listing members on a mailchimp list\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('tests/php/base.php');\n\nclass CashSeedTests extends UnitTestCase {\n\tfunction testS3Seed(){\n\t\t$settings = new S3Seed(1,1);\n\t\t$this->assertI... | php | chosen |
[
{
"from": "system",
"value": "Fix swapped documentation for template methods\n"
},
{
"from": "human",
"value": "<?php \nnamespace Podlove\\Modules\\Shows;\nuse \\Podlove\\Modules\\Shows\\Model\\Show;\n\nclass TemplateExtensions {\n\n\t/**\n\t * Episode Show\n\t *\n\t * **Examples**\n\t * \n\t * ... | php | chosen |
[
{
"from": "system",
"value": "Add incremental Tasker delay when retrying tasks\n\nAdd missing type cast.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace G4\\Tasker\\Tasker2;\n\nclass RetryAfterResolver\n{\n const RETRY_AFTER_60 = 60;\n const RETRY_AFTER_300 = 300;\n const RETRY_AF... | php | chosen |
[
{
"from": "system",
"value": "Set the selected state for the styleguide by just forcing the first one to be selected since all the slugs are the same\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Styleguide\\Repositories;\n\nuse App\\Repositories\\TopicRepository as Repository;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Add removed APP_PATH setup in micro project.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn new \\Phalcon\\Config([\n 'database' => [\n 'adapter' => 'Mysql',\n 'host' => 'localhost',\n 'username' => 'root',\n 'password' ... | php | chosen |
[
{
"from": "system",
"value": "Fix article list month links\n"
},
{
"from": "human",
"value": "<?php\n$years = $this->em($this->ck->module->name('article'))->publishYears();\n?>\n<ul>\n <?php foreach ($years as $year) { ?>\n <li>\n <a href=\"<?= $this->ck->url->route([\n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.