conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix one more issue thanks to Scrutinizer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Baddum\\Factory418;\n\ntrait FactoryTrait\n{\n\n /* ATTRIBUTES\n *************************************************************************/\n private static $ind... | php | chosen |
[
{
"from": "system",
"value": "Add default log config settings"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n /**\n * The current application environment\n */\n 'environment' => getenv('WP_ENV'),\n\n /**\n * Is debug mode enabled?\n */\n 'debug' => WP_DEBUG ?? fa... | php | chosen |
[
{
"from": "system",
"value": "Use bundler to ignore VCS files"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clue\\PharComposer\\Bundler;\n\nuse Clue\\PharComposer\\PharComposer;\n\nuse Herrera\\Box\\Box;\n\nclass Complete implements BundlerInterface\n{\n public function build(PharCompos... | php | chosen |
[
{
"from": "system",
"value": "Make sure pwd strength API is not required to be able to register\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Validator;\n\nuse Symfony\\Component\\Validator\\Constraints\\Compound;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\n/**\n *... | php | chosen |
[
{
"from": "system",
"value": "[Cache/CouchbaseCache] Return false instead of null for compat.\n\nThis changeset fixes and verifies that instead of null, false is returned\nfrom the fetch method. This fixes a bug which causes CouchbaseCache not\nto work in combination with the ORM library. Test added.\n"
}... | php | chosen |
[
{
"from": "system",
"value": "Remove the base page interface name option.\n"
},
{
"from": "human",
"value": "<?php namespace ProcessWire;\n\nclass GraphQLConfig extends Moduleconfig {\n\n public function getDefaults()\n {\n return array(\n 'baseInterfaceName' => 'page',\n );\n }\n\... | php | chosen |
[
{
"from": "system",
"value": "Add invoke method to test protected / private method\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Contracts\\Console\\Kernel;\nuse Illuminate\\Foundation\\Testing\\TestCase as BaseTestCase;\n\nclass TestCase extends BaseTestCase\n{\n /**\n * Th... | php | chosen |
[
{
"from": "system",
"value": "Fix broken test in php 5.5\n\nSigned-off-by: Fery Wardiyanto <bd7846e81d12676baffd10ffe6daf3939680ab52@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\nnamespace Projek\\Slim\\Tests;\n\nuse Projek\\Slim\\Monolog;\nuse PHPUnit_Framework_TestCase;\nuse DateTimeZon... | php | chosen |
[
{
"from": "system",
"value": "Change interval from 4 to 7 seconds\n"
},
{
"from": "human",
"value": "<?php\n\nclass CodesController extends \\BaseController {\n\n\tpublic function process($code)\n\t{\n $code = Code::where('code', '=', $code)->first();\n\n if(is_null($code) || $code... | php | chosen |
[
{
"from": "system",
"value": "Make discretionary filter hide sold discretionary teams\n"
},
{
"from": "human",
"value": "<?php\nnamespace Tickets\\DB;\n\nclass TicketDefaultFilter extends \\Data\\Filter\n{\n function __construct($email, $discretionary=false)\n {\n $this->children[] ... | php | chosen |
[
{
"from": "system",
"value": "Add missing checking rules of activity time\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nclass SettingController extends Controller\n{\n /**\n * @return \\Illuminate\\Http\\Response\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix \"Only variables should be passed by reference\" warning when running in strict standards mode.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author Ignas Rudaitis <ignas.rudaitis@gmail.com>\n * @copyright 2010 Ignas Rudaitis\n * @license http://w... | php | chosen |
[
{
"from": "system",
"value": "Remove .env comment for word array\n\nI'm not going to separate those into a separate file for now."
},
{
"from": "human",
"value": "<?php\nif (!PHP_SAPI == 'cli') { die(); } // Only allow the CLI to run this script.\n\n// tweeter.php\n// https://github.com/plusreed... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with orders page\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class Dispatcher\n */\nclass Dispatcher extends DispatcherCore\n{\n /**\n * @param null $id_shop\n *\n * @return mixed\n */\n public function getController($id_shop ... | php | chosen |
[
{
"from": "system",
"value": "Make sure embed response never matches a request\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Http_Response_Page_Embed extends CM_Http_Response_Page {\n\n /** @var string|null */\n private $_title;\n\n /**\n * @throws CM_Exception_Invalid\n ... | php | chosen |
[
{
"from": "system",
"value": "Update PHPUnit tests for Yii models.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sil\\SilAuth\\tests\\unit\\models;\n\nuse Sil\\SilAuth\\models\\User;\nuse PHPUnit\\Framework\\TestCase;\n\nclass UserTest extends TestCase\n{\n public function testChangingA... | php | chosen |
[
{
"from": "system",
"value": "[Localization] Fix class signature in Config\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Panda framework.\n *\n * (c) Ioannis Papikas <papikas.ioan@gmail.com>\n *\n * For the full copyright and license information, please view the LIC... | php | chosen |
[
{
"from": "system",
"value": "Add fluent interface for setTransformer in builder"
},
{
"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 ... | php | chosen |
[
{
"from": "system",
"value": "Allow to set context to null\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Mendo Framework\n *\n * (c) Mathieu Decaffmeyer <mdecaffmeyer@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed wit... | php | chosen |
[
{
"from": "system",
"value": "Improve CliConfig coverage by force config reset\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Platformsh\\Cli\\Tests;\n\nuse Platformsh\\Cli\\CliConfig;\nuse Platformsh\\Cli\\Local\\LocalProject;\nuse org\\bovigo\\vfs\\vfsStream;\nuse org\\bovigo\\vfs\\vfsS... | php | chosen |
[
{
"from": "system",
"value": "Add json_encode_file() and is_json() for simplifing the json management. Add usenslargs() function to set-up url args separated with ; instend of &\n"
},
{
"from": "human",
"value": "<?php\nclass utils {\n function json_decode_file($file) {\n \treturn json_dec... | php | chosen |
[
{
"from": "system",
"value": "Fix storing path as setting value test\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BWibrew\\SiteSettings\\Tests;\n\nuse Spatie\\MediaLibrary\\UrlGenerator\\BaseUrlGenerator;\n\nclass TestUrlGenerator extends BaseUrlGenerator\n{\n /**\n * Get the U... | php | chosen |
[
{
"from": "system",
"value": "t103: Use request-getters in error-log paging\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Paging_Log_Error extends CM_Paging_Log_Abstract {\n\tconst TYPE = 1;\n\n\t/**\n\t * @param string $msg\n\t */\n\tpublic function add($msg) {\n\t\t$metaInfo = array();\... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing slash for default configuration\n"
},
{
"from": "human",
"value": "<?php\nnamespace EventStore\\Bundle\\ClientBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definitio... | php | chosen |
[
{
"from": "system",
"value": "Call boomcms:publish command if new templates are installed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\Console\\Commands;\n\nuse BoomCMS\\Core\\Template\\Manager as TemplateManager;\nuse Illuminate\\Console\\Command;\nuse PDOException;\n\nclass I... | php | chosen |
[
{
"from": "system",
"value": "Add count() to Reader interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DataImport\\Reader;\n\n/**\n * Iterator that reads data to be imported\n *\n * @author David de Boer <david@ddeboer.nl>\n */\ninterface ReaderInterface extends \\Iterator,... | php | chosen |
[
{
"from": "system",
"value": "Implement CLI classes for MVC (unstable)"
},
{
"from": "human",
"value": "<?php\n/**\n * CLIResponse\n */\n\nnamespace Orpheus\\InputController\\CLIController;\n\n\nuse Orpheus\\InputController\\OutputResponse;\n\n/**\n * The CLIResponse class\n * \n * @author Flore... | php | chosen |
[
{
"from": "system",
"value": "Fix type annotation for List::$items\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpParser\\Node\\Expr;\n\nuse PhpParser\\Node\\Expr;\n\nclass List_ extends Expr\n{\n /** @var ArrayItem[] List of items to assign to */\n public $items;\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add the Routing's cacheTime option\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Config\n *\n * @author Virgil-Adrian Teaca - virgil@giulianaeassociati.com\n * @version 3.0\n */\n\nuse Nova\\Config\\Config;\n\n/**\n * PREFER to be used in Database calls or stori... | php | chosen |
[
{
"from": "system",
"value": "Add test coverage for \\Itafroma\\Zork\\newstruc().\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Tests for Prim.php\n */\n\nnamespace Itafroma\\Zork\\Tests;\n\nuse Itafroma\\Zork\\Exception\\ConstantAlreadyDefinedException;\nuse \\PHPUnit_Framework_... | php | chosen |
[
{
"from": "system",
"value": "Fix errors with the locale dbal type when querying without a locale\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\Doctrine\\Type;\n\nuse Backend\\Core\\Language\\Locale as BackendLocale;\nuse Common\\Locale;\nuse Frontend\\Core\\Language\\Locale as F... | php | chosen |
[
{
"from": "system",
"value": "Enforce consistent artisan command tag namespacing\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Attributes\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass PublishCommand extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove some chars from dictionary\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aysheka\\Password\\Type;\n\n/**\n * Base password generator\n */\nabstract class Generator\n{\n protected $numbers = '1234567890';\n protected $chars = 'qwertyuiopasdfghjkl... | php | chosen |
[
{
"from": "system",
"value": "Move testing tasks to spark tasks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bob\\BuildConfig;\n\n# require_once(__DIR__ . '/vendor/autoload.php');\nrequire_once(__DIR__ . '/vendor/spark/spark/bob_tasks/spark.php');\n\ncopyTask('phpunit.dist.xml', 'phpuni... | php | chosen |
[
{
"from": "system",
"value": "Fix git locator behavior in worktree environment\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace GrumPHP\\Locator;\n\nuse GrumPHP\\Util\\Filesystem;\n\nclass GitRepositoryDirLocator\n{\n /**\n * @var Filesystem\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Set log settings to empty array by default\n"
},
{
"from": "human",
"value": "<?php namespace Tait\\ModelLogging;\n\nuse Tait\\ModelLogging\\ModelLog;\nuse Auth;\n\ntrait LoggableTrait\n{\n /**\n * Get all logs for this object\n *\n * @return collecti... | php | chosen |
[
{
"from": "system",
"value": "Use function rather than plain html\n"
},
{
"from": "human",
"value": "<nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#navbar\">\n... | php | chosen |
[
{
"from": "system",
"value": "Add shebang for direct execution"
},
{
"from": "human",
"value": "<?php\n\n$stdin = file_get_contents('php://stdin');\n\n// remove ANSI escape\n$stdin = preg_replace('/\\x1b(\\[|\\(|\\))[;?0-9]*[0-9A-Za-z]/', '', $stdin);\n$stdin = preg_replace('/\\x1b(\\[|\\(|\\))[... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Properly cast dates to y-m-d format\"\n\nThis reverts commit 7910dace9fc93ab5d5494e68cdee21867ad4558b partially.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\nuse Illuminate... | php | chosen |
[
{
"from": "system",
"value": "Use new namespace for ClassLookup\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\FormBundle\\Entity\\PageParts;\n\nuse Kunstmaan\\AdminBundle\\Helper\\ClassLookup;\nuse Kunstmaan\\FormBundle\\Entity\\FormAdaptorInterface;\nuse Kunstmaan\\PagePartBu... | php | chosen |
[
{
"from": "system",
"value": "Add default prefix (for tables) of \"\" for upgraders\n"
},
{
"from": "human",
"value": "<?PHP // $Id$\n\n// This file is generally only included from admin/index.php \n// It defines default values for any important configuration variables\n\n $defaults = array (\... | php | chosen |
[
{
"from": "system",
"value": "doc: Use route for links to documents\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('title', 'Index')\n\n@section('content')\n <div class=\"row\">\n @if ($data['num_doc'] > 0)\n <div class=\"row\">\n <div ... | php | chosen |
[
{
"from": "system",
"value": "Remove methods that are available on abstract class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Yajra\\Datatables\\Contracts;\n\n/**\n * Interface DataTableContract\n *\n * @package Yajra\\Datatables\\Contracts\n * @author Arjay Angeles <aqangeles@gmail.... | php | chosen |
[
{
"from": "system",
"value": "Implement findOneByEmail and findOneByUsernameOrEmail in ODM driver\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Symfony framework.\n *\n * (c) Matthieu Bontemps <matthieu@knplabs.com>\n * (c) Thibault Duplessis <thibault.duplessis@gm... | php | chosen |
[
{
"from": "system",
"value": "Add a bigIncrements to avoid issues with mysql8\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateFeaturablesTable exte... | php | chosen |
[
{
"from": "system",
"value": "BAP-12468: Update ApplicationsHelper and ActionApplicationsHelper\n- fix phpdoc\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ActionBundle\\Helper;\n\nuse Symfony\\Component\\Routing\\RouterInterface;\n\nclass ApplicationsUrlHelper\n{\n /** @... | php | chosen |
[
{
"from": "system",
"value": "Fix the version bump script\n"
},
{
"from": "human",
"value": "<?php\n\n$re = '/\\d+\\.\\d+.\\d+(?:-\\w+(?:\\.\\w+)?)?/m';\n\n$result = preg_replace($re, $argv[1], file_get_contents('../src/Sentry/Laravel/Version.php'));\nfile_put_contents('../src/Sentry/Laravel/Ver... | php | chosen |
[
{
"from": "system",
"value": "Update model to populate on save if record is returned from adapter\n"
},
{
"from": "human",
"value": "<?php\n\tnamespace Bolt;\n\n\tuse Bolt\\Interfaces\\Connection;\n\n\tabstract class Model extends Base\n\t{\n\t\tprotected $adapter;\n\n\t\tpublic function __const... | php | chosen |
[
{
"from": "system",
"value": "Check UUID column is empty\n\nIf the UUID column has already been populated when creating the model, the package should not attempt to overwrite it. This takes into consideration JSON API-compatible APIs, which allows for client-generated IDs."
},
{
"from": "human",
... | php | chosen |
[
{
"from": "system",
"value": "Disable `dump:monthly` to prevent incomplete dumps [WEB-2013]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands\\Dump;\n\nuse Illuminate\\Support\\Facades\\File;\nuse Exception;\n\nclass DumpMonthly extends AbstractDumpCommand\n{\n\n pr... | php | chosen |
[
{
"from": "system",
"value": "Allow factoring of empty rays and rashes\n"
},
{
"from": "human",
"value": "<?php\n\nfunction ray($array) {\n return new Ray($array);\n};\n\nfunction rash($assoc_array) {\n return new Rash($assoc_array);\n}"
},
{
"from": "gpt",
"value": "<?php\n\nfunct... | php | chosen |
[
{
"from": "system",
"value": "Use proper version in plugin info comment\n"
},
{
"from": "human",
"value": "<?php\n\n/*\nPlugin Name: tonik/gin\nPlugin URI: http://tonik.pl\nDescription: Foundation of the Tonik WordPress Starter Theme. Provides all custom functionalities which it offers.\nVersion... | php | chosen |
[
{
"from": "system",
"value": "Add accessor for item on a note\n"
},
{
"from": "human",
"value": "<?php\nnamespace Scat;\n\nclass Note extends \\Model implements \\JsonSerializable {\n public function txn() {\n if ($this->kind == 'txn') {\n return $this->belongs_to('Txn', 'attach_id')->f... | php | chosen |
[
{
"from": "system",
"value": "Add RequestMiddleware if debug is on\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Bootstrap;\n\nuse App\\CInterface\\BootstrapInterface;\nuse App\\Middleware\\RequestLoggerMiddleware;\nuse App\\Middleware\\OAuthMiddleware;\nuse Phalcon\\Config;\nuse Ph... | php | chosen |
[
{
"from": "system",
"value": "Update home view with smaller box\n"
},
{
"from": "human",
"value": "@extends('layouts.topnav')\n\n@section('content')\n <div class=\"box box-default\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Welcome to OpenDominion!<... | php | chosen |
[
{
"from": "system",
"value": "Fix models section always being active\n"
},
{
"from": "human",
"value": "<section class=\"sidebar\">\n\n <ul class=\"sidebar-menu\">\n @foreach ($menu as $menuItem)\n <li class=\"{{ ($menuItem['route'] == Route::currentRouteName()) ? 'active' : '' }}\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Add CSS class for button group items.\n"
},
{
"from": "human",
"value": "<?php\n// check if groups are not empty\nforeach ($groups as $key => $group) {\n $exists = false;\n foreach ($group as $action => $config) {\n $subaction = is_array($config) ? $act... | php | chosen |
[
{
"from": "system",
"value": "Handle OAuthExceptions (such as expired sessions)\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('facebook-php-sdk/facebook.php');\n\n$facebook = new Facebook(array(\n 'appId' => '391055467680449',\n 'secret' => '828dd5806edaba916664ced4c3edd830',\n));\... | php | chosen |
[
{
"from": "system",
"value": "Move date from sticky posts.\n"
},
{
"from": "human",
"value": "<div class=\"col-xs-2\">\n <div class=\"media media-thumb featured\">\n <div class=\"wrap\">\n <div class=\"media-top\">\n <a href=\"<?php echo esc_url(get_permalink(... | php | chosen |
[
{
"from": "system",
"value": "Fix tests (welcome page visual udpate)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Page;\n\nclass WelcomePage extends KleisPage\n{\n public function openApplication()\n {\n $this->tester->see('Kleis');\n $this->tester->click('Cliquer ici ... | php | chosen |
[
{
"from": "system",
"value": "Fix for broken no authentication\n"
},
{
"from": "human",
"value": "<?php // $Id$\n // No authentication at all. This method approves everything!\n\nfunction auth_user_login ($username, $password) {\n// Returns true if the username doesn't exist yet\n// Retu... | php | chosen |
[
{
"from": "system",
"value": "Remove unused link to cookie.js\nremove SVN external\n\ngit-svn-id: d66344a971a0a943c9b1d460f97ab888aaee4784@27866 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php\r\n \r\n\t\tfunction get_nested_set_manager($model, $field, $root = 0)... | php | chosen |
[
{
"from": "system",
"value": "Update google maps api key\n"
},
{
"from": "human",
"value": "<?php\n\nreturn function (CM_Config_Node $config) {\n $config->installationName = 'denkmal';\n\n $config->CM_Site_Abstract->class = 'Denkmal_Site_Default';\n $config->CM_Model_User->class = 'Denk... | php | chosen |
[
{
"from": "system",
"value": "Write CSS to file in CACHE dir\n"
},
{
"from": "human",
"value": "<?php\n\n\t@ini_set('display_errors', 'off');\n\n\tdefine('DOCROOT', rtrim(realpath(dirname(__FILE__) . '/../../../'), '/'));\n\tdefine('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/') . str_replace(... | php | chosen |
[
{
"from": "system",
"value": "Set automatic route loading to false by default\n"
},
{
"from": "human",
"value": "<?php\n\n// Define all of our routes (we could do this automatically, but we'd like more control)\n$load_config = function() {\n\treturn array(\n\t\t'load_all_automatically' => true,\... | php | chosen |
[
{
"from": "system",
"value": "Put the actions in bibliography management into a list\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>Manage your bibliographies</title>\n\t</head>\n\t<body>\n\n\t<?php require 'header.php' ?>\n\t<!--TODO: replace this with a list o... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in IronMQ connector.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Queue\\Connectors;\n\nuse IronMQ;\nuse Illuminate\\Queue\\IronQueue;\n\nclass IronConnector implements ConnectorInterface {\n\n\t/**\n\t * Establish a queue connection.\n\t *... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Fix: swap units of miles and kilometres per hour\"\n\nThis reverts commit 055417b04f44d5bb7b443aab9e28438145b1fc91.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the jordanbrauer/unit-converter PHP package.\n *\n * @copyright 2017... | php | chosen |
[
{
"from": "system",
"value": "Fix correct name for traits\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Route\\Strategy;\n\nuse Exception;\nuse League\\Container\\ImmutableContainerAwareInterface;\nuse League\\Container\\ImmutableContainerAwareTrait;\nuse League\\Route\\Http\\Req... | php | chosen |
[
{
"from": "system",
"value": "Update the API URL to filter non-article contributions."
},
{
"from": "human",
"value": "<?php\n//language\nif(!paramExists(\"lang\")) {respond(\"missing parameter!\");}\n$language=$_REQUEST[\"lang\"];\n\n//username\nif(!paramExists(\"user\")) {respond(\"missing par... | php | chosen |
[
{
"from": "system",
"value": "Change 1s to 2 ms\n"
},
{
"from": "human",
"value": "<?php namespace Tests\\Unit;\n\nuse Performance\\Performance;\nuse Performance\\Config;\n\nclass ConfigLtirmRtrimTest extends \\PHPUnit_Framework_TestCase\n{\n\n protected function setUp()\n {\n Confi... | php | chosen |
[
{
"from": "system",
"value": "Add email to demonstrate spam capabilities ... lol\n"
},
{
"from": "human",
"value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for the new config format used in the init command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Liip\\RMT\\Tests\\Functional;\n\n\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass InitCommandTest extends RMTFunctionalTestBase\n{\n public function t... | php | chosen |
[
{
"from": "system",
"value": "Update connector with latest suggestions from partner.\nAdd authorship in taxa name. Improve species size text description. \n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1238 baf6b65b-9124-4dc3-b1c0-01155b4af546\n"
},
{
"from": "human",
"value": "<?php\r\... | php | chosen |
[
{
"from": "system",
"value": "Fix para deployar a prod sin drama\n"
},
{
"from": "human",
"value": "<?php\n# FileName=\"Connection_php_mysql.htm\"\n# Type=\"MYSQL\"\n# HTTP=\"true\"\nfunction dbconnect()\n{\n\t$hostname_MySQL = \"localhost\";\n\n\tif (array_key_exists(\"DB_HOST\", $_SERVER)) {\n... | php | chosen |
[
{
"from": "system",
"value": "Switch license from MIT to AGPL in plugin file\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\nPlugin Name: Castlegate IT WP Media File Sort\nPlugin URI: http://github.com/castlegateit/cgit-wp-media-file-sort\nDescription: Allow media library to be sorted by file ... | php | chosen |
[
{
"from": "system",
"value": "Add auto-hiding tests to node tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Becklyn\\RouteTreeBundle\\Tree;\n\nuse Becklyn\\RouteTreeBundle\\Node\\Node;\nuse PHPUnit\\Framework\\TestCase;\n\n\n/**\n *\n */\nclass NodeTest extends TestCase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Make admin configuration files overridable.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Darvin\\BotDetectorBundle\\DependencyInjection;\n\nuse Darvin\\BotDetectorBundle\\Entity\\DetectedBot;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\n... | php | chosen |
[
{
"from": "system",
"value": "Remove unneeded variable from template\n"
},
{
"from": "human",
"value": "<?php\n\n// Check if user is admin, redirect to home if not\n\\OCP\\User::checkAdminUser();\n\n// Load JavaScript files\n\\OCP\\Util::addScript(\"mozilla_sync\", \"admin\");\n\\OCP\\Util::addS... | php | chosen |
[
{
"from": "system",
"value": "Add broken test for implicit public nodes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpParser\\Node\\Stmt;\n\nclass ClassMethodTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider provideModifiers\n */\n public function test... | php | chosen |
[
{
"from": "system",
"value": "Fix phapp update commant to build regardless from environment mode, as documented since 0.6.0-beta2.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace drunomics\\Phapp\\Commands;\n\nuse drunomics\\Phapp\\PhappCommandBase;\nuse drunomics\\Phapp\\ServiceUtil\\Buil... | php | chosen |
[
{
"from": "system",
"value": "Convert to array, then use Dumpy.\n"
},
{
"from": "human",
"value": "<?php namespace LessCompiler;\n\n/**\n * An AST dumper.\n */\nclass TreeDumper {\n\n /**\n * @param \\LessCompiler\\AbstractSyntaxTree $tree\n * @return string\n */\n public funct... | php | chosen |
[
{
"from": "system",
"value": "Change Button text to install\n\nInstallation for many migrations or large db:seed's can take a while - let user know that we're installing data now, not just going to the next step."
},
{
"from": "human",
"value": "@extends('vendor.installer.layouts.master')\r\n\r\... | php | chosen |
[
{
"from": "system",
"value": "Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error\n"
},
{
"from": "human",
"value": "<?php\n/*\n * StatusNet - the distributed open-source microblogging too... | php | chosen |
[
{
"from": "system",
"value": "Fix contact page fatal error.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n global $wp_query;\r\n\r\n $slider_or_image = '';\r\n $page_parent_image = function_exists('get_field') ? get_field('header_image', $wp_query->post->post_parent) : '';\r... | php | chosen |
[
{
"from": "system",
"value": "Fix unsupported short hand array for PHP 5.3\n"
},
{
"from": "human",
"value": "<?php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse \\Curl\\MultiCurl;\n\n$server_count = 10;\n$urls = [];\n$port = 8000;\nfor ($i = 0; $i < $server_count; $i++) {\n $port += 1;\n... | php | chosen |
[
{
"from": "system",
"value": "Add .html extension to generated URLs\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FrozenSilex;\n\nuse Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface;\nuse Symfony\\Component\\Routing\\RequestContext;\n\n/**\n * URL Generator which intercepts... | php | chosen |
[
{
"from": "system",
"value": "Add missing module event type hint\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2012 Zend Te... | php | chosen |
[
{
"from": "system",
"value": "Add extension to make debugging easier\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mockery\\Loader;\n\nuse Mockery\\Loader\\Loader;\nuse Mockery\\Generator\\MockDefinition;\n\nclass RequireLoader implements Loader\n{\n public function load(MockDefinitio... | php | chosen |
[
{
"from": "system",
"value": "Fix error of input value in gallery uploader.\n"
},
{
"from": "human",
"value": "<div id=\"{{ $id or 'gallery-upload' }}\" class=\"gallery-upload {{ $class or ''}}\">\n <p>\n <button type=\"button\" class=\"btn btn-default\">{{ $button or 'Upload' }}</butt... | php | chosen |
[
{
"from": "system",
"value": "Remove useless call to parent\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Korko\\Encrypter\\SymmetricalEncrypter as Encrypter;\n\nclass DecryptInput extends TransformsRequest\n{\n protected $decrypter;\n\n public functio... | php | chosen |
[
{
"from": "system",
"value": "Improve client boot failure error message/appearance\n"
},
{
"from": "human",
"value": "@if (! $noJs) <noscript> @endif\n <div class=\"container\">\n <div class=\"Alert\">You're viewing the HTML-only version of {{ $forum->attributes->title }}. Upgrade your... | php | chosen |
[
{
"from": "system",
"value": "Change storage views to twig folder\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Systemblast\\Engine\\Template;\n\nuse Systemblast\\Interfaces\\View as ViewInterface;\n\n/**\n * The flexible, fast, and secure template engine for PHP\n * https://twig.symfony... | php | chosen |
[
{
"from": "system",
"value": "CI: Add gulp and artisan migrate to production deployment\n"
},
{
"from": "human",
"value": "@setup\n $deploy_user = $user;\n $deploy_server = $server;\n $deploy_server_string = sprintf('%s@%s', $deploy_user, $deploy_server);\n@endsetup\n\n@servers(['web' =... | php | chosen |
[
{
"from": "system",
"value": "Add body classes in div\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<!--[if lt IE 7]><html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" <?php language_attributes(); ?>> <![endif]-->\n<!--[if IE 7]><html class=\"no-js lt-ie9 lt-ie8 ie7\" <?php language_attributes(); ... | php | chosen |
[
{
"from": "system",
"value": "fix(LocaleBundle): Remove $locale argument from changeAction to make PUT, PATCH work.\n\nfix(LocaleBundle): Do not redirect on changeAction when it's an API request.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add more zh_CN tld and freeEmailDomain\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Faker\\Provider\\zh_CN;\n\nclass Internet extends \\Faker\\Provider\\Internet\n{\n protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com');\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert \"rm for readd alter\"\n\nThis reverts commit 0a0a873bb6a66a9be52dfd3f13fc1f1d0d8af226.\n"
},
{
"from": "human",
"value": "<?php\nclass Pagination extends Schema {\n function __construct($config){\n parent::__construct($config);\n $this->_sch... | php | chosen |
[
{
"from": "system",
"value": "Add method for retrieving visitor data\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\nuse App\\User;\n\nclass ProfileController ext... | php | chosen |
[
{
"from": "system",
"value": "Remove `categories` and `artworks` includes from assets\n\nNot being used. The artworks include is lossy.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Transformers;\n\nuse App\\Models\\Collections\\Asset;\n\nclass AssetTransformer extends Collect... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.