conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add setAlgorithm method to the user repository interface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * (c) Gordon Franke <info@nevalon.de>\n * (c) Thibault Duplessis <thibault.duplessis@gmail.com>\n *\n * This source file is subject to the MIT license that is ... | php | chosen |
[
{
"from": "system",
"value": "Update console command with new job\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse App\\Jobs\\CrawlSite;\nuse App\\Models\\Site;\nuse Illuminate\\Console\\Command;\n\nclass CrawlSites extends Command\n{\n /**\n * The name... | php | chosen |
[
{
"from": "system",
"value": "Update Email Controller for support templates\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controllers;\n\nuse SendGrid\\Email as SendGridEmail;\nuse SendGrid;\n\nclass EmailController\n{\n\n /**\n * @param string $to\n * @param string $from... | php | chosen |
[
{
"from": "system",
"value": "Add the class declaration service configuration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EdpSuperluminal;\n\nuse Zend\\Console\\Request as ConsoleRequest;\nuse Zend\\Mvc\\MvcEvent;\n\n/**\n * Create a class cache of all classes used.\n *\n * @package Ed... | php | chosen |
[
{
"from": "system",
"value": "Replace missing function getOrignalMessageSpliter with getAllMessageSpliters in tunderbird email extractor because problem with php7.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ActiveCollab\\EmailReplyExtractor\\Extractor;\n\n\nfinal class ThunderBirdMailEx... | php | chosen |
[
{
"from": "system",
"value": "Switch license from MIT to AGPL in plugin file\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\nPlugin Name: Castlegate IT WP Conditional Downloads\nPlugin URI: https://github.com/castlegateit/cgit-wp-conditional-downloads\nDescription: Add conditions to protect fi... | php | chosen |
[
{
"from": "system",
"value": "Rename from 'set' to 'addAdapter'\n"
},
{
"from": "human",
"value": "<?php\nnamespace Stien\\Torrent;\n\nclass TorrentScraper {\n\tprotected $adapters = [];\n\n\tpublic function setAdapter(TorrentAdapterInterface $adapter)\n\t{\n\t\t$this->adapters[] = $adapter;\n\t... | php | chosen |
[
{
"from": "system",
"value": "Add CSRF field to the form\n"
},
{
"from": "human",
"value": "<form method=\"POST\" action=\"{{ action('SettingsController@update') }}\">\n <input type=\"hidden\" name=\"_method\" value=\"PATCH\" />\n\n @if(version_compare($version, '5.3.0') < 0)\n @inc... | php | chosen |
[
{
"from": "system",
"value": "Fix empty string values not being imported into fields, in some cases, for some fields\n"
},
{
"from": "human",
"value": "<?php\nnamespace verbb\\feedme\\fields;\n\nuse verbb\\feedme\\base\\Field;\nuse verbb\\feedme\\base\\FieldInterface;\n\nuse Craft;\n\nuse Cake\\... | php | chosen |
[
{
"from": "system",
"value": "Rename to something more sensible\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace eien\\Notifications;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Notifications\\Notification;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse Illuminate\\Notificatio... | php | chosen |
[
{
"from": "system",
"value": "Add bootstrap files to layout.\n"
},
{
"from": "human",
"value": "@extends('layouts.base')\n\n@section('title')\n <title>{{ $pageTitle . ' | nobox' }}</title>\n@stop\n\n@section('stylesheets')\n @if ('production' == $environment)\n <link rel=\"stylesheet\" ... | php | chosen |
[
{
"from": "system",
"value": "Use Str::random() instead of str_random()"
},
{
"from": "human",
"value": "<?php\n\nuse Faker\\Generator as Faker;\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|-----------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add user activated Nova filter name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Nova\\Filters;\n\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Filters\\Filter;\n\nclass UserActivated extends Filter\n{\n /**\n * Apply the filter t... | php | chosen |
[
{
"from": "system",
"value": "Make test autoloader a little more robust\n"
},
{
"from": "human",
"value": "<?php\n\n$loader = require_once __DIR__ . \"/../vendor/autoload.php\";\n$loader->add('Gliph\\\\', __DIR__);"
},
{
"from": "gpt",
"value": "<?php\n\n$loader = require __DIR__ . \... | php | chosen |
[
{
"from": "system",
"value": "Remove extraneous `{` in migration\n\nIt looks like we inadvertently got an extra `{` in here - I noticed it because my IDE threw a big red dot on this migration. We must've accidentally put that in when we were adding the 'id' column."
},
{
"from": "human",
"value"... | php | chosen |
[
{
"from": "system",
"value": "Remove Message typehint for testing convenience\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CodeZero\\Mailer;\n\nuse Illuminate\\Contracts\\Mail\\MailQueue;\nuse Illuminate\\Mail\\Message;\n\nclass LaravelMailer implements Mailer\n{\n /**\n * Larave... | php | chosen |
[
{
"from": "system",
"value": "Set pool to finished and set contenders for next pools with team ids\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\Admin;\n\nuse App\\Pool;\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\n\nclass Tournament... | php | chosen |
[
{
"from": "system",
"value": "Add in slick new address functions\n"
},
{
"from": "human",
"value": "<?php\n/* ------------------------------------------------------------------------ *\\\n * Custom Functions\n\\* ------------------------------------------------------------------------ */\n\n// g... | php | chosen |
[
{
"from": "system",
"value": "Correct linearization/delinearization of this linking function."
},
{
"from": "human",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Linking;\n\n/**\n * Power\n * \n * Linking implementation that transforms data that follows a geometric curve.\n */\nclass Po... | php | chosen |
[
{
"from": "system",
"value": "Remove function exists check for namespaced functions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ArrayHelpers;\n\nif (!function_exists('array_get')) {\n function array_get($array, $key, $default = null)\n {\n return Arr::get($array, $key, $de... | php | chosen |
[
{
"from": "system",
"value": "Add extra scope for readonly option\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/**\n\t * Application name\n\t */\n\t'application_name' => 'My App',\n\n\t/**\n\t * Client ID\n\t */\n\t'client_id' => '',\n\n\t/**\n\t * Client Secret\n\t */\n\t'clie... | php | chosen |
[
{
"from": "system",
"value": "Change buttons on main page\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n @include('includes.sideNav')\n <section class=\"home\">\n <div class=\"home--logo\">\n @include('includes.trio-logo')\n </div>\n\n <div>... | php | chosen |
[
{
"from": "system",
"value": "Use 'auth' as key in the result hash instead of 'valid'.\n"
},
{
"from": "human",
"value": "<?php\nclass Authenticator {\n private $dbh;\n\n function __construct() {\n\t$this->dbh = Database::instance()->connection();\n }\n\n function authenticate($creds... | php | chosen |
[
{
"from": "system",
"value": "Fix getting configs in L5.3"
},
{
"from": "human",
"value": "<?php namespace TCK\\Odbc;\n\nuse Illuminate\\Database\\Connection;\n\nclass ODBCConnection extends Connection {\n\n\t/**\n\t * Get the default query grammar instance.\n\t *\n\t * @return Illuminate\\Datab... | php | chosen |
[
{
"from": "system",
"value": "Add optional selector argument support.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Page;\n\nuse Youshido\\GraphQL\\Field\\AbstractField;\nuse Youshido\\GraphQL\\Execution\\ResolveInfo;\nuse Youshido\\GraphQL\\Type\\NonNullType... | php | chosen |
[
{
"from": "system",
"value": "Add comment clarifying helper exception rationale\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Services;\n\nuse Softonic\\GraphQL\\ClientBuilder;\n\nclass GraphQL\n{\n /**\n * Build a new GraphQL client.\n */\n public function __constru... | php | chosen |
[
{
"from": "system",
"value": "BAP-18084: Upgrade from 2.6 to 3.1-rc failed\n- fixed upgrade from 2.6 to 3.1-rc\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\OroMessageQueueBundle\\Migrations\\Schema\\v1_8;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Oro\\Bundle\\MigrationBun... | php | chosen |
[
{
"from": "system",
"value": "Remove route inclusion from service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sztyup\\Authsch;\n\nuse Illuminate\\Contracts\\Container\\Container;\nuse Illuminate\\Contracts\\Routing\\UrlGenerator;\nuse Illuminate\\Support\\ServiceProvider;\n\nc... | php | chosen |
[
{
"from": "system",
"value": "Add comment attribute (default off)\n"
},
{
"from": "human",
"value": "<?php\n\nclass Item extends Eloquent\n{\n protected $hidden = array('updated_at', 'deleted_at', 'user_id');\n protected $fillable = ['user_id', 'price', 'currency', 'initial_units', 'descri... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with the laravel4 paginator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Pagination\\Laravel4;\n\nuse Michaeljennings\\Carpenter\\Contracts\\Paginator as PaginatorContract;\n\nclass Illuminate implements PaginatorContract... | php | chosen |
[
{
"from": "system",
"value": "Remove asset version query string\n"
},
{
"from": "human",
"value": "<?php\nadd_action('wp_enqueue_scripts', function () {\n wp_scripts()->add_data('jquery', 'group', 1);\n wp_scripts()->add_data('jquery-core', 'group', 1);\n wp_scripts()->add_data('jquery-... | php | chosen |
[
{
"from": "system",
"value": "Add 'current-watching' column to overview\n"
},
{
"from": "human",
"value": "<table class=\"table table-horizontal table-striped\">\n <thead>\n <tr>\n <th>Tube</th>\n <th>current-jobs-urgent</th>\n <th>current-jobs-ready</t... | php | chosen |
[
{
"from": "system",
"value": "Throw a new exception when an email was not send\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Collection;\n\nfunction collection($data)\n{\n $collection = new Collection($data);\n return $collection;\n}\n\nfunction parseUrl($url)\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Validate if vendors have been installed\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that was distributed with this source code.\n */\n\n// ... | php | chosen |
[
{
"from": "system",
"value": "Include shortcode for Google Translate plugin.\n"
},
{
"from": "human",
"value": "<?php\n /**\n * The main template file.\n *\n */\n get_header(); ?>\n<div class=\"page-content\">\n <div class=\"wrapper\">\n <div style=\"float: left; width: 200px;\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Make the rocket emoji work\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t// Slack room credentials\n\t'url' => '',\n\t'username' => '',\n\t'room' => '',\n\n\t// Message\n\t// You can use the following variables :\n\t// 1: User deploying\n\t... | php | chosen |
[
{
"from": "system",
"value": "Use database/seeders over database/seeds for default laravel 8 support\n\n \n"
},
{
"from": "human",
"value": "<?php\nreturn array(\n 'path' => '/database/seeds',\n 'chunk_size' => 500 // Maximum number of rows per insert statement\n);\n"
},
{
"from": ... | php | chosen |
[
{
"from": "system",
"value": "service: Send tags out in array\n"
},
{
"from": "human",
"value": "<?php\n/* Notice: Copyright 2016, The Care Connections Initiative c.i.c.\n * Author: Charlie Fyvie-Gauld <cfg@zunautica.org>\n * License: Apache License, Version 2 (http://www.apache.org/licenses/L... | php | chosen |
[
{
"from": "system",
"value": "Use Traversable instead of array\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab Payments project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespace ActiveCollab\... | php | chosen |
[
{
"from": "system",
"value": "Remove whitespace that caused headers to be sent prematurely\n"
},
{
"from": "human",
"value": "<?php\n Class FormToken {\n public static function create() {\n $token = openssl_random_pseudo_bytes( 32 );\n return base64_encode( $token... | php | chosen |
[
{
"from": "system",
"value": "Fix error in service provider..\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EGALL\\Transformer;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse EGALL\\Transformer\\Contracts\\Transformer as TransformerContract;\nuse EGALL\\Transformer\\Contracts\\Collect... | php | chosen |
[
{
"from": "system",
"value": "Add async configuration parameter for async jobs submission\n"
},
{
"from": "human",
"value": "<?php return [\r\n 'class' => 'app\\components\\LinkoScope',\r\n 'apiConfigFile' => dirname(__DIR__) . '/runtime/api.cfg',\r\n];\r\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Fix password_get_info test for PHP 7.4\n"
},
{
"from": "human",
"value": "<?php\nnamespace hash\\password_get_info_001;\n\n$password = \"rasmuslerdorf\";\n$salt = \"Ajnbu298IRHUVa56XvDOzu\";\n$memory_cost = 512;\n$time_cost = 10;\n$threads = 6;\n\n$options = [\n ... | php | chosen |
[
{
"from": "system",
"value": "Refactor logic when showing post featured image\n"
},
{
"from": "human",
"value": "<article <?php post_class(); ?>>\n <header>\n <?php\n if ( ! is_archive() ) {\n medm_article_category_box();\n }\n\n medm_article_author_box();\n ?>\n </header>\... | php | chosen |
[
{
"from": "system",
"value": "Use code argument for `timeit`, only time execution"
},
{
"from": "human",
"value": "<?php\n\nnamespace Psy\\Command;\n\nuse Psy\\Configuration;\nuse Psy\\Shell;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\Outpu... | php | chosen |
[
{
"from": "system",
"value": "Add a 'Domain Path' plugin header, and a check around the AIRSTORY_DIR constant definition\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: Airstory\n * Plugin URI: http://www.airstory.co/integrations/\n * Description: Publish content from Airstory to... | php | chosen |
[
{
"from": "system",
"value": ":construction: Disable test for the time being\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tapestry\\Tests;\n\nclass JsonApiTest extends CommandTestBase\n{\n public function testJsonBuildFlag()\n {\n $this->copyDirectory('assets/build_test_1/s... | php | chosen |
[
{
"from": "system",
"value": "Add new section to display the ability to refresh token\n"
},
{
"from": "human",
"value": "<?php\n\nrequire \"vendor/autoload.php\";\n\nuse KWRI\\GluuWrapper\\OpenIDConnectClient;\n\n$oidc = new OpenIDConnectClient('idp_url',\n 'client... | php | chosen |
[
{
"from": "system",
"value": "Use Content-Type text/plain for robots.txt"
},
{
"from": "human",
"value": "<?php\n\nnamespace Psr7Middlewares\\Middleware;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\n/**\n * Middleware to block robots search engine.\... | php | chosen |
[
{
"from": "system",
"value": "Use pg_loreadall to load lo from PostgreSQL\n\nUse pg_loreadall instead of pg_lo_export to read PDF resource from PostgreSQL database, using the application/pdf MIME type to ensure the file is rendered as a PDF file."
},
{
"from": "human",
"value": "<?php\r\n\t$shee... | php | chosen |
[
{
"from": "system",
"value": "Add user and pass credentials for connecting to travis.\n"
},
{
"from": "human",
"value": "<?php\n\nuse wcatron\\MySQLDBFramework\\MyDB;\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nif (file_exists('config.ini')) {\n $config = parse_ini_file('config.ini')... | php | chosen |
[
{
"from": "system",
"value": "Update master to version 1.0.0\n"
},
{
"from": "human",
"value": "<?php\n// Can be used by plugins/themes to check if Terminus is running or not\ndefine( 'Terminus', true );\ndefine( 'TERMINUS_VERSION', '0.5.0');\n$source = 'unknown';\nif ('cli' === PHP_SAPI && isse... | php | chosen |
[
{
"from": "system",
"value": "Set user object in session\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Koddi\\Controller;\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass AuthController\n{\n public function getLogin(Application $app)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Make change to entity template\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace TemplateNamespace\\Entities;\n// phpcs:disable\nuse EdmondsCommerce\\DoctrineStaticMeta\\Entity as DSM;\n// phpcs:enable\nclass TemplateEntity implements Te... | php | chosen |
[
{
"from": "system",
"value": "Remove unused variable and comments\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Becklyn\\RadBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterfac... | php | chosen |
[
{
"from": "system",
"value": "Add nonce in FB callback\n"
},
{
"from": "human",
"value": "\n<?php echo $head; ?>\n <div class=\"centered-row\">\n <div class=\"l-box\">\n <h2><?php echo _('Facebook login successful!') ?></h2>\n </div>\n </div>\n <div class=\"pure... | php | chosen |
[
{
"from": "system",
"value": "Add Zend_Log Test - Logging to a database (reformatting)\n"
},
{
"from": "human",
"value": "<?php\n\nclass LogTest extends PHPUnit_Framework_TestCase\n{\n public function testDbLogger()\n {\n $log = new Zend_Log();\n $dbWriter = new Zend_Log_Writ... | php | chosen |
[
{
"from": "system",
"value": "Remove Risky warning in Tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Novactive Collection.\n *\n * @author Luke Visinoni <l.visinoni@novactive.us, luke.visinoni@gmail.com>\n * @author Sébastien Morel <s.morel@novactive.us, morel.seb@gmail.com>\n * @... | php | chosen |
[
{
"from": "system",
"value": "Make PHP5 lexer default DOMLex.\n\ngit-svn-id: 25f448894bd6eb0cddf10ded73b4f5a7ea3203f3@84 48356398-32a2-884e-a903-53898d9a118a\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Forgivingly lexes SGML style documents: HTML, XML, XHTML, etc.\n */\n\nrequire_once 'H... | php | chosen |
[
{
"from": "system",
"value": "FIX Do not filter on lists that contain no data\n"
},
{
"from": "human",
"value": "<?php\n\nuse SilverStripe\\Control\\Director;\nuse SilverStripe\\Control\\Controller;\nuse SilverStripe\\ORM\\DataObject;\n\n/**\n * An author who can be linked to several add-ons.\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix propel config for now\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOS\\ElasticaBundle\\Propel;\n\nuse FOS\\ElasticaBundle\\Provider\\AbstractProvider;\n\n/**\n * Propel provider.\n *\n * @author William Durand <william.durand1@gmail.com>\n */\nclass Pr... | php | chosen |
[
{
"from": "system",
"value": "[Admin] Add latest customers and orders\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Fix blob field for pgsql\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mindy\\Orm\\Fields;\n\n/**\n * Class BlobField\n * @package Mindy\\Orm\n */\nclass BlobField extends Field\n{\n public function sqlType()\n {\n return 'longblob';\n }\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Change button text for closed applications\n"
},
{
"from": "human",
"value": "<?hh\n\nclass FrontpageController extends BaseController {\n public static function getPath(): string {\n return '/';\n }\n\n public static function get(): :xhp {\n # If a user is... | php | chosen |
[
{
"from": "system",
"value": "Remove DB cleanup shutdown function from test suite\n"
},
{
"from": "human",
"value": "<?php\n\n$file = __DIR__.'/../vendor/autoload.php';\nif (!file_exists($file)) {\n throw new RuntimeException('Install dependencies to run test suite.');\n}\n\n$loader = require... | php | chosen |
[
{
"from": "system",
"value": "Add LDAP lookup for mapping RFID id to username.\n"
},
{
"from": "human",
"value": "<?PHP namespace CSH;\n\nrequire '../vendor/autoload.php';\nrequire '../config.php';\n\nfunction get_webauth($app) {\n global $cfg;\n\n // This is just to fake webauth when developi... | php | chosen |
[
{
"from": "system",
"value": "Set the maximum execution time to unlimited.\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL);\nini_set('display_errors', '1');\n\ndefine('DS', DIRECTORY_SEPARATOR);\ndefine('APP_PATH', dirname(__FILE__));\n\ndefine('VENDORS', APP_PATH . DS . 'vend... | php | chosen |
[
{
"from": "system",
"value": "Remove version info from app.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Laravel - A PHP Framework For Web Artisans\n *\n * @package Laravel\n * @version 4.0.0\n * @author Taylor Otwell <taylorotwell@gmail.com>\n */\n\ndefine('ILLUMINATE_START', microtime... | php | chosen |
[
{
"from": "system",
"value": "Fix array_search test for hhvm\n"
},
{
"from": "human",
"value": "<?php\n\nclass Function_ArraySearchTest extends PHPUnit_Framework_TestCase\n{\n public function testNull()\n {\n $this->setExpectedException('PHPUnit_Framework_Error',\n versio... | php | chosen |
[
{
"from": "system",
"value": "Make reset password link use proper html anchor tag\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<p>Hello {{ $user->fullname }},</p>\n\n<p>\n\tWe got a request to reset your password. If this was... | php | chosen |
[
{
"from": "system",
"value": "[Maintenance] Adjust variable names to interfaces\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Update factories to equivalent of those that come with Laravel 5.6 by default\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|-------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Remove unused option, fix CS"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gloubster;\n\nuse PhpAmqpLib\\Connection\\AMQPConnection;\nuse PhpAmqpLib\\Connection\\AMQPSSLConnection;\n\nclass RabbitMQFactory\n{\n\n public static function createConnection(Conf... | php | chosen |
[
{
"from": "system",
"value": "Set env and default time for Root Daily Report\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKernel\... | php | chosen |
[
{
"from": "system",
"value": "Add root option to config.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Default Remote Connection Name\n\t|------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix issue that don't save feed_uuid when new feed recoed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Eloquents;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Illuminate\\Database\\Eloquent\\Relations\... | php | chosen |
[
{
"from": "system",
"value": "Improve read performance of PHP.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Base {\n\t\n\tpublic $dbh;\n\t\n\tpublic function __construct()\t{\t\t\n\t\t$this->dbh = new PDO(\"mysql:host=localhost;dbname=test\",\"test\",\"test\",array(PDO::MYSQL_ATTR_INIT_COMM... | php | chosen |
[
{
"from": "system",
"value": "Add IDE Support for Dynamic properties\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controllers;\n\nuse Interop\\Container\\ContainerInterface;\n\nclass BaseController\n{\n\tprotected $container;\n\n\tpublic function __construct(ContainerInterface $co... | php | chosen |
[
{
"from": "system",
"value": "Use label instead of div\n\nmakes the entire button clickable"
},
{
"from": "human",
"value": "@isset($link)\n <a\n href=\"{{ $link }}\"\n @isset($blank) target=\"_blank\" @endisset\n {{ $attributes->merge(['class' => 'inline-flex items-cente... | php | chosen |
[
{
"from": "system",
"value": "Rename passwd to password for form field validation\n"
},
{
"from": "human",
"value": "<?php\nnamespace OpenCFP\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Validator\\Constraints... | php | chosen |
[
{
"from": "system",
"value": "Fix syntax error for PHP 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concise\\Console;\n\nuse Concise\\Services\\SyntaxRenderer;\nuse DateTime;\n\nclass TestColors\n{\n public function renderAll()\n {\n $renderer = new SyntaxRenderer();\n ... | php | chosen |
[
{
"from": "system",
"value": "Add condition for testing env\n"
},
{
"from": "human",
"value": "<?php\nnamespace Xetaravel\\Http\\Middleware;\n\nuse Closure;\nuse Xetaravel\\Models\\Session;\nuse Xetaravel\\Models\\Repositories\\SessionRepository;\n\nclass SessionLogs\n{\n /**\n * Handle a... | php | chosen |
[
{
"from": "system",
"value": "Fix minor errors found with debug mode on\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Planet item\n */\n\nclass PlanetItem\n{\n public function __construct($feed, $data)\n {\n parent::SimplePie_Item($feed, $data);\n }\n\n public function c... | php | chosen |
[
{
"from": "system",
"value": "Add block comments to config file\n"
},
{
"from": "human",
"value": "<?php\n\nclass Configuration\n{\n\n const DB_HOST = '127.0.0.1';\n\n const DB_MYSQL_PORT = '3306';\n\n const DB_SCHEMA = 'my_app';\n\n const DB_USER = 'grace';\n\n const DB_PASSWORD ... | php | chosen |
[
{
"from": "system",
"value": "Replace the 'Customize' Tab with 'Install'\n"
},
{
"from": "human",
"value": "<?php\n/* Tab Menu */\n$tabs = array(\n\tarray( 'url'=>\"index.php\", 'label'=>\"Home\" ),\n\tarray( 'url'=>\"customize\", 'label'=>\"Customize\" ),\n\tarray( 'url'=>\"http://www.impulsecr... | php | chosen |
[
{
"from": "system",
"value": "Add dynamic pages integration test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Siler\\Test\\Integration;\n\nuse Siler\\Functional as F;\nuse Siler\\Route;\nuse Siler\\Twig;\n\nclass RoutingTest extends \\PHPUnit\\Framework\\TestCase\n{\n public function... | php | chosen |
[
{
"from": "system",
"value": "Clean up old code that didn't know about S() and R().\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(__DIR__ . '/../tournament-www.php');\n\nclass SignOut extends Page {\n public function main() {\n (new Session())->signOut();\n (new Redirect())->re... | php | chosen |
[
{
"from": "system",
"value": "Use the Symfony Filesystem to test symlinks\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Contao Manager.\n *\n * (c) Contao Association\n *\n * @license LGPL-3.0-or-later\n */\n\nnamespace Contao\\ManagerApi\\IntegrityCheck;\n\nuse Contao\... | php | chosen |
[
{
"from": "system",
"value": "Add the routes for album controller\n"
},
{
"from": "human",
"value": "<?php\nreturn array(\n\t\t'controllers' => array(\n\t\t\t\t'invokables' => array(\n\t\t\t\t\t\t'Album\\Controller\\Album' => 'Album\\Controller\\AlbumController',\n\t\t\t\t),\n\t\t),\n\t\t'view_m... | php | chosen |
[
{
"from": "system",
"value": "Fix documentation and type annotation\n"
},
{
"from": "human",
"value": "<?php\nnamespace SBLayout\\Model\\Page\\Content;\n\n/**\n * Represents the contents that ends up in the dynamic content sections of a page.\n *\n * The content is in most cases a single divisio... | php | chosen |
[
{
"from": "system",
"value": "Fix up the parser interface by type hinting the Illuminate request instance.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dingo\\Api\\Http\\Parser;\n\nuse Dingo\\Api\\Http\\R... | php | chosen |
[
{
"from": "system",
"value": "Create a plan if it doesn't exist and subscribe the customer to it, or do a one-time transaction\n"
},
{
"from": "human",
"value": "<?php\n require_once('./config.php');\n \n var_dump($_POST);\n \n $token = $_POST['stripeToken'];\n $email = $_POST['stripeEma... | php | chosen |
[
{
"from": "system",
"value": "Fix gravatar when user has no email\n"
},
{
"from": "human",
"value": "<?= $this->render('//layouts/gravatar', ['size' => 90]) ?>\n<p>\n <b><?= Yii::$app->user->identity->username ?></b>\n\n <?php if (Yii::$app->user->can('support') && isset(Yii::$app->user->i... | php | chosen |
[
{
"from": "system",
"value": "Fix Travis tests not failing with AUTOLOAD=0\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nchdir(dirname(__FILE__));\n\n$autoload = (int)$argv[1];\n$returnStatus = null;\n\n$composerOriginalRaw = file_get_contents('composer.json');\nif (!$autoload) {... | php | chosen |
[
{
"from": "system",
"value": "Remove HTML from output() return documentation\n"
},
{
"from": "human",
"value": "<?php\n/**\n * RocketPHP (http://rocketphp.io)\n *\n * @package RocketPHP\n * @link https://github.com/rocketphp/html\n * @license http://opensource.org/licenses/MIT MIT\n */\... | php | chosen |
[
{
"from": "system",
"value": "Add must login requirement to user page\n"
},
{
"from": "human",
"value": "<?php\n namespace Page;\n\n class User\n {\n public function index()\n {\n $this->router->redirect('user/profile');\n }\n\n public function pro... | php | chosen |
[
{
"from": "system",
"value": "Fix base url for swagger\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OParl\\Website\\Api\\Controllers;\n\nuse function Swagger\\scan;\n\n/**\n * @SWG\\Swagger(\n * schemes={\"https\"},\n * host=\"dev.oparl.org\",\n * basePath=\"/api/\",\n * ... | php | chosen |
[
{
"from": "system",
"value": "Define our constants FIRST to prevent errors\n"
},
{
"from": "human",
"value": "<?php\n// Start the session so we can save\n// query results across pages requests.\n\nsession_start();\n\nini_set('display_errors', 1);\nerror_reporting(E_ALL & E_NOTICE);\n\nrequire 'v... | php | chosen |
[
{
"from": "system",
"value": "Add validation error details to exception message\n"
},
{
"from": "human",
"value": "<?php namespace SRLabs\\Validator\\Exceptions;\n\nuse Exception;\n\nclass FormValidationFailedException extends Exception {\n\n protected $errors;\n\n /**\n * @param strin... | php | chosen |
[
{
"from": "system",
"value": "[FIX] Rollback 17710. Use of TR by default is necessary for now because default home page message uses it. A better solution is welcome.\n\ngit-svn-id: 08a866106b41c57cec985b5deddde5835bf030d4@17711 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"valu... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.