conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add expiration timestamp endpoint for boxoffice\n" }, { "from": "human", "value": "<?php\n\nrequire '../vendor/autoload.php';\n\n$config = json_decode(file_get_contents(\"config/config.json\"), true);\n$config['root'] = __DIR__;\n$app = new \\Slim\\App([ 'settings' ...
php
chosen
[ { "from": "system", "value": "Fix namespace for test class\n" }, { "from": "human", "value": "<?php\n\nnamespace Navitia\\Component\\Test\\Request;\n\nuse Navitia\\Component\\Request\\MetadatasRequest;\n\n/**\n * Description of MetadatasRequestTest\n *\n * @author rndiaye\n */\nclass MetadatasRe...
php
chosen
[ { "from": "system", "value": "Remove HttpOnly for now as it causes auth issues\n" }, { "from": "human", "value": "<?php\n\nnamespace Movim;\n\nclass Cookie\n{\n public static function set()\n {\n if (SESSION_ID == false) {\n self::renew();\n } else {\n s...
php
chosen
[ { "from": "system", "value": "Remove the unused `uk` translations\n\n" }, { "from": "human", "value": "<?php\n \nreturn [\n 'all' => 'Всі',\n 'date' => 'Дата',\n 'empty-logs' => 'Список журналів порожній!',\n 'dashboard' => 'Інформаційна панель',\n ...
php
chosen
[ { "from": "system", "value": "Add CSRF token meta tag.\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>@yield('title', $settings['site_title'])</title>\n\n <link rel=\"stylesheet\" href=\"/css/app.css\" type=\"text/css\"...
php
chosen
[ { "from": "system", "value": "Change the sequence of parameters\n\ngit-svn-id: 1622d7ec2a250730bdec0066b369b09fce087714@31211 ee427ae8-e902-0410-961c-c3ed070cd9f9\n" }, { "from": "human", "value": "<?php\n\n/**\n * Return a path to the icon.\n * @param integer $size Icon size\n * @param string $...
php
chosen
[ { "from": "system", "value": "Add a dataprovider for tab completion test\n\nAdd a couple more complicated `new` invocations.\n" }, { "from": "human", "value": "<?php\n\nnamespace Psy\\Test\\Readline;\n\nuse Psy\\Readline\\TabCompletion;\nuse Psy\\Context;\n\n/**\n * Class TabCompletionTest\n * @...
php
chosen
[ { "from": "system", "value": "ENHANCEMENT: Test the points of interest layer extension cms fields\n" }, { "from": "human", "value": "<?php\n\n\tclass PointsOfInterestLayerExtensionTest extends SapphireTest {\n\t\tpublic function testUpdateCMSFields() {\n\t\t\t$this->markTestSkipped('TODO');\n\t\...
php
chosen
[ { "from": "system", "value": "Update markdown embedd file view\n" }, { "from": "human", "value": "@if($isImage)\n \n <img src=\"{{ $fileModel->thumbnail($width, $height, $filters) }}\" class=\"{{ $classeNames ?? \"\" }}\" alt=\"\">\n\n@else\n \n <div class=\"{{ $classeNames ?? \"\" }...
php
chosen
[ { "from": "system", "value": "Add default value of redirecTo\n" }, { "from": "human", "value": "<?php\n\nnamespace thrieu\\grid;\n\nuse Yii;\nuse yii\\base\\ActionFilter;\nuse yii\\web\\Request;\n\nclass ClearFilterStateBehavior extends ActionFilter {\n public $id;\n public $params;\n p...
php
chosen
[ { "from": "system", "value": "Implement test for read action\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Tests\\Controller;\n\nuse AppBundle\\Controller\\BooksController;\nuse AppBundle\\Domain\\Service\\BookService;\nuse AppBundle\\MessageBus\\CommandBus;\n\nclass BooksCont...
php
chosen
[ { "from": "system", "value": "Use of array_chunk for rows of images\n" }, { "from": "human", "value": "@if(count($files))\n\n\t<div class=\"row\">\n\t@foreach($files as $file)\n\t\t<div class=\"col-sm-3 col-md-2 col-xs-4\">\n\t\t\t<a href=\"{{ '/'.$file->path.'/'.$file->filename }}\" class=\"thu...
php
chosen
[ { "from": "system", "value": "Fix if statement for format_content declaration\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Support;\n\nuse Illuminate\\Support\\HtmlString;\n\nif (!function_exists('content')) {\n /**\n * Format user content.\n *\n * @param string $tex...
php
chosen
[ { "from": "system", "value": "Make $arguments public => protected\n" }, { "from": "human", "value": "<?php\nnamespace CodeGen;\nuse Exception;\nuse CodeGen\\Renderable;\nuse CodeGen\\Raw;\nuse CodeGen\\VariableDeflator;\nuse ArrayAccess;\nuse IteratorAggregate;\nuse ArrayIterator;\n\n/**\n * Arg...
php
chosen
[ { "from": "system", "value": "Add preview images cache clearing\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nclass WistiaPlugin extends BasePlugin\n{\n\tpublic function getName()\n\t{\n\t\treturn 'Wistia';\n\t}\n\n\tpublic function getDescription()\n\t{\n\t\treturn 'Manage video...
php
chosen
[ { "from": "system", "value": "Throw APIErrorException if there's a gametime endpoint error\n" }, { "from": "human", "value": "<?php\n\nnamespace TruckersMP\\Models;\n\nuse Carbon\\Carbon;\n\nclass GameTimeModel\n{\n /**\n * @var Carbon\n */\n public $time;\n\n /**\n * GameTi...
php
chosen
[ { "from": "system", "value": "Revert \"Make url() more robust\"\n\nThis reverts commit e63a1824923202bc8d78522747e25aadcd67d597." }, { "from": "human", "value": "<?php\n\nnamespace allejo\\stakx\\Twig;\n\nuse allejo\\stakx\\Object\\JailObject;\nuse Twig_Environment;\n\nclass BaseUrlFunction\n{\n...
php
chosen
[ { "from": "system", "value": "Add QR code read test\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Jeroen van den Enden <info@endroid.nl>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n */\n\nnamespace Endroid\\Tests...
php
chosen
[ { "from": "system", "value": "Fix time format for US English\n" }, { "from": "human", "value": "<?php\n\nnamespace Dater\\Locale;\nuse Dater\\Dater;\n\nclass EnUs extends \\Dater\\Locale {\n\n\tprotected static $months = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'Augu...
php
chosen
[ { "from": "system", "value": "Add user agent to request\n" }, { "from": "human", "value": "<?php\n\nnamespace Faulancer\\Http\\Adapter;\n\nuse Faulancer\\Exception\\ClientException;\nuse Faulancer\\Http\\Request;\n\n/**\n * Class Curl\n * @package Faulancer\\Http\\Adapter\n * @author Florian Kn...
php
chosen
[ { "from": "system", "value": "Return a more meaningful error message.\n" }, { "from": "human", "value": "<?php namespace Craft;\n\nuse CValidator;\n\nclass CreditCard_NumberValidator extends CValidator\n{\n protected function validateAttribute($object, $attribute)\n {\n $number = $o...
php
chosen
[ { "from": "system", "value": "Fix Composer autoload file path.\n" }, { "from": "human", "value": "<?php\nif (file_exists(__DIR__ . '/p2pear.phar')) {\n set_include_path('phar://' . __DIR__ . '/p2pear.phar'\n . PATH_SEPARATOR . get_include_path());\n}\nerror_reporting(E_ALL...
php
chosen
[ { "from": "system", "value": "Replace placeholder text with site description\n\nSigned-off-by: Eddie Ringle <bacc1c505cb1756c59242c0a8ee25cd990a210e9@eringle.net>\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n<title><?php wp_title('&laquo;', true, 'right'); bloginfo('name')...
php
chosen
[ { "from": "system", "value": "Fix loggly formatter on php 5.6\n" }, { "from": "human", "value": "<?php\n\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 * file that...
php
chosen
[ { "from": "system", "value": "Check if there is url fragment and added portrait\n" }, { "from": "human", "value": "<link rel=\"stylesheet\" type=\"text/css\" href=\"<?=$this->getThemePath()?>/css/services.css\">\n<?php $this->inc('header.php'); ?>\n<div id=\"content\">\n\t<div id=\"container\">\...
php
chosen
[ { "from": "system", "value": "Allow extra fields in step 7 voters\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\...
php
chosen
[ { "from": "system", "value": "Fix a Paste activate/archive status constant in rendering\n\nSummary: Fixes T11280. I extracted this at the last minute and got the constant flipped.\n\nTest Plan: Archived, then activated a paste. Observed correct timeline stories/icons/etc.\n\nReviewers: chad\n\nReviewed By: ...
php
chosen
[ { "from": "system", "value": "Use helper not facade because facade calls the wrong factory\n" }, { "from": "human", "value": "<?php\n/**\n * Class VpageController\n */\n\nnamespace Delatbabel\\ViewPages\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Log;...
php
chosen
[ { "from": "system", "value": "Allow to register additional service location other than command.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Support\\Providers;\n\nuse Illuminate\\Support\\ServicePr...
php
chosen
[ { "from": "system", "value": "Fix bug when using a custom class (defined via string in config)\n" }, { "from": "human", "value": "<?php\n\nnamespace Spatie\\MediaLibrary\\UrlGenerator;\n\nuse Spatie\\MediaLibrary\\Media;\nuse Spatie\\MediaLibrary\\PathGenerator\\PathGeneratorFactory;\n\nclass Ur...
php
chosen
[ { "from": "system", "value": "Add method to retrieve dev packages from lock file\n" }, { "from": "human", "value": "<?php\nnamespace Composed;\n\n/**\n * @author Josh Di Fabio <joshdifabio@gmail.com>\n */\nclass LockFile\n{\n private $root;\n private $json;\n private $packages;\n\n p...
php
chosen
[ { "from": "system", "value": "Implement function for getting values of numerical trait entries\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TraitNumericalEntryRepository\n *\n * This class was generated by the Php...
php
chosen
[ { "from": "system", "value": "Return fail message if parking space do not exist\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nclass ParkingController\n{\n public function getAll()\n {\n return Response::json('success', $this->table()->get());\n ...
php
chosen
[ { "from": "system", "value": "Clean up and code style\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse \\Redirect;\nuse App\\Models\\Domain;\nuse App\\Models\\Hit;\n\nclass DomainsController extends Controller\n{\n\n public function index()\n {\n ...
php
chosen
[ { "from": "system", "value": "fix: Make PlaceholderDocs iterate over options again\n" }, { "from": "human", "value": "<?php /** @var \\nochso\\WriteMe\\Placeholder\\PlaceholderDocs\\TemplateData $this */ ?>\n<?php foreach ($this->getPlaceholders() as $placeholder): ?>\n<?php $class = $this->getC...
php
chosen
[ { "from": "system", "value": "Exit replaced by Runtime Exception, disable log creation\n" }, { "from": "human", "value": "<?php\n\nnamespace BlueRegister\\Events;\n\nuse BlueEvent\\Event\\BaseEvent;\n\nclass RegisterException extends BaseEvent\n{\n /**\n * @var \\SimpleLog\\LogInterface\n...
php
chosen
[ { "from": "system", "value": "Use correct settings when registering the Builder with Laravel.\n" }, { "from": "human", "value": "<?php\nnamespace Staf\\Generator;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass GeneratorServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap ...
php
chosen
[ { "from": "system", "value": "Change share method to singleton. v5.4 fix\n\n5.4. The share method has been removed from the container." }, { "from": "human", "value": "<?php namespace Efriandika\\LaravelSettings;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass SettingsServiceProvider exten...
php
chosen
[ { "from": "system", "value": "[CFG] Use the new $router for attaching routes\n" }, { "from": "human", "value": "<?php\n/**\n * Loader\n */\n$loader->add('Aura\\Framework_Demo\\\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');\n\n/**\n * Aura\\Framework\\Cli\\Factory\n */\n$di->params['Aura\\...
php
chosen
[ { "from": "system", "value": "Remove default null property sets.\n" }, { "from": "human", "value": "<?php\n\nnamespace Adldap\\Connections;\n\nclass DetailedError\n{\n /**\n * The error code from ldap_errno.\n *\n * @var int\n */\n protected $errorCode = null;\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add missing doc block info\n" }, { "from": "human", "value": "<?php\n\nnamespace MongoDB\\Exception;\n\nclass BadMethodCallException extends \\BadMethodCallException implements Exception\n{\n /**\n * Thrown when accessing a result field on an unacknowledged w...
php
chosen
[ { "from": "system", "value": "FIX testCheckConstantFailure to works with PHP 5.2\n" }, { "from": "human", "value": "<?php\n require_once dirname(dirname(__FILE__)).'/Opbeat/utils.php';\n\n class UtilsTest extends PHPUnit_Framework_TestCase {\n\n /**\n * @covers Opbeat_Utils:...
php
chosen
[ { "from": "system", "value": "Check as string, not constant..\n" }, { "from": "human", "value": "<?php\n\nif (get_option('disable_toolbar')) {\n show_admin_bar(false);\n}\n\nif (get_option('disable_dashboard')) {\n\n if(!function_exists(disableDashboard)) {\n\n add_action('admin_init', 'dis...
php
chosen
[ { "from": "system", "value": "Refactor Soil to use loop\n" }, { "from": "human", "value": "<?php\n/*\nPlugin Name: Soil\nPlugin URI: http://roots.io/plugins/soil/\nDescription: Clean up WordPress markup, use relative URLs, nicer search URLs, and disable trackbacks\nVersion:...
php
chosen
[ { "from": "system", "value": "Add arguments to ini_set() fallback\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file contains fallback functions that might have been disabled but are required nevertheless.\n */\n\nif ( PHP_MAJOR_VERSION >= 8 && ! function_exists( 'ini_set' ) ) {\n\tfu...
php
chosen
[ { "from": "system", "value": "Add debug case for serialize sources\n" }, { "from": "human", "value": "<?php\n\nfunction dump ($o) {\n $o = serialize($o);\n echo json_encode($o), \"\\n\";\n}\n\nclass Foo {\n public $bar = 1;\n protected $baz = 2;\n private $xyzzy = array(1,2,3,4,5,6,7,8,9);\...
php
chosen
[ { "from": "system", "value": "Comment out abstract static function (until we're using PHP 7).\n" }, { "from": "human", "value": "<?php\nnamespace Sil\\DevPortal\\components;\n\nuse Sil\\DevPortal\\components\\ApiAxle\\Client as ApiAxleClient;\n\ntrait RepopulateApiAxleTrait\n{\n abstract publ...
php
chosen
[ { "from": "system", "value": "Mark factory methods as static\n\nSee #105\n" }, { "from": "human", "value": "<?php\n\nnamespace PSU\\Config;\n\n/**\n * \n */\nclass Factory {\n\tstatic $instance = null;\n\n\tpublic function set_config( \\PSU\\Config $config ) {\n\t\tself::$instance = $config;\n\t...
php
chosen
[ { "from": "system", "value": "Use Absolute URLs in sitemap.xml\n" }, { "from": "human", "value": "<?php\n\nnamespace Opifer\\CmsBundle\\Controller\\Frontend;\n\nuse Opifer\\CmsBundle\\Event\\Events;\nuse Opifer\\CmsBundle\\Event\\SitemapEvent;\nuse Opifer\\ContentBundle\\Model\\ContentInterface;...
php
chosen
[ { "from": "system", "value": "Fix return type in drip controller\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelCaffeine\\Http\\Controllers;\n\nuse Illuminate\\Routing\\Controller;\nuse Illuminate\\View\\View;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass Drip...
php
chosen
[ { "from": "system", "value": "Add checks for empty values\n" }, { "from": "human", "value": "<?php namespace Northstar\\Handlers\\Events;\n\nuse Northstar\\Events\\UserSignedUp;\nuse Northstar\\Models\\User;\n\nuse Northstar\\Services\\Parse;\n\nclass SendSignupPushNotification {\n\n /**\n * ...
php
chosen
[ { "from": "system", "value": "Change validate rule for url\n\nSome valid url won’t pass the active_url rule.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\n\n/**\n * Request for validating check urls.\n */\nclass StoreCheckUrlRequ...
php
chosen
[ { "from": "system", "value": "Add callback method for authorizing Infusionsoft access tokens\n" }, { "from": "human", "value": "<?php\n\nRoute::get('infusionsoft/auth', 'InfusionsoftController@auth');\nRoute::get('infusionsoft/auth/callback', 'InfusionsoftController@index');\n" }, { "fro...
php
chosen
[ { "from": "system", "value": "Change About link to CfP Link\n" }, { "from": "human", "value": "<?php\n/*******************************************************************************\n * Copyright (c) 2015 Eclipse Foundation and others.\n * All rights reserved. This program and the accompanying ...
php
chosen
[ { "from": "system", "value": "Add 404 head for not found routes\n" }, { "from": "human", "value": "<?hh // decl\n\nclass Route {\n public static function dispatch(string $path, string $method): void {\n\n // Get the auto-generated URI Map\n $routes = require('build/URIMap.php');\n\n //...
php
chosen
[ { "from": "system", "value": "Change default API URL to be production" }, { "from": "human", "value": "<?php\n\nreturn [\n 'apiURL' => env('SS_URL', 'https://private-anon-dcf09a12d7-shipstation.apiary-mock.com'),\n 'apiKey' => env('SS_KEY', ''),\n 'apiSecret' => env('SS_SECRET', '...
php
chosen
[ { "from": "system", "value": "Use new Promise interface and support timeout setting" }, { "from": "human", "value": "<?php\n\nuse React\\EventLoop\\LoopInterface;\nuse React\\Stream\\Stream;\nuse React\\HttpClient\\ConnectionManagerInterface;\n\nclass ConnectionManagerFsockopen implements Connec...
php
chosen
[ { "from": "system", "value": "Fix front page gallery. Update assets.\n" }, { "from": "human", "value": "<?php\n\nnamespace frontend\\assets;\n\nuse yii\\web\\AssetBundle;\n\nclass AppAsset extends AssetBundle\n{\n public $basePath = '@webroot';\n public $baseUrl = '@web';\n public $css ...
php
chosen
[ { "from": "system", "value": "Fix new links in top nacbar\n" }, { "from": "human", "value": "<header class=\"banner navbar navbar-default navbar-static-top\" role=\"banner\">\n <div class=\"container\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" da...
php
chosen
[ { "from": "system", "value": "Add check do we have Add Company button in Create Company Form test\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse App\\User;\nuse App\\Company;\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\Dat...
php
chosen
[ { "from": "system", "value": "Add file extension to hash" }, { "from": "human", "value": "<?php\n\nnamespace Ddeboer\\DocumentManipulationBundle\\Manipulator;\n\nuse Zend\\Service\\LiveDocx\\MailMerge;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\n\nclass DocManipulator\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "BAP-135: Implement AJAX grid using backbons.js\n - fixed filter interface code style\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\GridBundle\\Filter;\n\nuse Sonata\\AdminBundle\\Filter\\FilterInterface as BaseFilterInterface;\n\ninterface Filte...
php
chosen
[ { "from": "system", "value": "Check that all results from Earner::getAll() are of type Earner\n" }, { "from": "human", "value": "<?php\n\nnamespace UoMCS\\OpenBadges\\Backend;\n\nclass EarnerTest extends DatabaseTestCase\n{\n const EARNER_COUNT = 2;\n const EARNER_EXISTS_ID = 1;\n const EARNE...
php
chosen
[ { "from": "system", "value": "Create method to send curl commands.\n" }, { "from": "human", "value": "<?php\n\n/**\n * MIT License\n * Copyright (c) 2017 Electronic Student Services @ Appalachian State University\n * \n * See LICENSE file in root directory for copyright and distribution permissi...
php
chosen
[ { "from": "system", "value": "Update column type (json to text) for media table" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMediaTable extends Mi...
php
chosen
[ { "from": "system", "value": "Call getResults() instead of accessing the get() method manually for the IteratorAggregate and Countable functions\n" }, { "from": "human", "value": "<?php namespace Elegant\\Relations;\n\nuse Countable;\nuse ArrayIterator;\nuse IteratorAggregate;\nuse Elegant\\Mode...
php
chosen
[ { "from": "system", "value": "Replace sf2 form->bind by handlerequest\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Incipio package.\n *\n * (c) Florian Lefevre\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distrib...
php
chosen
[ { "from": "system", "value": "Update autoloader path to work with newer versions of composer\n" }, { "from": "human", "value": "<?php \n\n/**\n * This file is part of the AmazonSQS package.\n *\n * (c) Christian Eikermann <christian@chrisdev.de>\n *\n * For the full copyright and license informa...
php
chosen
[ { "from": "system", "value": "Change noserver error to -3\n" }, { "from": "human", "value": "<?php\n//# admin.php #\n/*\nPPSF\n\nsprawdza czy wywoływacz jest serwerem\n\n*/\n\nif(!(isset($_GET['server'])&&($_GET['server']===\"super tajne hasło\"))){\n\techo -418296719726;\n\texit;\n}\n?>\n" },...
php
chosen
[ { "from": "system", "value": "Update test function for testing mapping of full organism names\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Mapping;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass Fu...
php
chosen
[ { "from": "system", "value": "Revert \"set null soap parameters\"\n\nThis reverts commit 0000599\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: Administrador\n * Date: 03/10/2017\n * Time: 09:47 AM.\n */\n\nnamespace Greenter\\Ws\\Services;\n\nuse Greenter\\Ws\\...
php
chosen
[ { "from": "system", "value": "Fix for if tax is set and not shown correct in backend\n" }, { "from": "human", "value": "<?php\n\nclass Billmate_BillmateInvoice_Helper_Total extends Mage_Core_Helper_Abstract\n{\n\n\n public function addToBlock($block)\n {\n $order = $block->getOrder(...
php
chosen
[ { "from": "system", "value": "Update property of corporation name returned in search.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Classes\\EsiConnection;\nuse Illuminate\\Support\\Facades\\Log;\n\nclass SearchControlle...
php
chosen
[ { "from": "system", "value": "Fix for names with spaces\n" }, { "from": "human", "value": "<?php namespace App\\Http\\Controllers;\n\nuse App\\Console\\Commands\\UpdatePvpLeaderboard;\nuse Redis;\n\nclass LeaderboardController extends Controller\n{\n\n /**\n * Get all leaderboard data\n ...
php
chosen
[ { "from": "system", "value": "Enable figlet to render text using custom fonts\n\nSummary:\nFiglet with more fonts will make Phabricator\n```\n _/ _/ _/ _/_/ _/\n _/_/ _/ _/ _/ _/ _/_/ _/\n _/ _/ _/ _/ _/ _/\n _/ _/ _/ _/ _/ _/ _/_/\n_/ _/ _/ _/ _/_/\n\n...
php
chosen
[ { "from": "system", "value": "Set the default status for media galleries to active\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\MediaGalleries\\Domain\\MediaGallery\\Command;\n\nuse Backend\\Modules\\MediaGalleries\\Domain\\MediaGallery\\MediaGalleryDataTransferObject;...
php
chosen
[ { "from": "system", "value": "Make logs dir if missing\n" }, { "from": "human", "value": "<?php\n\nfunction debug_collectionInfoStart($debug, $log) {\n if ($debug == TRUE) {\n debug(\"[DEBUG] Collecting data\\n\", $log);\n }\n}\n\nfunction debug_collectionInfoEnd($debug, $log) {\n ...
php
chosen
[ { "from": "system", "value": "Add Form time compare rule\n" }, { "from": "human", "value": "<?php\n\nnamespace Trejjam\\Utils\\Helpers\\Form;\n\nuse Trejjam;\n\nclass Rule\n{\n\tconst IPV4 = '(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';\n\tcon...
php
chosen
[ { "from": "system", "value": "Replace placeholders in comment url\n" }, { "from": "human", "value": "<?php\n\nnamespace Jacobemerick\\CommentService\\Serializer;\n\nuse DateTime;\nuse Jacobemerick\\CommentService\\Serializer\\Commenter as CommenterSerializer;\n\nclass Comment\n{\n\n public fu...
php
chosen
[ { "from": "system", "value": "Add content type header to login response\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Ignition ignitionpowered.co.uk\n|----------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix IndexController test for string differences\n\nSometimes the whitespace may be different, but the content shouldn’t be.\n" }, { "from": "human", "value": "<?php\n\nnamespace Ilios\\WebBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebT...
php
chosen
[ { "from": "system", "value": "Allow filtering for tasks without due date" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Filter;\n\nuse Kanboard\\Core\\Filter\\FilterInterface;\nuse Kanboard\\Model\\TaskModel;\n\n/**\n * Filter tasks by due date\n *\n * @package filter\n * @author ...
php
chosen
[ { "from": "system", "value": "Use official PHP doc variable name format\n\nAllow such variables like $§foo°bar that are valid in PHP" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\Lexer\\Scanner;\n\nuse Phug\\Lexer\\ScannerInterface;\nuse Phug\\Lexer\\State;\nuse Phug\\Lexer\\Token\\V...
php
chosen
[ { "from": "system", "value": "Abort execution if we hit any php error/warning/notice\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n" }, { "from": "human", "value": "<div style=\"border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;\">\n\n<h4>A PHP Er...
php
chosen
[ { "from": "system", "value": "Add `quoteIdentifiers` in db config.\n" }, { "from": "human", "value": "<?php\n\nuse Cake\\Datasource\\ConnectionManager;\nuse Cake\\Utility\\Hash;\n\nConnectionManager::config(Hash::merge([\n\t'default' => [\n\t\t'className' => 'Cake\\Database\\Connection',\n\t\t'd...
php
chosen
[ { "from": "system", "value": "Remove reset method for database class\n" }, { "from": "human", "value": "<?php\n\n/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor....
php
chosen
[ { "from": "system", "value": "Remove the pipe separator from the page title\n" }, { "from": "human", "value": "<!DOCTYPE HTML>\n<!--[if IEMobile 7 ]><html class=\"no-js iem7\" manifest=\"default.appcache?v=1\"><![endif]--> \n<!--[if lt IE 7 ]><html class=\"no-js ie6\" lang=\"en\"><![endif]--> \n...
php
chosen
[ { "from": "system", "value": "Return env instead of the $_server" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n\nclass AppKernel exte...
php
chosen
[ { "from": "system", "value": "Modify the view to use the selected company" }, { "from": "human", "value": "<?php\nnamespace frontend\\controllers\\costbenefitcalculation;\n\nuse yii\\base\\Action;\nuse common\\models\\CostbenefitItem;\nuse common\\models\\CostbenefitCalculation;\nuse yii\\data\\...
php
chosen
[ { "from": "system", "value": "Replace get_the_post_thumbnail custom image tag generation.\n" }, { "from": "human", "value": "<article id=\"post-<?php echo $singlePost->ID; ?>\" <?php post_class('row'); ?>>\n <div class=\"small-12 medium-4 column\">\n <?php\n if (has_post_thumbna...
php
chosen
[ { "from": "system", "value": "Add a newline for picky code quality tool.\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the Patternseek ComponentView library.\n *\n * (c)2015 Tolan Blundell <tolan@patternseek.net>\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Set welcome route to login_view\n" }, { "from": "human", "value": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------------\n| URI ROUTING\n| ------------------------...
php
chosen
[ { "from": "system", "value": "Fix label of radio field.\n" }, { "from": "human", "value": "<div class=\"{{$config['divClass']}} @if($errors)f-error @endif\">\n <label>{{$label}}</label>\n @if($errors)\n <ul class=\"{{$config['errorMessageClass']}}\">\n @foreach ($errors as $error...
php
chosen
[ { "from": "system", "value": "Disable updating of timestamps on model\n" }, { "from": "human", "value": "<?php namespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Items extends Model {\n\n\tconst STATUS_NEW = 'new';\n\tconst STATUS_BEING_FETCHED = 'being_fetched';...
php
chosen
[ { "from": "system", "value": "Add viewport meta for a little mobile friendliness\n\nWithout this, the viewer would appear \"zoomed out\" on mobile devices.\n" }, { "from": "human", "value": "<html>\n<head>\n<!-- https://github.com/LeoWinterDE/TS3SSV -->\n<title>TeamSpeak Server Status Viewer</ti...
php
chosen
[ { "from": "system", "value": "Fix false negative errors in update check\n" }, { "from": "human", "value": "<?php\n/**\n * Simple object to make checking result of an update check more consistent.\n *\n * @package NamelessMC\\DTO\n * @author Aberdeener\n * @version 2.0.0-pr13\n * @license MIT\n *...
php
chosen
[ { "from": "system", "value": "[Ldap] Document the new exceptions thrown by the code\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view t...
php
chosen
[ { "from": "system", "value": "Fix default value of object factory defaultAttributes\n" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\RadBundle\\DataFixtures;\n\nuse Doctrine\\Common\\DataFixtures\\ReferenceRepository;\nuse Doctrine\\Common\\Persistence\\ObjectManager;\n\nclass ObjectFa...
php
chosen
[ { "from": "system", "value": "Remove comment bloat from Route\\Filter class." }, { "from": "human", "value": "<?php namespace System\\Route;\n\nclass Filter {\n\n\t/**\n\t * The loaded route filters.\n\t *\n\t * @var array\n\t */\n\tpublic static $filters;\n\n\t/**\n\t * Call a set of route filt...
php
chosen
[ { "from": "system", "value": "Add getSRID() method to geometry\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (C) 2016 Derek J. Lambert\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \...
php
chosen