conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set default default number of items to 0 (ignore)\n"
},
{
"from": "human",
"value": " public function getPaginationCustomPageSize()\n {\n return <?php echo $this->asPhp(isset($this->config['get']['pagination_custom_page_size']) ? $this->config['get']['paginatio... | php | chosen |
[
{
"from": "system",
"value": "Trim inputs to avoid some empty lines occuring when copy/pasting\n"
},
{
"from": "human",
"value": "<?php\n\n // Retrieve the request\n $xpathExpression = $_POST['xpath_expression'];\n $xmlInput = $_POST['xml_input'];\n\n // Execute XPath query\n $dom... | php | chosen |
[
{
"from": "system",
"value": "Fix missing « c » char on LastFmApiException.php"
},
{
"from": "human",
"value": "<?php\n\nnamespace LastFmApi\\Exception;\n/**\n * CacheException\n *\n * @author Marcos Peña\n */\nclass CacheException extends LastFmApiExeption\n{\n}\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Enable running scripts from files\n\nE.g. \"xp -e AgeInDays.script.php\", which is the equivalent of\n\"cat AgeInDays.script.php | xp -e\"\n\nScripts do not have an enclosing class, but rather just start\nwith the code right away (after some optional \"use\" statements).\nExamp... | php | chosen |
[
{
"from": "system",
"value": "Fix return value of export\n"
},
{
"from": "human",
"value": "<?php\nclass OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{\n\t\n\t// Create the xml for the user supplied\n\tfunction export( $uid ){\n\t\tOC_Log::write('migration','starting export for bookm... | php | chosen |
[
{
"from": "system",
"value": "Add function for get all files. Deleted anonymous function.\n"
},
{
"from": "human",
"value": "<?php\n//----------------------------------------------------------------------------------------------------------------------\n/**\n * Unit Tests for testing optimize_cs... | php | chosen |
[
{
"from": "system",
"value": "Update unit test to test for latest updates in the basic class template class.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the Onema ClassyFile Package.\n * For the full copyright and license information, \n * please view the LICENSE file t... | php | chosen |
[
{
"from": "system",
"value": "Verify that static analysis tools see return types all right\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2017, 2018 Alexey Kopytko <alexey@kopytko.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this ... | php | chosen |
[
{
"from": "system",
"value": "Add missing licence header to migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddAutoStartDurationToMultiplayerRo... | php | chosen |
[
{
"from": "system",
"value": "BAP-15687: Test and merge\n - fixed failed builds\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Oro\\Bundle\\DataAuditBundle\\EventListener;\r\n\r\nuse Oro\\Bundle\\DataAuditBundle\\Provider\\AuditConfigProvider;\r\nuse Oro\\Bundle\\EntityBundle\\Event\\... | php | chosen |
[
{
"from": "system",
"value": "Fix the suggest plugin to perform call() properly.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This is the Sijax response class for suggest callbacks.\n * It supports everything that the base response class provides,\n * while adding some additional functional... | php | chosen |
[
{
"from": "system",
"value": "[NEW] Handle {ref-id:...} in XML import for query properties.\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * filter_QueryfolderScriptDocumentElement\r\n * @package modules.filter.persistentdocument.import\r\n */\r\nclass filter_QueryfolderScriptDocumentElemen... | php | chosen |
[
{
"from": "system",
"value": "Update digital object ref layout\n"
},
{
"from": "human",
"value": "<?php echo get_component('digitalobject', $showComponent, array('iconOnly' => $iconOnly, 'link' => $link, 'resource' => $resource, 'usageType' => $usageType)) ?>\n"
},
{
"from": "gpt",
"... | php | chosen |
[
{
"from": "system",
"value": "Add 'configuration' node in 'product_attribute' fixture\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 * fil... | php | chosen |
[
{
"from": "system",
"value": "Use multibyte str functions in maxlength filter\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Usertext_Filter_MaxLength implements CM_Usertext_Filter_Interface {\n\n\t/** @var int|null */\n\tprivate $_lengthMax = null;\n\n\t/**\n\t * @param int|null $lengthMa... | php | chosen |
[
{
"from": "system",
"value": "Make the topic overview more resilient to there not being any topics\n"
},
{
"from": "human",
"value": "<?php\n\n$header = array(\n\t'title' => 'All topics - '.(\\FelixOnline\\Core\\Settings::get('site_name')),\n\t'meta' => '\t<meta name=\"twitter:card\" content=\"s... | php | chosen |
[
{
"from": "system",
"value": "Add Laravel 5.5 Package Command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace meesoverdevest\\wp_on_laravel;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse meesoverdevest\\wp_on_laravel\\Commands\\InstallWordPress;\n\nclass WPServiceProvider extends Servi... | php | chosen |
[
{
"from": "system",
"value": "Fix a typo in the new \"ApplicationEmailHeraldField\"\n\nSummary: This rule isn't quite right.\n\nTest Plan: Shipped email in with a rule in effect, saw correct value in transcript.\n\nReviewers: btrahan, chad\n\nReviewed By: chad\n\nSubscribers: epriestley\n\nDifferential Revi... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with php version 5.3.3"
},
{
"from": "human",
"value": "<?php\n\n/**\n * An abstract source to bulk load records from.\n * Provides an iterator for retrieving records from.\n * \n * Useful for holiding source configuration state.\n */\nabstract class BulkL... | php | chosen |
[
{
"from": "system",
"value": "Add underscore prefix for routes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BW\\SecurityCheckerBundle\\Controller;\n\nuse BW\\SecurityCheckerBundle\\Entity\\VulnerabilityReport;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony... | php | chosen |
[
{
"from": "system",
"value": "Simplify AnnotationDriver construction in tools/sandbox\n"
},
{
"from": "human",
"value": "<?php\n\nuse Doctrine\\Common\\ClassLoader;\nuse Doctrine\\Common\\Annotations\\AnnotationReader;\nuse Doctrine\\MongoDB\\Connection;\nuse Doctrine\\ODM\\MongoDB\\Configuratio... | php | chosen |
[
{
"from": "system",
"value": "Fix password field name on administration page.\n\n"
},
{
"from": "human",
"value": "<?php\n/** @var array $roles */\n\nreturn [\n 'elements' => [\n\n 'name' => [\n 'text',\n [\n 'label' => __('Display Name'),\n ... | php | chosen |
[
{
"from": "system",
"value": "Add missing dependency for form.Field class\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_Link_Trl_Component extends Kwc_Abstract_Composite_Trl_Component\n{\n public static function getSettings($mainComponentClass)\n {\n $ret = parent::getSe... | php | chosen |
[
{
"from": "system",
"value": "Add annotations and doc block texts.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Search\\View\\Helper;\n\nuse Cake\\View\\Helper;\n\nclass SearchHelper extends Helper\n{\n /**\n * @var array\n */\n public $helpers = [\n 'Url',\n '... | php | chosen |
[
{
"from": "system",
"value": "Support dynamic phrases for rebuild worker name / description\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace wcf\\system\\worker;\n\nuse wcf\\data\\object\\type\\ObjectType;\nuse wcf\\system\\WCF;\n\n/**\n * Represents a worker that is registered with the Reb... | php | chosen |
[
{
"from": "system",
"value": "Add counter when displaying users\n"
},
{
"from": "human",
"value": "<?php\nini_set('display_errors',1);\nini_set('display_startup_errors',1);\nerror_reporting(-1);\n\ndate_default_timezone_set(\"America/New_York\");\n\ndefine(\"DS\", DIRECTORY_SEPARATOR);\nrequire_... | php | chosen |
[
{
"from": "system",
"value": "Return ValueObjects\\DateTime from createdOn method\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the codeliner/shared-domain-set package.\n * (c) Alexander Miertsch <kontakt@codeliner.ws>\n *\n * For the full copyright and license informatio... | php | chosen |
[
{
"from": "system",
"value": "Use signature to define name.\n"
},
{
"from": "human",
"value": "<?php namespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Foundation\\Inspiring;\n\nclass Inspire extends Command\n{\n /**\n * The console command name.\n ... | php | chosen |
[
{
"from": "system",
"value": "Add additional test case db tables\n"
},
{
"from": "human",
"value": "<?php\nrequire_once \"PHPUnit/Extensions/Database/Autoload.php\";\n\nabstract class DataDatabaseTestCase extends PHPUnit_Extensions_Database_TestCase {\n\n\tpublic function getConnection() {\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Remove lower str and improve supported unicodes"
},
{
"from": "human",
"value": "<?php\n\nnamespace USlugify;\n\n/**\n * USlugify\n *\n * @author Florent Denis <dflorent.pokap@gmail.com>\n */\nclass USlugify implements USlugifyInterface\n{\n /**\n * {@inherit... | php | chosen |
[
{
"from": "system",
"value": "Add binding to json decode transformer\n"
},
{
"from": "human",
"value": "<?php\n\nuse Marquine\\Etl\\Container;\n\n$container = Container::getInstance();\n\n// Database\n$container->singleton(Marquine\\Etl\\Database\\Manager::class);\n$container->alias(Marquine\\Et... | php | chosen |
[
{
"from": "system",
"value": "Add method to get css and jss files for deploy\n"
},
{
"from": "human",
"value": "<?\nfunction cssTags(){\n\tglobal $config, $css_files;\n\t$css_tags = '';\n\t\n\tif($config['env'] == 'prod'){\n\t\t$css_tags = '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$co... | php | chosen |
[
{
"from": "system",
"value": "Check if array is set\n"
},
{
"from": "human",
"value": "#!/usr/local/bin/php -f\n<?php\n\n\t/* upgrade embedded users serial console */\n\trequire_once(\"globals.inc\");\n\trequire_once(\"config.inc\");\n\trequire_once(\"functions.inc\");\n\n\tif(file_exists(\"/usr... | php | chosen |
[
{
"from": "system",
"value": "Set authorization on post update\n"
},
{
"from": "human",
"value": "<?php namespace App\\Http\\Requests;\n\nclass PostRequest extends Request {\n\n\t/**\n\t * Get the validation rules that apply to the request.\n\t *\n\t * @return array\n\t */\n\tpublic function rul... | php | chosen |
[
{
"from": "system",
"value": "Add indexes to inventoryitem migration\n"
},
{
"from": "human",
"value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Inventoryitem extends Mig... | php | chosen |
[
{
"from": "system",
"value": "Fix TYPO suscribedBusiness to subscribedBusiness\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Fenos\\Notifynder\\Facades\\Notifynder;\n\nclass NotifynderCategoriesSeeder extends Seeder\n{\n /**\n * Run the database seeds.... | php | chosen |
[
{
"from": "system",
"value": "Remove css rule on p tag\n"
},
{
"from": "human",
"value": "<!-- Date Picker CSS -->\n<link rel=\"stylesheet\" href=\"../css/date-time-picker/jquery-ui-1.10.0.custom.css\">\n<link rel=\"stylesheet\" href=\"../css/date-time-picker/jquery-ui-timepicker-addon.css\">"
... | php | chosen |
[
{
"from": "system",
"value": "Fix Tiny MCE menu bug\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPOrchestra\\BackofficeBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInjection\\... | php | chosen |
[
{
"from": "system",
"value": "Fix assertion to check all permission groups\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Eye4web\\Zf2BoardAbac\\Assertion;\n\nuse Eye4web\\Zf2Abac\\Assertion\\AssertionInterface;\nuse Eye4web\\Zf2Abac\\Provider\\ProviderInterface;\nuse Eye4web\\Zf2Abac\\Ex... | php | chosen |
[
{
"from": "system",
"value": "Make CommentsEmail Constructor more Generic\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Email\n */\nclass CommentsEmail\n{\n public $to;\n public $subject;\n public $message;\n private $comment;\n \n function __construct($comment)\n {\n $this->comm... | php | chosen |
[
{
"from": "system",
"value": "Add unserialized cache component test\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BEAR\\Package;\n\nuse BEAR\\AppMeta\\Meta;\nuse BEAR\\Package\\Context\\CliModule;\nuse BEAR\\Package\\Module\\AppMetaModule;\nuse BEAR\\Sunday\\E... | php | chosen |
[
{
"from": "system",
"value": "Fix syntax error in migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migration\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\n/**\n * Creates the runtime config database schema\n... | php | chosen |
[
{
"from": "system",
"value": "Update table name for master branch.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Da... | php | chosen |
[
{
"from": "system",
"value": "Revert \"removes Geo module from cross-solution/yawik. Module was moved to yawik/geo\"\n\nGeo Modul is needed by Travis tests\n\nThis reverts commit ca2838cca5223b205c69de23a3c9c2277caceb60.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * YAWIK\n * Module Config... | php | chosen |
[
{
"from": "system",
"value": "Return /api/endpoints data as array instead of dict\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OParl\\Website\\API\\Controllers;\n\nuse Illuminate\\Contracts\\Filesystem\\Filesystem;\nuse Illuminate\\Http\\Request;\nuse Symfony\\Component\\Yaml\\Yaml;\n\n... | php | chosen |
[
{
"from": "system",
"value": "CRM-3483: Change origin syncs (IMAP/EWS) to use origin\n- Fix Installer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\UserBundle\\Migrations\\Schema\\v1_15;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\\M... | php | chosen |
[
{
"from": "system",
"value": "Add tab for filling logbook\n"
},
{
"from": "human",
"value": "<?php\n\n/* @var $this yii\\web\\View */\n\nuse yii\\helpers\\Html;\nuse yii\\bootstrap\\Tabs;\n\n$this->title = 'Home';\n?>\n\n<title>Home</title> <!-- For Pjax's sake -->\n<div class=\"site-index\">\n<... | php | chosen |
[
{
"from": "system",
"value": "Remove comment, and remove an unnecessary variable\n"
},
{
"from": "human",
"value": "<?php\n\n// controlador de sessão\nif ($cfg->db->connect) {\n\tif (isset($_COOKIE[$cfg->system->cookie]) && !empty($_COOKIE[$cfg->system->cookie])) {\n\t\t$cookie = explode(\".\", ... | php | chosen |
[
{
"from": "system",
"value": "Remove 'Or Login with' text from the list view. Make it more reusable.\n"
},
{
"from": "human",
"value": "@unless(Butler::providers()->isEmpty())\n <div class=\"row\">\n <div class=\"col-sm-4 col-sm-offset-4 text-center\">\n <h4>Or, login with</... | php | chosen |
[
{
"from": "system",
"value": "Remove useless slash in icon url\n"
},
{
"from": "human",
"value": "<h3><img src=\"<?= $this->url->dir() ?>/plugins/GitlabWebhook/gitlab-icon.png\"/> <?= t('Gitlab webhooks') ?></h3>\n<div class=\"listing\">\n<input type=\"text\" class=\"auto-select\" readonly=... | php | chosen |
[
{
"from": "system",
"value": "Use DI Extension instead of HttpKernel\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Palmtree\\CanonicalUrlBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfo... | php | chosen |
[
{
"from": "system",
"value": "Include autoload.php if it exists\n"
},
{
"from": "human",
"value": "<?php\n$template_directory = get_template_directory();\n\nrequire_once(\"{$template_directory}/functions/vendor.php\");\nrequire_once(\"{$template_directory}/functions/custom-functions.php\");\nreq... | php | chosen |
[
{
"from": "system",
"value": "Add form to allow freezing and unfreezing the exchange.\n"
},
{
"from": "human",
"value": "<?php\n\necho \"<div class='content_box'>\\n\";\necho \"<h3>Freeze!</h3>\\n\";\necho \"The exchange isn't currently frozen.<br/>\\n\";\necho \"</div>\\n\";\n\n?>\n"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Extend from new ComCategoriesControllerCategory controller.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @version\t\t$Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Articles\n * @copyright\tCopyright (C) 2011 Timble CVBA and Contributor... | php | chosen |
[
{
"from": "system",
"value": "Update to latest Atom package version.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Atom Publishing Protocol support\n *\n * @author Михаил Красильников <m.krasilnikov@yandex.ru>\n * @license MIT\n */\nnamespace Mekras\\AtomPub\\Document;\n\nuse Mekras\\Atom\\... | php | chosen |
[
{
"from": "system",
"value": "Update view dengan template header faq\n"
},
{
"from": "human",
"value": "<?php get_header('private'); ?>\n\n <!-- start:main content -->\n <div class=\"container landing-content-faq\">\n <section id=\"content\">\n <!-- start:... | php | chosen |
[
{
"from": "system",
"value": "Fix down migration for gtDirGUID\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddMetadataFie... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in namespace of tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Egrajeda\\ReclineJsBundle\\Tests;\n\nuse Egrajeda\\ReclineJsBundle\\Helper\\ArrayToCsvTransformer;\n\nclass ArrayToCsvTransformerTest extends \\PHPUnit_Framework_TestCase\n{\n pu... | php | chosen |
[
{
"from": "system",
"value": "Rename member variable to better reflect its usage and abstraction"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flow\\Adapter;\n\nuse Flow\\Adapter;\n\nfinal class FileAdapter implements Adapter\n{\n private $source;\n\n public function __construct($sou... | php | chosen |
[
{
"from": "system",
"value": "Change default media path generator to use collections instead of media types\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Generators;\n\nuse Spatie\\MediaLibrary\\Models\\Media;\nuse Spatie\\MediaLibrary\\Pat... | php | chosen |
[
{
"from": "system",
"value": "Add parent ID validation rule.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace common\\models\\comments;\n\nuse yii\\base\\Exception;\nuse yii\\db\\ActiveRecord;\nuse yii\\behaviors\\TimestampBehavior;\nuse yii\\behaviors\\BlameableBehavior;\n\nabstract class ... | php | chosen |
[
{
"from": "system",
"value": "Make main dashboard slightly better"
},
{
"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=\"co... | php | chosen |
[
{
"from": "system",
"value": "Return a Link for collection fields\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SoliantConsulting\\Apigility\\Server\\Hydrator\\Strategy;\n\nuse Zend\\Stdlib\\Hydrator\\Strategy\\StrategyInterface;\nuse DoctrineModule\\Persistence\\ObjectManagerAwareInterf... | php | chosen |
[
{
"from": "system",
"value": "Stop using PHP 5.4 short array syntax. Package only requires 5.3.7\n"
},
{
"from": "human",
"value": "<?php\n\nuse Psr\\Log\\LogLevel;\n\nreturn [\n \n 'delete' => array(\n 'error' => 'There was an error while deleting the log.',\n 'success' => '... | php | chosen |
[
{
"from": "system",
"value": "Put more data into one request, trying to reduce errors and speed things up.\n"
},
{
"from": "human",
"value": "<?php\n$db = new mysqli('localhost', 'appd2dpr_php', '9&3mPMjCJM8+uKy6o', 'appd2dpr_mobileApp');\n$userID=$db->real_escape_string($_GET[\"userID\"]);\n\n$... | php | chosen |
[
{
"from": "system",
"value": "Add Interest Form For Weekend\n\n+ fix email body and subject\n"
},
{
"from": "human",
"value": "{{ $interest_form->firstname }} {{ $interest_form->lastname }} is interested\nin joining the {{ $interest_form->vision_team ? ' Vision ' : \"\" }}\n{{ $interest_form->vi... | php | chosen |
[
{
"from": "system",
"value": "Fix code doc return type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Classes;\n\ninterface QueryableInterface\n{\n /**\n * Finds a record from AD.\n *\n * @param string $name\n * @param array $fields\n *\n * @return bool... | php | chosen |
[
{
"from": "system",
"value": "Make the auth listener work with bot ORM and ODM\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\DoctrineUserBundle\\Auth;\n\nuse Symfony\\Components\\HttpFoundation\\Session;\nuse Symfony\\Framework\\EventDispatcher;\nuse Symfony\\Components\\EventDis... | php | chosen |
[
{
"from": "system",
"value": "Add pageType to rest controller\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: GeoMash\n * Date: 3/17/14\n * Time: 3:03 PM\n */ "
},
{
"from": "gpt",
"value": "<?php\nnamespace application\\nutsNBolts\\controller\\rest\\... | php | chosen |
[
{
"from": "system",
"value": "Add a column to set a \"parent\" fuel\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of SmartGas, an iOS app to find the best gas station nearby.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n * (c) Mateus Silva <mateusgsilva_@hotmail.com>\n... | php | chosen |
[
{
"from": "system",
"value": "Increment Timeout to Share API\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Wnx\\LaravelStats\\ShareableMetrics;\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Exception\\GuzzleException;\n\nclass SendToLaravelShift\n{\n public func... | php | chosen |
[
{
"from": "system",
"value": "Test set model helper method.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Test\\Unit;\n\nuse Test\\TestCase;\nuse Taskforcedev\\CrudApi\\Helpers\\CrudApi;\n\nclass CrudApiHelperTest extends TestCase\n{\n public function testGetRelatedFieldForUserId()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add support for -f option\n\nNow it's possible to use php.php as a test executable for run-tests.php\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n$php = new PHPPHP\\PHP;\n\nif (isset($argv[1]) && !isset($argv[2])) {\n... | php | chosen |
[
{
"from": "system",
"value": "Add static method to handle post-install & post-update composer event\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Luxury\\Foundation\\Cli\\Tasks;\n\nuse Luxury\\Cli\\Task;\n\n/**\n * Class ClearCompiledTask\n *\n * @package Luxury\\Foundation\\Cli\n */\ncl... | php | chosen |
[
{
"from": "system",
"value": "Fix return url env var name\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'adminEmail' => getenv('ADMIN_EMAIL'),\n\n 'hh.clientId' => getenv('HH_CLIENT_ID'),\n 'hh.clientSecret' => getenv('HH_CLIENT_SECRET'),\n 'hh.returnUrl' => getenv('HH_CLIEN... | php | chosen |
[
{
"from": "system",
"value": "Return subscription by subscription reference\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ActiveCollab\\Payments\\Subscription\\SubscriptionEvent;\n\nuse ActiveCollab\\Payments\\Gateway\\GatewayInterface;\nuse ActiveCollab\\Payments\\Subscription\\Subscrip... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/Validator/Constraints/UniqueUsernameValidator.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Valida... | php | chosen |
[
{
"from": "system",
"value": "Add ingredients matrix to navigation\n"
},
{
"from": "human",
"value": "<?php\n\tfunction navigation()\n\t{\n\t\t$navigation = Array();\n\t\t$navigation[] = (object) Array('url' => 'ingredients/table', 'label' => 'Ingredients');\n\t\t$navigation[] = (object) Array('... | php | chosen |
[
{
"from": "system",
"value": "Update control statement negation example\n"
},
{
"from": "human",
"value": "<?php\n\n// basic if - else\nif ($expr1) {\n // if body\n} elseif ($expr2) {\n // elseif body\n} else {\n // else body;\n}\n\n// if with a negation\nif (! $expr1) {\n // if bod... | php | chosen |
[
{
"from": "system",
"value": "Fix admin page content editor\n"
},
{
"from": "human",
"value": "<?php\nnamespace Rbs\\Commerce\\Blocks;\n\nuse Change\\Presentation\\Blocks\\Information;\n\n/**\n * @name \\Rbs\\Commerce\\Blocks\\OrderProcessInformation\n */\nclass OrderProcessInformation extends I... | php | chosen |
[
{
"from": "system",
"value": "[DependencyInjection] Use ivory_ckeditor instead of ivory_ck_editor as alias\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Ivory CKEditor package.\n *\n * (c) Eric GELOEN <geloen.eric@gmail.com>\n *\n * For the full copyright and licens... | php | chosen |
[
{
"from": "system",
"value": "Hide footer sidebar on xs screen\n"
},
{
"from": "human",
"value": "<?php\n/*\n Copyright 2014 Victor Hurdugaci (http://victorhurdugaci.com)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in complian... | php | chosen |
[
{
"from": "system",
"value": "Fix the one offset error"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('wrap')\n <div class=\"container\">\n <div class=\"list-group\">\n <h3>文言文語譯</h3>\n @for ($i = 1; $i <= min(10, count($links)); $i += 1)\n ... | php | chosen |
[
{
"from": "system",
"value": "Use APP_ENV to determine if you use dev or not\n\nLeaving app_dev.php to ease migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = require_once __DIR... | php | chosen |
[
{
"from": "system",
"value": "Replace deprecated \"getName()\" method from Twig extensions.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For th... | php | chosen |
[
{
"from": "system",
"value": "Enable non-standard imports and indexing in `bulk:all`\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands\\Bulk;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass BulkAll extends BaseCommand\n{\n\n protected $signatur... | php | chosen |
[
{
"from": "system",
"value": "Add fade effect to togglable tabs section\n"
},
{
"from": "human",
"value": "<h2 id=\"js-togglable-tabs\">Togglable tabs</h2>\n\n<div>\n <ul class=\"nav nav-tabs\">\n <li class=\"active\"><a href=\"#js-tab-pane1\" data-toggle=\"tab\">data-toggle=\"tab\"</a... | php | chosen |
[
{
"from": "system",
"value": "Fix: Reduce visibility of class members\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Application\\View\\Helper;\n\nuse Zend\\View\\Helper\\AbstractHelper;\n\nclass GitHubRepositoryUrl extends AbstractHelper\n{\n /**\n * @var string\n */\n prot... | php | chosen |
[
{
"from": "system",
"value": "Update docblock & add explanatory comment.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Aurora\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\n\nclass CheckRole\n{\n /**\n * The Guard implementation.\n *\n * @var ... | php | chosen |
[
{
"from": "system",
"value": "Fix Google Analytics plugin to actually work"
},
{
"from": "human",
"value": "<?php\n\n// Support Do Not Track header.\n// http://donottrack.us/\nfunction isDntEnabled() {\n return (isset($_SERVER['HTTP_DNT']) && $_SERVER['HTTP_DNT'] == 1);\n}\n\nif(isDntEnabled()... | php | chosen |
[
{
"from": "system",
"value": "Add a space to let it shine."
},
{
"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_Manage... | php | chosen |
[
{
"from": "system",
"value": "Remove config prefix as we are only using single file configuration\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Support... | php | chosen |
[
{
"from": "system",
"value": "Fix page ID for sanity check page...\n"
},
{
"from": "human",
"value": "<?php\n\n\n$config = SimpleSAML_Configuration::getInstance();\n$sconfig = SimpleSAML_Configuration::getConfig('config-sanitycheck.php');\n\n$info = array();\n$errors = array();\n$hookinfo = arra... | php | chosen |
[
{
"from": "system",
"value": "Fix script-> wrong .ini file passed\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package deployment\n * @subpackage falcon.roles_and_permissions\n * \n * Add permissions to caption asset\n */\n\n$script = realpath(dirname(__FILE__) . '/../../../../') . '/alpha... | php | chosen |
[
{
"from": "system",
"value": "Correct remote version checking location\n"
},
{
"from": "human",
"value": "<?php\n\nfunction checkVersion() {\n\t$current = explode(\"-\", file_get_contents(\"version\"));\n\t$latest = explode(\"-\", file_get_contents(\"https://raw.github.com/VeoPVM/LinMon/master/v... | php | chosen |
[
{
"from": "system",
"value": "Add the username to creation process\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Repositories;\n\nuse App\\Models\\User;\n\nclass UserRepository\n{\n /**\n * @param $userData\n * @return static\n */\n public function findOrCreate($us... | php | chosen |
[
{
"from": "system",
"value": "Use tokenValue instead of id\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with... | php | chosen |
[
{
"from": "system",
"value": "Update metrics class and allow passing Client instance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Delighted;\n\nclass Metrics extends Resource\n{\n public static function retrieve($params = [])\n {\n $response = Client::get('metrics', $params... | php | chosen |
[
{
"from": "system",
"value": "CRM-2511: Access permissions for items in Activity List\n- FT fixes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TestFrameworkBundle\\Tests\\Functional\\Api\\Rest;\n\nuse Oro\\Bundle\\TestFrameworkBundle\\Test\\WebTestCase;\nuse Oro\\Bundle\\Us... | php | chosen |
[
{
"from": "system",
"value": "Add new line at end"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\t'database' => [\n\t 'host' => 'localhost',\n\t\t'db_name' => 'test',\n\t\t'user' => 'root',\n\t\t'password' => ''\n\t], \n 'locale' => [\n\t 'timezone' => 'Europe/Rome',\n\t\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.