conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add exception instead of empty response\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace SamIT\\Yii2\\Filters;\n\n\nuse SamIT\\Yii2\\Components\\UrlSigner;\nuse yii\\base\\ActionFilter;\nuse yii\\web\\Request;\n\n/**\n * Filter that checks for a valid HMAC in... | php | chosen |
[
{
"from": "system",
"value": "Fix functions into Session class\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n ----------------------------------------------------------------------\n FusionInventory\n Copyright (C) 2010-2011 by the FusionInventory Development Team.\n\n http://www.fusio... | php | chosen |
[
{
"from": "system",
"value": "Add tra to plugin info\n\ngit-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@31175 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project\n// \n// All Rights Reser... | php | chosen |
[
{
"from": "system",
"value": "Fix error in UT because of problem with merge conflicts\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Smartbox\\Integration\\FrameworkBundle\\Tools\\Evaluator;\n\nuse Smartbox\\Integration\\FrameworkBundle\\Exceptions\\RecoverableExceptionInterface;\nuse Sym... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with null data.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UWaterlooAPI\\Data\\JSON\\Common\\Components;\n\nclass ComponentFactory\n{\n /**\n * Builds the given component using the given array as the data input.\n *\n * @param arr... | php | chosen |
[
{
"from": "system",
"value": "Add ability to specify iteration count in Hash class."
},
{
"from": "human",
"value": "<?php namespace System;\n\nclass Hash {\n\n\t/**\n\t * Hash a string using PHPass.\n\t *\n\t * PHPass provides reliable bcrypt hashing, and is used by many popular PHP\n\t * appli... | php | chosen |
[
{
"from": "system",
"value": "Fix Username Password setting making new rows\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Listeners;\n\nuse App\\Events\\NewIP;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\n\nuse App\\Models\\DeviceIPs;\... | php | chosen |
[
{
"from": "system",
"value": "Update magic constants test to use new test case."
},
{
"from": "human",
"value": "<?php\n\nnamespace Psy\\Test\\CodeCleaner;\n\nuse Psy\\CodeCleaner;\nuse Psy\\CodeCleaner\\MagicConstantsPass;\nuse PHPParser_Node_Name as Name;\nuse PHPParser_Node_Scalar_DirConst as... | php | chosen |
[
{
"from": "system",
"value": "Remove explicit binding in favor of implicit\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Timegridio\\Concierge\\Models\\Appointment;\nuse Timegridio\\Concierge\\Models\\Business;\nuse Timegridio\\Concierge\\Models\\Contact;\nuse Time... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in template part include\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Default entry content template.\n *\n * @package BLR\\Base_Theme\\Templates\n */\n\n?>\n\n<article <?php post_class( 'entry' ); ?>>\n\n\t<header class=\"entry__header\">\n\t\t<?php g... | php | chosen |
[
{
"from": "system",
"value": "Revert \"turn off class caching\"\n\nThis reverts commit 9bc61608d5739642bbea5afa9f66ea2f2c835b82.\n"
},
{
"from": "human",
"value": "<?php\n\n// if you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com... | php | chosen |
[
{
"from": "system",
"value": "Fix Jquery issue at login\n"
},
{
"from": "human",
"value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\n\n$is_concrete5 = TRUE;\n\nLoader::element('header_required');\n\ninclude('/var/www/html/intranet/application/elements/theme/global/ResponsiveLoginD... | php | chosen |
[
{
"from": "system",
"value": "Test to check for logged out button\n"
},
{
"from": "human",
"value": "<?php\n\nclass ExampleTest extends TestCase\n{\n /**\n * A basic test example.\n *\n * @return void\n */\n public function testBasicExample()\n {\n $this->visit('/... | php | chosen |
[
{
"from": "system",
"value": "Improve language show view UX\n"
},
{
"from": "human",
"value": "@extends(\"layout.base\")\n\n@section(\"title\", \"Wdi Paste - {$language->name}\")\n\n@section(\"container\")\n <h1 class=\"display-1\">{{ $language->name }}</h1>\n\n <p>\n <span>Possibil... | php | chosen |
[
{
"from": "system",
"value": "Add missing comment and remove another redundant one\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare (strict_types = 1);\n\nnamespace Mihaeu\\PhpDependencies;\n\nuse PhpParser\\Parser as BaseParser;\n\nclass Parser\n{\n /** @var BaseParser */\n private $pa... | php | chosen |
[
{
"from": "system",
"value": "Use the Scaleway Docker image\n"
},
{
"from": "human",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\n$config['install_image_id'] = \"e2bf2887-c8c5-429b-8951-e869c388830a\";\n"
},
{
"from": "gpt",
"value": "<?php\ndef... | php | chosen |
[
{
"from": "system",
"value": "[1.4][sfSympalPlugin][0.7] Fix so we only enable markdown editor for Markdown slot types\n\n\ngit-svn-id: fb4b88f168106301dda01b59a7b997f753c86fb4@25946 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php include_stylesheets_for_form($form)... | php | chosen |
[
{
"from": "system",
"value": "Add function to retrieve Magento Customer Object\n"
},
{
"from": "human",
"value": "<?php\nnamespace Mouf\\Integration\\Magento;\n\nuse Mouf\\Security\\UserService\\UserInterface;\n\n/**\n * A user in magento, represented as a UserInterface\n */\nclass MagentoUser i... | php | chosen |
[
{
"from": "system",
"value": "Fix - pass composer loader inside app factory\n"
},
{
"from": "human",
"value": "<?php\n/** @var object $loader - defined in composer Autoload */\n// check if loader is initialized\nif (!defined('root')) {\n die('Hack attempt');\n}\n\n// global environment\ndefin... | php | chosen |
[
{
"from": "system",
"value": "Change another instance of forum title\n"
},
{
"from": "human",
"value": "<?php\n\nRoute::get('/', function()\n{\n\treturn View::make('flarum.web::index')\n\t\t->with('title', Config::get('flarum::forum_title', 'Flarum Support Forum'));\n});"
},
{
"from": "g... | php | chosen |
[
{
"from": "system",
"value": "Fix OOM errors on CI\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\ninclude_once 'common.php';\n\nif (isLatestPhp() && isLatestSymfony()) {\n // Make sure composer.json references all necessary components by having one\n // job run a `composer... | php | chosen |
[
{
"from": "system",
"value": "Fix naming in test case\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenCFP\\Tests\\Domain\\Services;\n\nuse OpenCFP\\Domain\\Services\\ResetEmailer;\n\nclass EmailerTest extends \\PHPUnit_Framework_TestCase\n{\n private $mailer;\n private $template;... | php | chosen |
[
{
"from": "system",
"value": "Fix sqlite db filename generation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phive\\Tests\\Queue\\Db\\Pdo;\n\nclass SqliteQueueTest extends PdoQueueTest\n{\n public static function createHandler()\n {\n // Generate a new db file on every meth... | php | chosen |
[
{
"from": "system",
"value": "Make functions static to prevent deprecated warnings\n"
},
{
"from": "human",
"value": "<?php\nnamespace Recras;\n\nclass Editor\n{\n /**\n * Add the shortcode generator buttons to TinyMCE\n */\n public static function addButtons()\n {\n add_... | php | chosen |
[
{
"from": "system",
"value": "Change delegate to make it safer\n\n Up till now the delegate would've failed without any error if there was no response or if the middleware it was supposed to trigger was null (end of stack)\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\nna... | php | chosen |
[
{
"from": "system",
"value": "Fix `APP_ENV` not set in some runtime contexts\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Outlandish\\Wpackagist\\EventListener;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent;\nuse Symfony\... | php | chosen |
[
{
"from": "system",
"value": "Implement (crappily) logging to syslog in addition to logging to file\n"
},
{
"from": "human",
"value": "<?php\n/*\n * DPTechnics CMS\n * Logging page for warnings, info and error\n * Author: Daan Pape\n * Date: 04-09-2014\n */\n\n// Load required files\nrequire_onc... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with max size being G\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\FilesModule\\File\\Command;\n\n\n/**\n * Class GetSystemMaxUploadSize\n *\n * @link http://pyrocms.com/\n * @author PyroCMS, Inc. <support@pyrocms.com>\n * @a... | php | chosen |
[
{
"from": "system",
"value": "Add another configuration array to the orginal"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vela\\Core;\n\n/**\n * Config class\n *\n * Simple class to store or get elements from configuration registry\n */\n\nclass Config\n{\n\n /** @var array $data Data ... | php | chosen |
[
{
"from": "system",
"value": "[dev] Add CORS code in php.\n"
},
{
"from": "human",
"value": "<?php\nheader('Content-Type: application/json; charset=utf-8');\n$response = array(\n 'name' => $_POST['user'],\n 'password' => $_POST['pwd'],\n);\necho json_encode($response, true);\n?>\n"
},
... | php | chosen |
[
{
"from": "system",
"value": "Update version app to v0.2.0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cffie\\Console;\n\nuse Cffie\\Command\\QueryCommand;\nuse Symfony\\Component\\Console\\Application as BaseApplication;\n\nclass Application extends BaseApplication\n{\n private $lo... | php | chosen |
[
{
"from": "system",
"value": "Fix changing locale after app has booted"
},
{
"from": "human",
"value": "<?php namespace Jenssegers\\Date;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass DateServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the provider is ... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant method. Laravel core have solve the underlying issue.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Support\\Providers;\n\nuse Illuminate\\Support\\S... | php | chosen |
[
{
"from": "system",
"value": "Make sure form uploads work.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Showpad;\n\nuse Buzz\\Browser;\n\nfinal class BuzzAdapter implements Adapter\n{\n /**\n * @var Browser\n */\n private $browser;\n\n /**\n * Constructor\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix big preventing some JS from executing\n"
},
{
"from": "human",
"value": "<?php if (!$_SKIP_HEADER) {?>\n\t<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\t<html xmlns=\"http://www.w3... | php | chosen |
[
{
"from": "system",
"value": "Update directory of vendor autoloader\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the GitSSH2\\NotificationBundle package.\n *\n * (c) Paul Schweppe <paulschweppe@gmail.com>\n *\n * For the full copyright and license information, please vie... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in Asset Extension tests.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Plates\\Extension;\n\nclass AssetTest extends \\PHPUnit_Framework_TestCase\n{\n private $extension;\n\n public function setUp()\n {\n $this->extension = n... | php | chosen |
[
{
"from": "system",
"value": "Add 2 form configuration (coosos_tag_auto_complete, coosos_tag_persist_new)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coosos\\TagBundle\\Form\\Type;\n\nuse Coosos\\TagBundle\\Form\\DataTransformer\\TagsTransformer;\nuse Doctrine\\Common\\Persistence\\Obj... | php | chosen |
[
{
"from": "system",
"value": "Test connection to hostnames and IPv4 addresses"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('Socks4.class.php');\nrequire_once('Socks4a.class.php');\nrequire_once('Socks5.class.php');\n\nclass Socks4Test extends PHPUnit_Framework_TestCase{\n \n publ... | php | chosen |
[
{
"from": "system",
"value": "Include validation errors in the string representation of the exception\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Alt Three Validator.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please... | php | chosen |
[
{
"from": "system",
"value": "[NodeBundle] Set correct typehints on methods and properties\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\NodeBundle\\Event;\n\nuse Kunstmaan\\AdminBundle\\Event\\BcEvent;\n\nfinal class SlugSecurityEvent extends BcEvent\n{\n private $node;\n\... | php | chosen |
[
{
"from": "system",
"value": "Add a toJson method to Promotion repository\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Project\\AppBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * PromotionRepository\n *\n * This class was generated by the Doctrine ORM. Add your own cu... | php | chosen |
[
{
"from": "system",
"value": "Add helper function to get theme assets\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Global helper functions for Clearboard\n */\n\n/**\n * Combines filesystem paths.\n * Accepts unlimited number of arguments in the form of strings.\n * @return string\n */\nfu... | php | chosen |
[
{
"from": "system",
"value": "Add basic controller support for 404\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Nastoletni\\Code\\UserInterface\\Web\\Controller;\n\nuse Nastoletni\\Code\\Domain\\Paste\\Id;\nuse Nastoletni\\Code\\Domain\\PasteRepository;\nuse Na... | php | chosen |
[
{
"from": "system",
"value": "Set jobs to be queued\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Jobs;\n\nuse Illuminate\\Bus\\Queueable;\n\nabstract class Job\n{\n /*\n |--------------------------------------------------------------------------\n | Queueable Jobs\n |--... | php | chosen |
[
{
"from": "system",
"value": "Implement sluggable manager in utils bundle.\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 copyright ... | php | chosen |
[
{
"from": "system",
"value": "Annotate that throwIfRequested might throw CancelledException\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Amp;\n\n/**\n * Cancellation tokens are simple objects that allow registering handlers to subscribe to cancellation requests.\n */\ninterface Cancella... | php | chosen |
[
{
"from": "system",
"value": "Fix kid3-cli issue (AIFF tagging not working on the server)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the kompakt/audio-tools package.\n *\n * (c) Christian Hoegl <chrigu@sirprize.me>\n *\n */\n\nnamespace Kompakt\\AudioTools\\Runner;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix missing « c » char on LastFmApiException.php"
},
{
"from": "human",
"value": "<?php\n\nnamespace LastFmApi\\Exception;\n/**\n * MissingArgumentException\n *\n * @author Marcos Peña\n */\nclass InvalidArgumentException extends LastFmApiExeption\n{\n}\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Use stricter fingerprints for some rules\n\nWe received a report that this engine produces a number of fixed/new\nissues on pull request comparisons. I looked at an example PR:\n\nhttps://codeclimate.com/github/yiisoft/yii2/pull/13113\n\nAnd saw that the issues showing up as fi... | php | chosen |
[
{
"from": "system",
"value": "Test for PHPDbg only on PHP >= 7\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Tests\\Functional\\Configuration;\n\nuse Paraunit\\Configuration\\PHPDbgBinFile;\nuse Tests\\BaseFunctionalTestCase;\n\n/**\n * Class PHPDbgBinFileTest\n * @package Tests\\Funct... | php | chosen |
[
{
"from": "system",
"value": "[Addressing] Split scope to core and addressing\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 w... | php | chosen |
[
{
"from": "system",
"value": "Fix cannot find updateTime function in JS error\n"
},
{
"from": "human",
"value": "<?php \n include('head.php'); \n?>\n<div id=\"data\">\n<?php\n include('../stockstable.php');\n?>\n</div>\n<div id=\"hidden\" class=\"hidden\">\n</div>\n<link href=\"lsv.css\" r... | php | chosen |
[
{
"from": "system",
"value": "Add AJAX API for Week View\n"
},
{
"from": "human",
"value": "<?php\n// RadioPanel - Generic Functions\n// (C) Matt Ribbins - matt@mattyribbo.co.uk\n\n\n// API Calls\nfunction api_call() {\n\t$task = mysql_real_escape_string($_GET['task']);\n\tswitch($task) {\n\t\tc... | php | chosen |
[
{
"from": "system",
"value": "Check for articles to convert to speech and upload to amazon every 15 minutes.\n"
},
{
"from": "human",
"value": "<?php namespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Update only active block satisfaction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nuse App\\Models\\Base\\BaseModel;\n\nclass Student extends BaseModel\n{\n protected $table = 'students';\n\n /**\n * The accessors to append to the ... | php | chosen |
[
{
"from": "system",
"value": "Add some more query scope functions\n"
},
{
"from": "human",
"value": "<?php\nnamespace RadDB;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Recommendation extends Model\n{\n /**\n * Attributes that are mass assignable\n *\n * @var array\n ... | php | chosen |
[
{
"from": "system",
"value": "Add first property and constructor\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: sonja\n * Date: 1/26/18\n * Time: 10:30 AM\n */\n\nnamespace AppBundle\\API\\Sharing;\n\n\nclass Projects\n{\n\n}"
},
{
"from": "gpt",
"va... | php | chosen |
[
{
"from": "system",
"value": "Add homepage route with redirecting to filename enter page\n"
},
{
"from": "human",
"value": "<?php\n\n// Routing configuration. You should have the `$app` variable set to be\n// an instance of Silex Application.\n\nuse Silex\\Application;\n\nif (!isset($app)) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add getContent for getting faster\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers\\API;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Response;\nuse Illuminate\\Http\\Request;\n\nclass EditorServicesController extends... | php | chosen |
[
{
"from": "system",
"value": "Modify the create user table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the migrations.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Add user_id to notifications in existing events\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Events;\n\nuse App\\Notification;\nuse App\\Tag;\nuse Illuminate\\Broadcasting\\Channel;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Broadcastin... | php | chosen |
[
{
"from": "system",
"value": "Add backslash in front of the class name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the API Platform project.\n *\n * (c) Kévin Dunglas <dunglas@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n... | php | chosen |
[
{
"from": "system",
"value": "Allow to mutate Arrayable instead of Meta.\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Model\\Traits;\n\nuse Orchestra\\Model\\Value\\Meta;\n\ntrait MetableTrait\n{\n /**\n * `meta` field accessor.\n *\n * @param mixed $value\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix key type for sessions table\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zeropingheroes\\Lanager;\n\nuse Eloquent;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\Relations\\belongsTo;\n\n/* @mixin Eloquent */\nclass Ses... | php | chosen |
[
{
"from": "system",
"value": "Load all stylesheets for public preview\n\nfixes #88\n\nSigned-off-by: Robin Appelman <474ee9ee179b0ecf0bc27408079a0b15eda4c99d@icewind.nl>\n"
},
{
"from": "human",
"value": "<?php\n$eventDispatcher = \\OC::$server->getEventDispatcher();\n$eventDispatcher->addListen... | php | chosen |
[
{
"from": "system",
"value": "Use route names to get URIs for testing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\... | php | chosen |
[
{
"from": "system",
"value": "Fix levels for Logged Out Pages\n\n- Helpers.php conditional updates\n"
},
{
"from": "human",
"value": "<?php\n\tfunction get_body_class( $route = null, $sidebar = false ) {\n\t\t$defaultClasses = array(\n\t\t\t'route-auth-login',\n\t\t\t'route-auth-register'\n\t\t)... | php | chosen |
[
{
"from": "system",
"value": "Test OC_User_Database in Test_User_Database instead of OC_User_Dummy.\n"
},
{
"from": "human",
"value": "<?php\n/**\n* ownCloud\n*\n* @author Robin Appelman\n* @copyright 2012 Robin Appelman icewind@owncloud.com\n*\n* This library is free software; you can redistrib... | php | chosen |
[
{
"from": "system",
"value": "Add default step for setting (per hour)"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'App\\Models\\Business' => [\n 'start_at' => ['type' => 'time', 'value' => '08:00:00'],\n 'finish_at' => ['type' =>... | php | chosen |
[
{
"from": "system",
"value": "Switch IS_DEV constant to false\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @desc - path for site.\n * should be set, otherwise content will be served from volcano/site internally.\n * default: volcano/site\n */\ndefine('SITE', dirname(__FILE__) . '/site');\... | php | chosen |
[
{
"from": "system",
"value": "Add a set of basic queries\n"
},
{
"from": "human",
"value": "<?php\n\nuse SkylarK\\Purity5\\DataStructures\\PureTree as PureTree;\n\nclass PureTreeTest extends PHPUnit_Framework_TestCase\n{\n\t// Tests\n\n\tpublic function test_SimpleTree() {\n\t\t\n\t\t$root = Pur... | php | chosen |
[
{
"from": "system",
"value": "Update example to use promise API\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../vendor/autoload.php';\n\n$loop = React\\EventLoop\\Factory::create();\n$factory = new React\\Dns\\Resolver\\Factory();\n$resolver = $factory->create('8.8.8.8', $loop);... | php | chosen |
[
{
"from": "system",
"value": "Update to comply with standards."
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n$request = Request::createFromGlobals(... | php | chosen |
[
{
"from": "system",
"value": "Test the getAll, Find methods\n"
},
{
"from": "human",
"value": "<?php\n\n\nrequire \"vendor/autoload.php\";\n\nuse Florence\\User;\n\n\n//$user = User::find(4);\n////$user->first_name = \"Prosper\";\n//\n//print_r($user);\n\n$user = new User();\n$user->first_name =... | php | chosen |
[
{
"from": "system",
"value": "Support php executed in cgi mode\n"
},
{
"from": "human",
"value": "<?php\nheader('Lain: Hot');\nif (strnatcmp(phpversion(),'5.5') < 0)\n exit(\"PHP 5.5 or newer is required\");\n\ninclude('config.php');\n\nfunction PhoxyStart()\n{\n if (phoxy_conf()[\"api_xss_pre... | php | chosen |
[
{
"from": "system",
"value": "Use previously declared date helper\n\nFormer-commit-id: d1f51b0a2e69c004f80889a85171df9238c2de59\nFormer-commit-id: f859ab55bd3f66780e54abeae2dc1f3a460703cb"
},
{
"from": "human",
"value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\n$dh = Core::make(... | php | chosen |
[
{
"from": "system",
"value": "Fix return tag of done()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Promise;\n\ninterface ExtendedPromiseInterface extends PromiseInterface\n{\n /**\n * @return ExtendedPromiseInterface\n */\n public function done(callable $onFulfille... | php | chosen |
[
{
"from": "system",
"value": "Make it a protected static function to comply with best practise\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PendoNL\\LaravelExactOnline;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass LaravelExactOnlineFacade extends Facade\n{\n /**\n * Get ... | php | chosen |
[
{
"from": "system",
"value": "Make csv reader binary safe\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Phpml\\Dataset;\n\nuse Phpml\\Exception\\DatasetException;\n\nclass CsvDataset extends ArrayDataset\n{\n /**\n * @param string $filepath\n * @par... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with manga names being cut.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nuse \\App\\Manga;\n\nclass Library extends Model\n{\n //\n protected $fillable = ['name', 'path'];\n\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Change the option name to better reflect the contents\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Represents the WordPress option for saving the dismissed messages.\n */\nclass Whip_WPDismissOption implements Whip_DismissStorage {\n\n\t/** @var string */\n\t... | php | chosen |
[
{
"from": "system",
"value": "Use 3.3 api for redirects\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nclass Controller_User extends Controller_Website\n{\n public function action_logout()\n {\n Auth::instance()->logout(TRUE);\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix Log Visit for Unathenticated Users\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\Auth;\nuse Illuminate\\Http\\Request;\n\nuse App\\Visit;\n\nclass VisitController extends Controller\n{\n pub... | php | chosen |
[
{
"from": "system",
"value": "Improve interpunction in error messages\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mollie\\Api\\Exceptions;\n\nclass ApiException extends \\Exception\n{\n /**\n * @var string\n */\n protected $field;\n\n /**\n * @var string\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Fix disappearing contact entries after being renamed by another client.\n\nThis actually modified a cached roster entry of another random user that\nhappened to have the same JID in their roster.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Moxl\\Xec\\Paylo... | php | chosen |
[
{
"from": "system",
"value": "Fix the search class not found\n"
},
{
"from": "human",
"value": "<?php \n\nnamespace AstritZeqiri\\LaravelSearchable\\Traits;\n\nuse AstritZeqiri\\LaravelSearchable\\Exceptions\\SearchException;\n\ntrait Searchable\n{\n /**\n * Search on multiple database fi... | php | chosen |
[
{
"from": "system",
"value": "Make `wp package install` more verbose\n\n* Update `WP_CLI\\ComposerIO` to write error messages too.\n* Display return code when Composer installer returns one.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WP_CLI;\n\nuse \\Composer\\IO\\NullIO;\nuse \\WP_CL... | php | chosen |
[
{
"from": "system",
"value": "Check if apc is enabled during test setup\n"
},
{
"from": "human",
"value": "<?php\nnamespace Nsautoload\\Tests;\n\nuse Nsautoload\\Nsautoload;\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\n\nrequire_once __DIR__.'/AutoloadTest.php';\n\nclass CacheTest exte... | php | chosen |
[
{
"from": "system",
"value": "Add manageRequest test in scanconfigform tests\n"
},
{
"from": "human",
"value": "<?php\n\n/*\nCopyright (C) 2016 Teclib'\n\nThis file is part of Armadito Plugin for GLPI.\n\nArmadito Plugin for GLPI is free software: you can redistribute it and/or modify\nit under ... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary json_encode when Content-Type is application/json"
},
{
"from": "human",
"value": "<?php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse \\Curl\\Curl;\n\n// curl \\\n// -X POST \\\n// -d \"{\"id\":\"1\",\"content\":\"Hello world!\",\"dat... | php | chosen |
[
{
"from": "system",
"value": "Comment out buggy encoding detection.\n"
},
{
"from": "human",
"value": "<?php\r\nfunction is_utf8 ($str) {\r\n\t$converted = iconv('utf-8', 'utf-8', $str);\r\n\tif ($converted == $str) {\r\n\t\treturn true;\r\n\t} else {\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\nrequ... | php | chosen |
[
{
"from": "system",
"value": "Add 'hydrate' option to the doctrine mapper\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Mapper;\n\nuse FOQ\\ElasticaBundle\\MapperInterface;\nuse Doctrine\\Common\\Persistence\\ObjectRepository;\n\n/**\n * Maps Elastica documents with ... | php | chosen |
[
{
"from": "system",
"value": "Increase course description column size\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateCoursesTable extends Migration\n{\n\tpublic function up()\n\t{\n\t\tSche... | php | chosen |
[
{
"from": "system",
"value": "[Cart][Order] Move CartBundle classes to OrderBundle\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 t... | php | chosen |
[
{
"from": "system",
"value": "Fix for using Response class\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @license MIT, http://opensource.org/licenses/MIT\n * @copyright Aimeos (aimeos.org), 2014-2016\n * @package symfony\n * @subpackage Controller\n */\n\n\nnamespace Aimeos\\ShopBundle\\Co... | php | chosen |
[
{
"from": "system",
"value": "Add user activated and logged in events to analytics subscriber\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Listeners\\Subscribers;\n\nuse Illuminate\\Events\\Dispatcher;\nuse OpenDominion\\Contracts\\Services\\Analytics\\AnalyticsService;\nu... | php | chosen |
[
{
"from": "system",
"value": "Make FontMetrics available to inline script as $fontMetrics\n\nSince the FontMetrics class is no longer designed to be used statically a user must instantiate their own copy or reuse the one instantiated by dompdf. While not overly difficult to instantiate\n(see load_font.php) ... | php | chosen |
[
{
"from": "system",
"value": "Change static variables to private\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Axllent\\Gfmarkdown\\FieldTypes;\n\nuse Parsedown;\nuse SilverStripe\\ORM\\FieldType\\DBText;\n\nclass Markdown extends DBText\n{\n public static $casting = array(\n '... | php | chosen |
[
{
"from": "system",
"value": "Increase prepare timeout to 300 seconds.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BestIt\\Mage\\Tasks\\Release;\n\nuse Mage\\Task\\BuiltIn\\Deploy\\Release\\PrepareTask as MagePrepareTask;\n\n/**\n * Class PrepareTask\n *\n * @author Ahmad El-Bardan <ah... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.