conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use the settings object when getting the project name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Construct\\Constructors;\n\nclass LgtmFiles extends Constructor implements ConstructorContract\n{\n /**\n * Generate LGTM configuration files.\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix removal of namespace when deriving error code from class name"
},
{
"from": "human",
"value": "<?php\n\nnamespace Amp\\Optimizer\\Error;\n\n/**\n * Default set of properties and methods to use for errors.\n *\n * @package Amp\\Optimizer\n */\ntrait ErrorProperti... | php | chosen |
[
{
"from": "system",
"value": "Rectify Msession Model and specify pivot table name -bergynj\n"
},
{
"from": "human",
"value": "<?php namespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Msessions extends Model {\n\n\t/**\n\t * The database table used by the model.\n\t *\n\t * @va... | php | chosen |
[
{
"from": "system",
"value": "Add yield for scripts in footer\n"
},
{
"from": "human",
"value": " <script src=\"{{ elixir('js/app.js') }}\"></script>\n\n </body>\n</html>"
},
{
"from": "gpt",
"value": " <script src=\"{{ elixir('js/app.js') }}\"></script>\n\n @... | php | chosen |
[
{
"from": "system",
"value": "Remove custom admin buttons, preparing for adding new Admin Service Tab fields\n"
},
{
"from": "human",
"value": "<?php\n/*\n * SolusVM_AdminCustomButtonArray\n *\n * Define custom functions in your module for admin users. This can contain more functions than the cl... | php | chosen |
[
{
"from": "system",
"value": "Move default app options into ATP\n"
},
{
"from": "human",
"value": "<?php\n$env = getenv('APPLICATION_ENV') ?: 'development';\n\nreturn array(\n 'modules' => array(\n 'Application',\n\t\t'ATPCore'\n ),\n\n 'module_listener_options' => array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Removed cleanInputVariables() for admin\"\n\nThis reverts commit 9fe974adfbd16af4aa1c50870ce77d14921b5017.\n"
},
{
"from": "human",
"value": "<?php\n\n// Path to data folder from SimpleSignUp root\n$data_path = '../../server_data/ssu/';\n\n// Set timezone f... | php | chosen |
[
{
"from": "system",
"value": "Disable stream synchronization task in Mainteance::common()\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Maintenance_Cli extends CM_Cli_Runnable_Abstract {\n\n\t/**\n\t * @synchronized\n\t */\n\tpublic function common() {\n\t\tCM_Model_User::offlineOld();\n\... | php | chosen |
[
{
"from": "system",
"value": "Set missing paremeters on the error message\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package OVAC/Hubtel-Payment\n * @link https://github.com/ovac/hubtel-payment\n *\n * @author Ariama O. Victor (OVAC) <contact@ovac4u.com>\n * @link ... | php | chosen |
[
{
"from": "system",
"value": "Add setter for prefix in listener to dynamically change it (for exemple by website)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Symfony\\Cmf\\Bundle\\RoutingExtraBundle\\Listener;\n\nuse Symfony\\Cmf\\Bundle\\RoutingExtraBundle\\Document\\Route;\nuse Doctr... | php | chosen |
[
{
"from": "system",
"value": "Make collection generic class configurable (just like Entity already is).\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n * This file is part of the Aura project for PHP.\n *\n * @package Aura.Marshal\n *\n * @license http://opensource.org/licenses/bsd-license.p... | php | chosen |
[
{
"from": "system",
"value": "Make method access specifier explicit\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flow\\Expression;\n\nuse Flow\\Expression;\n\nabstract class UnaryExpression extends Expression\n{\n private $node;\n\n public function __construct($node, $line)\n {... | php | chosen |
[
{
"from": "system",
"value": "Use mt_rand to generate random number. Faker broke when integers started with 0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zizaco\\FactoryMuff\\Kind;\n\nuse Zizaco\\FactoryMuff\\Kind;\n\nclass Integer extends Kind\n{\n public function generate()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Return the format for the Exception\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flint\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass ExceptionController extends Controller\n{\n public function showAction(Request $request)\n ... | php | chosen |
[
{
"from": "system",
"value": "Add namespace path to return type.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enzyme\\Axiom\\Factories;\n\nuse Enzyme\\Axiom\\Carriers\\CarrierInterface;\n\n/**\n * Makes instances from the given data.\n */\ninterface FactoryInterface\n{\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add new method for html escaping.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace H4D\\Leveret\\Application;\n\nuse H4D\\I18n\\NullTranslator;\nuse H4D\\I18n\\TranslatorAwareTrait;\nuse H4D\\Template\\TemplateTrait;\nuse H4D\\Leveret\\Application\\View\\Partia... | php | chosen |
[
{
"from": "system",
"value": "Update Knockout js version script src\n"
},
{
"from": "human",
"value": "<!-- Javascript -->\n<script src=\"/js/i18n.js\"></script>\n<script src=\"/js/jquery.min.js\"></script>\n<script src=\"/js/jsrapport/jquery-ui.min.js\"></script>\n<script src=\"/js/knockout-3.1... | php | chosen |
[
{
"from": "system",
"value": "Add a few more tests\n"
},
{
"from": "human",
"value": "<?php\nnamespace DrestTests;\n\n\n\nclass ManagerTest extends DrestTestCase\n{\n\n public function testExecutingOnANamedRoute()\n {\n $dm = $this->_getDrestManager();\n\n $dm->dispatch()\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix list of break attendees\n"
},
{
"from": "human",
"value": "<?php\nnamespace CodeDay\\Clear\\Http\\Controllers\\Manage\\DayOf;\n\nuse \\CodeDay\\Clear\\Models;\nuse \\CodeDay\\Clear\\ModelContracts;\nuse \\Carbon\\Carbon;\n\nclass BreakController extends \\CodeDa... | php | chosen |
[
{
"from": "system",
"value": "Fix for php not\u0010ice error\n"
},
{
"from": "human",
"value": "<?php\nnamespace Luracast\\Restler\\Format;\n\n/**\n * Javascript Object Notation Packaged in a method (JSONP)\n *\n * @category Framework\n * @package Restler\n * @subpackage format\n * @author ... | php | chosen |
[
{
"from": "system",
"value": "Update Wrong API key test\n\nBecause now, the minimum key length is 10 chars\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017-2018, Pierre-Henry Soria. All Rights Reserved.\n * @... | php | chosen |
[
{
"from": "system",
"value": "Rename parameter in interface to be more generic.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Interface that collections must implement.\n *\n * PHP Version 5.3\n *\n * @copyright (c) 2006-2014 brian ridley\n * @author brian ridley <ptlis@ptlis.net>\n... | php | chosen |
[
{
"from": "system",
"value": "Add fillable property to item resource.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Alegra;\n\nclass Item extends Resource\n{\n /**\n * Transform attributes when receive the resource\n *\n * @var array\n */\n protected static $casts =... | php | chosen |
[
{
"from": "system",
"value": "Fix for PHP 7 exceptions (throwables)\n"
},
{
"from": "human",
"value": "<?php namespace App\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\n\nclass Handler extends ExceptionHandler {\n\n\t/**\n\t * A list of the... | php | chosen |
[
{
"from": "system",
"value": "Drop non-existent filter classes and log an error\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kibo\\Phast\\Filters\\HTML\\Composite;\n\nuse Kibo\\Phast\\Environment\\Package;\nuse Kibo\\Phast\\ValueObjects\\URL;\n\nclass Factory {\n\n public function ma... | php | chosen |
[
{
"from": "system",
"value": "Use \"Français\" instead of \"French\".\n"
},
{
"from": "human",
"value": "<?php namespace Qia;\n\nuse Flarum\\Support\\Extension as BaseExtension;\nuse Illuminate\\Events\\Dispatcher;\nuse Flarum\\Events\\RegisterLocales;\n\nclass Extension extends BaseExtension\n{... | php | chosen |
[
{
"from": "system",
"value": "Add die if invalid action is passed\n"
},
{
"from": "human",
"value": "<?php\n\n//Indication, Copyright Josh Fradley (http://github.com/joshf/Indication)\n\nif (!file_exists(\"../../config.php\")) {\n header(\"Location: ../../installer\");\n exit;\n}\n\nrequir... | php | chosen |
[
{
"from": "system",
"value": "Embed youtube videos via youtube-nocookie.com\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n [\n 'link' => 'https://www.youtube.com/watch?v=-5ZdGUvOqx4',\n 'embed_url' => 'https://www.youtube.com/embed/-5ZdGUvOqx4'\n ],\n [\n 'l... | php | chosen |
[
{
"from": "system",
"value": "Add simple back-end validation on signup\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Auth;\n\nuse App\\User;\nuse Illuminate\\Database\\QueryException;\nuse Illuminate\\Support\\Facades\\Request;\nuse Illuminate\\Support\\Facades\\A... | php | chosen |
[
{
"from": "system",
"value": "Use LazyStrings instance in container.\n\nThe command uses the LazyStrings instance in the container for the deployment command.\n"
},
{
"from": "human",
"value": "<?php namespace Nobox\\LazyStrings\\Commands;\n\nuse Nobox\\LazyStrings\\LazyStrings;\n\nuse Illuminat... | php | chosen |
[
{
"from": "system",
"value": "Fix setting loyalty_number on new customer\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\n\n$name= $_REQUEST['name'];\n$company= $_REQUEST['company'];\n$phone= $_REQUEST['phone'];\nif (empty($name) && empty($company) && empty($phone))\n die_jsonp(\"... | php | chosen |
[
{
"from": "system",
"value": "Rewrite as a Pest PHP test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\n\nclass ListingsTest extends TestCase\n{\n /**\n * Test that the Listings pages load via HTTP requests.\n *\n * @dataProvider Lis... | php | chosen |
[
{
"from": "system",
"value": "Fix arguments order in assertion\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Stub;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass SessionTestStub extends TestCase\n{\n private const SESSION_ID = '42';\n\n protected f... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Add sorting to faqs table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateFaqsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Check returned value of non-stubbed method call\n"
},
{
"from": "human",
"value": "<?php\nnamespace spec\\rtens\\mockster3;\n\nuse rtens\\mockster3\\Mockster;\nuse watoki\\scrut\\Specification;\n\nclass CheckReturnTypeTest extends Specification {\n\n /** @var Che... | php | chosen |
[
{
"from": "system",
"value": "Add two functions to amdin controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController as BaseAdminController;\n\n\nclass AdminController extends BaseAdminController\n{... | php | chosen |
[
{
"from": "system",
"value": "Add both and edit and create security checks.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controller\\Framework;\n\nuse App\\Command\\CommandDispatcherTrait;\nuse App\\Command\\Framework\\CloneFrameworkCommand;\nuse App\\Entity\\Framework\\LsDoc;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Remove model NS from config - we can obtain this through code.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'model_ns' => 'App',\n 'sitename' => 'CrudApi',\n 'pagination' => [\n 'enabled' => true,\n 'perPage' => 25\n ]\n];\n"
},... | php | chosen |
[
{
"from": "system",
"value": "Add happy-nest in email subject\n"
},
{
"from": "human",
"value": "<?php\n// check if fields passed are empty\nif(empty($_POST['name']) ||\n empty($_POST['email']) ||\n !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))\n {\n echo \"No argumen... | php | chosen |
[
{
"from": "system",
"value": "Use ctype_digit to validate port\n"
},
{
"from": "human",
"value": "<?php\n/**\n* This file is part of the League.url library\n*\n* @license http://opensource.org/licenses/MIT\n* @link https://github.com/thephpleague/url/\n* @version 4.0.0\n* @package League.url\n*\... | php | chosen |
[
{
"from": "system",
"value": "Make possibe to output the last output of the query\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('title')File - {{$file}}@stop\n\n@section('content')\n <h1>{{SourceController::linkedPath($path)}}</h1>\n\n <h2>Query</h2>\n <?php\n\t $... | php | chosen |
[
{
"from": "system",
"value": "Update git command that will support old version of git also"
},
{
"from": "human",
"value": "<?php\n\nif (! function_exists('create_hooks_dir')) {\n /**\n * Create hook directory if not exists.\n *\n * @param string $dir\n * @param int $mode\... | php | chosen |
[
{
"from": "system",
"value": "MINOR: Hide the Sort field in forms.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A simple extension to add a sort field to an object.\n *\n * @package silverstripe-orderable\n */\nclass Orderable extends DataObjectDecorator {\n\n\tpublic function extraStatics(... | php | chosen |
[
{
"from": "system",
"value": "Add condition to avoid notices\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Algolia\\AlgoliaSearchBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Comp... | php | chosen |
[
{
"from": "system",
"value": "Check for existing key before mapping in phpme_map()\n"
},
{
"from": "human",
"value": "<?php\nfunction phpme_map( $from_array, $map, $return_type = 'Array' ) {\n\t$return = array();\n\t\n\tforeach ( $map as $to_key => $from_key ) {\n\t\t$return[$to_key] = $from_arr... | php | chosen |
[
{
"from": "system",
"value": "Fix Czech translation typo, thanks to Renzotom\n"
},
{
"from": "human",
"value": "<?php \n/*\n *\tMade by Samerton\n * https://github.com/NamelessMC/Nameless/\n * NamelessMC version 2.0.0-dev\n *\n * License: MIT\n *\n * EnglishUS Language - Errors\n */\n\n$lang... | php | chosen |
[
{
"from": "system",
"value": "Remove scalar type hint for php56 compat\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Valit package.\n *\n * @package Valit\n * @author Kim Ravn Hansen <moccalotto@gmail.com>\n * @copyright 2017\n * @license MIT\n */\n\nnamespace Mocc... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Use the correct include based on the PHPUnit version.\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36937 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupw... | php | chosen |
[
{
"from": "system",
"value": "Move common mapper task into base.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * User: wangting\n * Date: 12-11-29\n * Time: 上午11:56\n * copyright 2012 tiddr.de\n */\nclass Base\n{\n\n}\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Tiddr\\Mapper;... | php | chosen |
[
{
"from": "system",
"value": "Add a reset button into the search section.\n\n:)\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\nuse yii\\bootstrap\\ActiveForm;\n\n/* @var $this yii\\web\\View */\n/* @var $model app\\models\\CttStaticdataLanguagesSearch */\n/* @var $form yii\... | php | chosen |
[
{
"from": "system",
"value": "Allow models to be exported to an array\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SteamRep;\n\n\nabstract class SteamRepModel {\n protected $body;\n\n public function __construct(array $body) {\n $this->body = $body;\n }\n}"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Allow for strings in Stream::createStream\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Interop\\Http\\Factory;\n\nuse Psr\\Http\\Message\\StreamInterface;\n\ninterface StreamFactoryInterface\n{\n /**\n * Create a new stream from a resource.\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Update unit tests to reflect new routing.\n\n"
},
{
"from": "human",
"value": "<?php\nclass C00_Station_ProfileCest extends CestAbstract\n{\n /**\n * @before setupComplete\n * @before login\n */\n public function editStationProfile(FunctionalTester... | php | chosen |
[
{
"from": "system",
"value": "Create users table in database\n"
},
{
"from": "human",
"value": "<?php\nclass User extends AppModel {\n\tpublic $name = 'User';\n\tpublic $primaryKey = 'id';\n\tpublic $displayField = 'name';\n\n\n\t/**\n\t* @function name:\tpublic function getUser($id)\n\t* @descr... | php | chosen |
[
{
"from": "system",
"value": "Add image when path is set, not only when SplInfo is present\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace SitemapPlugin\\Generator;\n\nuse Liip\\ImagineBundle\\Imagine\\Cache\\CacheManager;\nuse SitemapPlugin\\Factory\\SitemapIma... | php | chosen |
[
{
"from": "system",
"value": "Fix google site verification meta tag\n"
},
{
"from": "human",
"value": " <link rel=\"shortcut icon\" href=\"<?php echo get_template_directory_uri() ?>/dist/images/favicon-32.png\">\n\n <?php if(get_field('googlesiteverification_id', 'option')) : ?>\n <meta n... | php | chosen |
[
{
"from": "system",
"value": "Change default HTTP timeout to 10 seconds\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'check_setup.php';\nrequire 'vendor/password.php';\nrequire 'vendor/PicoTools/Dependency_Injection.php';\nrequire 'vendor/PicoTools/Translator.php';\nrequire 'vendor/PicoDb... | php | chosen |
[
{
"from": "system",
"value": "Add installer to install command execution\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ibuildings\\QaTools\\Core\\Application\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symf... | php | chosen |
[
{
"from": "system",
"value": "Add cDatePublic to indexed search result constructor\n"
},
{
"from": "human",
"value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\nclass Concrete5_Library_IndexedSearchResult {\n\n\tpublic function __construct($id, $name, $description, $score, $cPath, $c... | php | chosen |
[
{
"from": "system",
"value": "Stop looking up inherited box when box doesn't exist anymore\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Box_InheritContent_Cc_Component extends Kwc_Chained_Cc_Component\n{\n public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer = null... | php | chosen |
[
{
"from": "system",
"value": "Add comment for identity reverse engineering\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare (strict_types = 1);\n\nnamespace HMLB\\DDDBundle\\Doctrine\\ORM\\DBAL\\Types;\n\nuse Doctrine\\DBAL\\Types\\ConversionException;\nuse Doctrine\\DBAL\\Types\\Type;\nuse D... | php | chosen |
[
{
"from": "system",
"value": "Add message to tell if there were errors or not\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lighwand\\Validate;\n\nuse Lighwand\\Validate\\Loader\\VideoLoader;\nuse Lighwand\\Validate\\Video\\VideoValidator;\nuse Zend\\ServiceManager\\Config;\nuse Zend\\Se... | php | chosen |
[
{
"from": "system",
"value": "Fix TraceSampler for Console Commands\n\nThe array key 'route' doesn't always exist which them emits a PHP\nwarning, fixed with a check.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Service;\n\nuse Sentry\\Tracing\\SamplingC... | php | chosen |
[
{
"from": "system",
"value": "Sort endpoint listing by name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Contracts\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass DevelopersController extends Controller\n{\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Update to add session verification and better menu bar"
},
{
"from": "human",
"value": "<html>\n <body>\n <p>\n <hr>\n <a href=\"index.php\">home</a> | \n <a href=\"summary.php\">summary</a> | \n <a href=\"nodes.php\">nodes</a> | \n <a href=\"info.php\">i... | php | chosen |
[
{
"from": "system",
"value": "Fix update version for 0.9.2 -> 0.9.3\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\t'0.8.0' => '0.8.1',\n\t'0.8.1' => '0.8.2',\n\t'0.9.0' => '0.9.2',\n\t'0.9.1' => '0.9.2',\n\t'0.8-dev' => 'dev',\n\t'0.10-dev' => 'dev',\n);\n"
},
{
"from": "gp... | php | chosen |
[
{
"from": "system",
"value": "Add test for equal condition with datetime type\n"
},
{
"from": "human",
"value": "<?php\n\nuse Mdd\\QueryBuilder\\Type;\nuse Mdd\\QueryBuilder\\Types;\nuse Mdd\\QueryBuilder\\Conditions;\nuse Mdd\\QueryBuilder\\Tests\\Escapers\\SimpleEscaper;\n\nclass EqualTest ext... | php | chosen |
[
{
"from": "system",
"value": "Add ip restriction on dev env\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// r... | php | chosen |
[
{
"from": "system",
"value": "Allow custom domain in custom config example\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__ . \"/_bootstrap.php\";\n\nuse Amp\\Dns;\nuse Amp\\Loop;\nuse Amp\\Promise;\n\n$customConfigLoader = new class implements Dns\\ConfigLoader {\n public function... | php | chosen |
[
{
"from": "system",
"value": "Fix user avatar show error, In local environment.\n"
},
{
"from": "human",
"value": "<?php namespace Phphub\\Presenters;\n\nuse Laracasts\\Presenter\\Presenter;\nuse Route;\n\nclass UserPresenter extends Presenter\n{\n /**\n * Present a link to the user grava... | php | chosen |
[
{
"from": "system",
"value": "Set 5s expiration to the flash session\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('FLASH_INFO', 'info');\ndefine('FLASH_SUCCESS', 'success');\ndefine('FLASH_WARNING', 'warning');\ndefine('FLASH_ERROR', 'danger');\ndefine('FLASH_KEY', '_fid');\n\nfunction get... | php | chosen |
[
{
"from": "system",
"value": "Remove the OpenIdP from remote IdP metadata template.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * SAML 2.0 remote IdP metadata for SimpleSAMLphp.\n *\n * Remember to remove the IdPs you don't use from this file.\n *\n * See: https://simplesamlphp.org/docs/stab... | php | chosen |
[
{
"from": "system",
"value": "Set branch back to develop\n\nI hads to switch branches because the automated GH action script always targets masterb\n\nSigned-off-by: snipe <e9c017fc53f27c86a4fb6d4f0de7d332b596a185@snipe.net>\n"
},
{
"from": "human",
"value": "<?php\nreturn array (\n 'app_versio... | php | chosen |
[
{
"from": "system",
"value": "fix: Remove the dependence on path.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CodeIgniter PHP-Development Server Rewrite Rules\n *\n * This script works with the CLI serve command to help run a seamless\n * development server based around PHP's built-in deve... | php | chosen |
[
{
"from": "system",
"value": "Compress data API responses with gzip if supported by client\n"
},
{
"from": "human",
"value": "<?php\nnamespace DrupalReleaseDate\\Controllers;\n\nuse Silex\\Application;\nuse Silex\\ControllerProviderInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nus... | php | chosen |
[
{
"from": "system",
"value": "Include the site root in the URL"
},
{
"from": "human",
"value": "<?php\nclass Plugin_download extends Plugin\n{\n\n\tpublic function index()\n\t{\n\t\t$file = $this->fetchParam(array('file', 'filename', 'url'), null, null, false, false);\n\t\t$as = $this->fetchPa... | php | chosen |
[
{
"from": "system",
"value": "Set name as mandatory element for form creation"
},
{
"from": "human",
"value": "<?php\n\nnamespace GoalioForgotPassword\\Form;\n\nuse Laminas\\Form\\Element;\nuse Laminas\\Form\\Form;\nuse GoalioForgotPassword\\Options\\ForgotOptionsInterface;\n\nclass Forgot exten... | php | chosen |
[
{
"from": "system",
"value": "Update nav bar to link to Phoenix not Ashes\n"
},
{
"from": "human",
"value": "<nav class=\"navigation\">\n <a class=\"navigation__logo\" href=\"http://www.dosomething.org\"><span>DoSomething.org</span></a>\n <a class=\"navigation__toggle js-navigation-toggle\... | php | chosen |
[
{
"from": "system",
"value": "Update email template for new Incident notification\n"
},
{
"from": "human",
"value": "@component('mail::message')\n\t# New Incident\n\n\tA new incident as been posted to the Repository by {{ $incident->user->name }}.\n\n\t@component('mail::button', ['url' => url('i... | php | chosen |
[
{
"from": "system",
"value": "Fix unit tests failing if sqlite is not present\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Exporter\\Test\\Source;\n\nuse Exporter\\Source\\PDOStatementSourceIterator;\n\nclass PDOStatementSourceIteratorTest extends \\PHPUnit_Framework_TestCase\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Make console output noisy again\n\nOtherwise tool reports like phploc wouldn't be part of the report\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Phpcq\\PostProcessor;\n\nuse Phpcq\\PluginApi\\Version10\\OutputInterface;\nuse Php... | php | chosen |
[
{
"from": "system",
"value": "Fix php_executable option not being retrieved correctly.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BestIt\\Mage\\Tasks\\Shopware;\n\nuse Mage\\Task\\AbstractTask as MageAbstractTask;\n\n/**\n * Class AbstractTask\n *\n * @package BestIt\\Mage\\Tasks\\Sho... | php | chosen |
[
{
"from": "system",
"value": "Allow model to be nullable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Laravel\\Validation\\Rules;\n\nuse Adldap\\Models\\User;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nabstract class Rule\n{\n /**\n * @var User\n */\n protecte... | php | chosen |
[
{
"from": "system",
"value": "Add exception case composer is not installed\n"
},
{
"from": "human",
"value": "<?php\n\trequire_once 'vendor/autoload.php';"
},
{
"from": "gpt",
"value": "<?php\n\t$autoloadFile = 'vendor/autoload.php';\n\n\tif( !file_exists( $autoloadFile ) ){\n\t\tthr... | php | chosen |
[
{
"from": "system",
"value": "Add constants for CHECKSEQUENCEVERIFY flags\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Transaction;\n\nuse BitWasp\\Bitcoin\\Script\\ScriptInterface;\n\ninterface TransactionInputInterface extends \\ArrayAccess\n{\n /**\n * The de... | php | chosen |
[
{
"from": "system",
"value": "Add `core` and remove `updates` from concrete5 installer\n\nThis allows us to properly install the core via composer."
},
{
"from": "human",
"value": "<?php\nnamespace Composer\\Installers;\n\nclass Concrete5Installer extends BaseInstaller\n{\n protected $locatio... | php | chosen |
[
{
"from": "system",
"value": "Add a super insecure identity provider used for the purposes of developing API endpoints\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenCFP\\Infrastructure\\Auth; \n\nuse OpenCFP\\Domain\\Entity\\User;\nuse OpenCFP\\Domain\\Services\\IdentityProvider;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add examples for file storage location\n\n\nFormer-commit-id: ca2cc34b80ea41c73c2b73dfdbae2ee0187b5d02"
},
{
"from": "human",
"value": "<?php\ndefined('C5_EXECUTE') or die('Access Denied');\nif (is_object($configuration)) {\n\t$path = $configuration->getRootPath();\... | php | chosen |
[
{
"from": "system",
"value": "Fix chart scale on download stats page.\n"
},
{
"from": "human",
"value": "<?php\n\nclass DownloadStatsPage extends Page {\n}\n\nclass DownloadStatsPage_Controller extends Page_Controller {\n\n\tfunction DownloadStatsChartUrl() {\n\t\t$downloads = DataObject::get(\"... | php | chosen |
[
{
"from": "system",
"value": "Add NewLine To End Of File\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Consolidare\\Mergeable\\Exception;\n\nuse Consolidare\\MergeException;\n\nclass MergeableException extends MergeException\n{\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnames... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Fix to hash class\"\n\nThis reverts commit 6a44d9530f1c973a2ad2deb3eb133b5289e4bcb3.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Password hasher and verifier.\n *\n * For PHP 5.5 and above it will use the excellent password_hash function with strong... | php | chosen |
[
{
"from": "system",
"value": "Fix Checking ContentType for JSON\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MRussell\\REST\\Endpoint\\Traits;\n\nuse GuzzleHttp\\Psr7\\Request;\n\ntrait JsonHandlerTrait {\n\n protected $respBody = null;\n\n /**\n * @param Request $request\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix toArray method, was returning extra elements\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UserControlSkeleton;\n\nclass Requests\n{\n\tprotected $data;\n\n\tpublic function __construct()\n\t{\n\t\tforeach ($_POST as $key => $value) {\n\t\t\t$this->data[... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with Git 1.5.x\n"
},
{
"from": "human",
"value": "<?php\n\nclass phpGitRepoCommand\n{\n protected $dir;\n\n protected $commandString;\n\n protected $debug;\n\n public function __construct($dir, $commandString, $debug)\n {\n $commandString = trim($c... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Implement simple tests for findBy([]) method\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author: Patsura Dmitry http://github.com/ovr <talk@dmtry.me>\n */\n\nnamespace Lynx\\Tests;\n\nuse DateTime;\nuse Model\\User;\n\nclass RepositoryTest extends Tes... | php | chosen |
[
{
"from": "system",
"value": "Change default logging level to INFO+\n"
},
{
"from": "human",
"value": "<?php\n\ninclude('../src/common.php');\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\StreamHandler;\nuse unreal4u\\Telegram\\Types\\Update;\nuse unreal4u\\Telegram\\Types\\InlineQueryResultArt... | php | chosen |
[
{
"from": "system",
"value": "Fix static call to non-static method"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\n/*\n * Interactive script to generate password hashes.\n *\n */\n\n// This is the base directory of the SimpleSAMLphp installation\n$baseDir = dirname(dirname(__FILE__... | php | chosen |
[
{
"from": "system",
"value": "Add current date to start page\n"
},
{
"from": "human",
"value": " <div class=\"data_collection\">\n <h1>Last Visits</h1>\n <ul class=\"latest\">\n <?php echo $visit_listl ?>\n </ul>\n <div class=\"clear\"></div>\n <h... | php | chosen |
[
{
"from": "system",
"value": "Fix template path getter syntax\n\nTest #1208\n\n\n\ngit-svn-id: 28fe03dfd74dd77dcc8ecfe99fabcec8eed81bba@3763 8555b757-d854-4b86-925a-82fd84c90ff4\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"<?php echo Lan... | php | chosen |
[
{
"from": "system",
"value": "Remove the driver protected variable. Haven't even started thinking about this library, don't know why that variable is there.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Database Library\n *\n * Normalise all input; GET, POST, STDIN, etc.\n *\n * @category\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.