conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make WordPress link open in new window\n"
},
{
"from": "human",
"value": "\t\t\t<!-- footer -->\n\t\t\t<footer class=\"footer\" role=\"contentinfo\">\n\n\t\t\t\t<!-- copyright -->\n\t\t\t\t<p class=\"copyright\">\n\t\t\t\t\t© <?php echo esc_html( date( 'Y' ) );... | php | chosen |
[
{
"from": "system",
"value": "Insert custom commands through the getCommands() function.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version\t\t$Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Weblinks\n * @copyright\tCopyright (C) 2011 Timble CVBA and Contributors... | php | chosen |
[
{
"from": "system",
"value": "Update hEntry schema to use `updated` instead of `published` on the time element\n"
},
{
"from": "human",
"value": "<time class=\"published\" datetime=\"<?php echo get_the_time('c'); ?>\"><?php echo get_the_date(); ?></time>\n<p class=\"byline author vcard\"><?php e... | php | chosen |
[
{
"from": "system",
"value": "Fix bad method name in test task\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Amp\\Test\\Thread;\n\nuse Amp\\Promise;\nuse Amp\\Future;\nuse Amp\\Thread\\Thread;\nuse Amp\\Thread\\Dispatcher;\n\nfunction multiply($x, $y) {\n return $x * $y;\n}\n\nfunctio... | php | chosen |
[
{
"from": "system",
"value": "Set charset in DSN string\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Krystal Framework\n * \n * Copyright (c) No Global State Lab\n * \n * For the full copyright and license information, please view\n * the license file that was dis... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to list services and reporters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ScottRobertson\\Scrutiny;\n\nclass Client\n{\n private $services = array();\n private $reporters = array();\n\n public function addService($service)\n {\... | php | chosen |
[
{
"from": "system",
"value": "Add support for PHP 5.4 built-in webserver\n"
},
{
"from": "human",
"value": "<?php\n\n$app = require __DIR__ . '/../app/app.php';\n\nif ($app instanceof Silex\\Application) {\n $app->run();\n} else {\n echo 'Failed to initialize application.';\n}\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Add a little bit of tests\n"
},
{
"from": "human",
"value": "<?php\nnamespace Dynamo\\Mapper;\n\nuse Fixtures\\Person;\n\nclass MapperTest extends \\PHPUnit_Framework_TestCase\n{\n public function testShouldBuildEntityWithDataArray()\n {\n $data = [\n ... | php | chosen |
[
{
"from": "system",
"value": "Convert backslash to fowardslah for unix support.\n"
},
{
"from": "human",
"value": "<?php\n\nfunction dephendency($class) {\n if (is_file(__DIR__.'/../'.$class.'.php')) {\n require_once(__DIR__.'/../'.$class.'.php');\n }\n else {\n require_on... | php | chosen |
[
{
"from": "system",
"value": "Update ver 0.1 Beta (Build 9)\nplg_system examples\n"
},
{
"from": "human",
"value": "<?php\n\trequire(\"bin/fw.php\");\n\tdefine('N', \"\\n\");\n\tdefine('BR', \"<br />\");\n\tdefine('BRN', \"<br />\\n\");\n\n# plg_visitor\n\techo \"You are using \".browserName.\" ... | php | chosen |
[
{
"from": "system",
"value": "[ENH] Add missing icon to PluginCenter\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@20876 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n\n// Centers the plugin content in the wiki page\n// Usage\n// {CENTER()}\n// data\n/... | php | chosen |
[
{
"from": "system",
"value": "Use Monolog's PSR 3 level conversion.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Linio\\Common\\Logging;\n\nuse Linio\\Common\\Exception\\CriticalError;\n\nclass CriticalErrorProcessor\n{\n public function __invoke(array $re... | php | chosen |
[
{
"from": "system",
"value": "Remove obsolete unused floating wrappers and cleaners.\n"
},
{
"from": "human",
"value": "<?php\nclass RecaptchaWidget extends Widget{\n\tfunction render($name, $value, $options = array()){\n\t\tglobal $ATK14_GLOBAL;\n\t\t$lang = $ATK14_GLOBAL->getLang(); // TODO: h... | php | chosen |
[
{
"from": "system",
"value": "Exclude policy from existing ability seeder query check\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Rinvex\\Support\\Traits\\SeederHelper;\n\nclass... | php | chosen |
[
{
"from": "system",
"value": "Adjust returned field name in validation error response"
},
{
"from": "human",
"value": "<?php\n\nnamespace Huntie\\JsonApi\\Http\\Requests;\n\nuse Huntie\\JsonApi\\Http\\JsonApiResponse;\nuse Illuminate\\Contracts\\Validation\\Validator;\nuse Illuminate\\Foundation... | php | chosen |
[
{
"from": "system",
"value": "Add field and tag types"
},
{
"from": "human",
"value": "<?php\nnamespace Composer\\Installers;\n\nclass KirbyInstaller extends BaseInstaller\n{\n protected $locations = array(\n 'plugin' => 'site/plugins/{$name}/',\n );\n}\n"
},
{
"from": "g... | php | chosen |
[
{
"from": "system",
"value": "Change string to check in test\n"
},
{
"from": "human",
"value": "<?php\n/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PUR... | php | chosen |
[
{
"from": "system",
"value": "Remove peak debug, at least for now.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Gets various Metrolink variables\n **/\nclass Metrolink\n{\n /**\n * Checks peak hours: if it is, then post normal service tweets as well\n * @return bool\n */\... | php | chosen |
[
{
"from": "system",
"value": "Add SoftDelete trait to post model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Post extends Model\n{\n\tprotected $hidden = [\n\t\t'user_id', 'updated_at', 'deleted_at',\n\t]; \n\n public funct... | php | chosen |
[
{
"from": "system",
"value": "[Taxon][Image] Add validation for taxon image code uniqueness\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... | php | chosen |
[
{
"from": "system",
"value": "Return trait names according to a search term\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ajax\\listing;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Trait informatio\n */\nclass Traits extends \\WebService {\n\n /**\n * @param $querydat... | php | chosen |
[
{
"from": "system",
"value": "Add a snake cased relationship\n\nIn order to test correct behaviour of \"snake case\" defined relationships, we need a relationship which can be snake cased in this test model.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spatie\\Activitylog\\Test\\Models;... | php | chosen |
[
{
"from": "system",
"value": "Add a test case of lazyCallbackWiring in ParameterBootstrap\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Bootstrap\\Test;\n\nuse Core\\ParameterWire;\nuse PHPUnit\\Framework\\TestCase;\nuse Core\\Bootstrap\\Bootstrap;\nuse Prob\\Handler\\Parameter\\Nam... | php | chosen |
[
{
"from": "system",
"value": "Improve command output from nothing\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse SensioLabs\\Security\\SecurityChecker;\n\nclass SecurityCheck extends Command\n{\n /**\n * The name and... | php | chosen |
[
{
"from": "system",
"value": "Revert \"update to remove client type hinting\"\n\nThis reverts commit a73a6e688d7bcaa17b6c3ba2688291dfa878ea5d.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace hceudevs\\RateLimitBundle\\Service\\Storage;\n\nuse Noxlogic\\RateLimitBundle\\Service\\RateLimitIn... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with cli scripts\n"
},
{
"from": "human",
"value": "<?\ndefine('E_REPORTING', E_ALL & ~E_NOTICE);\nerror_reporting(E_REPORTING);\nini_set('display_errors', 'On');\ndefine('TIME_START', microtime(true));\ndefine('ROOT', dirname(dirname(__FILE__)));\ndefine('C... | php | chosen |
[
{
"from": "system",
"value": "Fix annotation for entities without bundle\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drupal\\wmcontroller\\Annotation;\n\nuse Drupal\\Component\\Annotation\\Plugin;\n\n/**\n * @Annotation\n */\nclass Controller extends Plugin\n{\n /** @var string */... | php | chosen |
[
{
"from": "system",
"value": "Simplify mutate() & cure() methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nclass Player extends \\Pragma\\ORM\\Model\n{\n const GENOME_HOST = 0;\n const GENOME_NORMAL = 1;\n const GENOME_RESISTANT = 2;\n\n\tprivate $... | php | chosen |
[
{
"from": "system",
"value": "Fix field key in saturn\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Sharp;\n\nuse App\\User;\nuse Code16\\Sharp\\Form\\Layout\\FormLayoutColumn;\nuse Code16\\Sharp\\Show\\Fields\\SharpShowTextField;\nuse Code16\\Sharp\\Show\\Layout\\ShowLayoutSection;... | php | chosen |
[
{
"from": "system",
"value": "Fix example to not use push\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../vendor/autoload.php';\n\nuse igorw\\edn;\n\n$person = new edn\\Map();\n$person[edn\\keyword('name')] = 'igorw';\n\n$list = new edn\\LinkedList();\n$list->push(edn\\symbol('f... | php | chosen |
[
{
"from": "system",
"value": "Allow passing a dynamic argument list to withCookie.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Cookie;\n\ntrait ResponseTrait\n{\n /**\n * Get the status code for the response.\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Fix Android version so that it can support major/minor/hotfix releases, eg. 4.2.1\n"
},
{
"from": "human",
"value": "<?php\n\n\tclass DeviceAndroid extends MobileDevice {\n\t\tstatic protected $instance;\n\n\t\tpublic function initialize() {\n\t\t\t$this->{'name'} =... | php | chosen |
[
{
"from": "system",
"value": "Add a test for the multi-location Rsync::fromPath.\n"
},
{
"from": "human",
"value": "<?php\n\nuse AspectMock\\Test as test;\nuse Robo\\Robo;\n\nclass RsyncTest extends \\Codeception\\TestCase\\Test\n{\n /**\n * @var \\CodeGuy\n */\n protected $guy;\n\... | php | chosen |
[
{
"from": "system",
"value": "Update contact form to send email inquiries"
},
{
"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_var($_POS... | php | chosen |
[
{
"from": "system",
"value": "Add date and request headers in CSP report log\n"
},
{
"from": "human",
"value": "<?php\n\nclass CspReport\n{\n public function process($post)\n {\n $report = json_decode($post);\n\n if ($report) {\n $report->{'user-agent'} = $_SERVER[... | php | chosen |
[
{
"from": "system",
"value": "Correct name on temporary folder\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace staticsquish;\n\n\n/**\n* @license 3-clause BSD\n*/\nclass TemporaryFolder\n{\n\n protected $folder;\n\n public function get() {\n if (!$this->folder) {\n $this->folder... | php | chosen |
[
{
"from": "system",
"value": "Fix the publishes path for translations\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jorenvh\\Share\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Jorenvh\\Share\\Share;\n\nclass ShareServiceProvider extends ServiceProvider\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix views folder for L5.1\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace PragmaRX\\Sdk\\Services\\View\\Service;\r\n\r\nuse PragmaRX\\Support\\ServiceProvider;\r\nuse PragmaRX\\Sdk\\Services\\View\\Compilers\\BladeCompiler;\r\n\r\nclass Provider extends S... | php | chosen |
[
{
"from": "system",
"value": "ENH: Use emailadministrator in createpublicdashboard test\n\ngit-svn-id: 496ab2bd9c9a782235c11388890d59de1024c1f0@2575 91079597-3006-4846-9bd3-4f3fb3d139a7\n"
},
{
"from": "human",
"value": "<?php\n// kwtest library\nrequire_once('kwtest/kw_web_tester.php');\nrequir... | php | chosen |
[
{
"from": "system",
"value": "Add analytics tracker to all pages on .org\n"
},
{
"from": "human",
"value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\"); ?>\n <footer class=\"full\" role=\"contentinfo\">\n <div class=\"container\">\n <div class=\"social-icons\">\n <a h... | php | chosen |
[
{
"from": "system",
"value": "Remove experimental flag from the authenticator system 🚀\n\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 ... | php | chosen |
[
{
"from": "system",
"value": "Add method to detect web middleware\n"
},
{
"from": "human",
"value": "<?php\n\nuse GeneaLabs\\LaravelCaffeine\\Http\\Controllers\\LaravelCaffeineController;\n\nif (isset(Route::getMiddleware()['web'])) {\n Route::group(['middleware' => ['web']], function () {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use new instance every time the facade is called\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jorenvh\\Share;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass ShareFacade extends Facade\n{\n /**\n * Get the registered name of the component.\n ... | php | chosen |
[
{
"from": "system",
"value": "Use set() method instead of __call magic method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BryanCrowe\\Growl;\n\nuse BryanCrowe\\Growl\\Builder\\BuilderAbstract;\n\nclass Growl\n{\n /**\n * The Builder to use for building the command.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Add generating & saving APP_AUTH_KEY to setup script\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse DFurnes\\Environmentalist\\ConfiguresApplication;\n\nclass SetupCommand extends Command... | php | chosen |
[
{
"from": "system",
"value": "Remove fields, users can just use filters\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Nova\\Actions;\n\nuse Laravel\\Nova\\Fields\\Date;\nuse Laravel\\Nova\\Actions\\Action;\nuse Illuminate\\Support\\Collection;\nuse Laravel\\Nova\\Fields\\ActionField... | php | chosen |
[
{
"from": "system",
"value": "Fix service provider when initializing notification library\n"
},
{
"from": "human",
"value": "<?php namespace Krucas\\Notification;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass NotificationServiceProvider extends ServiceProvider\r\n{\r\n /**\r\n... | php | chosen |
[
{
"from": "system",
"value": "Allow getting highest bid from auction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Douche\\Entity;\n\nuse Douche\\Value\\Bid;\n\nclass Auction\n{\n private $id;\n private $name;\n private $bids = [];\n\n public function __construct($id, $name)\... | php | chosen |
[
{
"from": "system",
"value": "Declare UTF-8 encoding in funtions.php\n\nThis prevents breakage with --enable-zend-multibyte and customly configured\nencoding.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Curry;\n\nuse React\\Curry\\Placeholder;\n\nfunction bind(/*$fn, $args...*/)... | php | chosen |
[
{
"from": "system",
"value": "Add API token on registration"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Auth;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Redirect;\nuse SocialAuth;\nuse SocialNorm\\Exceptions\\ApplicationRejectedExcep... | php | chosen |
[
{
"from": "system",
"value": "Make elastic search request more restrictive\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Becklyn\\SearchBundle\\Elasticsearch;\n\nabstract class ElasticsearchRequest\n{\n /**\n * @var string\n */\n protected $index;\n\n\n /**\n * @var ... | php | chosen |
[
{
"from": "system",
"value": "Make generated QR code larger\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace eien\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse ParagonIE\\ConstantTime\\Base32;\nuse PragmaRX\\Google2FA\\Vendor\\Laravel\\Facade as Google2FA;\n\nclass TFAControl... | php | chosen |
[
{
"from": "system",
"value": "Add 2x in the example\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Example 6 - How to get the currently activated payment methods.\n */\ntry\n{\n /*\n * Initialize the Mollie API library with your API key.\n *\n * See: https://www.mollie.com/dashb... | php | chosen |
[
{
"from": "system",
"value": "Print core verison along with daenerys version\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace LotGD\\Core\\Console;\n\nuse LotGD\\Core\\Console\\Command\\ModuleValidateCommand;\nuse LotGD\\Core\\Console\\Command\\ModuleRegisterComman... | php | chosen |
[
{
"from": "system",
"value": "Add in election title to content pane"
},
{
"from": "human",
"value": "<?php\r\n\r\nrequire_once('config.php');\r\nglobal $config;\r\n\r\nrequire_once('page_template_dash_head.php');\r\nrequire_once('page_template_dash_sidebar.php');\r\n\r\n?>\r\n\r\n <div class=\"... | php | chosen |
[
{
"from": "system",
"value": "FIX: Use mysite instead of project() for finding the database backup taken\n"
},
{
"from": "human",
"value": "<?php\n\nif (PHP_SAPI != 'cli') {\n\theader(\"HTTP/1.0 404 Not Found\");\n\texit;\n}\n\n$_SERVER['SCRIPT_FILENAME'] = __FILE__;\nchdir(dirname(dirname(dirna... | php | chosen |
[
{
"from": "system",
"value": "Fix a resolving problem in Lumen"
},
{
"from": "human",
"value": "<?php\n\nnamespace Benwilkins\\FCM;\n\nuse GuzzleHttp\\Client;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Notifications\\ChannelManager;\n\n/**\n * Class FcmNotificationServiceProvide... | php | chosen |
[
{
"from": "system",
"value": "Add ability to list file uploads.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Stripe_FileUpload extends Stripe_ApiResource\n{\n public static function baseUrl()\n {\n return Stripe::$apiUploadBase;\n }\n\n public static function className($class)\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Check repo type and repo name alwways on lower case\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace ApiClients\\Client\\Github\\CommandBus\\Handler\\Repository;\n\nuse ApiClients\\Client\\AppVeyor\\AsyncClient;\nuse ApiClients\\Client\... | php | chosen |
[
{
"from": "system",
"value": "Whitelist the app for tests\n"
},
{
"from": "human",
"value": "<?php\n/**\n * ownCloud - gallery\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Olivier Paroz <owncloud@interfasys.ch... | php | chosen |
[
{
"from": "system",
"value": "Update Config - Date : 5_12_2016\n"
},
{
"from": "human",
"value": "<?php\n$pdo = new PDO('mysql:host=mysql.hostinger.co.uk;dbname=u897984522_immo', 'u897984522_asdev', 'RevoK2016I');"
},
{
"from": "gpt",
"value": "<?php\n$pdo = new PDO('mysql:host=local... | php | chosen |
[
{
"from": "system",
"value": "Correct Google Analytics for Russian domain.\n"
},
{
"from": "human",
"value": "<?php\n/* Must be included by inserting <?php require_once(\"../config.php\"); ?>\n at the top of every page in www directory.\n*/\n// Site language which is used in <html lang=\"…\"> ... | php | chosen |
[
{
"from": "system",
"value": "Use Logo::nails for Nails logo\n"
},
{
"from": "human",
"value": "<div class=\"email-debugger\">\n <div class=\"header\">\n This page is viewable in development environments only.\n <a href=\"http://docs.nailsapp.co.uk\">\n <img src=\"<?=... | php | chosen |
[
{
"from": "system",
"value": "Use next instead of current"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nrequire_once(__DIR__.'/BingoBoard.php');\n\n$input = file(__DIR__ . '/input.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);\n\n$marks = explode(',',current($input... | php | chosen |
[
{
"from": "system",
"value": "Remove load class method from development\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\Debug\\Debug;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/** @var \\Composer\\Autoload\\ClassLoader $loader */\n\n# Config autoload\n$loader = req... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with crud creation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ubiquity\\devtools\\cmd\\commands;\n\nuse Ubiquity\\devtools\\core\\ConsoleScaffoldController;\nuse Ubiquity\\devtools\\cmd\\ConsoleFormatter;\n\nclass CrudCmd extends AbstractCmdModel{... | php | chosen |
[
{
"from": "system",
"value": "Add support for $allow_slugs in is_id()."
},
{
"from": "human",
"value": "<?php\n/**\n * @author Todd Burry <todd@vanillaforums.com>\n * @copyright 2009-2014 Vanilla Forums Inc.\n * @license MIT\n */\n\nif (!function_exists('url')) {\n /**\n * Construct a url... | php | chosen |
[
{
"from": "system",
"value": "Revert to example config file\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n // Basic author information\n 'site-name' => 'Eivind Arvesen',\n 'user' => 'Eivind Arvesen',\n 'email' => 'eivind.arvesen@gmail.com',\n 'theme' => 'default',\n 'st... | php | chosen |
[
{
"from": "system",
"value": "Fix php error message “Notice: Use of undefined constant”.\n"
},
{
"from": "human",
"value": "<?php ///////////////////////////////////////////////////////\n// ----------------------------------------------------------\n// SNIPPET\n// -------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add phpstorm meta for packages\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Concrete\\Core\\Support\\Symbol;\n\nuse Core;\n\nclass MetadataGenerator\n{\n public function render()\n {\n $file = '<?php namespace PHPSTORM_META { $STATIC_METHOD_TYP... | php | chosen |
[
{
"from": "system",
"value": "Update template path to allow PageController test to pass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SilverStripe\\Widgets\\Tests\\WidgetControllerTest;\n\nuse PageController;\nuse ReflectionClass;\nuse SilverStripe\\Dev\\TestOnly;\nuse SilverStripe\\View... | php | chosen |
[
{
"from": "system",
"value": "Add dcterms.creator to find author name\n\nhttps://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/creator"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Embed\\Detectors;\n\nclass AuthorName... | php | chosen |
[
{
"from": "system",
"value": "[FrameworkBundle] Add default pool & system adapter\n\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 absence of variable reference\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distri... | php | chosen |
[
{
"from": "system",
"value": "Implement between method on sort code object\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cs278\\BankModulus;\n\nuse Cs278\\BankModulus\\Exception\\SortCodeInvalidException;\n\nfinal class SortCode\n{\n private $parts;\n\n public function __construct(... | php | chosen |
[
{
"from": "system",
"value": "Add slack integration to logs\n"
},
{
"from": "human",
"value": "<?php\n\ntrait logTrait\n{\n\n public function fetchLogs()\n {\n $this->a_log = Log::getAll(true, array('o_class' => 'CST:'.get_class(), 'fk_what' => 'CST:'.$this->id), array('DESC:t_add'));\n ... | php | chosen |
[
{
"from": "system",
"value": "Make an \"only\" rule accepts its subject as requirement\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Akeneo\\CouplingDetector\\Domain;\n\n/**\n * Rule.\n *\n * @author Julien Janvier <j.janvier@gmail.com>\n * @license http://opensource.org/licenses/MIT MI... | php | chosen |
[
{
"from": "system",
"value": "Implement handler to publish on Mattermost\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MattermostHandler;\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\AbstractProcessingHandler;\n\nclass MattermostHandler extends AbstractProcessingHandler\n{\n public ... | php | chosen |
[
{
"from": "system",
"value": "Fix: Modify Cached Item in Memory, MCC returns now cloned object for in place manipulation\n"
},
{
"from": "human",
"value": "<?php\nnamespace SPHERE\\System\\Cache\\Handler;\n\n/**\n * Class MemoryContainer\n * @package SPHERE\\System\\Cache\\Handler\n */\nclass Me... | php | chosen |
[
{
"from": "system",
"value": "Refresh tokens should not expire.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Auth\\Entities;\n\nuse League\\OAuth2\\Server\\Entities\\RefreshTokenEntityInterface;\nuse League\\OAuth2\\Server\\Entities\\Traits\\EntityTrait;\nuse League\\OAuth2\\... | php | chosen |
[
{
"from": "system",
"value": "Add function to get input password, checkbox, and submit\n"
},
{
"from": "human",
"value": "<?php\n\n if (!function_exists('inputText'))\n {\n function inputText($name, $placeholder='', $value='')\n {\n return input('text', $name, $val... | php | chosen |
[
{
"from": "system",
"value": "Add method check result repository\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Laravel\\Lumen\\Routing\\Controller as BaseController;\n\nclass Controller extends BaseController\n{\n //\n}\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Correct is_published check in showStory function\n"
},
{
"from": "human",
"value": "<?php\n\nclass IssueController extends BaseController {\n\n\tprotected $issue;\n\tprotected $story;\n\n\tfunction __construct(Issue $issue, Story $story)\n\t{\n\t\t$this->issue = $is... | php | chosen |
[
{
"from": "system",
"value": "Add TODO comment for apache 2.4\n"
},
{
"from": "human",
"value": "<?php\nglobal $config;\n$rootfiles = 'index.php';\nif (isset($config['root-content'])) {\n\tforeach ($config['root-content'] as $file) {\n\t\t$file = basename($file);\n\t\t$rootfiles = \"$rootfiles|$... | php | chosen |
[
{
"from": "system",
"value": "Add init to WordPress theme file\n"
},
{
"from": "human",
"value": "<?php\n/*\nPlugin Name: Timber\nDescription: The WordPress Timber Library allows you to write themes using the power Twig templates.\nPlugin URI: http://timber.upstatement.com\nAuthor: Jared Novack ... | php | chosen |
[
{
"from": "system",
"value": "Test for correct log term.\n"
},
{
"from": "human",
"value": "<?php\ninclude_once(dirname(dirname(__DIR__)).'/src/raft/log.php');\n\nclass Raft_Log_Test extends PHPUnit_Framework_TestCase {\n\n\tpublic function setUp() {\n\t\t$this->log = new Raft_Log();\n\t}\n\n\tp... | php | chosen |
[
{
"from": "system",
"value": "Replace non-breaking space html entity with regular space\n"
},
{
"from": "human",
"value": "<?php\n/*\nPlugin Name: WP Style Tag shortcode\nPlugin URI: https://github.com/A7M2/wp-style-tag\nDescription: Add inline CSS to a post\nVersion: 1.0\nAutho... | php | chosen |
[
{
"from": "system",
"value": "Allow setting config individual value\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ghc\\Rosetta;\n\nuse Illuminate\\Config\\Repository;\n\ntrait Configurable\n{\n /**\n * Configuration options\n *\n * @var Repository\n */\n protected $... | php | chosen |
[
{
"from": "system",
"value": "Add ogv and oga support\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'properties' => array(\n\n /**\n * Define the default array of allowed types/extensions\n * This list should be restrictive enough so that malicious users c... | php | chosen |
[
{
"from": "system",
"value": "Use string \"null\" if default driver is set to NULL\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravel\\Scout;\n\nuse Illuminate\\Support\\Manager;\nuse AlgoliaSearch\\Client as Algolia;\nuse Laravel\\Scout\\Engines\\NullEngine;\nuse Laravel\\Scout\\Engi... | php | chosen |
[
{
"from": "system",
"value": "Print message when the bitbucket action is invalid\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Libraries;\n\n\nuse App\\Notifications\\RequestReview;\nuse App\\SlackToken;\nuse App\\User;\n\nclass BitbucketNotification\n{\n public $notification;\n\... | php | chosen |
[
{
"from": "system",
"value": "Use shorter timestamps for log messages\n"
},
{
"from": "human",
"value": "<?php\nclass CbLogger\n{\n\n const PRIORITY_DEBUG = 1;\n const PRIORITY_INFO = 2;\n const PRIORITY_WARN = 3;\n const PRIORITY_ERROR = 4;\n const PRIORITY_DEFAULT = 99;\n... | php | chosen |
[
{
"from": "system",
"value": "Change admin routh to dashboard\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: shawnsandy\n * Date: 7/28/16\n * Time: 10:02 AM\n *\n */\n\nRoute::group( ['prefix' => 'page'], function () {\n\n Route::get('', function(){\n ... | php | chosen |
[
{
"from": "system",
"value": "Configure error reporting differently for development and production\n"
},
{
"from": "human",
"value": "<?php\n\n// production\n// error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED);\n\n// development\nerror_reporting(E_ALL);\n\nini_set('display... | php | chosen |
[
{
"from": "system",
"value": "Add url method to stub"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Browser\\Pages;\n\nuse Laravel\\Dusk\\Browser;\n\nclass HomePage extends Page\n{\n /**\n * Assert that the browser is on the page.\n *\n * @return void\n */\n pub... | php | chosen |
[
{
"from": "system",
"value": "Add `route_strategy` to Demo conf\n"
},
{
"from": "human",
"value": "<?php\n\n$debug = true;\n\nreturn [\n 'debug' => $debug,\n 'kernel' => [\n 'root' => realpath(__DIR__),\n ],\n 'databases' => [\n 'write' => [\n 'driver' => ... | php | chosen |
[
{
"from": "system",
"value": "Add rollback and reset commands.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Register The Artisan Commands\n|--------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Change error responses for Places API\n"
},
{
"from": "human",
"value": "<?php\n\n\trequire_once 'inc/connection.inc.php';\n\trequire_once 'inc/function.inc.php';\n\trequire_once 'inc/constants.inc.php';\n\n\t$response \t= array();\n\t$latitude \t= (float)$_GET['lat... | php | chosen |
[
{
"from": "system",
"value": "Remove setters in character and use constructor instead\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the PierstovalCharacterManagerBundle package.\n *\n * (c) Alexandre Rock Ancelet <pierstoval@gmail.com>\n *\n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Add new properties to parameter entity class.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: igor\n * Date: 13.08.15\n * Time: 16:25\n */\n\nnamespace Darvin\\ConfigBundle\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * Co... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.