conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add indexes to 'parent_id', 'lft', 'rgt' columns by default. The point here is to have some indexes. Of course, the appropiate ones will depend on the application and specific use case.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Bl... | php | chosen |
[
{
"from": "system",
"value": "Add authorship in taxa name. Improve species \"size\" text description. Fix agent assignments.\n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1241 baf6b65b-9124-4dc3-b1c0-01155b4af546\n"
},
{
"from": "human",
"value": "<?php\r\n/* connector for Hydrothermal... | php | chosen |
[
{
"from": "system",
"value": "Delete page using sf_admin styles"
},
{
"from": "human",
"value": "<?php use_helper('ImagePool') ?>\n\n<h2>Delete this image?</h2>\n\n<?php echo pool_image_tag($image, '300') ?>\n<p><?php echo $image['original_filename'] ?></p>\n\n<?php if(count($models)): ?>\n <... | php | chosen |
[
{
"from": "system",
"value": "BAP-1924: Remove bundle dependencies on application\n- added hardcoded replacement for Assetic and Twig bundles config\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\DistributionBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyIn... | php | chosen |
[
{
"from": "system",
"value": "Update MenuBuilder to follow changes of KnpMenu"
},
{
"from": "human",
"value": "<?php\n\nnamespace Admingenerator\\GeneratorBundle\\Menu;\n\nuse Knp\\Menu\\FactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Router;... | php | chosen |
[
{
"from": "system",
"value": "Sort SilverStripe versions by newest first.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Composer\\Package\\LinkConstraint\\MultiConstraint;\nuse Composer\\Package\\LinkConstraint\\VersionConstraint;\n\n/**\n * A SilverStripe version which an extension can be com... | php | chosen |
[
{
"from": "system",
"value": "Use FQNs in the validation exception docblocks\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Contracts\\Validation;\n\nuse RuntimeException;\nuse Illuminate\\Contracts\\Support\\MessageProvider;\n\nclass ValidationException extends RuntimeException ... | php | chosen |
[
{
"from": "system",
"value": "Edit credit to marketpalce snippet\n"
},
{
"from": "human",
"value": "<?php\nBalanced\\Marketplace::mine()->owner_customer->bank_accounts->query()->first()->credits->create(array(\n \"amount\" => \"2000\",\n \"description\" => \"Credit from order escrow to mar... | php | chosen |
[
{
"from": "system",
"value": "Fix rest api test class\n"
},
{
"from": "human",
"value": "<?php\n\nclass Papi_REST_API_Test extends WP_UnitTestCase {\n\n\tpublic function setUp() {\n\t\tparent::setUp();\n\t\t$this->api = new Papi_REST_API;\n\t}\n\n\tpublic function tearDown() {\n\t\tparent::tearD... | php | chosen |
[
{
"from": "system",
"value": "Use Estaty\\Application in controllers type hints\n\nCloses #5\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Estaty\\Controller;\n\nuse Estaty\\Model\\Property\\Apartment\\Apartment;\n\nclass HomepageController\n{\n public function show(\\Silex\\Applicati... | php | chosen |
[
{
"from": "system",
"value": "Implement helper method for month to determine number of days in month\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\n/**\n * This file is part of the jordanbrauer/unit-converter PHP package.\n *\n * @copyright 2018 Jordan Brauer <jbrauer.inc... | php | chosen |
[
{
"from": "system",
"value": "Add all code annotations in single line block comments instead of only @var.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PHP version 5\n *\n * @author Christian Schiffler <c.schiffler@cyberspectrum.de>\n * @copyright 2014 Contao Community Alliance\n * @lice... | php | chosen |
[
{
"from": "system",
"value": "Revert back to FontAwesome 4.6.3\n\nTest to show how to use GitHub\n"
},
{
"from": "human",
"value": "<?php\n\n// Register Style\nfunction sherpa_styles() {\n\n\t// We are going to defer loading our styles until after WooCommerce has loaded its styles IF WooCommerce... | php | chosen |
[
{
"from": "system",
"value": "Fix an attribute for fake resource\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the BEAR.QueryRepository package.\n *\n * @license http://opensource.org/licenses/MIT MIT\n */\nnamespace FakeVendor\\HelloWorld\\Resource\\App;\n\nuse BEAR\\Re... | php | chosen |
[
{
"from": "system",
"value": "Update tenant name in tenantarea\n"
},
{
"from": "human",
"value": "<div id=\"navigation\" class=\"navbar navbar-default navbar-fixed-top\">\n <div class=\"container\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-tog... | php | chosen |
[
{
"from": "system",
"value": "Change the way regexps are evaluated (fix bug that occured after re-sorting)\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Hicoria\\Xpay;\n\n\nuse Nette\\Object;\n\nclass XpaySmsDispatcher extends Object {\n\n /**\n * @var IMessageProcessor[]\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix broken install caused by broadcast message"
},
{
"from": "human",
"value": "<div class='container'>\n\n\t@if(\\App\\HorizontCMS::isInstalled() && \\Settings::get('admin_broadcast') != '')\n\t<div class=\"alert alert-info alert-dismissible\" role=\"alert\">\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "[2.0] Fix bug in detection of global Doctrine Cli Configuration finding the empty replacement configuration before the correct one.\n\ngit-svn-id: 6d62a1918bfbe91cfb3198953e3056b244989dd5@7322 2b2ae520-0f61-44a6-8c59-7e116ffd6265\n"
},
{
"from": "human",
"value": "<... | php | chosen |
[
{
"from": "system",
"value": "Trim the output of vagrantFile.php to get rid of stray new line at the end\n\n"
},
{
"from": "human",
"value": "<?php\n\nuse Jalle19\\VagrantRegistryGenerator\\Registry\\Manifest\\Provider;\n\n/* @var Provider $provider */\n/* @var string $boxName */\n/* @var string... | php | chosen |
[
{
"from": "system",
"value": "Revert using array_merge due to numerical array issues\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Starlit Db.\n *\n * @copyright Copyright (c) 2019 Starweb AB\n * @license BSD 3-Clause\n */\n\nnamespace Starlit\\Db;\n\nuse PDO;\n\nclass PdoFactory implement... | php | chosen |
[
{
"from": "system",
"value": "Use subscripts for provided methods.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pippin;\n\nuse ArrayAccess;\n\nfinal class IPN implements ArrayAccess {\n\n\tprivate $data = [];\n\n\tpublic function __construct($data) {\n\t\t$this->data = $data;\n\t}\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Add a link to the name\n"
},
{
"from": "human",
"value": "<?php\n if (!isset($_SESSION)) {\n session_start();\n }\n?>\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title> Sunrise Hospital </title>\n <link href=\"assets/css/bootstrap.min.css\" ... | php | chosen |
[
{
"from": "system",
"value": "Set code style check paths\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;\n\nreturn static function (ContainerConfigurator $config) {\n (require __DIR__ . '/vendor/prezly/code-... | php | chosen |
[
{
"from": "system",
"value": "Fix invalid argument to WritableLocal.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Twistor\\Tests;\n\nuse League\\Flysystem\\Adapter\\Local;\nuse League\\Flysystem\\Filesystem;\nuse Twistor\\FlysystemStreamWrapper;\nuse Twistor\\Tests\\WritableLocal;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Add default of 0 for sqlite for TaskOutput->warningCount\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse SimplyTestable\\BaseMigrationsBundle\\Migration\\BaseMigration,\n Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-genera... | php | chosen |
[
{
"from": "system",
"value": "Update subject of signup email.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Handler\\Email;\n\nuse App\\Command\\Email\\AbstractSendEmailCommand;\n\nclass SendSignupReceivedEmailHandler extends AbstractEmailHandler\n{\n protected function configure... | php | chosen |
[
{
"from": "system",
"value": "Add color change to template.\n"
},
{
"from": "human",
"value": "<?php\n/*\nTemplate Name: 3 Spalten\n*/\n?>\n\n<div class=\"clearfix\">\n <?php get_template_part('templates/page', 'header'); ?>\n\n <div class=\"row-fluid\">\n <div class=\"span4\">\n <?php... | php | chosen |
[
{
"from": "system",
"value": "Add page keywords for new 5.6.1 page\n\n\nFormer-commit-id: 4b8c1dd1a20b6d0fb8229ef8a29adf8ba92807f4"
},
{
"from": "human",
"value": "<?\n\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\nclass ConcreteUpgradeVersion561Helper {\n\n\t\n\tpublic $dbRefreshTables = ... | php | chosen |
[
{
"from": "system",
"value": "Make the description field much bigger\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Admin;\n\nuse Sonata\\AdminBundle\\Admin\\Admin;\nuse Sonata\\AdminBundle\\Datagrid\\DatagridMapper;\nuse Sonata\\AdminBundle\\Datagrid\\ListMapper;\nuse Sonata\\... | php | chosen |
[
{
"from": "system",
"value": "Add getters and setters for old and new password model\n"
},
{
"from": "human",
"value": "<?php \nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Model;\n\nuse Symfony\\Component\\Security\\Core\\Validator\\Constraints as SecurityAssert;\nuse Symfony\\Compon... | php | chosen |
[
{
"from": "system",
"value": "Add stub for registration endpoint\n"
},
{
"from": "human",
"value": "<?php\n\nuse SlimController\\SlimController;\nuse rmatil\\cms\\Constants\\HttpStatusCodes;\nuse rmatil\\cms\\Entities\\User;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\DBAL\\DBALException;\... | php | chosen |
[
{
"from": "system",
"value": "Add html title to the search page.\n"
},
{
"from": "human",
"value": "<h3>Search: {{ $search }} </h3>\n@if (empty($items))\nNo matches found.\n@endif\n@foreach ($items as $item)\n<div class=\"row\">\n\n<div class=\"col-md-6\">\n {{$item->symbol}} <a href=\"{{ route... | php | chosen |
[
{
"from": "system",
"value": "Insert custom commands through the getCommands() function.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version $Id$\n * @category Nooku\n * @package Nooku_Server\n * @subpackage Articles\n * @copyright Copyright (C) 2011 Timble CVBA and Contribu... | php | chosen |
[
{
"from": "system",
"value": "Test ingeschakeld om te testen of login scherm getoond wordt\n"
},
{
"from": "human",
"value": "<?php\n\nclass Webenq_Test_ControllerTestCase_UserControllerTest extends Webenq_Test_Controller\n{\n public function test() {}\n\n// public function testLoginFormIs... | php | chosen |
[
{
"from": "system",
"value": "Docs: Update createInstance documentation to be more clear\n\nFormer-commit-id: c79279a20551c2cac39e2b2d74a8941914b62d98\nFormer-commit-id: 935f0112079632ec2940db2ca281707f2007815f"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Foundation\\Service... | php | chosen |
[
{
"from": "system",
"value": "[model] Add ability to get ISO4217 info. add a request and action for that. Simply payment interface.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Payum\\Paypal\\ExpressCheckout\\Nvp\\Action;\n\nuse Payum\\Core\\Action\\ActionInterface;\nuse Payum\\Core\\Brid... | php | chosen |
[
{
"from": "system",
"value": "Add tooltip to event meta\n"
},
{
"from": "human",
"value": "<?php \n\tglobal $post;\n\t$host = get_post(get_post_meta($post->ID, IT_PREFIX.\"event_host\", true));\n?>\n\n<ul class=\"meta event-meta\">\n\t<li class=\"icon-clock\">\n\t\t<?php echo date(\"j F\", strto... | php | chosen |
[
{
"from": "system",
"value": "Add functions requiring requestor to include their user ID, and to require that the user has a specific role.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ApplicationController extends BaseController {\n\n\tfunction renderWithoutLayout($options = array()) {\n\t... | php | chosen |
[
{
"from": "system",
"value": "Use the HttpExceptionInterface rather than a render function here\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pterodactyl\\Exceptions\\Repository;\n\nclass RecordNotFoundException extends RepositoryException\n{\n /**\n * Handle request to render thi... | php | chosen |
[
{
"from": "system",
"value": "Throw exception in not implemented methods\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace stekycz\\Cronner\\TimestampStorage;\r\n\r\nuse Nette\\Object;\r\nuse DateTime;\r\nuse stekycz\\Cronner\\ITimestampStorage;\r\n\r\n/**\r\n * @author Martin Štekl <mar... | php | chosen |
[
{
"from": "system",
"value": "Remove the redundant password function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Faker\\Provider\\zh_TW;\n\nclass Internet extends \\Faker\\Provider\\Internet\n{\n public function userName()\n {\n return \\Faker\\Factory::create('en_US')->us... | php | chosen |
[
{
"from": "system",
"value": "Add `web` middleware to defaults\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Beanstalkd UI Configuration\n |------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Remove custom icon and name, this should be set from slack webhook configuration page\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MathieuImbert\\Slack\\Logger;\n\nclass SlackRequest\n{\n\n private $webhookUrl;\n\n /**\n * SlackRequest constructor... | php | chosen |
[
{
"from": "system",
"value": "Add file size converter test.\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2020, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full ... | php | chosen |
[
{
"from": "system",
"value": "Update header name change for turbolinks 5\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\n\nclass TurbolinksSupport\n{\n /**\n * Add turbolinks-redirect header if previous request\n * was a redirect.\n *\... | php | chosen |
[
{
"from": "system",
"value": "Allow profile page for bot\n"
},
{
"from": "human",
"value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\nnamespace App\\... | php | chosen |
[
{
"from": "system",
"value": "Update docblock in variable expression evaluator\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pinq\\Expressions;\n\n/**\n * Implementation of the expression evaluator using a variable\n * from the variable table.\n *\n * @author Elliot Levin <elliotlevin@ho... | php | chosen |
[
{
"from": "system",
"value": "Add proper status code param to redirects (for FastCGI's benefit)\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/*\r\n\tCopyright (c) 2012 Colin Rotherham, http://colinr.com\r\n\thttps://github.com/colinrotherham\r\n*/\r\n\r\n\tnamespace CRD\\Core;\r\n\r\n\tclass ... | php | chosen |
[
{
"from": "system",
"value": "Use md5 hash instead of filename to determine if template must be uploaded\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DocumentManipulationBundle\\Manipulator;\n\nuse Zend\\Service\\LiveDocx\\MailMerge;\nuse Symfony\\Component\\HttpFoundation\\Fil... | php | chosen |
[
{
"from": "system",
"value": "Remove obsolete error class 'DatabaseDriverError'\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * PHP-Auth (https://github.com/delight-im/PHP-Auth)\n * Copyright (c) delight.im (https://www.delight.im/)\n * Licensed under the MIT License (https://opensource.org/l... | php | chosen |
[
{
"from": "system",
"value": "Make items per page configurable\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Pager package.\n *\n * (c) Kristen Gilden kristen.gilden@gmail.com\n *\n * For the full copyright and license information, please view the LICENSE\n * file t... | php | chosen |
[
{
"from": "system",
"value": "Return all jobs for testing purposes\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\n| Here is ... | php | chosen |
[
{
"from": "system",
"value": "Allow fetching class name of configured PaymentProcessor\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace models;\n\n/**\n * Supplies instances of the configured PaymentProcessor implementation.\n */\nclass PaymentProcessorFactory {\n\n\t/**\n\t * @return insta... | php | chosen |
[
{
"from": "system",
"value": "Make tests compatible with php 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MockaTests;\n\nuse Mocka\\MethodMock;\n\nclass MethodMockTest extends \\PHPUnit_Framework_TestCase {\n\n public function testIntegrated() {\n $method = new MethodMock(... | php | chosen |
[
{
"from": "system",
"value": "[AllBundles] Fix incorrect namespaces in test classes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\NodeBundle\\Tests\\Helper;\n\nuse Kunstmaan\\UtilitiesBundle\\Helper\\Slugifier;\nuse PHPUnit\\Framework\\TestCase;\n\nclass SlugifierTest extends ... | php | chosen |
[
{
"from": "system",
"value": "Remove Unnecessary Code from Model Class\n\nRemove Unnecessary Code from Model Class\n\n`Model::__construct()` does not actually accomplish anything anymore. It\nis just a stub to `ADOdb_Active_Record`\n\n- Pass onto parent class by removing stub constructor\n"
},
{
"fr... | php | chosen |
[
{
"from": "system",
"value": "Add setKey method to store contract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Contracts;\n\ninterface Store\n{\n /**\n * Set the model to be used for the table.\n *\n * @param mixed $model\n * @return Store\... | php | chosen |
[
{
"from": "system",
"value": "Fix logout route not working in admin\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\n| This fi... | php | chosen |
[
{
"from": "system",
"value": "Exclude entries that don't have their own URLs\n"
},
{
"from": "human",
"value": "<?php namespace Craft;\n\nclass SimpleSitemapController extends BaseController\n{\n\tprotected $allowAnonymous = true;\n\n\tpublic function actionIndex()\n\t{\n\t\t$xml = new \\SimpleX... | php | chosen |
[
{
"from": "system",
"value": "Include config in exception message\n\nAdded the configuration needed to disable view annocations."
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the FOSRestBundle package.\n *\n * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>\n *... | php | chosen |
[
{
"from": "system",
"value": "Set production as default environment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MyTravel\\Core\\Config;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\n\nfinal cla... | php | chosen |
[
{
"from": "system",
"value": "Update smoke test compiler pass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Smartbox\\Integration\\FrameworkBundle\\DependencyInjection\\CompilerPasses;\n\nuse Smartbox\\Integration\\FrameworkBundle\\Tools\\SmokeTests\\ConnectivityCheckSmokeTest;\nuse Symf... | php | chosen |
[
{
"from": "system",
"value": "Rename 'user' to 'users' on poll model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Poll extends Model\n{\n use SoftDeletes;\n \n protected $hid... | php | chosen |
[
{
"from": "system",
"value": "Remove unneeded monster indexer code.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Repositories\\Indexers;\n\nuse Repositories\\LocalRepository;\n\nclass MonsterGroup implements IndexerInterface\n{\n protected $database;\n\n const DEFAULT_INDEX = \"mons... | php | chosen |
[
{
"from": "system",
"value": "Add play icon to demo button\n"
},
{
"from": "human",
"value": "<?php echo $head; ?>\n <div class=\"pure-g centered-row\">\n <div class=\"pure-u-1\">\n <div class=\"l-box\">\n <p> <?php\n echo _('Hey!');\n ... | php | chosen |
[
{
"from": "system",
"value": "Add deleted status to list command\n"
},
{
"from": "human",
"value": "<?php namespace NZTim\\Queue\\Commands;\n\nuse Illuminate\\Support\\Collection;\nuse NZTim\\Queue\\QueuedJob\\QueuedJob;\n\nclass ListJobs\n{\n public function table(Collection $entries)\n {... | php | chosen |
[
{
"from": "system",
"value": "Include userid in API login\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bishopm\\Connexion\\Http\\Controllers\\Auth;\n\nuse JWTAuth;\nuse Tymon\\JWTAuth\\Exceptions\\JWTException;\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add a $_primary_key in Model_Keyword to remove errors\n\nThis should also add the possibility to do:\n\n for($i = 1; $i <= count($keywords); $i++) {\n foreach ($item->{'jayps_search_word_occurence'.$i} as $k => $keyword) {\n d(\"$k, $keyword->mo... | php | chosen |
[
{
"from": "system",
"value": "Allow empty values for select box\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace asdfstudio\\admin\\forms\\widgets;\n\nuse Yii;\nuse yii\\base\\InvalidConfigException;\nuse yii\\db\\ActiveQuery;\nuse yii\\helpers\\Html;\nuse asdfstudio\\admin\\helpers\\AdminH... | php | chosen |
[
{
"from": "system",
"value": "Make sure the foreach receives an array"
},
{
"from": "human",
"value": "<?php\r\n\r\n/*\r\n|--------------------------------------------------------------------------\r\n| LaravelWPAdminYouTried Routes\r\n|-----------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix order of client init and setting API key header\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SaasRunner;\n\nuse Guzzle;\n\nclass Client {\n\n public function __construct($apiKey, $apiHost = 'api.saasrunner.com') {\n $this->setApiKey($apiKey);\... | php | chosen |
[
{
"from": "system",
"value": "Change all composers to use an array on views\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace REBELinBLUE\\Deployer\\Providers;\n\nuse Illuminate\\Contracts\\View\\Factory;\nuse Illuminate\\Support\\ServiceProvider;\nuse REBELinBLUE\\Deployer\\Composers\\Activ... | php | chosen |
[
{
"from": "system",
"value": "Add warning if Sphinx Node is offline.\n"
},
{
"from": "human",
"value": "@extends('common.template')\n\n@section('content')\n <h1>Sphinx Dashboard</h1>\n \n@endsection\n"
},
{
"from": "gpt",
"value": "@extends('common.template')\n\n@section('conte... | php | chosen |
[
{
"from": "system",
"value": "Order the same way collection is ordered in the game.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(__DIR__ . '/hs-www.php');\n\nclass HearthstoneTextSearch {\n public function go() {\n $q = isset($_GET['q']) ? $_GET['q'] : '';\n $args['q'] = $q;\n... | php | chosen |
[
{
"from": "system",
"value": "Add 'post save error' language string.\n"
},
{
"from": "human",
"value": "<?php \n\n/**\n * SuperSticky language strings.\n *\n * @author Stephen Lewis (http://github.com/experience/)\n * @copyright Experience Internet\n * @package Supersticky... | php | chosen |
[
{
"from": "system",
"value": "Update fetch service to use new API\n"
},
{
"from": "human",
"value": "<?php\nnamespace Guttmann\\NautCli\\Service;\n\nuse GuzzleHttp\\Client;\n\nclass FetchLatestService\n{\n\n public function fetch(Client $client, $instance)\n {\n $response = $client-... | php | chosen |
[
{
"from": "system",
"value": "Add binding name to route list command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Honeybee\\FrameworkBinding\\Silex\\Console\\Command\\Route;\n\nuse Honeybee\\FrameworkBinding\\Silex\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\Inp... | php | chosen |
[
{
"from": "system",
"value": "Use the Controllers namespace rather than Http\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServicePr... | php | chosen |
[
{
"from": "system",
"value": "Use tables_names.users config for User validation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backpack\\PermissionManager\\app\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass UserStoreCrudRequest extends FormRequest\n{\n /**\... | php | chosen |
[
{
"from": "system",
"value": "Remove type hinting broke by Promises\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Alchemy\\expression;\nuse Exception;\n\n\n/**\n * Represent an UPDATE statment in SQL\n */\nclass Update extends Query {\n protected $table;\n protected $values = array... | php | chosen |
[
{
"from": "system",
"value": "Fix class name, got it totally wrong.\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * An exception for Zend_Db_Dao_Select.\n *\n * @category ZendExt\n * @package ZendExt_Db_Dao\n * @copyright 2010 Juan Sotuyo\n * @license Copyright (C) 2010. All rights rese... | php | chosen |
[
{
"from": "system",
"value": "Fix for links color in latest posts block\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package Last_posts\n * @category blocks\n * @author Nazar Mokrynskyi <nazar@mokrynskyi.com>\n * @copyright Copyright (c) 2014-2016, Nazar Mokrynskyi\n * @license MIT... | php | chosen |
[
{
"from": "system",
"value": "Add a space to let it shine.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * _s Theme Customizer\n *\n * @package _s\n * @since _s 1.2\n */\n\n/**\n * Add postMessage support for site title and description for the Theme Customizer.\n *\n * @param WP_Customize_Mana... | php | chosen |
[
{
"from": "system",
"value": "Update docblocks to return the model after calling save on the repository.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enzyme\\Axiom\\Repositories;\n\nuse Enzyme\\Axiom\\Models\\ModelInterface;\nuse Enzyme\\Axiom\\Atoms\\AtomInterface;\n\n/**\n * Manages a... | php | chosen |
[
{
"from": "system",
"value": "Replace getPage() with getPageOrRoot() to make tests work again\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Component_View_Helper_ComponentWithMaster extends Kwf_Component_View_Helper_Component\n{\n public function componentWithMaster(array $componentWith... | php | chosen |
[
{
"from": "system",
"value": "Add environment development error reporting settings\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This makes our life easier when dealing with paths. Everything is relative\n * to the application root now.\n */\nchdir(dirname(__DIR__));\n\n// Decline static fil... | php | chosen |
[
{
"from": "system",
"value": "[sfDoctrineRestGeneratorPlugin]: Support foreign keys serialization during object creation\n\ngit-svn-id: 47f39bd1a2e701b74bb9d256998bb3928a7fe1f0@26289 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": " protected function updateObjectFromRequ... | php | chosen |
[
{
"from": "system",
"value": "Remove constructor constraint from interface declaration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Github\\Api;\n\nuse Github\\Client;\n\n/**\n * Api interface\n *\n * @author Joseph Bielawski <stloyd@gmail.com>\n */\ninterface ApiInterface\n{\n publi... | php | chosen |
[
{
"from": "system",
"value": "Throw an HttpException when a bad request is made\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by mcfedr on 05/05/2014 20:12\n */\n\nnamespace AppShed\\Extensions\\StorageBundle\\Exception;\n\nclass MissingAppParametersException extends \\Exception\n{\n... | php | chosen |
[
{
"from": "system",
"value": "TASK: Work around when cloning proxied entities with embeddables\n"
},
{
"from": "human",
"value": "<?php\nnamespace TYPO3\\Flow\\Tests\\Functional\\Persistence\\Fixtures;\n\n/*\n * This file is part of the TYPO3.Flow package.\n *\n * (c) Contributors of the Neos Pr... | php | chosen |
[
{
"from": "system",
"value": "Read attrs from config file\n"
},
{
"from": "human",
"value": "<?php\n\nclass Asset extends EActiveResource\n{\n public $id;\n\n public static function model($classname=__CLASS__)\n {\n return parent::model($classname);\n }\n\n public function ... | php | chosen |
[
{
"from": "system",
"value": "Remove comment referencing condition check\n"
},
{
"from": "human",
"value": "<?php\n\nclass TalkCommentEmailService extends EmailBaseService\n{\n\n protected $talk;\n protected $comment;\n\n public function __construct($config, $recipients, $talk, $comment... | php | chosen |
[
{
"from": "system",
"value": "Support child parent site relationships\n"
},
{
"from": "human",
"value": "<?php\r\nclass Metum extends MetaAppModel {\r\n\tvar $name = 'Metum';\r\n\tvar $useTable = 'meta';\r\n}\r\n?>"
},
{
"from": "gpt",
"value": "<?php\r\nclass Metum extends MetaAppMo... | php | chosen |
[
{
"from": "system",
"value": "Tag an image based on detected visual content which mean running a CNN on top of it."
},
{
"from": "human",
"value": "<?php\n/*\n * PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github\n * https://github.com/sym... | php | chosen |
[
{
"from": "system",
"value": "Add some more info in vendor download page\n"
},
{
"from": "human",
"value": "<?php\nuse app\\commands\\FilesController;\nuse yii\\bootstrap\\Html;\n?>\n\n<p>\n\tVendor files may be required by\n<?php\necho Html::a('D-BF', [\n '/download/index',\n 'type' => Fi... | php | chosen |
[
{
"from": "system",
"value": "Make the topic overview more resilient to topics with no articles in\n"
},
{
"from": "human",
"value": "\t\t\t\t\t\t\t<a href=\"<?php echo $topic->getUrl(); ?>\">\n\t\t\t\t\t\t\t\t<div class=\"article-topic\" style=\"background-image: url('<?php echo $topic->getImag... | php | chosen |
[
{
"from": "system",
"value": "Enable i18n plugin instead of `sfAutoloadPlugin`\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nclass ProjectConfiguration extends sfProjectConfiguration\n{\n public function setup()\n {\n $this->enablePlugins('... | php | chosen |
[
{
"from": "system",
"value": "fix(backend): Fix fatal error in the websocket server\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: stas\n * Date: 24.01.16\n * Time: 20:26\n */\nnamespace WebsocketServerBundle\\Model\\Message\\Client\\Call;\n\nuse JMS\\Serializer... | php | chosen |
[
{
"from": "system",
"value": "[Bundle] Make getPath() less error prone by allowing both backward and forward slashes\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the ... | php | chosen |
[
{
"from": "system",
"value": "Add API to add routes\n"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Extend;\n\nuse Illuminate\\Contracts\\Container\\Container;\nuse Flarum\\Forum\\Actions\\IndexAction;\n\nclass ForumClient implements ExtenderInterface\n{\n protected $assets = [];\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.