conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update the CDN but dont output messages\n"
},
{
"from": "human",
"value": "<?php\n$filename = 'gitstatus.log';\n$file = fopen($filename, 'r+b');\nif ( fread($file, filesize($filename)) === 'NewCommit' )\n{\n ftruncate($file, 0);\n exec('git pull --quie... | php | chosen |
[
{
"from": "system",
"value": "Check if web middleware is being used\n"
},
{
"from": "human",
"value": "<?php\n\nuse GeneaLabs\\LaravelCaffeine\\Http\\Controllers\\LaravelCaffeineController;\n\nRoute::group(['middleware' => ['web']], function () {\n Route::get('genealabs/laravel-caffeine/drip'... | php | chosen |
[
{
"from": "system",
"value": "Remove implements ExpressionInterface (fix error)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Icecave\\Dialekt\\AST;\n\n/**\n * An AST node that represents an empty expression.\n */\nclass EmptyExpression extends AbstractExpression\n /**\n * Pass this... | php | chosen |
[
{
"from": "system",
"value": "Add select and all to mapper interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: Marco Bunge\n * Date: 26.11.2015\n * Time: 15:40\n */\n\nnamespace Blast\\Db\\Orm;\n\n\nuse Blast\\Db\\Entity\\CollectionInterface;\nuse Blast\\Db... | php | chosen |
[
{
"from": "system",
"value": "Reset on-disk config to old master state\n\nThe Kubernetes setup does not use this on-disk config file any more, so\nthere is no reason to update it any more. This is also the only\ndifference from master, so resetting this to the state expected by\nmaster lets us merge the k8s... | php | chosen |
[
{
"from": "system",
"value": "Add query param support for getAll users request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RIPS\\Connector\\Requests;\n\nclass UserRequests extends BaseRequest\n{\n // @var string\n protected $uri = '/users';\n\n /**\n * Get all users\n ... | php | chosen |
[
{
"from": "system",
"value": "Update SuiteCRM Version to SuiteCRM 7.2.4.\n"
},
{
"from": "human",
"value": "<?php\n if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');\n\n$suitecrm_version = '7.2.3';\n$suitecrm_timestamp = '2015-08-06 17:00pm';"
},
{
"from":... | php | chosen |
[
{
"from": "system",
"value": "Remove last direct call of Zend_Session::sessionExists\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Component_Plugin_Login_Component extends Kwf_Component_Plugin_LoginAbstract_Component\n{\n public static function getSettings()\n {\n $ret = paren... | php | chosen |
[
{
"from": "system",
"value": "Test added for retrieval under views-expired scenario.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransac... | php | chosen |
[
{
"from": "system",
"value": "Add missing global var. ACTIVECOLLAB_JOBS_CONSUMER_SCRIPT_TIME\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Bootstrap command line application\n */\n\ndate_default_timezone_set('UTC');\n\ndefined('APP_PATH') or define('APP_PATH', dirname(dirname(__DIR__)));\n... | php | chosen |
[
{
"from": "system",
"value": "Fix in smarty v2 support\n"
},
{
"from": "human",
"value": "<?\nrequire_once(dirname(__FILE__).'/config.php');\nrequire_once(dirname(__FILE__).'/User.php');\n\ninclude(dirname(__FILE__).'/view/account/account_details.php');\n# this yields Smarty onbject as $smarty \... | php | chosen |
[
{
"from": "system",
"value": "Improve error handling while parsing XML data\n\nFixes koraktor/steam-condenser#224\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This code is free software; you can redistribute it and/or modify it under\n * the terms of the new BSD License.\n *\n * Copyright (... | php | chosen |
[
{
"from": "system",
"value": "Use the full class name in the registry\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Integrated\\Bundle\\ContentBundle\\Form\\Registry;\n\nuse Integrated\\Common\\ContentType\\Form\\Custom\\Type;\nuse Integrated\\Common\\ContentType\\Form\\Custom\\Type\\Reg... | php | chosen |
[
{
"from": "system",
"value": "Rebuild to show a table"
},
{
"from": "human",
"value": "<?php\ninclude ('header.php');\n\necho \"<h1>Messaging Statistics</h1><br>\";\n\nif ($a != 2){\n echo \"No data available\";\n\n}\necho \"<br>\";\n\n$output = shell_exec('cat /var/log/ecelerity/mainlog.ec |gr... | php | chosen |
[
{
"from": "system",
"value": "Apply style changes to maintenance emails\n"
},
{
"from": "human",
"value": "@extends('layout.emails')\n\n@section('preheader')\n{!! trans('cachet.subscriber.email.maintenance.html-preheader', ['app_name' => Setting::get('app_name')]) !!}\n@stop\n\n@section('content... | php | chosen |
[
{
"from": "system",
"value": "Update demo to add all possibilities.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire '../autoloader.php';\n\n$redis = new Yampee_Redis_Client();\n\n$redis->set('key', 'value');\n\nif ($redis->has('key')) {\n\t$redis->get('key');\n}\n"
},
{
"from": "gpt"... | php | chosen |
[
{
"from": "system",
"value": "Fix blank alt fields by accepting preferred null\n\nDefinitely feeling the slowdown on `/artworks`. Might need to change\nAPI to be a facade on Elasticsearch for speed, if we can figure out\n`include` functionality on search.\n"
},
{
"from": "human",
"value": "<?php... | php | chosen |
[
{
"from": "system",
"value": "Add full post to amp_skip_post filter\n"
},
{
"from": "human",
"value": "<?php\n\nfunction amp_get_permalink( $post_id ) {\n\tif ( '' != get_option( 'permalink_structure' ) ) {\n\t\t$amp_url = trailingslashit( get_permalink( $post_id ) ) . user_trailingslashit( AMP_... | php | chosen |
[
{
"from": "system",
"value": "Make sure request body stream is writable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Meng\\Soap\\HttpBinding;\n\nuse Meng\\Soap\\Interpreter;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Zend\\Diactoros\\Stream;\n\nclass HttpBinding\n{\n private $i... | php | chosen |
[
{
"from": "system",
"value": "Make sure this trust proxies is also changed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pterodactyl\\Http\\Middleware;\n\nuse Illuminate\\Http\\Request;\nuse Fideloper\\Proxy\\TrustProxies as Middleware;\n\nclass TrustProxies extends Middleware\n{\n /*... | php | chosen |
[
{
"from": "system",
"value": "Add dynamic database name to getColumns()\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UserControlSkeleton\\Models\\Database;\n\nuse PDO;\nuse UserControlSkeleton\\Interfaces\\AdapterInterface;\n\nclass MysqlAdapter implements AdapterInterface\n{\n pro... | php | chosen |
[
{
"from": "system",
"value": "Make a urlgenerator creates links protocol insensitive\n"
},
{
"from": "human",
"value": "<?php\n\nclass UrlGenerator {\n public static function generate_thumb_url($filename, $type = '', $size = '_thumb') {\n if (empty($filename)) {\n return '';... | php | chosen |
[
{
"from": "system",
"value": "Allow to set bframe support in a format\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of PHP-FFmpeg.\n *\n * (c) Alchemy <info@alchemy.fr>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distri... | php | chosen |
[
{
"from": "system",
"value": "Add extra test for no hash in fromHex\n"
},
{
"from": "human",
"value": "<?php\n\nclass ColourTest extends PHPUnit_Framework_TestCase\n{\n public function testFromHex()\n {\n $colour = \\Colourist\\Colour::fromHex('#0A141E');\n /** @var \\Colourist\\Rgb $col... | php | chosen |
[
{
"from": "system",
"value": "Add tests to the list of allowed paths"
},
{
"from": "human",
"value": "<?php\n\ndefine('PHPUNIT_RUN', 1);\n\nrequire_once __DIR__.'/../../../lib/base.php';\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nif(!class_exists('PHPUnit_Framework_TestCase')) {\n\trequ... | php | chosen |
[
{
"from": "system",
"value": "Define user earlier so it can be used more\n"
},
{
"from": "human",
"value": "<?php\n class BotController extends AuthenticatedController {\n public function update( $boturl = '' ) {\n $this->requireLogin();\n\n require_once 'models/g... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing ?> while investigating another page which is missing last_commit_id\n"
},
{
"from": "human",
"value": "<?php\n\t#\n\t# $Id: ports-deleted.php,v 1.2 2006-12-17 12:06:14 dan Exp $\n\t#\n\t# Copyright (c) 1998-2005 DVL Software Limited\n\t#\n\n\trequire... | php | chosen |
[
{
"from": "system",
"value": "Make sequence wrap + clear li\n"
},
{
"from": "human",
"value": " <h1>View Protein</h1>\n\n <div class=\"form\">\n <ul>\n\n <li>\n <span class=\"label\">Name</span>\n <span class=\"name\"><?php echo $prot['NAME']... | php | chosen |
[
{
"from": "system",
"value": "Test model aliasing for author => user.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Test\\Unit;\n\nuse Test\\TestCase;\nuse Taskforcedev\\CrudApi\\Helpers\\CrudApi;\n\nclass CrudApiHelperTest extends TestCase\n{\n public function testGetRelatedFieldForU... | php | chosen |
[
{
"from": "system",
"value": "Add api docs and github project links to endpoint. Also add copyright\n"
},
{
"from": "human",
"value": "<?php\n\n# Copyright 2015 Wayne D Grant (www.waynedgrant.com)\n# Licensed under the MIT License\n\nabstract class BaseSource\n{\n\tconst SERVICE_VERSION = 1.4;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix deleting old request to VK.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Helldar\\Vk\\Commands;\n\nuse Carbon\\Carbon;\nuse Helldar\\Vk\\Models\\VkRequest;\nuse Illuminate\\Console\\Command;\n\nclass VkRequestsClear extends Command\n{\n /**\n * T... | php | chosen |
[
{
"from": "system",
"value": "Update namespaces for beta 8\n\nRefs flarum/core#1235.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n *... | php | chosen |
[
{
"from": "system",
"value": "Allow image filter to load by id as well as identifier\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace ATPCms\\View\\Filter;\r\n\r\nclass Images extends \\ATPCore\\View\\Filter\\AbstractBlockFilter\r\n{\r\n\tprotected function _loadObject($id)\r\n\t{\r\n\t... | php | chosen |
[
{
"from": "system",
"value": "Fix redirect to login when required\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: mirel\n * Date: 19.03.2015\n * Time: 11:06\n */\n\nnamespace mpf\\modules\\forum\\controllers;\n\n\nuse mpf\\modules\\forum\\components\\Controller;\... | php | chosen |
[
{
"from": "system",
"value": "Set default timezone to UTC in tests\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL | E_STRICT);\n\n// include the composer autoloader\n$autoloader = require __DIR__.'/../vendor/autoload.php';\n\n// autoload abstract TestCase classes in test direc... | php | chosen |
[
{
"from": "system",
"value": "Fix non-conventional aliases that cause problems sometimes.\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... | php | chosen |
[
{
"from": "system",
"value": "Send signal to ProTherm process via sysvinit/PID or via systemd service\n"
},
{
"from": "human",
"value": "<?php\n\nsystem('sudo /etc/init.d/protherm change_mode', $ret);\n"
},
{
"from": "gpt",
"value": "<?php\n\nif (file_exists('/etc/init.d/protherm')) ... | php | chosen |
[
{
"from": "system",
"value": "Add support for filtering organisation members by 2FA status\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Github\\Api\\Organization;\n\nuse Github\\Api\\AbstractApi;\n\n/**\n * @link http://developer.github.com/v3/orgs/members/\n * @author Joseph Bielawsk... | php | chosen |
[
{
"from": "system",
"value": "Fix query to have all tags taken into account on recipe search\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Entity;\n\n/**\n * RecipeRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custom\n * repository methods below... | php | chosen |
[
{
"from": "system",
"value": "Modify googlereaderkeys plugin with mark unread toggle.\n"
},
{
"from": "human",
"value": "<?php\nclass GoogleReaderKeys extends Plugin {\n\n\tprivate $link;\n\tprivate $host;\n\n\tfunction about() {\n\t\treturn array(1.0,\n\t\t\t\"Keyboard hotkeys emulate Google Re... | php | chosen |
[
{
"from": "system",
"value": "Hide \"Add Link\" button if user isn't logged in\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\nuse yii\\widgets\\ListView;\n\n/* @var $this yii\\web\\View */\n\n?>\n<h1>Links Index</h1>\n\n<?= ListView::widget([\n 'dataProvider' => $data,\n... | php | chosen |
[
{
"from": "system",
"value": "Enable deprecation warnings in Guzzle 3.7\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../vendor/autoload.php';\nGuzzle\\Tests\\GuzzleTestCase::setMockBasePath(__DIR__.'/mock');\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire __DIR__.'... | php | chosen |
[
{
"from": "system",
"value": "Use new composer autoload filename\n"
},
{
"from": "human",
"value": "<?php\n\n$loader = require __DIR__.'/../vendor/.composer/autoload.php';\n$loader->add('Igorw\\Tests', __DIR__);\n$loader->register();\n"
},
{
"from": "gpt",
"value": "<?php\n\n$loader ... | php | chosen |
[
{
"from": "system",
"value": "Add list of channels to group index\n"
},
{
"from": "human",
"value": "@extends('app')\n\n@section('content')\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-10 col-md-offset-1\">\n <div class=\"panel panel... | php | chosen |
[
{
"from": "system",
"value": "Fix social media icon links.\n"
},
{
"from": "human",
"value": "<?php \n $options = get_option('plugin_options');\n $social_media = array('facebook', 'twitter', 'google', 'mail', 'linkedin', 'xing', 'skype', 'youtube', 'vimeo', 'flickr', 'rss');\n?>\n\n<d... | php | chosen |
[
{
"from": "system",
"value": "Add Security/Csrf components + protects ajax_ prefixed actions\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Controller;\n\nuse App\\Lib\\CakeboxInfo;\nuse Cake\\Controller\\Controller;\nuse Cake\\Datasource\\ConnectionManager;\n\n/**\n * Application Cont... | php | chosen |
[
{
"from": "system",
"value": "Add functional test for cancelling queries\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Tests\\Dns;\n\nuse React\\Tests\\Dns\\TestCase;\nuse React\\EventLoop\\Factory as LoopFactory;\nuse React\\Dns\\Resolver\\Resolver;\nuse React\\Dns\\Resolver\\Fac... | php | chosen |
[
{
"from": "system",
"value": "Update the exception message on atom exceptions.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enzyme\\Axiom\\Exceptions;\n\nuse Exception;\n\n/**\n * Thrown when an atom cannot process the given value.\n */\nclass AtomException extends Exception\n{\n pub... | php | chosen |
[
{
"from": "system",
"value": "Fix to return json response to invalid tokens. Fix to exception throws not being catch correctly.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cvogit\\LumenJWT\\Http\\Middleware;\n\nuse Closure;\nuse \\InvalidArgumentException;\nuse \\RuntimeException;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Make sure that $appname[1] and $appname[2] are set, in case of cli call, those are empty\n"
},
{
"from": "human",
"value": "<?php\n\nEvent::add_before('system.ready', current(Event::get('system.ready')), 'multisite_fetch_appname');\n\nfunction multisite_fetch_appna... | php | chosen |
[
{
"from": "system",
"value": "Change button text for Standard page LOR form to be clearer that recommendation is being submitted, not saved.\n"
},
{
"from": "human",
"value": "<?php \n/**\n * lor Standard page type view\n * @author Jon Johnson <jon.johnson@ucsf.edu>\n * @license http://jazzee.or... | php | chosen |
[
{
"from": "system",
"value": "Fix MessageStack for model events"
},
{
"from": "human",
"value": "<?php\n\nnamespace SleepingOwl\\Admin\\Widgets\\Messages;\n\nuse AdminTemplate;\nuse SleepingOwl\\Admin\\Widgets\\Widget;\n\nabstract class Messages extends Widget\n{\n /**\n * @var string\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix for aws classes, fixed to S3 for now but that is fine\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Core;\n\nclass Autoloader\n{\n static public function load($className)\n {\n $baseDir = dirname(dirname(realpath(__FILE__)));\n $class... | php | chosen |
[
{
"from": "system",
"value": "Implement background images and colors\n"
},
{
"from": "human",
"value": "<?php\n $classes = 'block-' . get_row_layout();\n?>\n<section class=\"block-wrap <?=$classes?>\">\n <div class=\"block\">\n \n <?php cfb_template('blocks/parts/block', 'tit... | php | chosen |
[
{
"from": "system",
"value": "Use a data-provider for tests.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests;\n\nuse PHPUnit_Framework_TestCase;\nuse ReflectionClass;\n\nclass UuidResolversTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @var \\PHPUnit_Framework_MockObject... | php | chosen |
[
{
"from": "system",
"value": "Test when there is no config\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Siler\\Test\\Unit\\Config;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Siler\\Container;\nuse function Siler\\Config\\{all, has, load, config};\nuse const Siler... | php | chosen |
[
{
"from": "system",
"value": "Fix composer setup for tests\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 LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Test spoof emails in travis\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Egulias\\EmailValidator\\Tests\\EmailValidator\\Validation;\n\nuse Egulias\\EmailValidator\\EmailLexer;\nuse Egulias\\EmailValidator\\Validation\\SpoofCheckValidation;\nuse PHPUnit\\Fr... | php | chosen |
[
{
"from": "system",
"value": "Add default parameter values to method\n\nThe \\Concrete\\Core\\Controller\\Controller::get method has a signature of get($identifier=null, $defaultValue=null). This signature was causing issues on PHP7.\n\nFormer-commit-id: 8174213182434f56dbd84b0180c69612422c6ade\nFormer-co... | php | chosen |
[
{
"from": "system",
"value": "Use bootstrap from environment instead of static instance\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Definition of class Language\n *\n * @copyright 2014-today Justso GmbH\n * @author j.schirrmacher@justso.de\n * @package justso\\service\n */\n\nnames... | php | chosen |
[
{
"from": "system",
"value": "Fix missing default session settings prior to the installation process\n\nCloses #440\n"
},
{
"from": "human",
"value": "<?php\n\nif (file_exists(APP . 'Config' . DS . 'croogo.php')) {\n\trequire APP . 'Config' . DS . 'croogo.php';\n} else {\n\tif (!defined('LOG_ERR... | php | chosen |
[
{
"from": "system",
"value": "Add homepage for plugin details"
},
{
"from": "human",
"value": "<?php namespace Nocio\\FormStore;\n\nuse System\\Classes\\PluginBase;\n\nclass Plugin extends PluginBase\n{\n\n /**\n * Component details\n * @return array\n */\n public function comp... | php | chosen |
[
{
"from": "system",
"value": "Add return type to __toString()\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file ... | php | chosen |
[
{
"from": "system",
"value": "[Backoffice] Add meta for easy development.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Clastic package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Fix error when no questions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Egzaminer\\Question;\n\nuse Egzaminer\\Model;\nuse PDO;\n\nclass Answers extends Model\n{\n public function getAnswersByQuestions($answers)\n {\n $where = '';\n for... | php | chosen |
[
{
"from": "system",
"value": "Add type check when adding items to the array\n"
},
{
"from": "human",
"value": "<?php\nnamespace RDM\\Generics;\n\nclass TypedArrayObject extends \\ArrayObject\n{\n private $type;\n \n /**\n * {@inheritDoc}\n *\n * @param string $type The type ... | php | chosen |
[
{
"from": "system",
"value": "Fix GitHub link in footer\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <link href=\"microcms.css\" rel=\"stylesheet\" />\n <title>MicroCMS - Home</title>\n</head>\n<body>\n <header>\n <h1>MicroC... | php | chosen |
[
{
"from": "system",
"value": "Fix php template error in HTTP class\n"
},
{
"from": "human",
"value": "<?\n\n/*\n This class strictly deals with HTTP requests.\n It has no awareness of object classes and uses primitive types and arrays.\n*/\n\nclass HTTP {\n // Retrieves the body of a post req... | php | chosen |
[
{
"from": "system",
"value": "Convert quotes, useful for data- attributes\n"
},
{
"from": "human",
"value": "<?php namespace Inkwell\\HTML\n{\n\tclass esc\n\t{\n\t\tpublic function __invoke($data)\n\t\t{\n\t\t\treturn is_string($data)\n\t\t\t\t? html::out(htmlspecialchars($data, ENT_HTML5), 'esc... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with hash-ref url\n"
},
{
"from": "human",
"value": "<?\ninclude_once(\"include/passwd.php\");\npg_connect($pgconnstr);\n\nHeader(\"Content-Type: text/html; charset=utf-8\");\n\nif (!isset($_GET[\"title\"])) {\n print \"Обязательный параметр title не опреде... | php | chosen |
[
{
"from": "system",
"value": "Fix AJAX clearing military payment message prematurely\n\nFollow the protocol in bounty_claim.php for storing a message from\na one-time transaction (in this case, claiming military payment)\nso that it can correctly remain on the screen when AJAX refreshes.\n\nWithout this fix... | php | chosen |
[
{
"from": "system",
"value": "Fix readout of latest API version\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Return latest API version\n *\n * @author Knut Kohl <github@knutkohl.de>\n * @copyright 2012-2014 Knut Kohl\n * @license MIT License (MIT) http://opensource.org/licenses/MIT\... | php | chosen |
[
{
"from": "system",
"value": "Fix extending service provider name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Laravel Carriers.\n *\n * (c) Brian Faust <hello@brianfaust.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that ... | php | chosen |
[
{
"from": "system",
"value": "Reset configuration after service tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * definition of class ServiceTestBase\n *\n * @copyright 2014-today Justso GmbH\n * @author j.schirrmacher@justso.de\n * @package justso\\test\n */\n\nnamespace justso\\j... | php | chosen |
[
{
"from": "system",
"value": "Clean up use of Symfony yaml dumper.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Consolidation\\OutputFormatters\\Formatters;\n\nuse Symfony\\Component\\Yaml\\Dumper;\nuse Consolidation\\OutputFormatters\\FormatterInterface;\nuse Symfony\\Component\\Console\... | php | chosen |
[
{
"from": "system",
"value": "Add method to get menu title from CMS.\n"
},
{
"from": "human",
"value": "<?php\n\nclass CustomMenu extends Extension {\n\t\n\tpublic function CustomMenu($slug = NULL) {\n\t\t\n\t\tif ($slug != NULL) {\n\t\t\t\n\t\t\tif ($Menu = Menu::get()->filter('Slug', $slug)->F... | php | chosen |
[
{
"from": "system",
"value": "Update doc blocks in the airport model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenCFP\\Domain\\Model;\n\nuse OpenCFP\\Domain\\Services\\AirportInformationDatabase;\n\nclass Airport extends Eloquent implements AirportInformationDatabase\n{\n protect... | php | chosen |
[
{
"from": "system",
"value": "Move the menu item registration to the core provider\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Menu\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Modules\\Menu\\Entities\\Menu;\nuse Modules\\Menu\\Entities\\Menuitem;\nuse Modules\\M... | php | chosen |
[
{
"from": "system",
"value": "Repair some merge errors before do somethink.\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\n//use yii\\widgets\\ActiveForm;\nuse kartik\\form\\ActiveForm;\n\n/* @var $this yii\\web\\View */\n/* @var $model frontend\\models\\Queen */\n/* @var $... | php | chosen |
[
{
"from": "system",
"value": "Add valid http url validation"
},
{
"from": "human",
"value": "<?php\n class BotController extends ControllerBase {\n public function update( $boturl = '' ) {\n require_once 'models/curl.php';\n require_once 'models/grader/bot.php';\n... | php | chosen |
[
{
"from": "system",
"value": "Add log out to navigation\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Budget</title>\n <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Muli:300,300i\" />\n <link rel=\"stylesheet\" href... | php | chosen |
[
{
"from": "system",
"value": "Add purchase functionality in back-end.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Invoice;\nuse App\\Book;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\nuse App\\Services\\Purchase;\n\nclass Purchases exte... | php | chosen |
[
{
"from": "system",
"value": "Update title to use app config\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phalcon\\Mvc\\Controller;\n\nclass ControllerBase extends Controller\n{\n protected function initialize()\n {\n $this->tag->prependTitle('FoxPaste - ');\n $this->view-... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Bux in variable name\"\n\nIn favour of 3564cc2bfffac78fd7f85f1f2cd9bfbbaa45bf6e.\n\nThis reverts commit b57c8258a0932719143c9205b411524e8c4d006d.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Model\\Repository;\n\nuse Nette;\nuse DateTime;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Remove comments from test class\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Tests\\Plugin\\Prophecy\\Token;\n\nuse Moka\\Plugin\\Prophecy\\Token\\AbstractPriorityToken;\n\n/**\n * Class UnsaltedPriorityToken\n * @package Tests\\Pl... | php | chosen |
[
{
"from": "system",
"value": "Update the interface with the Message client parameter\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface for JiraWebhookData converters.\n *\n * @credits https://github.com/kommuna\n * @author chewbacca@devadmin.com\n *\n * For the full copyright and lice... | php | chosen |
[
{
"from": "system",
"value": "Update PHPDoc on config manifest proxy constructor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LeKoala\\DebugBar\\Proxy;\n\nuse SilverStripe\\Config\\Collections\\CachedConfigCollection;\n\nclass ConfigManifestProxy extends CachedConfigCollection\n{\n /... | php | chosen |
[
{
"from": "system",
"value": "Update example to output a single line on PHP 7.2\n\nSomewhere in the development leading up to PHP 7.2, var_dump()\nstarted outputting the file and line number as part of it's output.\nThis causes one of the end-to-end tests to fail as the example script\nit uses outputs twice... | php | chosen |
[
{
"from": "system",
"value": "Add test for __get magic method in AdministrativeArea class\n"
},
{
"from": "human",
"value": "<?php\n\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class AdministrativeAreaTest\n *\n * @author Junior Grossi <juniorgro@gmail.com>\n */\nclass AdministrativeAre... | php | chosen |
[
{
"from": "system",
"value": "Add deprecation class alias for Bolt\\Content"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Autoloaded file to handle deprecation such as class aliases.\n *\n * NOTE:\n * If for any reason arrays are required in this file, only ever use array()\n * syntax to pre... | php | chosen |
[
{
"from": "system",
"value": "Fix schema version for api demo\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'itemsPerPage' => 100,\n 'rootURL' => 'api/oparl/v1/',\n 'modelNamespace' => 'OParl\\\\Server\\\\Model\\\\',\n\n 'transformers' => [\n 'serializer' => ... | php | chosen |
[
{
"from": "system",
"value": "Change function and vars to static\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rudolf\\Alerts;\n\nclass AlertsCollection {\n\n\t/**\n\t * @var array\n\t */\n\tprivate $collection;\n\n\t/**\n\t * Add alert to collection\n\t * \n\t * @param Alert $alert Aler... | php | chosen |
[
{
"from": "system",
"value": "Fix \"400: text is missing\" when updating a date\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace allejo\\DaPulse\\Objects;\n\n/**\n * Class PulseColumnTextValue\n *\n * @internal\n * @package allejo\\DaPulse\\Objects\n */\nclass PulseColumnDateValue extends P... | php | chosen |
[
{
"from": "system",
"value": "Fix problem with Soundcloud API bug\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Service;\n\n\nuse App\\Model\\SongRecord;\n\nclass SoundcloudApiService extends AbstractApiService\n{\n\n public function getSongRecords(array $filters): array\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Use test database in database check test\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @mixin PHPUnit_Framework_TestCase\n */\nclass DatabaseCheckTest extends SapphireTest {\n\tpublic function testCheckReportsValidConnection() {\n\t\t$check = new DatabaseCheck... | php | chosen |
[
{
"from": "system",
"value": "Bump PHP version check in bootstrap code to v5.4+\n\nfixes https://github.com/wp-cli/wp-cli/issues/5037"
},
{
"from": "human",
"value": "<?php\n\n// This file needs to parse without error in PHP < 5.3\n\nif ( 'cli' !== PHP_SAPI ) {\n\techo \"Only CLI access.\\n\";\n... | php | chosen |
[
{
"from": "system",
"value": "Fix in sami output path\n"
},
{
"from": "human",
"value": "<?php\n\nuse Sami\\Sami;\nuse Sami\\Version\\GitVersionCollection;\n\n$versions = GitVersionCollection::create(dirname(__FILE__) . '/src')\n\t->addFromTags('0.*')\n\t->add('master', 'master branch')\n;\n\nre... | php | chosen |
[
{
"from": "system",
"value": "Clean up copying of attributes at @nikic's request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPPHP\\Engine;\n\nabstract class OpLine {\n public $op1;\n public $op2;\n public $result;\n public $attributes;\n\n public function __construct(\... | php | chosen |
[
{
"from": "system",
"value": "Verify that the URL passed as a parameter in the no cookie error page is allowed. Reported by John Page (hyp3rlinx).\n"
},
{
"from": "human",
"value": "<?php\n\nif (isset($_REQUEST['retryURL'])) {\n\t$retryURL = (string)$_REQUEST['retryURL'];\n\t$retryURL = \\Simple... | php | chosen |
[
{
"from": "system",
"value": "Fix comments and add the zzz() function to display Bob's quote.\n"
},
{
"from": "human",
"value": "<?php\n\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass First extends Application\n{\n\n\tfunction __construct()\n\t{\n\t\tparent::__construc... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.