conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove nonfunctional and unnecessary text field factory method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ehann\\RediSearch\\Fields;\n\nclass TextField extends AbstractField\n{\n protected $weight = 1.0;\n\n public function getType(): string\n {\... | php | chosen |
[
{
"from": "system",
"value": "Make unit test class abstract\n"
},
{
"from": "human",
"value": "<?php\n class UnitTest {\n public $assertCount = 0;\n public $passCount = 0;\n\n public function assertTrue( $condition, $description = '' ) {\n ++$this->assertCount;... | php | chosen |
[
{
"from": "system",
"value": "Fix input bug in laravel 5.3v\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Created by ARTWIN.PRO\n *\n * Date: 26.10.16\n */\nnamespace Artwinpro\\LaravelSearch;\n\nuse Input;\n\ntrait SearchTrait\n{\n\n public function scopeSearch($query)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong usage of \\ReflectionProperty on extraction\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Onion\\Framework\\Hydrator;\n\ntrait PropertyHydrator\n{\n /**\n * @inheritdoc\n */\n public function hydrate(array $d... | php | chosen |
[
{
"from": "system",
"value": "Make config default to writable"
},
{
"from": "human",
"value": "<?php\n/**\n * Phossa Project\n *\n * PHP version 5.4\n *\n * @category Library\n * @package Phossa2\\Config\n * @copyright Copyright (c) 2016 phossa.com\n * @license http://mit-license.org/ MIT L... | php | chosen |
[
{
"from": "system",
"value": "Add type conversion for mime\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the MessageX PHP SDK package.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n... | php | chosen |
[
{
"from": "system",
"value": "Add support for custom serializer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bridge\\HttpApi\\Worker;\n\nuse Bridge\\HttpApi\\Serializer\\PathDenormalizer;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Nor... | php | chosen |
[
{
"from": "system",
"value": "Drop support for arrays and add string type hint in encode()\n"
},
{
"from": "human",
"value": "<?php\nnamespace qnd;\n\n/**\n * Encode\n *\n * @param string|array $var\n *\n * @return string|array\n */\nfunction encode($var)\n{\n static $charset;\n\n if ($cha... | php | chosen |
[
{
"from": "system",
"value": "BAP-9269: Fix unit tests after doctrine/cache package was update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\EntityExtendBundle\\Tests\\Unit\\Mapping;\n\nuse Doctrine\\Common\\Cache\\ArrayCache;\nuse Doctrine\\ORM\\Mapping\\ClassMetadata;\n\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix Memcachestat. Using wrong classname\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@902 44740490-163a-0410-bde0-09ae8108e29a\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('../_include.php');\n\ntry {\n\n\t$config = SimpleSAML_Configuration::ge... | php | chosen |
[
{
"from": "system",
"value": "Remove import DatabaseTransactions as causes conflict\n"
},
{
"from": "human",
"value": "<?php\n\nuse Laracasts\\Integrated\\Extensions\\Selenium as IntegrationTest;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass UserRegistrationProcessTest ext... | php | chosen |
[
{
"from": "system",
"value": "Fix handling broken daily endpoint\n"
},
{
"from": "human",
"value": "<h3>{{ trans('achievement.daily.type.'.$type) }}</h3>\n<ul class=\"itemList\">\n @foreach($daily->achievements->{$type} as $achievement)\n @if(isset($achievement->achievement))\n ... | php | chosen |
[
{
"from": "system",
"value": "Reset email has been corrected\n"
},
{
"from": "human",
"value": "Hi,\n\nClick here to reset your password: <br> <br>\n\n{{ url('password/reset/'.$token) }}\n"
},
{
"from": "gpt",
"value": "Hi,<br><br>\n\nClick here to reset your password: <br> <br>\n\... | php | chosen |
[
{
"from": "system",
"value": "Add error message for WordTest\n"
},
{
"from": "human",
"value": "<?php\nclass WordsTest extends PHPUnit_Framework_TestCase\n{\n public function testWords()\n {\n require('static.words.php');\n $count = count($words);\n $this->assertGreate... | php | chosen |
[
{
"from": "system",
"value": "Make path for Drupal custom modules consistent\n"
},
{
"from": "human",
"value": "<?php\nnamespace Composer\\Installers;\n\nclass DrupalInstaller extends BaseInstaller\n{\n protected $locations = array(\n 'core' => 'core/',\n 'module' => 'mo... | php | chosen |
[
{
"from": "system",
"value": "Remove the optional methods from interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FullyBaked\\Pslackr\\Messages;\n\ninterface Message\n{\n /**\n * return the data as a JSON string to send as message\n * to Slack's API\n */\n public f... | php | chosen |
[
{
"from": "system",
"value": "Remove testing and debug stuff.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(\"../libs/sendgrid-php/sendgrid-php.php\");\n\n// Simple class to send email notifications.\nclass Mailer {\n\n public static function sendMail($clientAddress, $body) {\n\n\n... | php | chosen |
[
{
"from": "system",
"value": "Remove argument (that does nothing)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sutra\\Component\\Buffer;\n\nuse Sutra\\Component\\Buffer\\Exception\\ProgrammerException;\n\n/**\n * {@inheritdoc}\n */\nclass GzipBuffer extends Buffer\n{\n /**\n * {@in... | php | chosen |
[
{
"from": "system",
"value": "Remove unecessary ifram param in headerAction\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Biopen\\CoreBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n\... | php | chosen |
[
{
"from": "system",
"value": "Allow cookie lifetime to be configured\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Garp_Store_Factory\n * Loads a store conditionally - either Session or Cookie, based on application.ini\n * @author Harmen Janssen | grrr.nl\n * @modifiedby $LastChangedBy: $\n ... | php | chosen |
[
{
"from": "system",
"value": "CRM-1322: Add mapping settings entity\n - remove unused constant\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\IntegrationBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component... | php | chosen |
[
{
"from": "system",
"value": "Test de l'authentification steam avec l'api\n\n"
},
{
"from": "human",
"value": "<?php\n//Version 3.2\n$steamauth['apikey'] = \"8F25D1AE8072C7EEC4D51A90324B549D\"; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey\n$steamauth['domainname'] = \"e... | php | chosen |
[
{
"from": "system",
"value": "Add namespace to repository plugin\n"
},
{
"from": "human",
"value": "<?php\n\n\nuse Magento\\Catalog\\Api\\Data\\ProductInterface;\n\nclass AttributeSetCodeProductRepositoryPlugin\n{\n private $attributeSetCodeRepository;\n\n public function __construct(\\Sno... | php | chosen |
[
{
"from": "system",
"value": "Use new AnnotationRegistery for PHPUnit 10.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Testbench\\Concerns;\n\nuse Illuminate\\Support\\Collection;\nuse P... | php | chosen |
[
{
"from": "system",
"value": "Add missing 'use SA\\CpeSDK' in SWF HAndler\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SA\\CpeSdk\\Swf;\n\nuse Aws\\Swf\\SwfClient;\n\n/**\n * Create the AWS SWF connection\n * Check for AWS environment variables\n */\nclass CpeSwfHandler\n{\n public $... | php | chosen |
[
{
"from": "system",
"value": "Make the \"empty queue\" log message less verbose\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phive\\TaskQueue;\n\nuse Phive\\Queue\\NoItemAvailableException;\nuse Phive\\TaskQueue\\ExecutorAdapter\\ExecutorAdapter;\n\nclass Executor\n{\n /**\n * @v... | php | chosen |
[
{
"from": "system",
"value": "Test case for dropping class\n"
},
{
"from": "human",
"value": "<?php\nnamespace Sgpatil\\Orientdb;\nuse Sgpatil\\Orientdb\\Schema\\Builder;\nuse Sgpatil\\Orientdb\\Schema\\Blueprint;\n\n/**\n * Description of CreateClassTest\n *\n * @author sumit\n */\nclass Create... | php | chosen |
[
{
"from": "system",
"value": "Write - Schema & resolvers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Overblog\\GraphQLBundle\\ExpressionLanguage;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerAwareTrait;\nuse Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage as Base... | php | chosen |
[
{
"from": "system",
"value": "Use of @component for buttons in form\n"
},
{
"from": "human",
"value": "@section('js')\n <script src=\"{{ asset('components/ckeditor/ckeditor.js') }}\"></script>\n@endsection\n\n@include('core::admin._buttons-form')\n\n{!! BootForm::hidden('id') !!}\n\n@include(... | php | chosen |
[
{
"from": "system",
"value": "Fix debug mode on application\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HeyDoc;\n\nuse dflydev\\markdown\\MarkdownExtraParser;\n\nuse HeyDoc\\Exception\\NotFoundException;\n\nuse Symfony\\Component\\Yaml\\Exception\\ParseException;\nuse Symfony\\Componen... | php | chosen |
[
{
"from": "system",
"value": "Fix previously uncaught phpcs error\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Documents;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\Common\\Collections\\Collection;\nuse Doctrine\\ODM\\MongoDB\\Mappi... | php | chosen |
[
{
"from": "system",
"value": "Enable back postgresql tests on php 7.\n"
},
{
"from": "human",
"value": "<?php\n\nif (!file_exists(__DIR__ . '/config.db.local.php')) {\n\n\t$configMysql = array(\n\t\t'host' => 'localhost',\n\t\t'username' => 'root',\n\t\t'password' => '',\n\t\t'dbname' => 'phalco... | php | chosen |
[
{
"from": "system",
"value": "Fix breaking changes regarding symfony 5\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Auth\\AuthenticationException;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\n\nclass Handler... | php | chosen |
[
{
"from": "system",
"value": "Create an Interface for Exam Class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mdagostino\\MultipleChoiceExams;\n\ninterface ExamInterface {\n\npublic function __construct(ApprovalCriteriaInterface $criteria = NULL) ; \n\npublic function setApprovalCriter... | php | chosen |
[
{
"from": "system",
"value": "Fix \"sprintf()\" args in metadata pool.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and ... | php | chosen |
[
{
"from": "system",
"value": "Fix the primary key column name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models\\Items\\Attributes;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass VehicleColor extends Model\n{\n /**\n * The table associated with the model.\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with spaces in paths\n"
},
{
"from": "human",
"value": "<?php\ndefine('CLEANHOME', '/opt/clean');\n\nif (!isset($_REQUEST['lib'])) :\n\techo '<p>Add ?lib and ?mod.</p>';\nelseif (!isset($_REQUEST['mod'])) :\n\techo '<p>Select a module on the left.</p>';\ne... | php | chosen |
[
{
"from": "system",
"value": "Add class name of exception to error message\n\nResolves #622\n"
},
{
"from": "human",
"value": "<?php\nnamespace Imbo;\n\nuse Exception as BaseException;\n\ntry {\n // Fetch the configuration\n $configPath = defined('IMBO_CONFIG_PATH') ? IMBO_CONFIG_PATH : __... | php | chosen |
[
{
"from": "system",
"value": "Remove English support by now"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'es_AR.utf8' => 'Español',\n 'en_US.utf8' => 'English',\n];\n"
},
{
"from": "gpt",
"value": "<?php\n\nreturn [\n 'es_AR.utf8' => 'Español',\n # 'en_US.utf8' =>... | php | chosen |
[
{
"from": "system",
"value": "Fix namespacing of generated if\n"
},
{
"from": "human",
"value": "<?php\n\n$vendor_path = 'vendor-bin/box/vendor/humbug/php-scoper/src/PhpParser/NodeVisitor/ClassAliasStmtAppender.php';\n\nif (!file_exists($vendor_path)) {\n die('Vendor file does not exist' . PH... | php | chosen |
[
{
"from": "system",
"value": "Fix extending service provider name\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Laravel Reviewable.\n *\n * (c) Brian Faust <hello@brianfaust.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha... | php | chosen |
[
{
"from": "system",
"value": "Use constant for graph names\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": "Use a host specified in the config file.\n"
},
{
"from": "human",
"value": "<?php\n\ninclude_once __DIR__ . '/_config.php';\n\nfunction url_for($href, $abs = false)\n{\n $url = '';\n\n if ($abs)\n {\n $url = 'http';\n\n if (isset($_SERVER['HTTPS']) && ($_SE... | php | chosen |
[
{
"from": "system",
"value": "Update for PHP PDO configuration.\n\n"
},
{
"from": "human",
"value": "<?php\n$dbhost = \"localhost\";\n$dbname = \"ykksm\";\n$dbuser = \"ykksmreader\";\n$dbpasswd = \"password\";\n$logfacility = LOG_LOCAL0;\n?>\n"
},
{
"from": "gpt",
"value": "<?php... | php | chosen |
[
{
"from": "system",
"value": "Fix signature of the UseControllerWork to respect last changes in WorkedInterface\n\nPHP Fatal error: Declaration of Symfony\\Bundle\\AsseticBundle\\Factory\\Worker\\UseControllerWorker::process() must be compatible with Assetic\\Factory\\Worker\\WorkerInterface::process(Asset... | php | chosen |
[
{
"from": "system",
"value": "Check timestamp if it is 0 or not.\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Arag\n *\n * @package Arag\n * @author Armen Baghumian\n * @author Roham Rafii Tehrani\n * @since Version 0.3\n * $Id$\n */\n\n// -------------------------... | php | chosen |
[
{
"from": "system",
"value": "Put jQuery back. Removed in error."
},
{
"from": "human",
"value": "\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t<title><?php echo $title; ?></title>\n\t\t\n\t\t<link rel=\"stylesheet\" href=\"/css/bootstrap.css... | php | chosen |
[
{
"from": "system",
"value": "Add assertion for returned data from webservice\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb;\n\nclass ProjectRemoveTest extends \\PHPUnit_Framework_TestCase\n{\n const NICKNAME = 'ProjectRemoveTestUser';\n const USERID = 'ProjectRemoveTestU... | php | chosen |
[
{
"from": "system",
"value": "Fix placeholder handling for Drupal Console chain execution\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drubo\\Robo\\Task\\DrupalConsole;\n\n/**\n * Robo task base class for Drupal Console chain execution tasks.\n */\nabstract class ExecChain extends Exec ... | php | chosen |
[
{
"from": "system",
"value": "Make use of FileAwareExceptions in Watch command\n\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @copyright 2017 Vladimir Jimenez\n * @license https://github.com/allejo/stakx/blob/master/LICENSE.md MIT\n */\n\nnamespace allejo\\stakx\\Command;\n\nuse Symfony... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace in service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AndrewNovikof\\Objects\\Traits;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class ObjectsServiceProvider\n * @package Objects\n */\nclass ObjectsServiceProvider exten... | php | chosen |
[
{
"from": "system",
"value": "Make the storage quota a loadable fixture.\n\n"
},
{
"from": "human",
"value": "<?php\nnamespace App\\Entity\\Fixture;\n\nuse App\\Radio\\Adapters;\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse App\\Ent... | php | chosen |
[
{
"from": "system",
"value": "Add back in controller variable\n"
},
{
"from": "human",
"value": "<?php\nnamespace EdpModuleLayouts;\n\nclass Module\n{\n public function onBootstrap($e)\n {\n $e->getApplication()->getEventManager()->getSharedManager()->attach('Zend\\Mvc\\Controller\\... | php | chosen |
[
{
"from": "system",
"value": "Add classmap loader as Autoloader\n"
},
{
"from": "human",
"value": "<?php\nnamespace StrategyValidator;\n\nuse Zend\\Stdlib\\ArrayUtils;\n\nclass Module\n{\n public function getConfig()\n {\n $mainConfig = include __DIR__ . '/config/module.config.php';... | php | chosen |
[
{
"from": "system",
"value": "Fix: Use Twig_Filter instead of Twig_Function in twig extension\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Demontpx\\UserBundle\\Twig;\n\nuse Demontpx\\UserBundle\\Entity\\User;\nuse Demontpx\\UserBundle\\Service\\Gravatar;\n\n/**\n * Class GravatarExtens... | php | chosen |
[
{
"from": "system",
"value": "Add provides function for deferred loading\n"
},
{
"from": "human",
"value": "<?php namespace RubenArakelyan\\LaravelSessionFilesToRedis;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class LaravelServiceProvider\n * @package RubenArakelyan\\LaravelSession... | php | chosen |
[
{
"from": "system",
"value": "Switch Locale::getPrimaryLanguage to procedural style\n"
},
{
"from": "human",
"value": "<?php\n\nuse Carbon\\Carbon;\n\nif (!function_exists('setGlobalLocale')) {\n /**\n * Set locale among all localizable contexts.\n *\n * @param string $posixLocale... | php | chosen |
[
{
"from": "system",
"value": "Fix config value alway returns null\n"
},
{
"from": "human",
"value": "<?php \r\nclass Config extends AppModel {\r\n\tpublic $useTable = 'configs';\r\n\r\n\tpublic function getConfig($param){\r\n\t\t$buff = $this->find(\"all\", array(\r\n\t\t\t\"conditions\" => arra... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Vimeo connector to generate gzip file.\"\n\nThis reverts commit 28a5383fb8e781812f79c7f838776f86df517782.\n"
},
{
"from": "human",
"value": "<?php\nnamespace php_active_record;\n/* connector for Vimeo \nestimated execution time: 20 minutes\n*/\n\n$timestart... | php | chosen |
[
{
"from": "system",
"value": "Set date format in config file\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n // Basic author information\n 'site_name' => 'Site Name',\n 'user' => 'John Doe',\n 'email' => 'email@provider.com',\n 'theme' => 'default',\n 'status' => 'live',... | php | chosen |
[
{
"from": "system",
"value": "Remove extra whitespace introduced on payment receipt emails\n"
},
{
"from": "human",
"value": "Hi {{ $payment->payable->user->preferred_first_name }},\n\n@if($payment->method === \"square\")\nWe received your online payment of ${{ number_format($payment->amount, 2)... | php | chosen |
[
{
"from": "system",
"value": "Fix email not being sent\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Mail;\n\nuse App\\User;\nuse App\\Contact;\nuse App\\Reminder;\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Mail\\Mailable;\nuse Illuminate\\Queue\\SerializesModels;\nuse Illumi... | php | chosen |
[
{
"from": "system",
"value": "Fix for HHVM null function\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Funct\\CodeBlocks;\n\n/**\n * Returns true if all of the values in the array pass the callback truth test.\n *\n * @author Aurimas Niekis <aurimas.niekis@gmail.com>\n *\n * @param array... | php | chosen |
[
{
"from": "system",
"value": "Fix one last linting error\n"
},
{
"from": "human",
"value": "<?php\n/**\n * abstract compiler pass for extref things\n */\n\nnamespace Graviton\\DocumentBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInt... | php | chosen |
[
{
"from": "system",
"value": "Allow https for twitter urls and use version 1 api\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Omlex library.\n *\n * (c) Michael H. Arieli <excelwebzone@gmail.com>\n *\n * For the full copyright and license information, please view t... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with group Schema cache\n"
},
{
"from": "human",
"value": "<?php\n/**\n * UF Custom User Profile Field Sprinkle\n *\n * @link https://github.com/lcharette/UF_UserProfile\n * @copyright Copyright (c) 2016 Louis Charette\n * @license https://github.co... | php | chosen |
[
{
"from": "system",
"value": "PhpDoc: Add missing types & correct incorrect types\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Elcodi package.\n *\n * Copyright (c) 2014 Elcodi.com\n *\n * For the full copyright and license information, please view the LICENSE\n * ... | php | chosen |
[
{
"from": "system",
"value": "Add message when edit for checkrights\n"
},
{
"from": "human",
"value": "<?php include_partial('widgets/list', array('widgets' => $widgets, 'category' => 'catalogue_bibliography','eid'=> $form->getObject()->getId() )); ?>\n<?php slot('title', __('Edit Bibliography'... | php | chosen |
[
{
"from": "system",
"value": "Add method to trim cents if .00\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Improvements to Currency for presenting in templates.\n */\nclass ShopCurrency extends Currency {\n\n\tprivate static $decimal_delimiter = '.';\n\tprivate static $thousand_delimiter = ... | php | chosen |
[
{
"from": "system",
"value": "Add new event type: occurs when a user leaves a conversation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FD\\PrivateMessageBundle;\n\n/**\n * Contains all events thrown in the FDPrivateMessageBundle.\n */\nfinal class FDPrivateMessageEvents\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Change the tests to reflect the changes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluentHandler\\Tests;\n\nuse FluentHandler\\FluentHandler;\nuse Monolog\\Logger;\n\nclass FluentHandlerTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @var ar... | php | chosen |
[
{
"from": "system",
"value": "Improve custom scalar description test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Overblog\\GraphQLBundle\\Tests\\Functional\\Security;\n\nuse Overblog\\GraphQLBundle\\Tests\\Functional\\TestCase;\n\nclass CustomScalarTest extends TestCase\n{\n protect... | php | chosen |
[
{
"from": "system",
"value": "Allow passing multiple gaurds to the auth middleware\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Support\\Facades\\Auth;\n\nclass Authenticate\n{\n /**\n * Handle an incoming request.\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Update redirectTo return type PHPDoc\n\nhttps://github.com/laravel/laravel/commit/40f93daa83b17ad47c51ec9beed4c1ba79eb66ed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Http\\Middleware;\n\nuse Illuminate\\Auth\\Middleware\\Authenticate as Middleware;... | php | chosen |
[
{
"from": "system",
"value": "Add IPv6 to trusted proxies list\n"
},
{
"from": "human",
"value": "<?php namespace Strimoid\\Providers;\n\nuse Carbon\\Carbon;\nuse GuzzleHttp\\Client;\nuse Illuminate\\Pagination\\Paginator;\nuse Illuminate\\Support\\ServiceProvider;\nuse Pdp\\Parser;\nuse Pdp\\Pu... | php | chosen |
[
{
"from": "system",
"value": "Add new style of tags to mapper array\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fastly\\Cdn\\Helper;\n\nuse \\Magento\\Framework\\App\\Helper\\AbstractHelper;\n\nclass CacheTags extends AbstractHelper\n{\n /**\n * Replaces long Magento Cache tags ... | php | chosen |
[
{
"from": "system",
"value": "Remove phone-number and email from facilities\n"
},
{
"from": "human",
"value": "<h2 class=\"headline\">Liste der Hilfsgruppen in Berlin</h2>\n<div class=\"table-responsive\">\n <table class=\"table table-striped table-condensed\">\n <thead>\n <... | php | chosen |
[
{
"from": "system",
"value": "Add missing functional interface for BodyMatchesConstraint\n"
},
{
"from": "human",
"value": "<?php\n\nuse Helmich\\Psr7Assert\\Constraint\\HasHeaderConstraint;\nuse Helmich\\Psr7Assert\\Constraint\\HasUriConstraint;\n\nfunction hasUri($uri)\n{\n return new HasUr... | php | chosen |
[
{
"from": "system",
"value": "Fix recursive inclusion of the toolbar page\n\nThis is most likely to happen during a 404 page which includes\nthe toolbar, which includes the toolbar which is a 404 page, which\nincludes...\n"
},
{
"from": "human",
"value": "<?php\n\nclass GlobalNavIteratorProperti... | php | chosen |
[
{
"from": "system",
"value": "Return shipping methods with ordered keys\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>\n */\n\nnamespace Team3\\Order;\n\n/**\n * Class ShippingMethodCollection\n * @package Team3\\Order\n */\nclass Shipping... | php | chosen |
[
{
"from": "system",
"value": "Fix copy/pasta mistake and use ID from configuration yaml\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Plugin;\nuse Grav\\Common\\Plugin;\n\nclass Pingdom_RUMPlugin extends Plugin\n{\n /**\n * @return array\n */\n public static function ge... | php | chosen |
[
{
"from": "system",
"value": "Switch license from MIT to AGPL in plugin file\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n\nPlugin Name: Castlegate IT WP Postman\nPlugin URI: http://github.com/castlegateit/cgit-wp-postman\nDescription: Flexible contact form plugin for WordPress.\nVersion: 2.8... | php | chosen |
[
{
"from": "system",
"value": "Make per-node-link limit larger, server should have larger memory size\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'cron' => [\n 'limit' => 1000\n ],\n 'publish' => [\n 'limit' => 100000\n ]\n];\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Use empty(). Add hasFailed() method\n"
},
{
"from": "human",
"value": "<?php \n\n\tnamespace PHPCheckstyle\\PHPCheckstyle;\n\n\tuse PHPCheckstyle\\Exception;\n\tuse SeekableIterator;\n\tuse SplDoublyLinkedList;\n\n\t/**\n\t * Result of running a check.\n\t */\n\tcla... | php | chosen |
[
{
"from": "system",
"value": "Remove vue route until functionality is added\n"
},
{
"from": "human",
"value": "<?php\n\nuse \\GeneaLabs\\LaravelCasts\\Http\\Controllers\\Bootstrap3;\nuse \\GeneaLabs\\LaravelCasts\\Http\\Controllers\\Bootstrap4;\nuse \\GeneaLabs\\LaravelCasts\\Http\\Controllers\\... | php | chosen |
[
{
"from": "system",
"value": "Make forms & related stuff final again\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 distri... | php | chosen |
[
{
"from": "system",
"value": "Update method signature to use interface instead of class\n\nCloses #303\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sonata package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and licen... | php | chosen |
[
{
"from": "system",
"value": "Set lifetime of feed to 1 hour\n\nSolution for 3.4\n"
},
{
"from": "human",
"value": "<?php\nabstract class Kwc_Abstract_Feed_Component extends Kwc_Abstract\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['con... | php | chosen |
[
{
"from": "system",
"value": "Fix an error of a test\n"
},
{
"from": "human",
"value": "<?php\n\nclass SuppliersOrderMonitorBehavior extends ModelBehavior {\n\n\tpublic function setup(Model $model, $config = array()) {\n\t\t$model->monitored = true;\n\t}\n\n}\n"
},
{
"from": "gpt",
"... | php | chosen |
[
{
"from": "system",
"value": "Change DataType test to not null assertion\n"
},
{
"from": "human",
"value": "<?php\n\nclass DataTypeTest extends PHPUnit_Framework_TestCase {\n\n\tpublic function testAutoload() {\n\t\t$this->assertInstanceOf('DataType', new DataType);\n\t}\n\n\tpublic function tes... | php | chosen |
[
{
"from": "system",
"value": "Set correct name for class\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Abstract_Cards_Trl_Admin extends Kwc_Basic_LinkTag_Admin\n{\n public function getPagePropertiesForm()\n {\n $ret = new Kwc_Basic_LinkTag_Trl_Form(null, $this->_class);\n ... | php | chosen |
[
{
"from": "system",
"value": "Support Multiple Torrent Scraping in Sanitation"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/function.sanitise.maybe_binary_to_hex.php';\n\n////\t$_GET['info_hash']\n// TODO: Handle Multiples\n// IF 20 Character Binay, convert to 40 Character Hex... | php | chosen |
[
{
"from": "system",
"value": "CHANGE: Add functionality to call a methode\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/**\r\n * sfOrmBreadcrumbsDoctrine\r\n * \r\n * @package sfOrmBreadcrumbsPlugin\r\n * @subpackage lib\r\n * @author Nicolò Pignatelli <info@nicolopignatelli.com>\r\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix config success not being detected.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * \n *\n * @author Sam Schmidt\n * @date 2015-04-17\n * @company Linus Shops\n */\n\nnamespace LinusShops\\Prophet;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symf... | php | chosen |
[
{
"from": "system",
"value": "Update Articles locale clean up\n"
},
{
"from": "human",
"value": "<?php\n\n// Overview\n$locale['article_0000'] = \"Articles\";\n$locale['article_0001'] = \"All Articles\";\n$locale['article_0002'] = \"Show Categories\";\n$locale['article_0003'] = \"Categories\";\n... | php | chosen |
[
{
"from": "system",
"value": "Use absolute url path for css asset\n"
},
{
"from": "human",
"value": "<?php defined('THISPATH') or die('Can\\'t access directly!');\n\nclass Controller_home extends Panada {\n \n public function __construct(){ \n parent::__construct();\n }\n ... | php | chosen |
[
{
"from": "system",
"value": "Use singular guard names for email verification brokers\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Email Verification\n |------... | php | chosen |
[
{
"from": "system",
"value": "[Ldap] Document the new exceptions thrown by the code\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... | php | chosen |
[
{
"from": "system",
"value": "Add schema comparator to diff command.\n"
},
{
"from": "human",
"value": "<?php\nnamespace LazyRecord\\Command;\nuse Exception;\nuse CLIFramework\\Command;\nuse LazyRecord\\Schema;\nuse LazyRecord\\Schema\\SchemaFinder;\nuse LazyRecord\\ConfigLoader;\n\nclass DiffCo... | php | chosen |
[
{
"from": "system",
"value": "Move to own implementation since nette's isn't cutting it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ModuleGenerator\\PhpGenerator\\Constant;\n\nuse Nette\\PhpGenerator\\Constant as NetteConstant;\n\nfinal class Constant extends NetteConstant\n{\n /**\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.