conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "[POLISH] Fix typo in error message"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This autoloader is deprecated; please use the bootstrap.php file directly.\n *\n * Usage - see the following example.\n *\n * https://github.com/Learnosity/learnosity-sdk-php/exam... | php | chosen |
[
{
"from": "system",
"value": "Fix 'undefined index `code`' error"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Square\\Message;\n\nuse Omnipay\\Common\\Message\\AbstractResponse;\nuse Omnipay\\Common\\Message\\RedirectResponseInterface;\n\n/**\n* Square Purchase Response\n*/\nclas... | php | chosen |
[
{
"from": "system",
"value": "Remove back_with_message function for using flash data structure\n\ngit-svn-id: ee4035a36106ffeee36a50f38a2c987ce3004d33@131 cc3e2240-c383-0410-974a-c2160eca7f04\n"
},
{
"from": "human",
"value": "<?php\nclass Controller {\n\tvar $layout = 'default';\n\n\tpublic fun... | php | chosen |
[
{
"from": "system",
"value": "Use real path for views instead of alias\n"
},
{
"from": "human",
"value": "<?php\n/**\n * HiDev plugin for license generation.\n *\n * @link https://github.com/hiqdev/hidev-license\n * @package hidev-license\n * @license BSD-3-Clause\n * @copyright Copyrig... | php | chosen |
[
{
"from": "system",
"value": "Apply Bootstrap on search form.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Zip Address Util</title>\n <link rel=\"stylesheet\" href=\"/assets/css/bootstrap.min.css\">\n <link rel=\"s... | php | chosen |
[
{
"from": "system",
"value": "Add description for config values\n"
},
{
"from": "human",
"value": "<?php\n\nconst APP_SECRET = '';\nconst PAGE_ACCESS_TOKEN = '';\nconst VALIDATION_TOKEN = '';\nconst SERVER_URL = '';\n"
},
{
"from": "gpt",
"value": "<?php\n\n// App Secret can be retri... | php | chosen |
[
{
"from": "system",
"value": "Add MySQL db connection code\n"
},
{
"from": "human",
"value": "<?php\n # Read GET variables\n $stime = $_POST['stime'];\n $etime = $_POST['etime'];\n $moves = $_POST['moves'];\n \n # Create output string\n $str = \"\\\"$stime\\\", \\\"$etime\\\", ... | php | chosen |
[
{
"from": "system",
"value": "[*] Make nullable fields in channels schema\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateChannelTable extends Migr... | php | chosen |
[
{
"from": "system",
"value": "Remove languages from Pencil and update logo image\n"
},
{
"from": "human",
"value": "<div id=\"frame\">\n\t<header class=\"main\">\n\t\t<div id=\"menu-idiomas\">[ [COMPONENT name=MenuLanguages]]</div>\n\t\t<div class=\"logo\">[[COMPONENT name=Image style=height:60 ... | php | chosen |
[
{
"from": "system",
"value": "Save account entity to the database\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PerFi\\PerFiBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse PerFi\\Domain\\Account\\Account;\nuse PerFi\\Domain\\Account\\AccountRepository as AccountRepositor... | php | chosen |
[
{
"from": "system",
"value": "Fix getting \"0\" value on order status primary key\n"
},
{
"from": "human",
"value": "<?php namespace Octommerce\\Octommerce\\Models;\n\nuse Model;\nuse System\\Models\\MailTemplate;\n// use Octommerce\\Octommerce\\Models\\Order;\n\n/**\n * OrderStatus Model\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Fix coding style in Robofile.php\n"
},
{
"from": "human",
"value": "<?php\n\nclass RoboFile extends \\Robo\\Tasks {\n\n use DigipolisGent\\Robo\\Task\\DrupalConsole\\loadTasks;\n\n public function test() {\n $this->stopOnFail(true);\n $this->taskPHPUnit()\n ... | php | chosen |
[
{
"from": "system",
"value": "Misc: Update plugin version to 0.27\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Plugin Name: Hyyan WooCommerce Polylang Integration\n * Plugin URI: https://github.com/hyyan/woo-poly-integration/\n * Description: Integrates Woocommerce with Polylang\n * Author... | php | chosen |
[
{
"from": "system",
"value": "feat(type): Create relationship for types table\n\nCreate relationship for types table\n\nsee #137\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Type extends Model\n{\n public function categories... | php | chosen |
[
{
"from": "system",
"value": "Fix vista de nuevo permiso por portafolio\n"
},
{
"from": "human",
"value": "\n\t<h1>Entregar Permisos Portafolio</h1>\n\t<a href=\"<?php echo base_url()?>portafolio\">Volver</a>\n\n<?php\n\tif ($this->session->flashdata('ControllerMessage')!='') {\n?>\n\t<p style=\... | php | chosen |
[
{
"from": "system",
"value": "Add quotes to cron information page, for the example crontab file\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@1012 44740490-163a-0410-bde0-09ae8108e29a\n"
},
{
"from": "human",
"value": "<?php\n\n$this->data['header'] = 'Cron information page';\n$this->i... | php | chosen |
[
{
"from": "system",
"value": "Update datatime control, setting default time\n"
},
{
"from": "human",
"value": "<?php\n\n\n/**\n * Class wpAPIDateTime\n *\n * @package wpAPI\\Core\\Elements\\wpAPIDateTime\n */\nclass wpAPIDateTime extends BaseElement\n{\n\n function __construct($id, $label, $... | php | chosen |
[
{
"from": "system",
"value": "Fix ip -> target bug\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CascadeEnergy\\ServiceDiscovery\\Consul;\n\nuse CascadeEnergy\\ServiceDiscovery\\ServiceDiscoveryClientInterface;\n\nclass ConsulDns implements ServiceDiscoveryClientInterface\n{\n private... | php | chosen |
[
{
"from": "system",
"value": "Patch added for upcoming events. TicketCo is working on a fix for the API\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TicketCo\\Resources;\n\nclass Events extends API\n{\n\n /**\n * @var string\n */\n protected $resource = 'events';\n\n /*... | php | chosen |
[
{
"from": "system",
"value": "Remove remote modal js dependency\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CottaCush\\Yii2\\Assets;\n\nclass ModalAsset extends LocalAssetBundle\n{\n public $js = [\n 'js/modal.js',\n 'js/remote-modal.js'\n ];\n\n public $depends ... | php | chosen |
[
{
"from": "system",
"value": "Optimize compiled references to the container itself\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace WoohooLabs\\Zen\\Container\\Definition;\n\nuse WoohooLabs\\Zen\\Container\\DefinitionCompilation;\n\nclass SelfDefinition extends Abs... | php | chosen |
[
{
"from": "system",
"value": "Allow a null model for the NoDatabaseUserProvider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Laravel\\Events;\n\nuse Adldap\\Models\\User;\nuse Illuminate\\Contracts\\Auth\\Authenticatable;\n\nclass AuthenticatedWithCredentials\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix appending of query params.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Yajra\\CMS\\Http\\Controllers;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Yajra\\CMS\\Entities\\Category;\nuse Yajra\\CMS\\Events\\CategoryWasVi... | php | chosen |
[
{
"from": "system",
"value": "Add support for creating campaign and campaigns markup for service\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n */\n\nnamespace DoSomething\\MBC_TransactionalDigest;\n \n/**\n *\n */\nclass MB_Toolbox_FBMessenger extends MB_Toolbox_BaseService\n{\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Use post data cause form values won't be here.\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\UsersModule\\User\\Validation;\n\nuse Anomaly\\UsersModule\\User\\Contract\\UserInterface;\nuse Anomaly\\UsersModule\\User\\Contract\\UserRepositoryInterface;\... | php | chosen |
[
{
"from": "system",
"value": "Update Admin plugin with the new helpers\n"
},
{
"from": "human",
"value": "<?php\n\nuse Parvula\\Parvula;\nuse Parvula\\Parvula\\Core\\Config;\nuse Parvula\\Parvula\\Core\\Models\\Pages;\n\n$templates = new League\\Plates\\Engine(__DIR__ . '/view', 'html');\n\n$tem... | php | chosen |
[
{
"from": "system",
"value": "Add aria attributes to the badge element\n"
},
{
"from": "human",
"value": "<?php\n\nuse BearFramework\\App;\n\n$app = App::get();\n\necho '<html><head>';\necho '<link rel=\"client-packages-prepare\" name=\"users\">';\necho '<style>.ivopetkov-users-badge{cursor:poin... | php | chosen |
[
{
"from": "system",
"value": "Change variable names. Change from name to firstName in the contact information example.\n"
},
{
"from": "human",
"value": "<?php\nrequire 'vendor/autoload.php';\n\n// Replace /comphppuebla/guzzle for the path to your negotiation.php file to try this route.\n// curl... | php | chosen |
[
{
"from": "system",
"value": "Return instance of Client rather than ClientBuilder"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orphans\\ElasticSearch\\App\\Providers;\n\nuse Illuminate\\Support\\Facades\\App;\nuse Illuminate\\Support\\ServiceProvider;\n\nuse Elasticsearch\\ClientBuilder;\... | php | chosen |
[
{
"from": "system",
"value": "Add updateinterval to start message\n"
},
{
"from": "human",
"value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\necho \"LinMon slave versio... | php | chosen |
[
{
"from": "system",
"value": "Add nodejs as a new runtime name\n\nOn Debian, node js executable is called nodejs, so I suggest adding nodejs as a new runtime name."
},
{
"from": "human",
"value": "<?php\n\nnamespace Nacmartin\\PhpExecJs;\n\nuse Nacmartin\\PhpExecJs\\Runtime\\ExternalRuntime;\nus... | php | chosen |
[
{
"from": "system",
"value": "Fix hard coded \"Edit\" translation link\n\nEdit link generates 404 error when using http://localhost/<your-project>/public/en/admin/translation"
},
{
"from": "human",
"value": "@extends(layoutExtend())\n\n@section('title')\n {{ trans('categorie.Translation') }} ... | php | chosen |
[
{
"from": "system",
"value": "Add updated description for Racing\n"
},
{
"from": "human",
"value": "<?php\n $page_title = 'Home';\n $site_title = 'Racing';\n $site_index = '/racing';\n include '../header.php';\n?>\n\n <!-- Content Row -->\n <div class=\"well card-1\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Test with default value fails on new query serializer\n"
},
{
"from": "human",
"value": "<?php\nnamespace GuzzleHttp\\Tests\\Command\\Guzzle;\n\nuse GuzzleHttp\\Command\\Command;\nuse GuzzleHttp\\Command\\Guzzle\\Description;\nuse GuzzleHttp\\Command\\Guzzle\\Serial... | php | chosen |
[
{
"from": "system",
"value": "Add some docs for HttpAdapter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Recurly;\n\nclass HttpAdapter\n{\n private static $_default_options = [\n 'ignore_errors' => true\n ];\n\n public function __construct()\n {\n\n }\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Move Nut extension command from TableHelper to Table\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Nut;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n/**\n * Nut command to list... | php | chosen |
[
{
"from": "system",
"value": "Update to use <span> instead of <input> for non-modifiable text.\n\n--HG--\nextra : convert_revision : svn%3A465e5836-af34-0410-8d6e-35500593c4db/trunk%40153\n"
},
{
"from": "human",
"value": "\n<!-- Sleep so users see the activity indicator -->\n<?php sleep(2); ?>\... | php | chosen |
[
{
"from": "system",
"value": "Change Setting model value column to text type\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateSettingsTable extends Migration\n{\n /**\n * Run the migra... | php | chosen |
[
{
"from": "system",
"value": "Set expiration time for one hour\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package Billing\n * @copyright Copyright (C) 2012 BillRun Technologies Ltd. All rights reserved.\n * @license GNU Affero General Public License Version 3; see... | php | chosen |
[
{
"from": "system",
"value": "Remove old check for environment.php (replaced with config.php)\n"
},
{
"from": "human",
"value": "<?php\n\ntry {\n\n /**\n * Use composer autoloader\n */\n\n if (!file_exists($composerAutoload = __DIR__ . '/../vendor/autoload.php')) {\n header(... | php | chosen |
[
{
"from": "system",
"value": "Update form to new interface ...\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace YouFood\\ApiBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilder;\n\n/**\n * OrderType\n *\n * @author Adrien Brault <adrien.bra... | php | chosen |
[
{
"from": "system",
"value": "Include posts view using @each\n"
},
{
"from": "human",
"value": "@extends('page::page-layouts.main-page')\n\n@section('content')\n <div class=\"container\">\n <div class=\"row\">\n <article>\n <h2>\n Articles\n... | php | chosen |
[
{
"from": "system",
"value": "Add module key to $entities arrays, fix typos\n"
},
{
"from": "human",
"value": "<?php\n$entities = array();\ntry {\n $res = civicrm_api3('FinancialType', 'getSingle', array(\"name\" => \"Donation\", 'return' => array('id')));\n}\ncatch (CiviCRM_API3_Exception $e) ... | php | chosen |
[
{
"from": "system",
"value": "Fix add:url command not importing User\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse App\\Models\\Factories\\ItemFactory;\nuse Illuminate\\Console\\Command;\n\nclass AddItem extends Command\n{\n /**\n * The name and sign... | php | chosen |
[
{
"from": "system",
"value": "Remove the duplicate header in edit project page.\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\n\n/* @var $this yii\\web\\View */\n/* @var $model app\\models\\EfProject */\n\n$this->title = 'Update Ef Project: ' . ' ' . $model->PROJECT_ID;\n$t... | php | chosen |
[
{
"from": "system",
"value": "Remove duplicate method in the user model.\n"
},
{
"from": "human",
"value": "<?php namespace GovTribe\\LaravelKinvey\\Database\\Eloquent;\n\nuse Illuminate\\Auth\\UserInterface;\nuse Illuminate\\Auth\\Reminders\\RemindableInterface;\n\nclass User extends Model impl... | php | chosen |
[
{
"from": "system",
"value": "Update to ensure backwards compatibility for Laravel 5.8 and below\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coreplex\\Meta\\Managers;\n\nuse Illuminate\\Support\\Manager;\nuse Coreplex\\Meta\\Eloquent\\Repository as EloquentRepository;\n\nclass Store ex... | php | chosen |
[
{
"from": "system",
"value": "Use enum for subtype as well\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateWatches extends Migration\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "UPDATE: Support installation as a vendor\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse Camspiers\\StatisticalClassifier\\Config\\Config;\nuse Camspiers\\StatisticalClassifier\\Console\\Command\\GenerateContainer... | php | chosen |
[
{
"from": "system",
"value": "Make psr test more verbose\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace phpSmug\\Tests;\n\n/**\n * @class\n * Test properties of our codebase rather than the actual code.\n */\nclass PsrComplianceTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Test upgrading from concrete5 5.7.5.13\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Tests\\Update;\n\nuse Concrete\\TestHelpers\\DockerTrait;\nuse PHPUnit_Framework_TestCase;\n\n/**\n * @group docker\n */\nclass InstallUpdateTest extends PHPUnit_F... | php | chosen |
[
{
"from": "system",
"value": "Fix redirection based on previous usernames\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\n/**\n * @property int $id\n * @property string $username\n * @property string $user_id\n * @property DeviantartUser $user ... | php | chosen |
[
{
"from": "system",
"value": "Make sure that there is only 1 such device\n"
},
{
"from": "human",
"value": "<?php\n function authenticate($conn, $device_name, $password) {\n $sql = $conn->prepare(\"SELECT * FROM devices WHERE name = ?\");\n $sql = $conn->bind_param(\"s\", $device_name);\n... | php | chosen |
[
{
"from": "system",
"value": "Use empty to check for empty array\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Wingman\n *\n * @link http://github.com/mleko/wingman\n * @copyright Copyright (c) 2017 Daniel Król\n * @license MIT\n */\n\n\nnamespace Mleko\\Wingman;\n\n\nuse Mleko\\Wingm... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Ariel - Avances de \"La borra del cafe 1\"\"\n\nThis reverts commit ba96a3f7fcb37ee54fc386713f1686447a0866d2."
},
{
"from": "human",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass API extends CI_Controller {\n ... | php | chosen |
[
{
"from": "system",
"value": "Replace if with just an else\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: inste\n * Date: 07.09.2015\n * Time: 16.17\n */\n\n$langs = [\n 'en' => 'English',\n 'no' => 'Norsk',\n];\nif(!isset($_SESSION['lang'])){\n $... | php | chosen |
[
{
"from": "system",
"value": "Fix shared event manager when used in ZF3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace JwPersistentUser;\n\nuse JwPersistentUser\\Service\\CookieAuthenticationService;\nuse Zend\\EventManager\\EventInterface;\nuse Zend\\EventManager\\EventManager;\nuse Zend... | php | chosen |
[
{
"from": "system",
"value": "Add send() method to chat object.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MinePlus\\WebSocketBundle;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Ratchet\\MessageComponentInterface;\nuse Ratchet\\ConnectionInterface;\n\nclass Chat ... | php | chosen |
[
{
"from": "system",
"value": "Fix artisan error for empty module\n"
},
{
"from": "human",
"value": "<?php namespace Pingpong\\Modules;\n\nuse Illuminate\\Foundation\\Application;\nuse Illuminate\\Support\\Str;\n\nclass ModuleFinder\n{\n\t/**\n\t * @var \\Illuminate\\Foundation\\Application\n\t *... | php | chosen |
[
{
"from": "system",
"value": "Convert everything other than assets to app config\n\nWe're using Laravel's config resolving classes:\n\n```PHP\n$config = $app->make('config');\n$config->get('app.version'); // '5.7.0b2'\n```\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Confi... | php | chosen |
[
{
"from": "system",
"value": "Change Tuple count view to use html table\n"
},
{
"from": "human",
"value": "<div class=\"container\">\n <?php echo '<h3>CollectionEvent Tuple Count: ' . $collecEvent . '</h3>'; ?>\n <?php echo '<h3>Locality Tuple Count: ' . $locality . '</h3>'; ?>\n <?php echo '... | php | chosen |
[
{
"from": "system",
"value": "Remove phone number from email body\n"
},
{
"from": "human",
"value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))\n {... | php | chosen |
[
{
"from": "system",
"value": "Fix missing parent constructor call\n\nSigned-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * @author Christoph Wurst <wurst.christoph@gmail.com>\n ... | php | chosen |
[
{
"from": "system",
"value": "Enable UUID validation on Assets\n\nThis test is unstable: when a UUID is generated, it may or may not\nstart with a number. If it starts with a number, it'll pass default\n`validateId()` logic. If it starts with a letter, it'll fail.\n\nThe deafult `validateId()` method should... | php | chosen |
[
{
"from": "system",
"value": "Refactor publish command and allow multiple resource values\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Tags\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove link for documentation on list view\n"
},
{
"from": "human",
"value": "<?php include 'header_meta_inc_view.php';?>\n\n<?php include 'header_inc_view.php';?>\n\n<?php include 'office_table_inc_view.php';?>\n\n\n <div class=\"container\">\n <!-- Example... | php | chosen |
[
{
"from": "system",
"value": "Use DIRECTORY_SEPARATOR instead of assuming unix\n"
},
{
"from": "human",
"value": "<?php\n\nfunction atws_autoload($class) {\n $namespaceParts = explode('\\\\', $class);\n $className = array_pop($namespaceParts);\n\n array_shift($namespaceParts);\n requ... | php | chosen |
[
{
"from": "system",
"value": "Remove nullable() from wifi migration\n"
},
{
"from": "human",
"value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Wifi extends Migration\n{\... | php | chosen |
[
{
"from": "system",
"value": "Remove test code from homepage controller\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 dis... | php | chosen |
[
{
"from": "system",
"value": "Add helpful debugging in integration tests\n\nUseful for PHPUnit mocks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Transport\\Test;\n\nuse Silex\\WebTestCase;\n\nabstract class IntegrationTest extends WebTestCase\n{\n protected $browser;\n\n public f... | php | chosen |
[
{
"from": "system",
"value": "Add null to return type for getRecentMedia\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Instagram\\Ajax;\n\nuse Frontend\\Core\\Engine\\Base\\AjaxAction as FrontendBaseAJAXAction;\nuse Frontend\\Core\\Engine\\Model as FrontendModel;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Remove old code from TestCase\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DataImport\\Tests\\Writer;\n\nuse Symfony\\Component\\Console\\Output\\BufferedOutput;\nuse Symfony\\Component\\Console\\Helper\\Table;\n\nuse Ddeboer\\DataImport\\Workflow;... | php | chosen |
[
{
"from": "system",
"value": "Add the sitemap overlay route\n"
},
{
"from": "human",
"value": "<?php\n\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n/**\n * @var $router \\Concrete\\Core\\Routing\\Router\n */\n$router->all('/arrange_blocks/', 'Page\\ArrangeBlocks::arrange');\n$router->all(... | php | chosen |
[
{
"from": "system",
"value": "Add link to Code of Conduct in Menu\n"
},
{
"from": "human",
"value": "<?php\n/*******************************************************************************\n * Copyright (c) 2015 Eclipse Foundation and others.\n * All rights reserved. This program and the accompa... | php | chosen |
[
{
"from": "system",
"value": "Remove set calendar method for events.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful;\n\ninterface EventInterface\n{\n\tpublic function getId();\n\n\tpublic function getName();\n\n\tpublic function getStartDateFull();\n\n\tpublic functio... | php | chosen |
[
{
"from": "system",
"value": "Throw a 404 header on user w/o post crud role\n"
},
{
"from": "human",
"value": "<?php\n$userInfo = get_userdata( get_query_var('author'));\n$isAuthor = true;\nif (\n !in_array('contributor', $userInfo -> roles) &&\n !in_array('administrator', $userInfo -> rol... | php | chosen |
[
{
"from": "system",
"value": "Rewrite css urls in css proxy service\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kibo\\Phast\\Services\\Css;\n\nuse Kibo\\Phast\\Retrievers\\Retriever;\nuse Kibo\\Phast\\Security\\ServiceSignature;\nuse Kibo\\Phast\\Services\\ProxyBaseService;\n\nclass Se... | php | chosen |
[
{
"from": "system",
"value": "Add ability to pass extra parameters for property types.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CatLab\\Requirements\\Traits;\n\nuse CatLab\\Requirements\\Enums\\PropertyType;\n\n/**\n * Class TypeSetter\n * @package CatLab\\Requirements\\Enums\\Prope... | php | chosen |
[
{
"from": "system",
"value": "Rename Recurrence Interface function to a more appropriate name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendar;\n\ninterface RecurrenceInterface\n{\n\tpublic function getEvents();\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnames... | php | chosen |
[
{
"from": "system",
"value": "Add call static helper method to service context\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n */\n\nnamespace Mvc5\\Test\\Service;\n\nuse Mvc5\\App;\nuse Mvc5\\Service\\Context;\nuse Mvc5\\Test\\Test\\TestCase;\n\n/**\n * @runTestsInSeparateProcesses\n */\ncl... | php | chosen |
[
{
"from": "system",
"value": "Fix a typo on the clean old spam script\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Delete spam older than 30 days\n */\n\nif(php_sapi_name() !== 'cli') {\n\tdie('CLI only');\n}\n\ndate_default_timezone_set('Europe/London');\n\nrequire dirname(__FILE__) . '/..... | php | chosen |
[
{
"from": "system",
"value": "Allow null data for MapType (convert to empty array in transformer).\n"
},
{
"from": "human",
"value": "<?php\nnamespace Vanio\\WebBundle\\Form;\n\nuse Symfony\\Component\\Form\\DataTransformerInterface;\nuse Symfony\\Component\\Form\\Exception\\TransformationFailed... | php | chosen |
[
{
"from": "system",
"value": "Add option multiple to sfWidgetFormInputHidden\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the symfony package.\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n * \n * For the full copyright and license information, pleas... | php | chosen |
[
{
"from": "system",
"value": "Simplify implementation of removeObject method.\n"
},
{
"from": "human",
"value": "<?php\nnamespace SimpleAcl\\Object;\n\nuse SimpleAcl\\Object;\n\n/**\n * Implement common function for Role and Resources.\n *\n */\nabstract class ObjectAggregate\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Add option to provide hex string via command line\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'hex2base64.php';\n\n$input = \"49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d\";\n\n$target = \"SSdtIGtpbGxpbmcge... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Append existing query string to redirects"
},
{
"from": "human",
"value": "<?php\nnamespace MOC\\Redirects\\Controller;\n\nuse TYPO3\\Flow\\Annotations as Flow;\nuse TYPO3\\Neos\\Service\\LinkingService;\nuse TYPO3\\TYPO3CR\\Domain\\Model\\Node;\n\nclass Redi... | php | chosen |
[
{
"from": "system",
"value": "Remove debug from production (temp)\n"
},
{
"from": "human",
"value": "<?php\n// comment out the following two lines when deployed to production\ndefined('YII_DEBUG') or define('YII_DEBUG', true);\n// defined('YII_ENV') or define('YII_ENV', 'dev');\nerror_reporting(... | php | chosen |
[
{
"from": "system",
"value": "Add Fallback for ARRAY_FILTER_USE_BOTH behaviour on array_filter for PHP version < 5.6\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n * (c) Marco Bunge <marco_bunge@web.de>\n *\n * For the full copyright and license information, please view the LICENSE.txt\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add mode parameter for YEARWEEK"
},
{
"from": "human",
"value": "<?php\n\nnamespace DoctrineExtensions\\Query\\Mysql;\n\nuse Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode,\n Doctrine\\ORM\\Query\\Lexer;\n\n/**\n * @author Michael Kimpton <mike@sketchthat.com... | php | chosen |
[
{
"from": "system",
"value": "Remove duplicated DNA Sample Change from admin\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'import' => array(\n 'application.modules.Genetics.models.*',\n 'application.modules.Genetics.components.*',\n ),\n 'params' => array(\n... | php | chosen |
[
{
"from": "system",
"value": "Clean up exception handler. Add new ignores.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Database\\Eloquent\\ModelNotFoundException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Sym... | php | chosen |
[
{
"from": "system",
"value": "Install FOSUser - step 1.4\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function registerBundles()\n {\n $... | php | chosen |
[
{
"from": "system",
"value": "Change extension path in registerBackendControllers()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\Importwxr;\n\nuse Bolt\\Extension\\Bolt\\Importwxr\\Controller\\ImportController;\nuse Bolt\\Extension\\SimpleExtension;\nuse Bolt\\Men... | php | chosen |
[
{
"from": "system",
"value": "Change function name to camelCase\n"
},
{
"from": "human",
"value": "<?php\n/*\n * (c) Sajjad Hashemian <wolaws@gmail.com>\n */\n\nnamespace Sijad\\Spoiler\\Listener;\n\nuse Flarum\\Event\\ConfigureFormatter;\nuse Illuminate\\Contracts\\Events\\Dispatcher;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Use getRecord to get a record in unit test\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Monolog package.\n *\n * (c) Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add languages to the settings-class.\n"
},
{
"from": "human",
"value": "<?php\n namespace manuth\\TemPHPlate\\Properties;\n {\n class Settings\n {\n }\n }\n?>"
},
{
"from": "gpt",
"value": "<?php\n namespace ManuTh\\TemPH... | php | chosen |
[
{
"from": "system",
"value": "Handle Exceptions via class method (the good way)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Payum\\YiiExtension;\n\nuse Payum\\Core\\Request\\BinaryMaskStatusRequest;\nuse Payum\\Core\\Request\\Http\\RedirectUrlInteractiveRequest;\nuse Payum\\Core\\Request... | php | chosen |
[
{
"from": "system",
"value": "Make sure we are the first decorator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Happyr\\AutoFallbackTranslationBundle\\DependencyInjection;\n\nuse Happyr\\AutoFallbackTranslationBundle\\Translator\\GoogleTranslator;\nuse Symfony\\Component\\DependencyInje... | php | chosen |
[
{
"from": "system",
"value": "[FEATURE] Use static instantiation with max depth check\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOS\\ElasticaBundle\\Serializer;\n\nuse JMS\\Serializer\\SerializationContext;\nuse JMS\\Serializer\\SerializerInterface;\n\nclass Callback\n{\n protecte... | php | chosen |
[
{
"from": "system",
"value": "Convert search result to simple a simple array and back to full.\n"
},
{
"from": "human",
"value": "<?php \nnamespace Repositories;\n\nclass ItemCache extends Item \n{\n const CACHE_KEY = \"itemSearch\";\n public function where($text)\n {\n $key = self::CACHE_... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.