conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Return the actual value from Lexical::bind_lexing.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Pharen;\nclass Lexical{\n static $scopes = array();\n\n public static function init_closure($ns, $id){\n if(isset(self::$scopes[$ns][$id])){\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove line breaks after each mod response\n"
},
{
"from": "human",
"value": "<?php\n $modResponses = \"data/modResponses.js\";\n $jsonData = $_POST['data'];\n\n if (is_writable($modResponses)) {\n if (!$handle = fopen($modResponses, 'a')) {\n echo 'Canno... | php | chosen |
[
{
"from": "system",
"value": "Fix strict standards bug in authenticate\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TrkLife\\Auth;\n\nuse Interop\\Container\\ContainerInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\n\n/**\n * Class Authentication\n *\n * @package TrkLife\\Au... | php | chosen |
[
{
"from": "system",
"value": "Mark event constants with annotation\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the HWIOAuthBundle package.\n *\n * (c) Hardware.Info <opensource@hardware.info>\n *\n * For the full copyright and license information, please view the LICE... | php | chosen |
[
{
"from": "system",
"value": "Add a method to destruct the classes\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n */\nclass Script\n{\n\tprotected $helpMessage = '';\n\tprotected $matches;\n\tprotected $message;\n\tprotected $waConnection;\n\n\tfunction __construct($message, $matches, $waCo... | php | chosen |
[
{
"from": "system",
"value": "Put DI settings in a private attribute\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cft;\n\n/**\n * Simple Singleton Plugin class for bare-bones dependency injection\n */\nfinal class Plugin {\n private static $instance;\n\n private $viewDirs = [\n CFT... | php | chosen |
[
{
"from": "system",
"value": "Fix monolog event handler compatibility\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Spiral Framework.\n *\n * @license MIT\n * @author Anton Titov (Wolfy-J)\n */\n\ndeclare(strict_types=1);\n\nnamespace Spiral\\Monolog;\n\nuse Monolog\\Handler\\Abstract... | php | chosen |
[
{
"from": "system",
"value": "Move update/build script functionality to Vendor.\n"
},
{
"from": "human",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT f... | php | chosen |
[
{
"from": "system",
"value": "Fix for agnostic file system support\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n/*\n|--------------------------------------------------------------------------\n| Site Name\n|-------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add local IP for Parallels testing\n"
},
{
"from": "human",
"value": "<?php\nif ($_SERVER['REMOTE_ADDR']=='127.0.0.1') {\n require_once 'environments/development.php';\n} else {\n require_once 'environments/production.php';\n}\n\ndefine('DB_NAME', $WP_ENVI... | php | chosen |
[
{
"from": "system",
"value": "Check that there are blocks in a category before outputting the div wrapper.\n"
},
{
"from": "human",
"value": "<div class='context-block-browser clear-block'>\n\n <div class='categories'><?php print theme('select', $categories) ?></div>\n\n <?php foreach ($blocks... | php | chosen |
[
{
"from": "system",
"value": "Check if the x-frame-options header is already set\n"
},
{
"from": "human",
"value": "<?php \nnamespace Concrete\\Core\\Http;\nuse Cookie;\nuse Config;\nuse Core;\n\nclass Response extends \\Symfony\\Component\\HttpFoundation\\Response {\n\n\tpublic function send() ... | php | chosen |
[
{
"from": "system",
"value": "Add polyfill for older browsers, so Opera 12 works\n"
},
{
"from": "human",
"value": "<section id=\"loading-shadow\" hidden=\"hidden\">\n\t<div class=\"loading-wrapper\">\n\t\t<div class=\"loading-content\">\n\t\t\t<h3>Updating List Item...</h3>\n\t\t\t<div class=\"... | php | chosen |
[
{
"from": "system",
"value": "Add access to inbox in root role during the update.\n"
},
{
"from": "human",
"value": "<?php\n\n// FORCE bootstrap_repositories copy\nif (is_file(AJXP_INSTALL_PATH.\"/conf/bootstrap_repositories.php\".\".new-\".date(\"Ymd\"))) {\n rename(AJXP_INSTALL_PATH.\"/conf... | php | chosen |
[
{
"from": "system",
"value": "Check if Client exists when test.client does not exist, to provide clearer exception message\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 copyrig... | php | chosen |
[
{
"from": "system",
"value": "Fix fetchAll yet again - getting sloppy here\n"
},
{
"from": "human",
"value": "<?php\n\nclass Model_Tag extends Model_Record\n{\n protected $_user;\n\n protected function _getTable() { return 'tags'; }\n protected function _getTableIdFieldname() { return '... | php | chosen |
[
{
"from": "system",
"value": "Add mergeApiHeaders and mergeApiBody method.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Katsana\\Sdk;\n\nuse GuzzleHttp\\Psr7\\Uri;\nuse Laravie\\Codex\\Request as BaseReques... | php | chosen |
[
{
"from": "system",
"value": "Fix tests to work with older phpunit version\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Thumper\\Test;\n\nuse Thumper\\ConnectionRegistry;\n\nclass ConnectionRegistryTest extends BaseTest\n{\n public function testGetConnectionProvidedThroughConstructor... | php | chosen |
[
{
"from": "system",
"value": "Correct comment in docs config"
},
{
"from": "human",
"value": "<?php\n\nuse allejo\\Sami\\ApiFilter;\nuse Sami\\RemoteRepository\\GitHubRemoteRepository;\nuse Sami\\Sami;\nuse Sami\\Version\\GitVersionCollection;\nuse Symfony\\Component\\Finder\\Finder;\n\n$iterato... | php | chosen |
[
{
"from": "system",
"value": "Update JQL to retrieve from Version 3 as well.\n"
},
{
"from": "human",
"value": "<?php namespace Eicra\\Jira;\n\nuse Jira\\JiraClient;\n\nclass IssuesRepository {\n\n protected $jiraClient;\n\n public function __construct(JiraClient $jiraClient)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add site share links in footer.\n"
},
{
"from": "human",
"value": "<footer class=\"primary\">\n {{ $settings['site_title'] }} is a program of <a href=\"https://www.dosomething.org\">DoSomething.org</a>.\n\n <ul class=\"footer__links\">\n <li><a class=\"social-i... | php | chosen |
[
{
"from": "system",
"value": "Set AtsMode to 'disabled', if no apply link is found.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @filesource\n * @copyright (c) 2013 - 2017 Cross Solution (http://cross-solution.de)\n * @license MIT\n * @author Miroslav Fedeleš <miroslav.fedeles@gmail.com>\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix screen output for non-alphabetic chars in email subject\n\nImplements #10\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CvoTechnologies\\Gearman\\Shell\\Task;\n\nuse Cake\\Console\\Shell;\nuse Cake\\Core\\Configure;\nuse Psr\\Log\\LogLevel;\n\nclass Emai... | php | chosen |
[
{
"from": "system",
"value": "Remove explicit error reporting settings (bad style).\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(-1);\nini_set('display_errors', 1);\n\nif ((!$loader = @include __DIR__.'/../../../autoload.php')\n && (!$loader = @include __DIR__.'/../vendor/a... | php | chosen |
[
{
"from": "system",
"value": "Fix binary file for composer.\n"
},
{
"from": "human",
"value": "<?php\n// Import the autoloader.\ncall_user_func(function () {\n $files = [\n __DIR__ . '/../vendor/autoload.php',\n __DIR__ . '/../../../vendor/autoload.php',\n ];\n foreach ($f... | php | chosen |
[
{
"from": "system",
"value": "Make it compatible to Kanboard Versions >= 1.0.48\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kanboard\\Plugin\\Wunderlist;\n\nuse Kanboard\\Core\\Translator;\nuse Kanboard\\Core\\Plugin\\Base;\nuse Kanboard\\Core\\Security\\Role;\n\nclass Plugin extends B... | php | chosen |
[
{
"from": "system",
"value": "Disable execution timeout for long running builds\n"
},
{
"from": "human",
"value": "<?php\n\n// Check CWD (Current Working Directory)\nif (!file_exists('cbuilder.json')) {\n // FIXME: Uncomment below lines (commented for easier developing)\n //echo \"Current ... | php | chosen |
[
{
"from": "system",
"value": "Make path detection working properly on windows and less dependent on concrete project name\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nnamespace Lmc\\Steward;\n\nuse Symfony\\Component\\Console\\Application;\nuse Lmc\\Steward\\Command\\InstallCo... | php | chosen |
[
{
"from": "system",
"value": "Replace space ' ' in email address with plus '+'\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace G4\\CleanCore\\Validator\\Param\\Type;\n\nclass Email extends StringValidator\n{\n public function type()\n {\n return parent::type()\n && ... | php | chosen |
[
{
"from": "system",
"value": "Set default field value to current locale"
},
{
"from": "human",
"value": "<?php\n\nclass TranslatableEditorToolbarExtension extends DataExtension {\n\t\n\tfunction updateLinkForm(&$form) {\n\t\t$field = new LanguageDropdownField('Language', _t('CMSMain.LANGUAGEDROP... | php | chosen |
[
{
"from": "system",
"value": "Allow user creation from script.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace solutionweb\\gatekeeper\\utils\\commands;\n\n/**\n * Command to create a user.\n *\n * @author Bert Peters <bert.ljpeters@gmail.com>\n */\nclass CreateUserCommand extends Gatekeep... | php | chosen |
[
{
"from": "system",
"value": "Define baseURL variable to get base_url func from codeigniter\n"
},
{
"from": "human",
"value": "<?php \n\techo doctype('html5');\n?>\n<html lang=\"en\">\n<head>\n\t<meta charset=\"UTF-8\">\n\t<?php \n\t\t$meta = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'Content-Type... | php | chosen |
[
{
"from": "system",
"value": "Convert directory output to the same as profile listing\n"
},
{
"from": "human",
"value": "@extends('components.content-area')\n\n@section('content')\n @include('components.page-title', ['title' => $page['title']])\n\n <div class=\"content\">\n {!! $pag... | php | chosen |
[
{
"from": "system",
"value": "Update exception message with Interfacename\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-201... | php | chosen |
[
{
"from": "system",
"value": "Index Controller should use BaseController\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Co... | php | chosen |
[
{
"from": "system",
"value": "Fix issue when debugger is used with DI\n\nThis fix allows the debug module to properly serialize action params even if they are complex. It realizes this by replacing the params with string descriptions."
},
{
"from": "human",
"value": "<?php\n\nnamespace SamIT\\Yi... | php | chosen |
[
{
"from": "system",
"value": "Fix bad program/cycle error message.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Base controller for unauthenticated Apply controllers\n * @author Jon Johnson <jon.johnson@ucsf.edu>\n * @package jazzee\n * @subpackage apply\n */\nclass ApplyGuestController ext... | php | chosen |
[
{
"from": "system",
"value": "Refactor method to eliminate duplicate method calls\n"
},
{
"from": "human",
"value": "<?php\ndeclare (strict_types = 1);\n\nnamespace GrottoPress\\Jentil\\Setups\\Views;\n\nuse GrottoPress\\Jentil\\Setups\\AbstractSetup;\n\nfinal class Breadcrumbs extends AbstractS... | php | chosen |
[
{
"from": "system",
"value": "Fix attributes of empty space node\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Visual composer Generator Empty Space\n * This class was created to generate shortcodes of visual composer plugin,\n * to be used in templates of custom pages wordpress\n *... | php | chosen |
[
{
"from": "system",
"value": "Remove 1.7.2 and add 1.11/1.12\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass MinecraftVersionsSeeder extends Seeder\n{\n private $versionsByType = [\n 'PC' => [\n 4 => '1.7.2',\n 5 => '1.7.... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP 7.0.* warning for password_hash deprecated option\n\nFrom php.net:\n- The salt option has been deprecated as of PHP 7.0.0.\n It is now preferred to simply use the salt that is generated by default\n\ncloses #80\n"
},
{
"from": "human",
"value": "<?php\n\nna... | php | chosen |
[
{
"from": "system",
"value": "Add canonical url for wiki page\n"
},
{
"from": "human",
"value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n See the LICENCE file in the repository root for full licence text.\n--}}\n@php\n ... | php | chosen |
[
{
"from": "system",
"value": "Add some useful settings to local vagrant alias example.\n"
},
{
"from": "human",
"value": "<?php\n$home = drush_server_home();\n// Solve the key file to use\n$path = explode('/', dirname(__FILE__));\narray_pop($path);\n$path[] = '/../.vagrant';\n$path = implode('/'... | php | chosen |
[
{
"from": "system",
"value": "Add UTF flag to preg_replace"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\HTMLToMarkdown\\Converter;\n\nuse League\\HTMLToMarkdown\\ElementInterface;\n\nclass TextConverter implements ConverterInterface\n{\n /**\n * @param ElementInterface $ele... | php | chosen |
[
{
"from": "system",
"value": "Remove some items from ignore array\n"
},
{
"from": "human",
"value": "<?php\n\n/** Change it if needed */\ndefine( 'HOME_URL', 'http://' . $_SERVER['HTTP_HOST'] );\ndefine( 'APACHE_DIR', '/etc/apache2' );\ndefine( 'PROJECTS_DIR', realpath( '..' ) );\n\n/** Ad... | php | chosen |
[
{
"from": "system",
"value": "Add context comment for $txt['theme_thumbnail_href']\n\nSigned-off-by: Christopher 'm4z' Holm <38073e896c2d24ee83797bcfa758b496d851ce61@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n// Version: 2.1 RC2; Settings\n\nglobal $settings;\n\n$txt['theme_thumbnail_h... | php | chosen |
[
{
"from": "system",
"value": "Add test for duplicate username\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Model_UserTest extends CMTest_TestCase {\n\n public function tearDown() {\n CMTest_TH::clearEnv();\n }\n\n public function testCreate() {\n $user = Denkm... | php | chosen |
[
{
"from": "system",
"value": "Mark the socket client as skipped\n"
},
{
"from": "human",
"value": "<?php\nnamespace CouchDB\\Tests\\Http;\n\nuse CouchDB\\Tests\\TestCase;\nuse CouchDB\\Http\\SocketClient;\n\n/**\n * @author Markus Bachmann <markus.bachmann@bachi.biz>\n */\nclass SocketClientTest... | php | chosen |
[
{
"from": "system",
"value": "Add modal for ipad links\n"
},
{
"from": "human",
"value": "<?php\n\nfunction ipadPopUpScript(){\n?>\n <script>\n jQuery(\"a[href$='http://bullettstoreat.wpengine.com/p/ipad-magazine-subscription/']\").attr('data-reveal-id', 'ipadPopUp');\n </script>\n<?php\n}\... | php | chosen |
[
{
"from": "system",
"value": "Handle updates of all product fields\n\nDoesn’t record renames yet for redirects\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/catalog.php';\n\n$id= (int)$_REQUEST['id'];\n$name= $_REQUEST['name'];\n$slug= $_REQUEST['slug'];\n\ntry {... | php | chosen |
[
{
"from": "system",
"value": "Use Attribute Casting in Exception Model\n\nNo need for the boilerplate code, Laravel 5.0+ has support for `array` type cast which handles JSON properly."
},
{
"from": "human",
"value": "<?php\n\nnamespace Tylercd100\\LERN\\Models;\n\nuse Illuminate\\Database\\Eloqu... | php | chosen |
[
{
"from": "system",
"value": "Remove the search form when it returns no results and add a pagination\n"
},
{
"from": "human",
"value": "<?php get_template_part('templates/page', 'header'); ?>\n\n<?php if (!have_posts()) : ?>\n <div class=\"alert alert-warning\">\n <?php _e('Sorry, no results... | php | chosen |
[
{
"from": "system",
"value": "Change test API to JSON\n"
},
{
"from": "human",
"value": "<?php\necho $_GET['request'];\n?>\n"
},
{
"from": "gpt",
"value": "<?php\nheader('Content-Type: application/json');\n$ret = new array();\n$ret[\"request\"] = _GET['request'];\necho json_encode($r... | php | chosen |
[
{
"from": "system",
"value": "Throw exception in menu configuration class if menu with same alias already exists.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2016, Darvin Studio\n * @link https://www.darvin-st... | php | chosen |
[
{
"from": "system",
"value": "Fix variable for minutes in entries time\n"
},
{
"from": "human",
"value": "<?php\nuse Mongovel\\Model;\n\nclass IrcLog extends Model\n{\n\tprotected $collectionName = 'logs';\n\n\t/** \n\t * Get the log's message\n\t *\n\t * @return string\n\t */\n\tpublic functio... | php | chosen |
[
{
"from": "system",
"value": "Remove deprication warning, which shouldn't have been there in the first place."
},
{
"from": "human",
"value": "<?php\n# Signed Authentication has been deprecated.\n# Please check out the authentication wiki page: http://apiwiki.seomoz.org/HttpBasicAuth\n$objectURL... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant and filter is inherited\n"
},
{
"from": "human",
"value": "<?php\nnamespace Respect\\Validation\\Rules;\n\nclass Digit extends AbstractCtypeRule\n{\n public $additionalChars = \"\\n\\r\\t \";\n protected function ctypeFunction($input)\n {\... | php | chosen |
[
{
"from": "system",
"value": "Fix query for get max position\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Purethink\\CMSBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\nclass LanguageRepository extends EntityRepository\n{\n public function getPublicLanguages()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on homepage configuration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drupal\\ga_front;\n\nclass FrontUtils\n{\n\n public static function getPreliveConfiguration()\n {\n $config = \\Drupal::config('ga_ticket.settings');\n\n\n $v... | php | chosen |
[
{
"from": "system",
"value": "Update laravel/package-scaffolding/src/Views/admin/layout with placeholder for package name\n"
},
{
"from": "human",
"value": "@extends('core')\n\n@section('subnav')\n\n @include('event::nav')\n\n@endsection\n\n{{-- Placeholder for view sections specific to this ... | php | chosen |
[
{
"from": "system",
"value": "Add method for check file path in bundle's configurations\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Artscore Studio Framework package.\n *\n * (c) Nicolas Claverie <info@artscore-studio.fr>\n *\n * For the full copyright and license i... | php | chosen |
[
{
"from": "system",
"value": "Create dummy route for trait_details\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: s216121\n * Date: 12.10.16\n * Time: 09:34\n */\n\nnamespace AppBundle\\Controller;\n\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\Exce... | php | chosen |
[
{
"from": "system",
"value": "Enable strict types in entity namer interface.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2016, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyrigh... | php | chosen |
[
{
"from": "system",
"value": "Use accessor to abstract iiif_url attribute\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models\\Collections;\n\n// @TODO: Make Images not Assets, both in the CDS and the DA?\nclass Image extends Asset\n{\n\n // Note: Not all Images are meant to be ... | php | chosen |
[
{
"from": "system",
"value": "Fix loading of role to use config class"
},
{
"from": "human",
"value": "<?php namespace GeneaLabs\\LaravelGovernor\\Http\\Controllers\\Nova;\n\nuse GeneaLabs\\LaravelGovernor\\Http\\Controllers\\Controller;\nuse GeneaLabs\\LaravelGovernor\\Http\\Requests\\StoreRole... | php | chosen |
[
{
"from": "system",
"value": "Configure mission form type option\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ModuleGenerator\\PhpGenerator\\Constant;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType;\nuse Symfony\\Component\\... | php | chosen |
[
{
"from": "system",
"value": "Fix for EventManager BC breaks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcBase\\EventManager;\n\nuse Traversable;\nuse Zend\\EventManager\\EventManagerAwareInterface;\nuse Zend\\EventManager\\EventManagerInterface;\nuse Zend\\EventManager\\EventManager... | php | chosen |
[
{
"from": "system",
"value": "Add method to recurring interface\n"
},
{
"from": "human",
"value": "<?php namespace professionalweb\\payment\\contracts\\recurring;\n\n/**\n * Interface for payment systems have recurring payments\n * @package professionalweb\\payment\\contracts\\recurring\n */\nin... | php | chosen |
[
{
"from": "system",
"value": "Convert page or post to int "
},
{
"from": "human",
"value": "<?php\n\nrequire_once( dirname( __FILE__ ) . '/B3_RoutesHelper.php' );\n\nclass B3_SettingsHelper {\n\n /**\n * [get_options description]\n * @return [type] [description]\n */\n public f... | php | chosen |
[
{
"from": "system",
"value": "Fix tags not being mutated\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vend\\Statsd\\Datadog;\n\nuse Vend\\Statsd\\Metric as BaseMetric;\n\nclass Metric extends BaseMetric\n{\n /**\n * @var array<string,string>\n */\n protected $tags = [];\n\... | php | chosen |
[
{
"from": "system",
"value": "Implement dominion rezoning action calculator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Calculators\\Dominion\\Actions;\n\nuse OpenDominion\\Contracts\\Calculators\\Dominion\\Actions\\RezoningCalculator as RezoningCalculatorContract;\n\ncla... | php | chosen |
[
{
"from": "system",
"value": "Throw meaningful error message for missing variables referenced in view\n"
},
{
"from": "human",
"value": "<?php namespace TightenCo\\Jigsaw;\n\nuse ArrayAccess;\nuse Illuminate\\Support\\Collection as BaseCollection;\n\nclass IterableObject extends BaseCollection i... | php | chosen |
[
{
"from": "system",
"value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40383 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa... | php | chosen |
[
{
"from": "system",
"value": "Allow to set invoker through filesystem decorator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Filesystem;\n\nuse React\\EventLoop\\LoopInterface;\nuse React\\Filesystem\\Node;\n\nclass Filesystem\n{\n protected $filesystem;\n\n /**\n * @pa... | php | chosen |
[
{
"from": "system",
"value": "Allow to add more \"attr\"\n\nAllow to add more \"attr\" options without removing the default ones (default_attr_class & data-ajax--url)"
},
{
"from": "human",
"value": "<?php\nnamespace Alsatian\\FormBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\n\nu... | php | chosen |
[
{
"from": "system",
"value": "Update asset loading to be loaded in footer.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Cello;\n\nuse \\Asset,\n\t\\Event,\n\tOrchestra\\Acl,\n\tOrchestra\\Core as O;\n\nclass C... | php | chosen |
[
{
"from": "system",
"value": "Update configuration stub in the tests\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'remove_strings_from_command' => [\n \"'\".PHP_BINARY.\"'\",\n \"'\".strtolower(config('app.name')).\"'\",\n ],\n];\n"
},
{
"from": "gpt",
"... | php | chosen |
[
{
"from": "system",
"value": "Extend APCu test with int CAS\n\nSigned-off-by: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl>\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the... | php | chosen |
[
{
"from": "system",
"value": "Change slider image markup output\n"
},
{
"from": "human",
"value": "<?php\n $slides = get_field('slides', $module->ID);\n?>\n<div class=\"slider\">\n <ul>\n <?php foreach ($slides as $slide) : ?>\n <li>\n <?php if ($slide['acf_fc_layout'] == ... | php | chosen |
[
{
"from": "system",
"value": "Set the test model to the CrudPanel.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backpack\\CRUD\\Tests\\Unit\\CrudPanel;\n\nuse Backpack\\CRUD\\CrudPanel;\nuse Backpack\\CRUD\\Tests\\BaseTest;\n\nabstract class BaseCrudPanelTest extends BaseTest\n{\n /*... | php | chosen |
[
{
"from": "system",
"value": "Add latlong and shield factor form validation messages\n"
},
{
"from": "human",
"value": "<?php\n\n// Custom form validation messages\n$lang['form_validation_unique'] = \"The {field} field is not unique. Please choose another.\";\n$lang['form_validation_alpha_dot_da... | php | chosen |
[
{
"from": "system",
"value": "Update sendmail default path configuration\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Default Swift Mailer Transport\n\t|--------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Allow views to be action-only (i.e. no markup returned)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\tCopyright (c) 2012 Colin Rotherham, http://colinr.com\n\thttps://github.com/colinrotherham\n*/\n\n\tnamespace CRD\\Core;\n\n\tclass View\n\t{\n\t\tpublic $app;\... | php | chosen |
[
{
"from": "system",
"value": "Update syntax on SHOUTcast authhash form.\n\n"
},
{
"from": "human",
"value": "<?php\nuse App\\Entity\\StationMount;\n\n$form_config = require __DIR__.'/generic.php';\n\n$form_config['groups']['basic_info']['elements']['name'][1]['validator'] = function($text) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix tests bootstrap to meet the new core requirements\n"
},
{
"from": "human",
"value": "<?php\n/**\n * ownCloud - gallery\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Olivier Par... | php | chosen |
[
{
"from": "system",
"value": "Remove reference to icelus, which was unused in this project\n"
},
{
"from": "human",
"value": "<?php\n\nclass SculpinKernel extends \\Sculpin\\Bundle\\SculpinBundle\\HttpKernel\\AbstractKernel\n{\n protected function getAdditionalSculpinBundles(): array\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Make arrays defined in YAML frontmatter into iterable objects\n"
},
{
"from": "human",
"value": "<?php namespace TightenCo\\Jigsaw;\n\nuse TightenCo\\Jigsaw\\IterableObject;\nuse TightenCo\\Jigsaw\\Traits\\HelperFunctionTrait;\n\nclass PageVariable extends IterableO... | php | chosen |
[
{
"from": "system",
"value": "Change laravel 5 to Suyabay Reloaded\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Laravel</title>\n\n <link href=\"https://fonts.googleapis.com/css?family=Lato:100\" rel=\"stylesheet\" type=\"text/css\">\n\n <s... | php | chosen |
[
{
"from": "system",
"value": "Fix take test key preserving\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pinq\\Tests\\Integration\\Traversable;\n\nclass SliceTest extends TraversableTest\n{\n /**\n * @dataProvider Everything\n */\n public function testThatSkipRemovesCorrect... | php | chosen |
[
{
"from": "system",
"value": "Correct path to access to config file\n"
},
{
"from": "human",
"value": "<?php namespace Bogardo\\Mailgun;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MailgunServiceProvider extends ServiceProvider\n{\n\n\t/**\n\t * Indicates if loading of the provider is ... | php | chosen |
[
{
"from": "system",
"value": "Fix a little bug: mainpage jump link\n"
},
{
"from": "human",
"value": "<?php\n/* @var $this yii\\web\\View */\n$this->title = 'Welcome To Biser';\n?>\n<div class=\"site-index\">\n\n <div class=\"jumbotron\">\n <h1>Welcome!</h1>\n\n <p class=\"lead\... | php | chosen |
[
{
"from": "system",
"value": "Drop type-hint for Response to support multiple Guzzle versions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hub\\Client\\Common;\n\nuse Hub\\Client\\Exception\\BadRequestException;\nuse Hub\\Client\\Exception\\NotFoundException;\nuse Hub\\Client\\Exception... | php | chosen |
[
{
"from": "system",
"value": "Return false for undefined functions, not null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcTwig\\Service;\n\nuse RuntimeException;\nuse Twig_Environment;\nuse Zend\\ServiceManager\\FactoryInterface;\nuse Zend\\ServiceManager\\ServiceLocatorInterface;\nu... | php | chosen |
[
{
"from": "system",
"value": "Return the correct class in getFacadeAccessor function\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Bestboysmedialab-LanguageList\n *\n * (c) 2016 best boys media lab GmbH & Co. KG\n *\n * For the full copyright and license information, plea... | php | chosen |
[
{
"from": "system",
"value": "Remove default locale for prefix_except_default strategy\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Umpirsky\\I18nRoutingBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Processor;\nuse Symfony\\Component\\Config\\FileLocator;\n... | php | chosen |
[
{
"from": "system",
"value": ":sparkles: Add base and hasBase method to interface.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Risan\\OAuth1\\Config;\n\ninterface UriConfigInterface\n{\n /**\n * Get the URI for obtaining temporary credentials. Also known as request\n * token... | php | chosen |
[
{
"from": "system",
"value": "Remove Sidebar (typically not required)\n"
},
{
"from": "human",
"value": "<?php\n\nuse Roots\\Sage\\Setup;\nuse Roots\\Sage\\Wrapper;\n\n?>\n\n<!doctype html>\n<html <?php language_attributes(); ?>>\n <?php get_template_part('templates/head'); ?>\n <body <?php bo... | php | chosen |
[
{
"from": "system",
"value": "Improve error message if socket isn't configured for TLS\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Amp\\Socket;\n\nuse Amp\\ByteStream\\ClosedException;\nuse Amp\\Failure;\nuse Amp\\Promise;\n\nclass ServerSocket extends Socket {\n /** @inheritdoc */\... | php | chosen |
[
{
"from": "system",
"value": "Fix casting for Pulses and added getUpdates()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace allejo\\DaPulse;\n\nuse allejo\\DaPulse\\Objects\\ApiPulse;\n\nclass PulseProject extends ApiPulse\n{\n const API_PREFIX = \"pulses\";\n\n private $urlSyntax = ... | php | chosen |
[
{
"from": "system",
"value": "Add help tabs to test page type and load properties box again\n"
},
{
"from": "human",
"value": "<?php\n\nclass Test_Page_Type extends Papi_Page_Type {\n\n\t/**\n\t * Define our Page Type meta data.\n\t *\n\t * @return array\n\t */\n\tpublic function meta() {\n\t\tr... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.