conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add new fields to Item entity\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migration: Please modify to your needs!\n *... | php | chosen |
[
{
"from": "human",
"value": "Add a controller for Agenda\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Project\\AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse JMS\\SecurityExtraBundle\\Annotation\\Secure;\nuse Sensio\\Bundle\\FrameworkExtraBund... | php | chosen |
[
{
"from": "human",
"value": "Add class to test frontend tags model\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Frontend\\Modules\\Tags\\Tests\\Engine;\n\nuse Frontend\\Core\\Engine\\Model as FrontendModel;\nuse Frontend\\Modules\\Tags\\Engine\\Model;\nuse Common\\WebTestCase;\n\nfinal cl... | php | chosen |
[
{
"from": "human",
"value": "Add functions to parse and get some values from php.ini.\n\nGet upload limits from php.ini. These functions will be used for checking\nagainst upload limits and to give information in the frontend.\nWasn't sure in which file to put these functions, so I created a new\none includ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the extentions modules page\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\ContentBlocks\\Tests\\Action;\n\nuse Common\\WebTestCase;\n\nclass ModulesTest extends WebTestCase\n{\n public function testAuthenticationIsNeeded(): vo... | php | chosen |
[
{
"from": "human",
"value": "Add a trait to help Entity\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace AdobeConnectClient\\Traits;\n\nuse \\AdobeConnectClient\\Helper\\StringCaseTransform;\n\ntrait EntityTrait\n{\n /**\n * Set the attributes using an Associative Array\n * @param ... | php | chosen |
[
{
"from": "human",
"value": "Add test for mutually exclusive flags\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace AmpProject\\Optimizer\\Transformer;\n\nuse AmpProject\\Dom\\Document;\nuse AmpProject\\Optimizer\\Configuration\\RewriteAmpUrlsConfiguration;\nuse AmpProject\\Optimizer\\ErrorCo... | php | chosen |
[
{
"from": "human",
"value": "Load CSV lines from Open Data\n"
},
{
"from": "gpt",
"value": "<?php include \"conf.php\"; /* load a local configuration */ ?>\n<?php include \"modulekit/loader.php\"; /* loads all php-includes */ ?>\n<?\n$f = fopen(\"http://data.wien.gv.at/daten/geo?service=WFS&requ... | php | chosen |
[
{
"from": "human",
"value": "Test adding a new association type with translations\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Sylake\\SyliusConsumerPlugin\\Functional;\n\nuse Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse OldSou... | php | chosen |
[
{
"from": "system",
"value": "Fix for programme model getLatestAvailEp\n"
},
{
"from": "human",
"value": "<?php\n/**\n * BBC_Service_Bamboo_Models_Programme\n *\n *\n * @category BBC\n * @package BBC_Service\n * @subpackage BBC_Service_Bamboo_Models\n * @author Craig Taub <craig.taub@bbc.co.uk>\... | php | chosen |
[
{
"from": "human",
"value": "Allow nullable foreign keys in drug table\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass m130409_175500_drug_table_changes extends CDbMigration {\n\n\tpublic function up() {\n\t\t$this->alterColumn('drug','default_route_id','int(10) unsigned DEFAULT NULL');\n\t\t$th... | php | chosen |
[
{
"from": "human",
"value": "Add test for Institution in Configuration\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Copyright 2016 SURFnet B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ... | php | chosen |
[
{
"from": "system",
"value": "BB-3348: Create validator for System Allowed Currencies restriction\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\LocaleBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Intl\\Intl;\nuse Symfony\\Compone... | php | chosen |
[
{
"from": "human",
"value": "Add test coverage for OblistCollection::get().\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @file\n * Tests for oblist collections.\n */\n\nnamespace Itafroma\\Zork\\Tests;\n\nuse Itafroma\\Zork\\State\\Oblist;\nuse Itafroma\\Zork\\State\\OblistCollection;\n\ncl... | php | chosen |
[
{
"from": "human",
"value": "Add helper functions (via trait) for formatting model errors.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Sil\\DevPortal\\components;\n\n/**\n * Trait to add utility functions for getting a model's errors formatted for\n * various contexts.\n *\n * @author Matt... | php | chosen |
[
{
"from": "human",
"value": "Add static class for accessing filter control options from GET vars.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace UWDOEM\\Framework\\Filter;\n\n\nclass FilterControls {\n\n static public function getControl($handle, $key, $default = null) {\n return ... | php | chosen |
[
{
"from": "system",
"value": "Remove unused function call in order to make updating of projects pass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Edit;\n\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\Entity\\FennecUser;\nuse Symfony\\Component\\HttpFoundation\\Param... | php | chosen |
[
{
"from": "human",
"value": "Add template mtgox API config file.\n"
},
{
"from": "gpt",
"value": "<?php\n\ndefine('MTGOX_KEY' , '00000000-0000-0000-0000-000000000000');\ndefine('MTGOX_SECRET', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==');\n\n?>\n"... | php | chosen |
[
{
"from": "human",
"value": "Add tests on the module loader helper\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2013 Zend Te... | php | chosen |
[
{
"from": "human",
"value": "application: Add low-level session manager class\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Background Session Management\n * @author M2Mobi, Heinz Wiesinger\n */\nclass SessionManager\n{\n\n /**\n * Lifetime of a session instance\n * @var Integer\n... | php | chosen |
[
{
"from": "human",
"value": "Test the generated pagination HTML code\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2022, Pierre-Henry Soria. All Rights Reserved.\n * @license MIT License; See LICENSE.md ... | php | chosen |
[
{
"from": "human",
"value": "Add test for CorrectNumberOfSentences Command\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Test\\TestCase\\Command;\n\nuse Cake\\TestSuite\\ConsoleIntegrationTestTrait;\nuse Cake\\Console\\Command;\nuse App\\Model\\Table\\SentencesListsTable;\nuse Cake\\ORM... | php | chosen |
[
{
"from": "human",
"value": "Fix for VIP code call. / Added Unit test for profile script\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Rcm\\Tests\\Base;\n\nuse Rcm\\Entity\\Country;\nuse Rcm\\Entity\\Language;\n\nclass PluginTestCase extends DoctrineTestCase\n{\n public function setUp()... | php | chosen |
[
{
"from": "human",
"value": "Set mysql default values\nfor extractor_bank_account_statement_transaction\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Database migration class\n *\n * @author David Vandemaele <david@tigron.be>\n */\n\nuse \\Skeleton\\Database\\Database;\n\nclass Migration_20201... | php | chosen |
[
{
"from": "human",
"value": "Add a command to list all issues\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * @author Stephane HULARD <s.hulard@chstudio.fr>\n * @p... | php | chosen |
[
{
"from": "human",
"value": "Add test for owner etag propagation\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright (c) 2016 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n *... | php | chosen |
[
{
"from": "human",
"value": "Migrate added table changed column in Materials\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m160616_135049_change_Materials extends Migration\n{\n public function safeUp()\n {\n $this->dropColumn('Materials','Material');\n ... | php | chosen |
[
{
"from": "human",
"value": "Test added for count() in KeyListIterator\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2012 Zen... | php | chosen |
[
{
"from": "human",
"value": "Add doctrine entity manager cleaner\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the CleverAge/ProcessBundle package.\n *\n * Copyright (C) 2017-2019 Clever-Age\n *\n * For the full copyright and license information, please view the LICENSE\n ... | php | chosen |
[
{
"from": "human",
"value": "Add miscellaneous provider (boolean, md5, sha1,...)\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\nnamespace Faker\\Provider;\r\n\r\nrequire_once __DIR__ . '/Base.php';\r\n\r\nclass Miscellaneous extends \\Faker\\Provider\\Base\r\n{\r\n\r\n\t/**\r\n\t * @example true\... | php | chosen |
[
{
"from": "human",
"value": "Add Select2 Doctrine choice widget\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once(dirname(__FILE__) . '/../select2/Select2.class.php');\n\nclass sfWidgetFormSelect2DoctrineChoice extends sfWidgetFormDoctrineChoice\n{\n public function getChoices()\n {\n $c... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for user registration.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\User;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions... | php | chosen |
[
{
"from": "human",
"value": "Add tests for CountryValidator class\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Galahad\\LaravelAddressing\\Validator\\CountryValidator;\nuse Illuminate\\Validation\\Validator;\nuse Symfony\\Component\\Translation\\Translator;\n\nclass CountryValidatorTest extends... | php | chosen |
[
{
"from": "human",
"value": "Add Projects factory for tests\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Bruno P. Kinoshita, Peter Florijn\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software ... | php | chosen |
[
{
"from": "human",
"value": "Add Unit test for Category model\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace tests\\codeception\\unit\\models\\nerds;\n\nuse app\\models\\Category;\nuse tests\\codeception\\common\\fixtures\\CategoryFixture;\nuse tests\\codeception\\common\\fixtures\\UsedItem... | php | chosen |
[
{
"from": "human",
"value": "Add an abstract command layer\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * @author Stephane HULARD <s.hulard@chstudio.fr>\n * @pack... | php | chosen |
[
{
"from": "human",
"value": "Add some tests to check that listing pages load properly\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\n\n// use Illuminate\\Foundation\\Testing\\DatabaseMigrations... | php | chosen |
[
{
"from": "human",
"value": "Write some specs for settings cache repository\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\Flarum\\Core\\Settings;\n\nuse Flarum\\Core\\Settings\\SettingsRepository;\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass CachedSettingsRepositor... | php | chosen |
[
{
"from": "human",
"value": "Create migration for user_space table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUserSpaceTable extends Migration {... | php | chosen |
[
{
"from": "human",
"value": "Add timestamps to giftcard table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AddGiftcardTimes extends AbstractMigration\n{\n public function change()\n {\n $table= $this->table('giftcard', [ 'signed' => false... | php | chosen |
[
{
"from": "human",
"value": "Write a Twig extension that serves as a simple wrapper around Gregwar's Image library\n"
},
{
"from": "gpt",
"value": "<?php\nrequire 'vendor/autoload.php';\n\nuse Gregwar\\Image\\Image;\n\nclass ImageTwig extends Twig_Extension\n{\n public function getName()\n ... | php | chosen |
[
{
"from": "system",
"value": "Use EventListenerInterface instead of EventListener.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Crud\\Core;\n\nuse Cake\\Controller\\Controller;\nuse Cake\\Core\\InstanceConfigTrait;\nuse Cake\\Event\\Event;\nuse Cake\\Event\\EventListener;\nuse Crud\\Event... | php | chosen |
[
{
"from": "human",
"value": "Add tests for accessing Autocompletions controller\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Test\\TestCase\\Controller;\n\nuse App\\Test\\TestCase\\Controller\\TatoebaControllerTestTrait;\nuse Cake\\Core\\Configure;\nuse Cake\\TestSuite\\IntegrationTest... | php | chosen |
[
{
"from": "human",
"value": "Add verify 2FA webhook signature PHP snippet\n"
},
{
"from": "gpt",
"value": "<?php\n\nfunction verifyWebhook($apiKey) {\n // Read the nonce from the request\n $nonce = $_SERVER['x-authy-signature-nonce'];\n $method = $_SERVER['REQUEST_METHOD'];\n $proto ... | php | chosen |
[
{
"from": "human",
"value": "Remove duplicate data values and put in uniqueness constraint\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass DataValueUniqueness extends Migration\n{\n /**\n * R... | php | chosen |
[
{
"from": "human",
"value": "Test the sandbox of net POST\n"
},
{
"from": "gpt",
"value": "<html><body><h1>HACKED! Reply</h1>\n<p>This is the default web page for this server.</p>\n<p>The web server software is running but no content has been added, yet.</p>\n\n<?php echo \"hello wOal --> \";\n ... | php | chosen |
[
{
"from": "human",
"value": "Implement town step 8 for voters\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Optio... | php | chosen |
[
{
"from": "human",
"value": "Upgrade deps to zapcore 2.0 and zapstore 2.0.\n"
},
{
"from": "gpt",
"value": "<?php\n\nfunction testdir() {\n\t$dir = __DIR__ . '/testdata';\n\tif (!is_dir($dir))\n\t\tmkdir($dir, 0755);\n\treturn $dir;\n}\n"
}
] | php | chosen |
[
{
"from": "human",
"value": "Add incomplete tests for population calculator\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace OpenDominion\\Tests\\Unit\\Calculators\\Dominion;\n\nuse OpenDominion\\Tests\\BaseTestCase;\n\nclass PopulationCalculatorTest extends BaseTestCase\n{\n public functi... | php | chosen |
[
{
"from": "human",
"value": "Test for standard html render\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @license see LICENSE\n */\n\nnamespace UForm\\Test\\Render;\n\n\nuse UForm\\Render\\StandardHtmlRender;\n\nclass StandardHtmlRenderTest extends \\PHPUnit_Framework_TestCase {\n\n public ... | php | chosen |
[
{
"from": "human",
"value": "Add api to get status of request email\n"
},
{
"from": "gpt",
"value": "<?php\n\n$consumerId = 'your_consumer_id';\n$apiKey = 'your_api_key';\n$emailToCheck = 'test@email.com';\n\n$apiUrl = 'https://api.vietnamworks.com/users/status/?email='.urlencode($emailToCheck);... | php | chosen |
[
{
"from": "system",
"value": "Set the byline to either the display name or the username\n\nWe don't need both in the comment email. We'd rather have the display\nname, but if it's not available, then the username is fine.\n"
},
{
"from": "human",
"value": "<?php\n\nclass TalkCommentEmailService ... | php | chosen |
[
{
"from": "human",
"value": "Create a Voice RSS provider\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace duncan3dc\\Speaker\\Providers;\n\nuse duncan3dc\\Speaker\\Exception;\n\n/**\n * Convert a string of a text to a spoken word mp3.\n */\nclass VoiceRssProvider extends AbstractProvider\n{\n... | php | chosen |
[
{
"from": "human",
"value": "Add database migration for an `assemblies` table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\n/**\n * Create or remove an ‘assemb... | php | chosen |
[
{
"from": "human",
"value": "III-447: Add schema configurator for permission database table\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\Event\\ReadModel\\Permission\\Doctrine;\n\nuse CultuurNet\\UDB3\\Doctrine\\DBAL\\SchemaConfiguratorInterface;\nuse... | php | chosen |
[
{
"from": "human",
"value": "Add abstract JSON package reader.\n"
},
{
"from": "gpt",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for more information... | php | chosen |
[
{
"from": "human",
"value": "Create functional test to demonstrate that updates to embedded documents appear to not work.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Doctrine\\ODM\\MongoDB\\Tests\\Functional\\Ticket;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\O... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for AvatarUploader\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribute... | php | chosen |
[
{
"from": "human",
"value": "[TASK] Support dynamic return types for PhpStorm IDE\n\nThis adds configuration for the PhpStorm IDE so it can infer the\nreturn type of the get() method in ObjectManagerInterface.\n\nChange-Id: If389e54bd2a4f06c514acf7ba380c843b9ca0761\nReleases: master, 3.0\nOriginal-Commit-Ha... | php | chosen |
[
{
"from": "human",
"value": "Add spec for export API method\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\Crowdin\\Api;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\nuse Crowdin\\Client;\nuse Guzzle\\Http\\Client as HttpClient;\nuse Guzzle\\Http\\Message\\Response;\nuse G... | php | chosen |
[
{
"from": "system",
"value": "Fix vendor path in CroogoHelperTest\n"
},
{
"from": "human",
"value": "<?php\nApp::uses('CroogoTestCase', 'Croogo.TestSuite');\n\nclass CroogoHelpersTest extends PHPUnit_Framework_TestSuite {\n\n\tpublic static function suite() {\n\t\t$suite = new CakeTestSuite('Cro... | php | chosen |
[
{
"from": "human",
"value": "Introduce a new interface for authentication providers\n"
},
{
"from": "gpt",
"value": "<?php declare(strict_types=1);\n\nnamespace Gos\\Bundle\\WebSocketBundle\\Authentication\\Provider;\n\nuse Ratchet\\ConnectionInterface;\nuse Symfony\\Component\\Security\\Core\\A... | php | chosen |
[
{
"from": "human",
"value": "Add interface which repositories can implement if they wish to provide manual cleanup of expired data.\n"
},
{
"from": "gpt",
"value": "<?php namespace Tappleby\\OAuth2\\Repositories;\n\n\ninterface PurgeExpiredInterface {\n\n\t/**\n\t * Purges expired tokens or code... | php | chosen |
[
{
"from": "human",
"value": "Add test case for ValidationReportPrinter\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Hmaus\\Spas\\Tests\\Request\\Result\\Printer;\n\nuse Hmaus\\Spas\\Request\\Result\\Printer\\ValidationReportPrinter;\nuse JsonSchema\\Validator;\nuse Prophecy\\Argument;\nus... | php | chosen |
[
{
"from": "human",
"value": "Add test class, but they're not implemented\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace OpenDominion\\Tests\\Unit\\Calculators\\Dominion;\n\nuse OpenDominion\\Tests\\AbstractBrowserKitTestCase;\n\nclass CasualtiesCalculatorTest extends AbstractBrowserKitTestC... | php | chosen |
[
{
"from": "human",
"value": "Prepare VN web properties migration\n\nAdding homepage, twitter, and erogamescape_game_id columns to VN table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\... | php | chosen |
[
{
"from": "human",
"value": "Add snippet for emailing member after manual payment\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Emails a member after they sign up with the \"Manual\" payment gateway.\n * You can u se this email to send further instructions on how to submit\n * payment via cheq... | php | chosen |
[
{
"from": "human",
"value": "Test asset: method with static parameter hint\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRAN... | php | chosen |
[
{
"from": "human",
"value": "Add tests for InvalidToolStackConfiguration exception\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PageExperience\\Tests\\Engine\\Exception;\n\nuse PageExperience\\Tests\\TestCase;\nuse PageExperience\\Engine\\Exception\\InvalidToolStackConfiguration;\n\n/**\n... | php | chosen |
[
{
"from": "human",
"value": "Add work-in-progess PHP unit tests for the max length without html validation rule.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Unit\\Validation\\Rules;\n\nuse Tests\\TestCase;\nuse Validator;\nuse Mockery as m;\n\nuse App\\Validation\\Rules\\MaxLength... | php | chosen |
[
{
"from": "human",
"value": "Add new tests for Date\\Various class\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; Se... | php | chosen |
[
{
"from": "human",
"value": "Drop event id from reviews table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass DropEventIdFromReviews extends Migration\n{\n /**\n * Run the migrations.\n *... | php | chosen |
[
{
"from": "human",
"value": "Add migration to widen user agent field\n"
},
{
"from": "gpt",
"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 ExtendRsvp... | php | chosen |
[
{
"from": "human",
"value": "Add tests for password reset endpoint.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Northstar\\Models\\User;\n\nclass ResetTest extends TestCase\n{\n /**\n * Test that anonymous and non-admin keys/users cannot create\n * password reset links.\n * POST... | php | chosen |
[
{
"from": "human",
"value": "Test case: show tips for selected match\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace tests\\AppBundle\\Controller\\Dtp\\Standings;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass TipsControllerTest extends WebTestCase\n{\n public functi... | php | chosen |
[
{
"from": "human",
"value": "Add the Todo view which is the only view used in this application. Everything else is handled via ajax requests.\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\n$this->load->helper('form');\r\n\r\n//echo '<pre>';\r\n//var_dump($data);\r\n//echo '</pre>';\r\n\r\n?>\r\n<... | php | chosen |
[
{
"from": "human",
"value": "Add abstract class for framework invocations\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2011, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.org/licenses/mit-lic... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Predefined pH7Tpl Functions\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License... | php | chosen |
[
{
"from": "human",
"value": "Add test for Projects entity\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Bruno P. Kinoshita, Peter Florijn\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software an... | php | chosen |
[
{
"from": "human",
"value": "Add InstitutionConfiguration event sourcing repository\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Copyright 2016 SURFnet B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ... | php | chosen |
[
{
"from": "human",
"value": "Add POC for file storage system\n\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Symfony\\Component\\HttpKernel\\Profiler;\n\n/**\n * Storage for profiler using files\n *\n * @author Alexandre Salomé <alexandre.salome@gmail.com>\n */\nclass FileProfilerStorage i... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for FileSerialiser\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Inanimatt\\SiteBuilder\\Serialiser;\n\n/**\n * Generated by PHPUnit_SkeletonGenerator on 2012-05-28 at 10:24:11.\n */\nclass FileSerialiserTest extends \\PHPUnit_Framework_TestCase\n{... | php | chosen |
[
{
"from": "human",
"value": "Test the utility trait's main method\n\nQuick and dirty test of a simple trait.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Aedart\\Testing\\GST\\GetterSetterTraitTester;\nuse Codeception\\TestCase\\Test;\nuse Faker\\Factory;\n\n/**\n * Class GetterSetterTraitTeste... | php | chosen |
[
{
"from": "human",
"value": "Add test for the content block index\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\ContentBlocks\\Tests\\Action;\n\nuse Common\\WebTestCase;\n\nclass IndexTest extends WebTestCase\n{\n public function testAuthenticationIsNeeded(): void\n ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the link class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Croogo\\Core\\Test\\TestCase;\n\nuse Cake\\TestSuite\\TestCase;\nuse Croogo\\Core\\Link;\n\nclass LinkTest extends TestCase\n{\n\n\tpublic function testCreateFromLinkString()\n\t{\n\t\t$... | php | chosen |
[
{
"from": "human",
"value": "Add interface for parsing ini files\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Mce\\File\\Parse;\n\n/**\n * Parses an ini file and returns an array of data\n *\n * @author Matthew Conger-Eldeen <mceldeen@gmail.com>\n */\nclass IniInterface {\n /**\n * P... | php | chosen |
[
{
"from": "human",
"value": "III-359: Add a test for EntityType\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\ReadModel\\Index;\n\nuse \\PHPUnit_Framework_TestCase;\n\nclass EntityTypeTest extends PHPUnit_Framework_TestCase\n{\n /**\n * Data pro... | php | chosen |
[
{
"from": "system",
"value": "Fix for \"Please provide a valid CSC.\"\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Paytrace\\Message\\CreditCard;\n\nabstract class AbstractRequest extends \\Omnipay\\Paytrace\\Message\\AbstractRequest\n{\n protected $method = 'ProcessTranx';\... | php | chosen |
[
{
"from": "human",
"value": "Add PHPUnit test for Stripe_BalanceTransaction\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Stripe_BalanceTransactionTest extends Stripe_TestCase\n{\n public function testList()\n {\n self::authorizeFromEnv();\n $d = Stripe_BalanceTransaction::all();\n ... | php | chosen |
[
{
"from": "human",
"value": "Fix controller stub. Added a new scaffold for widget.\n"
},
{
"from": "gpt",
"value": "<?php namespace BnB\\ScaffoldTranslation\\Classes\\Console;\n\nuse BnB\\ScaffoldTranslation\\Classes\\Templates\\Widget;\nuse BnB\\ScaffoldTranslation\\Classes\\TranslationScanner;... | php | chosen |
[
{
"from": "system",
"value": "CRM-6171: Prepare correct DQL query for fetching contacts\n - Change order of email and phone titles for Contact\n"
},
{
"from": "human",
"value": "<?php\nnamespace Oro\\Component\\MessageQueue\\Consumption;\n\nuse Oro\\Component\\MessageQueue\\Transport\\MessageInt... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Return Annotation\n\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Zephir.\n *\n * (c) Zephir Team <team@zephir-lang.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distri... | php | chosen |
[
{
"from": "human",
"value": "Add sidebar to all views.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Application\\View\\Helper;\n\nuse Zend\\View\\Helper\\AbstractHelper;\n\nclass SidebarWidget extends AbstractHelper {\n\n public function __construct() {\n \n }\n\n public f... | php | chosen |
[
{
"from": "human",
"value": "Add index on beatmap_discussions (user_id, updated_at)\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddIndexToBeatmapDiscus... | php | chosen |
[
{
"from": "human",
"value": "Create cache clear acceptance tests\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CacheClearCommandTest extends AcceptanceTestCase\n{\n protected static $cacheDir;\n\n public static function setUpBeforeClass()\n {\n static::$cacheDir = oxRegistry::g... | php | chosen |
[
{
"from": "human",
"value": "Change href type in Attachements table (varchar => text)\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Movim\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass ChangeHrefTypeAttachementsTable extends Migration\n{\n public function up()\n {\n ... | php | chosen |
[
{
"from": "human",
"value": "Check in ComFunctionality acceptance test\n\nThis tests the main functionality of a COM-API based site.\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\n/* @var $scenario Codeception\\Scenario */\r\n\r\n$I = new AcceptanceTester($scenario);\r\n\r\n$I->loadSecrets();\r\n... | php | chosen |
[
{
"from": "system",
"value": "Modify event listener should implement modify method with ItemPipelineEvent parameter in order to be able to stop propagation.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the ONGR package.\n *\n * (c) NFQ Technologies UAB <info@nfq.com>\n... | php | chosen |
[
{
"from": "human",
"value": "Add an extra field to killmails for no apparent reason\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass KillmailsExtraFieldToDetermineIfUpgraded extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * Wr... | php | chosen |
[
{
"from": "system",
"value": "Use the `web` middleware group by default in the web config"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | User Model\n |----------------------------------------... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.