conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "DELETE use statements. Resolve conflicts with another class\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright 2015 - 2016 Xenofon Spafaridis\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in ...
php
chosen
[ { "from": "system", "value": "Append nominator user id when nominating a household\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Admin;\n\nuse App\\Base\\Controllers\\AdminController;\nuse App\\Http\\Controllers\\Api\\DataTables\\HouseholdDataTable;\nuse App\\Http...
php
chosen
[ { "from": "system", "value": "Handle contributor commits in own collections\n" }, { "from": "human", "value": "<?php\nnamespace Gitter\\Statistics;\n\nuse Gitter\\Util\\Collection;\nuse Gitter\\Model\\Commit\\Commit;\n\n/**\n * Aggregate statistics based on contributor\n */\nclass Contributors e...
php
chosen
[ { "from": "system", "value": "Add config check to memcache resource provider\n" }, { "from": "human", "value": "<?php\n/**\n * Provides resource to access memcache server.\n *\n * Parameters:\n * - [memcache.host]\n * - [memcache.port]\n * - [memcache.unix_socket]\n * - [memcache.namespace]\...
php
chosen
[ { "from": "system", "value": "MINOR: Remove setup method that was not showing in coverage tests\n" }, { "from": "human", "value": "<?php\n\nclass TemplateOverrideExtensionTest extends SapphireTest {\n\n\tprotected static $fixture_file = 'template-override/tests/pages.yml';\n\n\tpublic function s...
php
chosen
[ { "from": "system", "value": ":wrench: Add post fixture on reference\n" }, { "from": "human", "value": "<?php\n\nnamespace OAuthBundle\\DataFixtures\\ORM;\n\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\DataFixtures\\FixtureInterface;\nuse Doctrine\\Common\\Persist...
php
chosen
[ { "from": "system", "value": "Remove --dev from composer install.\n\n--dev is the default.\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev', $returnStatus);\nif ($returnStatus !== 0) {\n exit(1);\n}\n\nre...
php
chosen
[ { "from": "system", "value": "Use priority enum default for default trait\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace ApiClients\\Foundation\\Middleware;\n\ntrait DefaultPriorityTrait\n{\n /**\n * @return int\n */\n public function priority(): int...
php
chosen
[ { "from": "system", "value": "Set viewport width for mobile devices\n" }, { "from": "human", "value": "<?php\n/**\n * @package CherryTea.org\n * @category themes\n * @author Nazar Mokrynskyi <nazar@mokrynskyi.com>\n * @copyright Copyright (c) 2015, Nazar Mokrynskyi\n * @license MIT Licen...
php
chosen
[ { "from": "system", "value": "Update array store to match.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Session;\r\n\r\nuse Illuminate\\Cookie\\CookieJar;\r\nuse Symfony\\Component\\HttpFoundation\\Request;\r\nuse Symfony\\Component\\HttpFoundation\\Response;\r\n\r\nclass Array...
php
chosen
[ { "from": "system", "value": "Fix Recording Status Possible Values\n\nUpdated \"available\" to \"ready”.\nSee: https://github.com/OpenVidu/openvidu.io-docs/commit/b5be7c44f0161ca1569d5885c2fb0ded8d753fa9#diff-ffde0d3dc24a2bdec96cffaa3c0c261a\n" }, { "from": "human", "value": "<?php\n\n\nnamespac...
php
chosen
[ { "from": "system", "value": "Add from headers in mail\n" }, { "from": "human", "value": "<?php\nnamespace Criterion\\Helper;\n\nclass Notifications\n{\n public static function failedEmail($test, $project)\n {\n $config = json_decode(file_get_contents(CONFIG_FILE), true);\n i...
php
chosen
[ { "from": "system", "value": "Improve show configuration command output\n" }, { "from": "human", "value": "<?php\n\nnamespace Alchemy\\WorkerBundle\\Commands;\n\nuse Alchemy\\Queue\\MessageQueueRegistry;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\...
php
chosen
[ { "from": "system", "value": "Add a comment explaining the fields here.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Http\\Transformers;\n\nuse Northstar\\Models\\User;\nuse League\\Fractal\\TransformerAbstract;\n\nclass UserInfoTransformer extends TransformerAbstract\n{\n ...
php
chosen
[ { "from": "system", "value": "Use elseif instead of else + nested if\n\nCo-authored-by: Kyle <a691fe45072ea6917fdb7509f2e859c5439778af@users.noreply.github.com>" }, { "from": "human", "value": "<?php\n/**\n * This file is part of PHP Mess Detector.\n *\n * Copyright (c) Manuel Pichler <mapi@phpm...
php
chosen
[ { "from": "system", "value": "Add class docblock explaining the dependency on the LocaleListener\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenConext\\EngineBlockBridge\\EventListener;\n\nuse EngineBlock_ApplicationSingleton;\nuse OpenConext\\EngineBlockBundle\\Localization\\LocalePr...
php
chosen
[ { "from": "system", "value": "Add CORS preflight request support\n" }, { "from": "human", "value": "<?php\n\nnamespace Overblog\\GraphBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Componen...
php
chosen
[ { "from": "system", "value": "Add ID to patients list so we can easily get hold of it from specs\n" }, { "from": "human", "value": "@extends('layouts.master')\n\n@section('content')\n\t<div class=\"page-header\">\n\t\t<h1>Selecione um paciente para realizar o atendimento</h1>\n\t</div>\n\t<ul>\n...
php
chosen
[ { "from": "system", "value": "Isolate postscript in the admin panel (and stop calling the API)\n" }, { "from": "human", "value": "<!doctype html>\n<html>\n\t<head>\n\t\t@include(\"layouts.head\")\n\t</head>\n\n\t<body>\n\t\t@include(\"admin.navbar\")\n\n\t\t@yield(\"content\", '<div class=\"cont...
php
chosen
[ { "from": "system", "value": "Add SSL information to the network connection\n" }, { "from": "human", "value": "<?php\n/**\n * @author \"Michael Collette\" <metrol@metrol.net>\n * @package Metrol/DBConnect\n * @version 1.0\n * @copyright (c) 2016, Michael Collette\n */\n\nnames...
php
chosen
[ { "from": "system", "value": "Add new function to twig extension tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Becklyn\\AssetsBundle\\Twig;\n\nuse Becklyn\\AssetsBundle\\Html\\AssetHtmlGenerator;\nuse Becklyn\\AssetsBundle\\Twig\\AssetsTwigExtension;\nuse PHPUnit\\Framework\...
php
chosen
[ { "from": "system", "value": "Fix for defaultcontroller when creating new item\n" }, { "from": "human", "value": "<div class=\"group-defaultcontroller edit\">\n <?php\n\n echo form_open();\n $aFieldSets = [];\n\n foreach ($CONFIG['FIELDS'] as $oField) {\n\n if (in_array($oFiel...
php
chosen
[ { "from": "system", "value": "Fix tests to support new Socket v0.6 and up" }, { "from": "human", "value": "<?php\n\nnamespace React\\Tests\\Http;\n\nuse Evenement\\EventEmitter;\nuse React\\Socket\\ServerInterface;\n\nclass SocketServerStub extends EventEmitter implements ServerInterface\n{\n ...
php
chosen
[ { "from": "system", "value": "Use a non-locale aware output\n\nOtherwise, the alpha value will not be handled correctly i.e. in a German locale (this locale uses a comma instead of a dot)." }, { "from": "human", "value": "<?php\n\nnamespace OzdemirBurak\\Iris\\Traits;\n\ntrait AlphaTrait\n{\n ...
php
chosen
[ { "from": "system", "value": "Add comment explaining the deferred loading\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\AssetsBundle\\File\\Type;\n\nuse Becklyn\\AssetsBundle\\Asset\\Asset;\n\n\nclass CssFile extends FileType\n{\n use GenericFileHeaderTrait;\n\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "[RuworkBundle] Remove ExcelCsvEncoder when Serializer is not installed\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ruwork\\RuworkBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Componen...
php
chosen
[ { "from": "system", "value": "Use PHP zip extension to create zip archive\n\nFixes #8 & #6.\n" }, { "from": "human", "value": "<?php\n\nnamespace Qafoo\\Analyzer\\Handler;\n\nuse SebastianBergmann\\FinderFacade\\FinderFacade;\n\nuse Qafoo\\Analyzer\\Handler;\nuse Qafoo\\Analyzer\\Shell;\n\nclass...
php
chosen
[ { "from": "system", "value": "Remove pointless overrides from the exception handler\n\nWe're not doing anything that the parent class doesn't do already" }, { "from": "human", "value": "<?php\n\nnamespace Nord\\ImageManipulationService\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Validation\\...
php
chosen
[ { "from": "system", "value": "Allow files app nav entries to have a different icon class\n" }, { "from": "human", "value": "<div id=\"app-navigation\">\n\t<ul class=\"with-icon\">\n\t\t<?php foreach ($_['navigationItems'] as $item) { ?>\n\t\t<li data-id=\"<?php p($item['id']) ?>\" class=\"nav-<?...
php
chosen
[ { "from": "system", "value": "Fix tests on PHP 8.0/8.1\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Acme PHP project.\n *\n * (c) Titouan Galopin <galopintitouan@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Use CI mode automatically if colours are not supported\n" }, { "from": "human", "value": "<?php\n\nnamespace Concise\\Console;\n\nuse Concise\\Console\\TestRunner\\DefaultTestRunner;\nuse Concise\\Console\\ResultPrinter\\ResultPrinterProxy;\nuse Concise\\Console\\Re...
php
chosen
[ { "from": "system", "value": "Fix Pagerfanta adapter result caching\n" }, { "from": "human", "value": "<?php\n\nnamespace Brouzie\\Sphinxy\\Pagerfanta\\Adapter;\n\nuse Brouzie\\Sphinxy\\Query\\ResultSet;\nuse Brouzie\\Sphinxy\\QueryBuilder;\nuse Pagerfanta\\Adapter\\AdapterInterface;\n\n/**\n * ...
php
chosen
[ { "from": "system", "value": "Fix name/value pairing for Google Font List\n" }, { "from": "human", "value": "<?php\n/**\n * Gets a list of cgGroup objects.\n */\nclass cgGoogleFontListGetListProcessor extends modObjectGetListProcessor {\n public $languageTopics = array('clientconfig:default')...
php
chosen
[ { "from": "system", "value": "Update the Nut call to checkTablesIntegrity()" }, { "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 repair/update...
php
chosen
[ { "from": "system", "value": "Rename test class name to execute the test correctly.\n" }, { "from": "human", "value": "<?php\n\nclass AddressTestCase extends TestCase\n{\n public function testDataBaseAccess()\n {\n $address = new App\\Models\\Address();\n $results = $address-...
php
chosen
[ { "from": "system", "value": "Set the root controller namespace.\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvider extends ...
php
chosen
[ { "from": "system", "value": "Exclude API routes from CSRF verification\n" }, { "from": "human", "value": "<?php\n\nnamespace TimetablePusher\\Http\\Middleware;\n\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as BaseVerifier;\n\nclass VerifyCsrfToken extends BaseVerifier\n{\n ...
php
chosen
[ { "from": "system", "value": "Move sidebar to the left side\n" }, { "from": "human", "value": "<?php get_template_part('templates/head'); ?>\n<body <?php body_class(); ?>>\n\n <!--[if lt IE 8]>\n <div class=\"alert alert-warning\">\n <?php _e('You are using an <strong>outdated</strong> ...
php
chosen
[ { "from": "system", "value": "Add new common method for all drivers\n\n\ngit-svn-id: 36b7be5e7fa0b144356cf0adbb4d8bae05b5299b@276407 c90b9560-bf6c-de11-be94-00142212c4b1\n" }, { "from": "human", "value": "<?php\n/**\n * A driver interface\n */\ninterface Payment_Process2_Driver {\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Change view to be horizontal for easier scanning.\n" }, { "from": "human", "value": "<?php\n?>\n<section class=\"element element-data\">\n <h3 class=\"data-title\">Time</h3>\n <div class=\"data-value\">\n <?= $element->time ?>\n </div>\n <h3 class...
php
chosen
[ { "from": "system", "value": "Tweak wording in doc comments" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Http;\n\nuse Neos\\Flow\\Annotations as Flow;\nuse Neos\\Flow\\Core\\Bootstrap;\nuse Psr\\Http\\Message\\ServerRequestInterface;\n\n/**\n * Central authority to get hold of t...
php
chosen
[ { "from": "system", "value": "Declare the properties and solutions fields\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Twilio;\n\n\nclass InstanceResource {\n protected $version;\n protected $context = null;\n\n public function __construct(Version $version) {\n $this->...
php
chosen
[ { "from": "system", "value": "Add logoUrl and custom button field\n" }, { "from": "human", "value": "<?php\n\nnamespace HostBox\\Components\\PayPal\\PaymentButtons;\n\nuse Nette\\Application as Nette;\n\n\nabstract class BasicButton extends PaypalPaymentButton {\n\n /** @var int */\n publi...
php
chosen
[ { "from": "system", "value": "Fix online phone number if empty\n" }, { "from": "human", "value": "@extends('template.skeleton')\n\n@section('title')\n{{ Auth::user()->username.' | '._('Online phones') }}\n@stop\n\n@section('content')\n\n\t<div class=\"container\">\n\n\t\t<h1>{{ _('Online Phones'...
php
chosen
[ { "from": "system", "value": "Add season to league admin\n" }, { "from": "human", "value": "<?php\n\nnamespace SofaChamps\\Bundle\\BowlPickemBundle\\Admin;\n\nuse Sonata\\AdminBundle\\Admin\\Admin;\nuse Sonata\\AdminBundle\\Datagrid\\ListMapper;\nuse Sonata\\AdminBundle\\Datagrid\\DatagridMapper...
php
chosen
[ { "from": "system", "value": "Fix bad namespace and replace use of cake app controller for croogo one.\n" }, { "from": "human", "value": "<?php\n/**\n * Taxonomy App Controller\n *\n * @category Taxonomy.Controller\n * @package Croogo\n * @version 1.4\n * @author Fahad Ibnay Heylaal <contact...
php
chosen
[ { "from": "system", "value": "Fix public cacheBy for domain model.\n" }, { "from": "human", "value": "<?php\n\nnamespace Websanova\\EasyCache\\Models;\n\nclass Domain extends BaseModel\n{\n protected $table = 'websanova_easycache_domains';\n\n protected $cacheKey = 'domains';\n\n protec...
php
chosen
[ { "from": "system", "value": "Use an enum instead of an int\n" }, { "from": "human", "value": "<?php\ndefine('IN_SCRIPT',1);\ndefine('HESK_PATH','../');\nrequire(HESK_PATH . 'install/install_functions.inc.php');\nrequire(HESK_PATH . 'hesk_settings.inc.php');\nhesk_dbConnect();\nhesk_dbQuery(\"AL...
php
chosen
[ { "from": "system", "value": "Fix Doctrine Migrations commands to work with new bundles.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the full copyright and license inf...
php
chosen
[ { "from": "system", "value": "Allow S3 to properly serve to the cache servers\n" }, { "from": "human", "value": "<?php\n\nclass UploadFile {\n \n \n public function fire($job, $data) \n {\n $object = Object::where('name', $data['name'])->first();\n\n // Take file\n ...
php
chosen
[ { "from": "system", "value": "Implement addUser library at signup page\n" }, { "from": "human", "value": "<?php\n namespace Page;\n\n class SignUp\n {\n public function index()\n {\n if ($this->input->hasPost('username'))\n {\n $this->a...
php
chosen
[ { "from": "system", "value": "Put profile stuff in storage\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| File extension\n\t|--------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add method for liking profiles\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\User;\n\nclass ProfileController extends Controller\n{\n public function __construct()\n {\n //$this...
php
chosen
[ { "from": "system", "value": "[Streams] Reset non-blocking to be safe\n" }, { "from": "human", "value": "<?php\n\nnamespace React\\Socket;\n\nuse Evenement\\EventEmitter;\nuse React\\EventLoop\\LoopInterface;\nuse React\\Stream\\WritableStreamInterface;\nuse React\\Stream\\Buffer;\nuse React\\St...
php
chosen
[ { "from": "system", "value": "Revert \"Revert \"Revert \"Index aangepast zodat deze via ajax Sauna.php ophaalt\"\"\"\n\nThis reverts commit c5d3a9fdd2d9df477213acc0b0bbf8c88c6d50d3.\n" }, { "from": "human", "value": "<!doctype html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<title>Sauna</title>...
php
chosen
[ { "from": "system", "value": "Index aangepast zodat deze via ajax Sauna.php ophaalt\n" }, { "from": "human", "value": "<?php\n\nheader('Location: Sauna.php');\n?>\n" }, { "from": "gpt", "value": "<!doctype html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<title>Sauna</title>\n<script...
php
chosen
[ { "from": "system", "value": "Change line endings from DOS to unix; Improve token match.\n" }, { "from": "human", "value": "<?php\r\n\r\nheader('Content-Type: application/json');\r\n\r\n//Variables\r\n$user_agent = \"lmgtfy/0.1 (https://github.com/shokinn/lmgtfy-slack-slash-command)\";\r\n$comma...
php
chosen
[ { "from": "system", "value": "Fix timetable being wrongly escaped\n" }, { "from": "human", "value": "<?php\nnamespace Epfl\\Contact;\n\nrequire_once 'shortcake-config.php';\n\nfunction epfl_contact_process_shortcode($atts) {\n // sanitize parameters\n foreach($atts as $key => $value) {\n ...
php
chosen
[ { "from": "system", "value": "Remove unused use statements since extending Base Task\n" }, { "from": "human", "value": "<?php\n\nnamespace JoeStewart\\RoboDrupalVM\\Task;\n\n\nuse Robo\\Result;\nuse Robo\\Task\\BaseTask;\nuse Robo\\Common\\ExecOneCommand;\nuse Robo\\Contract\\CommandInterface;\n...
php
chosen
[ { "from": "system", "value": "Update to not use Facade alias" }, { "from": "human", "value": "<?php\nif (!function_exists('backend_router')) {\n /**\n * Retrieve router\n *\n * @author Casper Rasmussen <cr@nodes.dk>\n *\n * @return \\Nodes\\Backend\\Routing\\Router\n *...
php
chosen
[ { "from": "system", "value": "Add fillable fields to user\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Illuminate\\Notifications\\Notifiable;\nuse Laravel\\Passport\\HasApiTokens;\n\nclass User extends Authenticatab...
php
chosen
[ { "from": "system", "value": "Add Id in github team" }, { "from": "human", "value": "<?php\n\nrequire_once(__DIR__ . '/../GitHubObject.php');\n\n\t\n\nclass GitHubTeam extends GitHubObject\n{\n\t/* (non-PHPdoc)\n\t * @see GitHubObject::getAttributes()\n\t */\n\tprotected function getAttributes()...
php
chosen
[ { "from": "system", "value": "Remove useless constructor. (That is last for this pull.)\n" }, { "from": "human", "value": "<?php\n\nclass ApiFastTest extends TestCase\n{\n protected $baseUrl = '';\n\n /**\n * ApiFastTest constructor.\n */\n public function __construct()\n {\n...
php
chosen
[ { "from": "system", "value": "[TASK] Use final event class declarations\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Psalm\\Plugin\\EventHandler\\Event;\n\nuse Psalm\\Issue\\CodeIssue;\n\nclass BeforeAddIssueEvent\n{\n /**\n * @var CodeIssue\n */\n...
php
chosen
[ { "from": "system", "value": "Add comments for better orientation\n" }, { "from": "human", "value": "<?php\n\ndefine('SLASHCOMMAND_TOKEN', '');\ndefine('WEBHOOK_URL', '');\n" }, { "from": "gpt", "value": "<?php\n\n/**\n * Slash Command Token\n * You will get a token when you add a ne...
php
chosen
[ { "from": "system", "value": "Check signature of direct upload\n" }, { "from": "human", "value": "<?php\nrequire 'main.php';\n# Here should do whatever authentication / verification needed\n\n# Create model using the data received\n$photo = \\PhotoAlbum\\create_photo_model($_POST[\"public_id\"],...
php
chosen
[ { "from": "system", "value": "Test automatic generation of checksums" }, { "from": "human", "value": "<?php\n\nuse Icmp\\Message;\nuse Icmp\\Icmp;\nuse React\\EventLoop\\Factory;\n\nclass MessageTest extends TestCase\n{\n public function testGetters()\n {\n $message = new Message(1,...
php
chosen
[ { "from": "system", "value": "Fix namespace usage in example\n" }, { "from": "human", "value": "<?php\nrequire_once '../../src/ParseXML.php';\nrequire_once 'Book.php';\n\n$parseXML = new ParseXML('book', 'Book', 'display');\ntry {\n $parseXML->parseFile(\"catalog.xml\");\n} catch (Exception $e)...
php
chosen
[ { "from": "system", "value": "Remove wrong copy/paste doc description typo\n" }, { "from": "human", "value": "<?php\n/**\n * Lock\n * \n * Class for create and handle locks.\n * \n * @author Ángel Guzmán Maeso <shakaran@gmail.com>\n * @since 0.1\n */\nclass Lock\n{\n\t/**\r\n\t * Create a lock.\...
php
chosen
[ { "from": "system", "value": "Change double quotes to single quotes\n" }, { "from": "human", "value": "<?php\n\nRoute::group(['prefix' => 'api/exponent/devices', \"middleware\" => 'expo.middleware'], function () {\n Route::post('subscribe', [\n 'as' => 'register-interest',\n ...
php
chosen
[ { "from": "system", "value": "Remove drop for index that wasnt created.\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace DoctrineMigrations;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\Migrations\\AbstractMigration;\n\n/**\n * Auto-generated Migration: ...
php
chosen
[ { "from": "system", "value": "Add intercept functions in meta ref\n" }, { "from": "human", "value": "<?php\nfunction send_email($to_email,$subject,$message1)\n{\n require_once 'Mandrill.php';\n$apikey = '%API_key%'; // use this to encrypt your api key\n$mandrill = new Mandrill($apikey);\n\n$m...
php
chosen
[ { "from": "system", "value": "Update test server name for local development\n" }, { "from": "human", "value": "<?php\n\n// Any of these settings can be overridden by creating a \"config.user.php\" file in\n// this directory which returns a subset of or replacement for the following array.\n\nret...
php
chosen
[ { "from": "system", "value": "Change server description - moved to Mac\n" }, { "from": "human", "value": "<html>\n<head>\n<title>\nMoretz Miniserver\n</title>\n</head>\n<body bgcolor=\"CC9989\">\n<h1>This is the Moretz Miniserver.</h1>\n<p>\nLinks to Moretz Miniserver pages\n</p>\n<p>\n<a href=\...
php
chosen
[ { "from": "system", "value": "Add input form for new items\n" }, { "from": "human", "value": "<?php\ninclude ('inc/data.php');\ninclude ('inc/ui.php');\n?>\n\n<!DOCTYPE html>\n<html>\n<head>\n <title>ToDo App</title>\n <link href=\"css/todo.css\" rel=\"stylesheet\" />\n <script src=\"js...
php
chosen
[ { "from": "system", "value": "Fix for PHP < 5 error \n" }, { "from": "human", "value": "<?php\n\n# let people know if they are running an unsupported version of PHP\nif(phpversion() < 5) {\n\techo '<h3>Stacey requires PHP/5.0 or higher.<br>You are currently running PHP/\".phpversion().\".</h3><p...
php
chosen
[ { "from": "system", "value": "Check PHP Version before everything" }, { "from": "human", "value": "<?php\n\nerror_reporting(E_ALL | E_STRICT);\nini_set('display_errors', true);\n\n\n// Check for required PHP version \nif (version_compare(PHP_VERSION, '5.6.0', '<'))\n{\n exit(sprintf('This a...
php
chosen
[ { "from": "system", "value": "Add bootstrap for later prettiness\n" }, { "from": "human", "value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<head>\n <title>Mobiquity Swagger Docs</title>\n</head>\n<body>\n<h1>Swagger Projects</h1>...
php
chosen
[ { "from": "system", "value": "Fix access error by removing old $_SESSION['user'] references\n" }, { "from": "human", "value": "<?php\n @session_start();\n require_once \"php/config.php\" ;\n\n if ($_SESSION['user'] && $_SESSION['user']['id'] && $_SESSION['access_level']==100){\n $DBDEF=array(...
php
chosen
[ { "from": "system", "value": "Tweak artisan command output lines\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Fort\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass InstallCommand extends Command\n{\n /**\n * The name and signat...
php
chosen
[ { "from": "system", "value": "Add shortcut -f (force) for artisan publish commands\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Auth\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n * T...
php
chosen
[ { "from": "system", "value": "Make some aliases and use classes as identifiers\n\nSigned-off-by: Camilo Sperberg <9fc10dd65f77fb6c78cda83e986d969eee8e0d9c@jouwweb.nl>\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'service_manager' => [\n 'factories' => [\n 'JwPersis...
php
chosen
[ { "from": "system", "value": "Stop when a step exit code > 0\n" }, { "from": "human", "value": "<?php\n\nnamespace Rizeway\\Anchour\\Step;\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\nclass StepRunner\n{\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Adjust signature of test class fully\n" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Tests\\Functional\\Configuration\\Fixtures;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * ...
php
chosen
[ { "from": "system", "value": "Remove dependency on Alias definitions" }, { "from": "human", "value": "<?php\nnamespace Rap2hpoutre\\LaravelLogViewer;\n\nuse Illuminate\\Support\\Facades\\View;\n\nclass LogViewerController extends \\Illuminate\\Routing\\Controller\n{\n\n public function index(...
php
chosen
[ { "from": "system", "value": "Add route to save widget\n" }, { "from": "human", "value": "<?php\n\n$router->get('/', ['as' => 'dashboard.index', 'uses' => 'DashboardController@index']);\n" }, { "from": "gpt", "value": "<?php\n\nuse Illuminate\\Routing\\Router;\n\n$router->get('/', ['...
php
chosen
[ { "from": "system", "value": "Set no of records per page to 500 in search current actions call.\n\n" }, { "from": "human", "value": "<?php\n\nnamespace LaravelLb;\n\nuse LaravelLb\\LogicBoxes;\n\nclass LogicBoxesActions extends LogicBoxes {\n\n public function __construct()\n {\n pa...
php
chosen
[ { "from": "system", "value": "Call enabled scope on the builder, not the collection\n" }, { "from": "human", "value": "<ul class=\"list-group components\">\n @if($component_groups->count() > 0)\n @foreach($component_groups as $componentGroup)\n @if($componentGroup->components->enabled()...
php
chosen
[ { "from": "system", "value": "Fix exiftool error on incorrect images\n\n" }, { "from": "human", "value": "<?php\n\nnamespace YF\\Provider;\n\nclass Exiftool\n{\n public function __construct()\n {\n $bin = '';\n if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {\n $b...
php
chosen
[ { "from": "system", "value": "BAP-10771: Migrate data audit command to be executed in new message queue\n\n- fix tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\DataAuditBundle\\Migrations\\Schema\\v1_7;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Oro\\Bundle\\MigrationB...
php
chosen
[ { "from": "system", "value": "Fix trusted domain error page\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n" }, { "from": "human", "value": "<?php /** @var array $_ */ ?>\n\n<div class=\"error\">\n\t<h2><?php p($l->t('Access through untrusted domain'));...
php
chosen
[ { "from": "system", "value": "Make abstract so PHPUnit does not complain\n" }, { "from": "human", "value": "<?php\nnamespace Sutra\\String\\Tests;\n\nclass TestCase extends \\PHPUnit_Framework_TestCase\n{\n}\n" }, { "from": "gpt", "value": "<?php\nnamespace Sutra\\Component\\String\\...
php
chosen
[ { "from": "system", "value": "Fix TableName tests for empty table name\n" }, { "from": "human", "value": "<?php\n\nuse Mdd\\QueryBuilder\\Queries\\Parts;\n\nclass TableNameTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider providerTestTableName\n */\n public functio...
php
chosen
[ { "from": "system", "value": "Fix bei vps_users model, reference ist immer das in der config eingestellte model\n" }, { "from": "human", "value": "<?php\rclass Vps_User_Web_Model extends Vps_Model_Db\r{\r protected $_table = 'vps_users';\r protected $_referenceMap = array(\r 'User' ...
php
chosen
[ { "from": "system", "value": "Add allowedSecondFactors to reconfigure inst conf command\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2016 SURFnet B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit...
php
chosen
[ { "from": "system", "value": "Use config contract instead of actual implementation.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Spatie\\Activitylog;\n\nuse Illuminate\\Config\\Repository;\n\nclass...
php
chosen
[ { "from": "system", "value": "Add field and tag types\n" }, { "from": "human", "value": "<?php\nnamespace Composer\\Installers;\n\nclass KirbyInstaller extends BaseInstaller\n{\n protected $locations = array(\n 'plugin' => 'site/plugins/{$name}/',\n );\n}\n" }, { "from": ...
php
chosen
[ { "from": "system", "value": "Update docblock for Expired Request Exception\n" }, { "from": "human", "value": "<?php\n\nnamespace SoapBox\\SignedRequests\\Exceptions;\n\nuse Exception;\nuse Throwable;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Excepti...
php
chosen
[ { "from": "system", "value": "Fix urls of switcher after first switch\n" }, { "from": "human", "value": "<?php\nnamespace LanguageSwitcher\\View\\Helper;\n\nuse Cake\\Core\\Configure;\nuse Cake\\Core\\InstanceConfigTrait;\nuse Cake\\Routing\\Router;\nuse Cake\\Utility\\Hash;\nuse Cake\\Utility\\...
php
chosen
[ { "from": "system", "value": "Add telephone property to organization type\n" }, { "from": "human", "value": "<?php\n\nnamespace JsonLd\\ContextTypes;\n\nclass Organization extends Thing\n{\n /**\n * Property structure\n *\n * @var array\n */\n private $extendedStructure = [...
php
chosen