conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add table name to bans model.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * FluxBB - fast, light, user-friendly PHP forum software\n * Copyright (C) 2008-2012 FluxBB.org\n * based on code by Rickard Andersson copyright (C) 2002-2008 PunBB\n *\n * This program is... | php | chosen |
[
{
"from": "system",
"value": "Add Hello world to verify installation\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Main entry point\n *\n * @author Ivanis Kouamé <ivanis.kouame@smile.fr>\n * @copyright 2015 Smile\n */\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nconst ROOT_PATH = ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"dependency removed from bundle test\"\n\nThis reverts commit 119a99ec1947f49803e913e0220a1edc633feb6e.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Devhelp\\PiwikBundle;\n\n\nclass DevhelpPiwikBundleTest extends \\PHPUnit_Framework_TestCase\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow to pass variables in smarty function\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @param array $params\n * @param Smarty_Internal_Template $template\n * @return bool\n */\nfunction smarty_function_advertisement(array $params, Smarty_Int... | php | chosen |
[
{
"from": "system",
"value": "Change default view to client common layout\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This <server-gardu-reporter> project created by :\n * Name : syafiq\n * Date / Time : 20 June 2017, 3:07 PM.\n * Email : syafiq.rezpector@gmail.com\n * Gith... | php | chosen |
[
{
"from": "system",
"value": "Remove return type of transformable method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flugg\\Responder\\Contracts;\n\n/**\n * A contract you can apply to your models to map a specific transformer to a model.\n *\n * @package Laravel Responder\n * @author ... | php | chosen |
[
{
"from": "system",
"value": "Fix test See company details page\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Test;\n\nuse App\\User;\nuse App\\Company;\n\nuse TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nus... | php | chosen |
[
{
"from": "system",
"value": "Fix support for \"kriswallsmith/buzz\" ^0.15\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright a... | php | chosen |
[
{
"from": "system",
"value": "Make CSS Generator template hidden\n"
},
{
"from": "human",
"value": "<?php require_once( '../couch/cms.php' ); ?>\n\n<cms:embed '../../css/normalize.css' />\n<cms:embed '../../css/defaults.css' />\n<cms:embed '../../css/fonts.css' />\n<cms:embed '../../css/menu.css... | php | chosen |
[
{
"from": "system",
"value": "Add method to load a page\n"
},
{
"from": "human",
"value": "<?php\n\n class Loader\n {\n private $instance = array();\n\n private function loadFile($name, $package='library', $data=array())\n {\n $vendors =& loadClass('Vendor',... | php | chosen |
[
{
"from": "system",
"value": "Make each manufacturer a link to the edit page instead of using a form button\n"
},
{
"from": "human",
"value": "<!-- resources/views/admin/manufacturer_index.blade.php -->\n\n@extends('layouts.app')\n\n@section('content')\n<h2>Manufacturers</h2>\n\n<table class=\"t... | php | chosen |
[
{
"from": "system",
"value": "Set DEBUG to false in test bootstrap\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('FIRST_APP_CONSTANT', 'FIRST_APP_CONSTANT');\ndefine('DS', DIRECTORY_SEPARATOR);\ndefine('ROOT', realpath(dirname(dirname(dirname(__FILE__)))));\ndefine('VENDOR_PATH', ROOT . DS ... | php | chosen |
[
{
"from": "system",
"value": "Remove grids from templates where not needed\n"
},
{
"from": "human",
"value": "<?php\n global $post;\n $items = get_field('items', $module->ID);\n?>\n\n<div class=\"grid\">\n <div class=\"grid-lg-12\">\n <div class=\"box box-panel\">\n <h... | php | chosen |
[
{
"from": "system",
"value": "Add script to reports views\n"
},
{
"from": "human",
"value": "<?php\nclass show extends Controller\n{\n\tfunction __construct()\n\t{\n\t\tif( ! $this->authorized())\n\t\t{\n\t\t\tredirect('auth/login');\n\t\t}\n\t} \n\n\tfunction index()\n\t{\n\t\t$data = array();\... | php | chosen |
[
{
"from": "system",
"value": "Add link to User on UserHeader\n"
},
{
"from": "human",
"value": "<div class=\"col-lg-6\">\n\n <div class=\"profilepic\"><img class=\"profilepicsize\" src=\"../{{ $contact->avatar }}\" /></div>\n <h1>{{ $contact->name }} </h1>\n\n <!--MAIL-->\n <p><span ... | php | chosen |
[
{
"from": "system",
"value": "Correct parameter for network request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AdvancedBan;\n\nuse AdvancedBan;\n\nclass Network {\n\t\n\tprivate $host;\n\tprivate $path;\n\t\n\tpublic function __construct(string $url) {\n\t\t$url = parse_url($url);\n\t... | php | chosen |
[
{
"from": "system",
"value": "Fix for PHP strict standards\n"
},
{
"from": "human",
"value": "<?php\nnamespace water\\database;\n\nuse water\\config\\Config;\n\n/*\n * I understand that this is ugly, but it was fast and should work okay.\n */\nclass MongoConnector{\n /** @var \\MongoDB */\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix spacing on Index test. [ci skip]\n"
},
{
"from": "human",
"value": "<?php\nclass A01_Frontend_IndexCest extends CestAbstract\n{\n /**\n * @before setupComplete\n * @before login\n */\n public function seeHomepage(FunctionalTester $I)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use tagged service IDs sorter to sort tagged services.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full ... | php | chosen |
[
{
"from": "system",
"value": "Comment getList docstring with variable names\n"
},
{
"from": "human",
"value": "<?php\n\nclass Services_Twilio_Rest_AvailablePhoneNumbers\n extends Services_Twilio_ListResource\n{\n public function getLocal($country)\n {\n $curried = new Services_Tw... | php | chosen |
[
{
"from": "system",
"value": "Update the reply count display\n"
},
{
"from": "human",
"value": "<div class=\"data-list\">\n@foreach ($discussions as $discussion)\n\t<div class=\"d-flex align-items-start align-items-md-center justify-content-start mb-2 p-2\">\n\t\t<div class=\"d-flex align-items-... | php | chosen |
[
{
"from": "system",
"value": "Use model namespace from config in ManyToMany model stub\n"
},
{
"from": "human",
"value": " /**\n * {{str_singular($model)}}.\n *\n * @return \\Illuminate\\Support\\Collection;\n */\n public function {{str_plural($model)}}()\n {\n re... | php | chosen |
[
{
"from": "system",
"value": "Fix the map file name\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@1330 46e82423-29d8-e211-989e-002590a4cdd4\n"
},
{
"from": "human",
"value": "<?\n\t# $Id: graphclick.php,v 1.1.2.1 2002-04-19 20:26:05 dan Exp $\n\t#\n\n$cache_dir = \"/tmp/\";\n\nif (!i... | php | chosen |
[
{
"from": "system",
"value": "Add migration to boot method of service provider\n"
},
{
"from": "human",
"value": "<?php namespace Avanderbergh\\Schoology;\n\nuse OneLogin_Saml2_Auth;\nuse URL;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass Saml2ServiceProvider extends ServiceProvider\n{\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix request scheme: REQUEST_SCHEME doesn't exist for PHP 7 built-in server\n"
},
{
"from": "human",
"value": "<?php\n\nsession_start();\n\nrequire __DIR__.'/../vendor/autoload.php';\n\nuse \\BW\\Vkontakte as Vk;\n\n$vk = new Vk([\n 'client_id' => '5759854',\n ... | php | chosen |
[
{
"from": "system",
"value": "Add test for missing ids\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass ScinamesTest extends WebserviceTestCase\n... | php | chosen |
[
{
"from": "system",
"value": "Use empty instead of empty + isset\n"
},
{
"from": "human",
"value": "<?php use_helper('Text') ?>\n\n<article class=\"search-result\">\n\n <div class=\"search-result-description\">\n\n <p class=\"title\"><?php echo link_to(get_search_i18n($doc, 'authorizedFormOf... | php | chosen |
[
{
"from": "system",
"value": "Make console command always available from YII_CONSOLE_COMMANDS"
},
{
"from": "human",
"value": "<?php\n/**\n * Yii command line script file.\n *\n * This script is meant to be run on command line to execute\n * one of the pre-defined console commands.\n *\n * @auth... | php | chosen |
[
{
"from": "system",
"value": "[NodeBundle] Add docblock return types for node iterator class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\NodeBundle\\Entity;\n\nuse Doctrine\\Common\\Collections\\Collection;\n\nclass NodeIterator implements \\RecursiveIterator\n{\n private... | php | chosen |
[
{
"from": "system",
"value": "Rename the users.php file to config.php\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Modules\\Notification\\Entities;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\n/**\n * @property string type\n * @property string message\n * @property string icon_class... | php | chosen |
[
{
"from": "system",
"value": "WIP: Upgrade to Splash V2 Standards"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of SplashSync Project.\n *\n * Copyright (C) 2015-2019 Splash Sync <www.splashsync.com>\n *\n * This program is distributed in the hope that it will be useful,... | php | chosen |
[
{
"from": "system",
"value": "[tracker] Add + button to add a model\n\n"
},
{
"from": "human",
"value": "<?php\r\n/*\r\n ----------------------------------------------------------------------\r\n GLPI - Gestionnaire Libre de Parc Informatique\r\n Copyright (C) 2003-2008 by the INDEPNET Dev... | php | chosen |
[
{
"from": "system",
"value": "Implement creating an import record each time a customer imports data\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace vr\\core\\disposable;\n\nuse Yii;\nuse yii\\base\\BaseObject;\n\n/**\n * Class FileBeingUploaded\n * @package vr\\core\\disposable\n * @prop... | php | chosen |
[
{
"from": "system",
"value": "Correct deleting FactoryMuffin Facades after test classes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RCatlin\\Blog\\Test;\n\nuse League\\FactoryMuffin\\Facade as FactoryMuffin;\n\n/**\n * Loads Facades using league\\factory-muffin. Meant to be used in Int... | php | chosen |
[
{
"from": "system",
"value": "Return non-used code of obsolet function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb\\ajax\\details;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait information of a list of organism ids\n */\nclass TraitsOfOrganisms extends \\fenn... | php | chosen |
[
{
"from": "system",
"value": "Add check for OS - this gives errors on Mac as-is\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP Command Line Tools\n *\n * This source file is subject to the MIT license that is bundled\n * with this package in the file LICENSE.\n *\n * @author James Logs... | php | chosen |
[
{
"from": "system",
"value": "Update register if user exists\n"
},
{
"from": "human",
"value": "<?php\n if($_SERVER['SERVER_NAME'] == 'builder.osmand.net') {\n \tinclude '../reports/db_conn.php';\n \t$dbconn = db_conn();\n $visiblename = pg_escape_string($dbconn, $_GET[\"visibleName\"]);\n... | php | chosen |
[
{
"from": "system",
"value": "Add error response if rcon can't be parsed\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: Bram\n * Date: 1-9-2017\n * Time: 06:59\n */\n\nnamespace Stormyy\\B3\\Helper;\n\n\nuse q3tool;\nuse Stormyy\\B3\\Models\\B3Server;\n\nabstrac... | php | chosen |
[
{
"from": "system",
"value": "Fix source for join column\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the DataGridBundle.\n *\n * (c) Abhoryo <abhoryo@free.fr>\n * (c) Stanislav Turza\n *\n * For the full copyright and license information, please view the LICENSE\n * f... | php | chosen |
[
{
"from": "system",
"value": "GenerateSiteMap.php: Fix broken path to place the sitemap.\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Spatie\\Sitemap\\SitemapGenerator;\n\nclass GenerateSitemap extends Command\n{\n /... | php | chosen |
[
{
"from": "system",
"value": "Fix undefined related_issue var when assigning child task to issue\n"
},
{
"from": "human",
"value": "<?php foreach ($issue->getChildIssues() as $child_issue): ?>\n\t<?php if ($child_issue->hasAccess()): ?>\n\t\t<?php include_template('main/relatedissue', array('iss... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Add default value to variant enabled column migration\"\n\nThis reverts commit 540031efb23dae1207254b9beb5989e5c0810dcb.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Sylius\\Migrations;\n\nuse Doctrine\\DBAL\\Schema\\Sch... | php | chosen |
[
{
"from": "system",
"value": "Fix extension loading, namespace extensions behind ext\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Prontotype\\Extension;\n\nclass Manager\n{\n \n public function __construct($extpath, $app)\n {\n $this->app = $app;\n $this->path = r... | php | chosen |
[
{
"from": "system",
"value": "Add customer in BOA Application.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tisseo\\BoaBundle\\DataFixtures\\ORM;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerAwareInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\nu... | php | chosen |
[
{
"from": "system",
"value": "Put PHP comments in PHP blocks\n\nWe don't want hackers reading our server side comments, do we?"
},
{
"from": "human",
"value": "<?php\n require \"assets/includes/connect.php\"; //Connect - includes session_start();\n?>\n<!DOCTYPE html>\n<html>\n<head>\n <!-... | php | chosen |
[
{
"from": "system",
"value": "Allow to login with \"drush uli <param>\"\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Sergey Bondarenko, <sb@firstvector.org>\n */\nnamespace Drupal\\TqExtension\\Context\\Drush;\n\nclass DrushContext extends RawDrushContext\n{\n /**\n * @Given ... | php | chosen |
[
{
"from": "system",
"value": "Allow manually setting of loggedInUser\n\nSometimes it is necessary to manually override the `loggedInUser`."
},
{
"from": "human",
"value": "<?php\nnamespace Ceeram\\Blame\\Event;\n\nuse ArrayObject;\nuse Cake\\Controller\\Component\\AuthComponent;\nuse Cake\\Event... | php | chosen |
[
{
"from": "system",
"value": "Fix uploader for raw files\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Optimus\\FineuploaderServer\\Http;\n\nuse Optimus\\FineuploaderServer\\File\\File;\nuse Optimus\\FineuploaderServer\\Http\\UrlResolverInterface;\n\nclass CloudinaryUrlResolver implement... | php | chosen |
[
{
"from": "system",
"value": "Delete a use statement who were not used\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CrudGenerator\\MetaData\\DataObject;\n\nuse ArrayObject;\n\nuse CrudGenerator\\MetaData\\MetaDataColumnDataObject;\n\nclass MetaDataColumnDataObjectCollection extends Arra... | php | chosen |
[
{
"from": "system",
"value": "Add commment for date formatter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace So\\LogboardBundle\\Callback;\n\n\nclass dateFormatter\n{\n public static function standardFormat($data)\n {\n //yyyy-mm-dd\n $date = explode(\"-\",$data[\"key\... | php | chosen |
[
{
"from": "system",
"value": "Add documentation for assigned person\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Arctic\\Model\\Inquiry;\n\nuse Arctic\\Model;\n\n/**\n * Class Inquiry\n * @property int $businessgroupid\n * @property int $id\n * @property string $personid\n * @property s... | php | chosen |
[
{
"from": "system",
"value": "Update connected_to index from number to string to match the input numbering."
},
{
"from": "human",
"value": "<?php\n\nnamespace OnlyBits\\Outputs;\n\nuse OnlyBits\\Connectors\\WireAbstract;\n\nclass BinaryLight extends OutputAbstract\n{\n /**\n * Constructo... | php | chosen |
[
{
"from": "system",
"value": "Fix attributes of image node\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Visual composer Generator Image\n * This class was created to generate shortcodes of visual composer plugin,\n * to be used in templates of custom pages wordpress\n * @author Lea... | php | chosen |
[
{
"from": "system",
"value": "Set APP_DEBUG default to false"
},
{
"from": "human",
"value": "<?php\n/*\n| For additional options see\n| https://github.com/octobercms/october/blob/master/config/app.php\n*/\n\nreturn [\n 'debug' => env('APP_DEBUG', true),\n 'url' => env('APP_URL', 'http://l... | php | chosen |
[
{
"from": "system",
"value": "Improve all migrations command output formatting\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseMigrations project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\D... | php | chosen |
[
{
"from": "system",
"value": "[KGO-788]\nMake sure to set allow statement on URL_BASE\n"
},
{
"from": "human",
"value": "<?php\n\n$lines = array(\n 'User-agent: *',\n 'Allow: /',\n 'Disallow: '.URL_BASE.'rest/',\n);\n\nforeach (WebModule::getAllModules() as $module) {\n if (!$module-... | php | chosen |
[
{
"from": "system",
"value": "Add proper handling for base URI/URL\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace hollodotme\\Readis\\Application\\Configs;\n\nfinal class AppConfig\n{\n\t/** @var array */\n\tprivate $configData;\n\n\tpublic function __construct()\... | php | chosen |
[
{
"from": "system",
"value": "Fix checking invokable $instead of $resource\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Colorium\\App\\Kernel;\n\nuse Colorium\\App\\Context;\nuse Colorium\\App\\Plugin;\nuse Colorium\\Http\\Response;\nuse Colorium\\Runtime\\Invokable;\n\nclass Execution ... | php | chosen |
[
{
"from": "system",
"value": "Add URLs to the different WordPress installs on the default server web page\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n<head>\n\t<title>Varying Vagrant Vagrants Dashboard</title>\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale... | php | chosen |
[
{
"from": "system",
"value": "Allow regular users to check their own workers\n\nFixes #270\n"
},
{
"from": "human",
"value": "<?php\n\n// Make sure we are called from index.php\nif (!defined('SECURITY'))\ndie('Hacking attempt');\n\n// Check user token\n$id = $user->checkApiKey($_REQUEST['api_key... | php | chosen |
[
{
"from": "system",
"value": "Add completion message to module:validate command\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace LotGD\\Core\\Console\\Command;\n\nuse LotGD\\Core\\Bootstrap;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Compon... | php | chosen |
[
{
"from": "system",
"value": "Replace filler for home page\n"
},
{
"from": "human",
"value": "<?php\nclass HomePage extends Page {\n\tpublic function __construct($trigger, $core) {\n\t\tparent::__construct($trigger, $core);\n\t}\n\n\tpublic function writePageContent() {\n\t\t$content = \n'\n<div... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Added the macroable trait to model classes\"\n\nThis reverts commit d64c59c83f686d48a78b5e290792c7484d1ed174.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\Foundation\\Database;\n\nuse Illuminate\\Database\\Eloquent\\Model as BaseModel;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add resource path only when using PrettyPageHandler\n"
},
{
"from": "human",
"value": "<?php namespace Pingpong\\Whoops;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass WhoopsServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading of the ... | php | chosen |
[
{
"from": "system",
"value": "Use cards on iframes to adjust title position.\n"
},
{
"from": "human",
"value": "@paper([\n\n])\n@if (!$hideTitle && !empty($postTitle))\n @typography([\n 'element' => 'h4',\n 'variant' => 'h2',\n 'classList' => ['module-title']\n ])\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix checkbox agree in install welcome to be checked\n"
},
{
"from": "human",
"value": "<div class=\"panel single\">\n <div class=\"warp\">\n <?php echo formOpen('install'); ?>\n <h1>Welcome</h1>\n <div>\n Before you can use the web... | php | chosen |
[
{
"from": "system",
"value": "Remove whitespace for PDOPgSql class\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 distribu... | php | chosen |
[
{
"from": "system",
"value": "Use of @component for buttons in form\n"
},
{
"from": "human",
"value": "@section('js')\n <script src=\"{{ asset('components/ckeditor/ckeditor.js') }}\"></script>\n@endsection\n\n@include('core::admin._buttons-form')\n\n{!! BootForm::hidden('id') !!}\n\n@include(... | php | chosen |
[
{
"from": "system",
"value": "Sort namespaces php env independently\n"
},
{
"from": "human",
"value": "<?php\n\nerror_reporting(E_ALL);\n\n$file = __DIR__ . '/../vendor/autoload.php';\nif (file_exists($file)) {\n $loader = require $file;\n}\n\nif (!isset($loader)) {\n throw new \\RuntimeEx... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if curl call fails\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nclass Twocheckout_Api_Requester\r\n{\r\n public $apiBaseUrl;\r\n private $user;\r\n private $pass;\r\n\r\n\tfunction __construct() {\r\n $this->user = Twocheckout:... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary use statement for ResponseInterface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the league/oauth2-client library\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribut... | php | chosen |
[
{
"from": "system",
"value": "Stop publishing Media Views in Media Service Provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelFlare\\Media;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MediaServiceProvider extends ServiceProvider\n{\n /**\n * Perform post-regis... | php | chosen |
[
{
"from": "system",
"value": "Fix exit code on error\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n$container = require_once __DIR__ . '/../src/container.php';\n\n/** @var \\CodeTool\\ArtifactDownloader\\ArtifactDownloader $artifactDownloader */\n... | php | chosen |
[
{
"from": "system",
"value": "Add gc_collect_cycles() and gc_mem_caches() to benchmark example\n"
},
{
"from": "human",
"value": "<?php\n\n// Usage -----------------------------------------------\n// Default (10 x 100 requests): php examples/8-benchmark.php\n// Infinite (10 x 100 requests... | php | chosen |
[
{
"from": "system",
"value": "Fix for verify headers being incorrect.\n"
},
{
"from": "human",
"value": "<?php\n\n // Elevate API Client\nnamespace ElevateAPI;\n\nuse GuzzleHttp\\Client as GuzzleClient;\nuse GuzzleHttp\\Exception\\GuzzleException;\nuse ElevateAPI\\Query\\QueryAbstract;\n\ncla... | php | chosen |
[
{
"from": "system",
"value": "Add support for already encoded json\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frame\\Controller;\n\n/**\n * Class JSON\n * This will output pure json\n * @package Frame\\Controller\n */\nclass JSON extends Base {\n\n public function _render($out, $ar... | php | chosen |
[
{
"from": "system",
"value": "Revert exemplo de consulta de cep para o original.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/bootstrap-exemplos.php';\n\n$cep = (isset($_GET['cep']) ? $_GET['cep'] : '95350130');\n\n$phpSigep = new PhpSigep\\Services\\SoapClient\\Real();\n... | php | chosen |
[
{
"from": "system",
"value": "Add projectIds conditional to videos variable\n"
},
{
"from": "human",
"value": "<?php\nnamespace Craft;\n\nclass Wistia_VideosController extends BaseController\n{\n\tpublic function actionGetModal($projectIds = '*')\n\t{\n\t\t$this->requireAjaxRequest();\n\n\t\tret... | php | chosen |
[
{
"from": "system",
"value": "Update to laravel 5.1 ::class notation\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Create The Application\n|--------------------------------------------------------------------------\... | php | chosen |
[
{
"from": "system",
"value": "Convert plugin to use Symfony events\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Plugin;\n\nuse \\Grav\\Common\\Plugin;\nuse \\Grav\\Common\\Registry;\nuse \\Grav\\Plugin\\Taxonomylist;\n\nclass TaxonomylistPlugin extends Plugin\n{\n /**\n * Add... | php | chosen |
[
{
"from": "system",
"value": "Reset config status after updating\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Piplin.\n *\n * Copyright (C) 2016-2017 piplin.com\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribute... | php | chosen |
[
{
"from": "system",
"value": "Move social widgets to the top\n"
},
{
"from": "human",
"value": "<div id=\"sidebar\" class=\"x2\">\n\n <?php if ( !is_search() ) get_template_part('widget', 'sidebar-teaser--bolshaya-medvedica'); ?>\n\n <?php if ( !is_tag('juno') ) get_template_part('widget',... | php | chosen |
[
{
"from": "system",
"value": "Make the enum element comparison strict\n\nThe current check is matching numeric strings that are not equal ( like \"604.1\" == \"604.10\" because of PHP's == behavior that converts numeric strings to numbers and then performs a numeric comparison), even if type is checked befo... | php | chosen |
[
{
"from": "system",
"value": "Update PHPUnit Example Test stub to correctly reference the PHPUnit TestCase class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Foo\\Bar\\Tests;\n\nclass ExampleTest extends \\PHPUnit_Framework_TestCase\n{\n\n}\n"
},
{
"from": "gpt",
"value": "... | php | chosen |
[
{
"from": "system",
"value": "Add debug lines to test.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nrequire '../src/Hungarian.php';\r\n\r\n$array = [\r\n [1,2,3,0,1],\r\n [0,2,3,12,1],\r\n [3,0,1,13,1],\r\n [3,1,1,12,0],\r\n [3,1,1,12,0],\r\n];\r\n\r\n$hungarian = new \\RPFK\\... | php | chosen |
[
{
"from": "system",
"value": "Correct redirect url for password reset\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ChopBox\\Http\\Controllers\\Auth;\n\nuse ChopBox\\Http\\Controllers\\Controller;\nuse Illuminate\\Foundation\\Auth\\ResetsPasswords;\n\nclass PasswordController extends Con... | php | chosen |
[
{
"from": "system",
"value": "Change blade datetime directive to supported timezone\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers\\Blade;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DirectiveServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap se... | php | chosen |
[
{
"from": "system",
"value": "Use str_pad() and dechex() instead of sprint()\n\nThis is a micro-optimization that improves memory usage when generating\nlarge quantities of UUIDs. See #159 and #160.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the ramsey/uuid library\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Update to laravel 5.4 guidelines\"\n\nThis reverts commit 703ce34feda94d17c52684767b574d5dd1c1e97e.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Milax\\Mconsole\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Faca... | php | chosen |
[
{
"from": "system",
"value": "Fix encryption issue when creating new nodes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pterodactyl\\Services\\Nodes;\n\nuse Illuminate\\Support\\Str;\nuse Pterodactyl\\Models\\Node;\nuse Illuminate\\Encryption\\Encrypter;\nuse Pterodactyl\\Contracts\\Rep... | php | chosen |
[
{
"from": "system",
"value": "Check if $ajax is set"
},
{
"from": "human",
"value": "<div id=\"workflow_transition_container\" style=\"display: none;\">\n <?php if ($issue->isWorkflowTransitionsAvailable()): ?>\n <?php foreach ($issue->getAvailableWorkflowTransitions() as $transition):... | php | chosen |
[
{
"from": "system",
"value": "Add blank line to satisfy OCD\n"
},
{
"from": "human",
"value": "<?php\n\nclass Pitch extends BaseModel {\n\n\tprotected $table = 'pitches';\n\n\tpublic static $rules = [\n\t\t'email' => 'required|email',\n\t\t'name' => 'required',\n\t\t'blurb' => 'required'\n\t];\n... | php | chosen |
[
{
"from": "system",
"value": "Replace mock for Pslackr with real object\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FullyBaked\\Pslackr;\n\nuse PHPUnit_Framework_TestCase;\n\nclass PslackrTest extends PHPUnit_Framework_TestCase\n{\n public function testConstructorSetsConfigProperty(... | php | chosen |
[
{
"from": "system",
"value": "Check for percents with decimals\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rainbow\\Tests\\Unit;\n\nuse Rainbow\\Unit\\Percent;\n\nclass PercentTest extends \\PHPUnit_Framework_TestCase\n{\n public function testEmptyValueShouldReturnZero()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add link to article in header\n"
},
{
"from": "human",
"value": "<?php\nnamespace AutoClipper;\n\nrequire dirname(__DIR__).'/vendor/autoload.php';\n\nif (!isset($_GET['url'])) {\n echo 'Error: No URL given to clip';\n exit;\n}\n\nif (!isset($_GET['token'])) {\... | php | chosen |
[
{
"from": "system",
"value": "Fix: Allow to clear cookie when the value is null\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Copyright (c) 2016 Refinery29, Inc.\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distributed with this source co... | php | chosen |
[
{
"from": "system",
"value": "Add onAdminThemeInitialized event into admin Themes::init()\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Plugin;\n\n/**\n * Admin theme object\n *\n * @author RocketTheme\n * @license MIT\n */\nclass Themes extends \\Grav\\Common\\Themes\n{\n public ... | php | chosen |
[
{
"from": "system",
"value": "[API][Product] Remove custom latest products endpoint\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 ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on Windows in the edit command\n"
},
{
"from": "human",
"value": "<?php namespace Laravel\\Homestead;\n\nuse Symfony\\Component\\Process\\Process;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nu... | php | chosen |
[
{
"from": "system",
"value": "Update code based on orchestral/support@1d5febb\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Memory;\n\nuse Orchestra\\Support\\Relic;\n\nclass Provider extends Relic\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.