conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update string text domain and retab code\n"
},
{
"from": "human",
"value": "<section class=\"no-results not-found\">\n <header class=\"page-header\">\n <h1 class=\"page-title\"><?php _e('Nothing Found', 'twentyseventeen'); ?></h1>\n\t</header>\n\t<div clas... | php | chosen |
[
{
"from": "system",
"value": "Send properly cased command payload.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\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 * You ... | php | chosen |
[
{
"from": "human",
"value": "Move base module class into ATP\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ATP;\n\nclass Module\n{\n\tprotected $_moduleName = \"\";\n\n public function onBootstrap(\\Zend\\Mvc\\MvcEvent $e)\n {\n $eventManager = $e->getApplication()->get... | php | chosen |
[
{
"from": "human",
"value": "Create Client Names data source"
},
{
"from": "gpt",
"value": "<?php\n\n\trequire_once(TOOLKIT . '/class.datasource.php');\n\t\n\tClass datasourceclient_names extends Datasource{\n\t\t\n\t\tpublic $dsParamROOTELEMENT = 'client-names';\r\n\t\tpublic $dsParamORDER = 'a... | php | chosen |
[
{
"from": "human",
"value": "Create a new exception class for bad request syntax (bad JSON data, etc)\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Paulus - A PHP micro-framework for creating RESTful API services\n *\n * @author\t\tTrevor Suarez (Rican7)\n * @copyright\t2013 Trevor Suarez\n * ... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for GuzzleClient\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace CouchDB\\Tests\\Http;\n\nuse CouchDB\\Http\\GuzzleClient;\n\n/**\n * @author Markus Bachmann <markus.bachmann@bachi.biz>\n */\nclass GuzzleClientTest\n{\n protected function setUp()\n... | php | chosen |
[
{
"from": "human",
"value": "Add a Database template config file.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: rdok\n * Date: 10/10/2014\n * Time: 4:53 AM\n */\n\n/**\n * All credits to http://stackoverflow.com/a/1864355/2790481\n * and https://gist.github.com/j... | php | chosen |
[
{
"from": "human",
"value": "Move files plugin to trunk folder\n\n"
},
{
"from": "gpt",
"value": "<?php\n# -- BEGIN LICENSE BLOCK ----------------------------------\n# This file is part of Apercite, a plugin for Dotclear.\n# \n# Copyright (c) 2009 Francis Besset\n# francis.besset@free.fr\n# \n# ... | php | chosen |
[
{
"from": "human",
"value": "Update SplatNet ID of Range Blaster\n\nSigned-off-by: AIZAWA Hina <07c779d48779c322a7c5324109202f9012f7aebf@bouhime.com>\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @copyright Copyright (C) 2015-2017 AIZAWA Hina\n * @license https://github.com/fetus-hina/stat.ink... | php | chosen |
[
{
"from": "human",
"value": "Add new Class ( Validator )\n\nA VALIDATION CLASSES TO CLEAN AND VALIDITY\n"
},
{
"from": "gpt",
"value": "<?php if( !defined('HARAZAKIDA') ) handle_this('DIRECTORY_BROWSING','VALIDATION_');\n\n /* \n * OPEN SOURCE PROJECTS © HARAZAKI 2014 \n\t A VALIDATION CL... | php | chosen |
[
{
"from": "human",
"value": "Add migrator to handle the database migrations.\n"
},
{
"from": "gpt",
"value": "<?php\n/*!\n * Radium\n * Copyright 2011-2014 Jack Polgar\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit... | php | chosen |
[
{
"from": "human",
"value": "Define user table and columns\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Doctrin\\Common\\Collections\\ArrayCollection;\n\n/**\n * @Entity @Table(name=\"users\")\n **/\nclass User\n{\n /** @Id @Column(type=\"integer\") @GeneratedValue **/\n protected $id;\n ... | php | chosen |
[
{
"from": "human",
"value": "Test O*NET tables exist properly\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Eduity\\EloquentOnet\\Tests;\n\nuse Eduity\\EloquentOnet\\Tests\\Cases\\DatabaseTestCase;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass DatabaseTest extends DatabaseTestCase {\... | php | chosen |
[
{
"from": "human",
"value": "Clear all view caches because cache_component_includes changed incompatible\n"
},
{
"from": "gpt",
"value": "<?php\nclass Kwf_Update_38017 extends Kwf_Update\n{\n protected $_tags = array('kwc');\n\n public function update()\n {\n //clear all view cac... | php | chosen |
[
{
"from": "human",
"value": "new: Add a baseurl changer for shell scripts\n\n- cake /var/www/MISP/app/Console Baseurl [new baseurl]\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * Reset a password\n *\n * arg0 = baseurl\n */\nclass BaseurlShell extends AppShell {\n\n\tpublic $uses = array('Server... | php | chosen |
[
{
"from": "human",
"value": "Add example that shows self reference\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Zlikavac32\\Rick\\Examples;\n\nuse Zlikavac32\\Enum\\Enum;\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n/**\n * You can reference differen... | php | chosen |
[
{
"from": "human",
"value": "Add wrapper library around Github api\n"
},
{
"from": "gpt",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Github_api {\n\n /**\n * Github API Client Singleton\n *\n * @var object\n */\n private $clien... | php | chosen |
[
{
"from": "human",
"value": "[Migration] Change sponsor_id to supporter_id in events.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AddSupporterId extends AbstractMigration\n{\n public function up()\n {\n $events = $this->table('events')... | php | chosen |
[
{
"from": "human",
"value": "Add dbtoolbox to reduce rendundancy\n"
},
{
"from": "gpt",
"value": "<?php \n\n/**\n Copyright (C) 2010-2016 by the FusionInventory Development Team.\n Copyright (C) 2016 Teclib'\n\n This file is part of Armadito Plugin for GLPI.\n\n Armadito Plugin for GLPI ... | php | chosen |
[
{
"from": "human",
"value": ":white_check_mark: Add test for Credentials abstract class.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse PHPUnit\\Framework\\TestCase;\nuse Risan\\OAuth1\\Credentials\\Credentials;\n\nclass CredentialsTest extends TestCase\n{\n private $credentialsStub;\n\n fu... | php | chosen |
[
{
"from": "human",
"value": "Allow a consistent api amongst adapters that provide this feature\n"
},
{
"from": "gpt",
"value": "<?php\n\n\nnamespace Gbowo\\Plugin;\n\n/**\n * @author Lanre Adelowo <me@adelowolanre.com>\n * Class AbstractFetchAllPlans\n * @package Gbowo\\Plugin\n */\nabstract cla... | php | chosen |
[
{
"from": "human",
"value": "Clean up and formalize interfaces.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Guardrail. Copyright (c) 2017, Jonathan Gardiner and BambooHR.\n * Apache 2.0 License\n */\n\nnamespace BambooHR\\Guardrail\\SymbolTable;\n\n\ninterface PersistantSymbolTable {\n\t/**... | php | chosen |
[
{
"from": "human",
"value": "Add a site level abstract attachment downloader.\n\nThis can be reused for all of our sites that use SiteAttachment.\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once 'Admin/pages/AdminPage.php';\n\n/**\n * Download page for attachments\n *\n * @package Site\n... | php | chosen |
[
{
"from": "human",
"value": "Add PayPal Order ID to sale\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AddPayPalOrderId extends AbstractMigration\n{\n public function change()\n {\n $table= $this->table('sale');\n $table\n ->ad... | php | chosen |
[
{
"from": "human",
"value": "Add test case for FootprintListener\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Muffin\\Footprint\\Test\\TestCase\\Event\\Listener;\n\nuse Cake\\Event\\Event;\nuse Cake\\ORM\\Entity;\nuse Cake\\TestSuite\\TestCase;\nuse Muffin\\Footprint\\Event\\FootprintListen... | php | chosen |
[
{
"from": "human",
"value": "Add a sample application for the Google Translate service.\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once '../../src/apiClient.php';\nrequire_once '../../src/contrib/apiTranslateService.php';\n\n$client = new apiClient();\n$client->setApplicationName('Google Tr... | php | chosen |
[
{
"from": "human",
"value": "Create New PHP script for date\n\nThe script compare two dates between each other."
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: panayiotisgeorgiou\n * Date: 29/05/15\n * Time: 12:52\n */\n\n$year = '2015';\n$month = '06';\n$day = '7';\... | php | chosen |
[
{
"from": "human",
"value": "Save the calendar event in the database.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*©lgpl*************************************************************************\n* *\n* This file is part ... | php | chosen |
[
{
"from": "human",
"value": "Test case with mock API\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace CloudObjects\\SDK;\n\nuse ML\\IRI\\IRI;\nuse GuzzleHttp\\Client, GuzzleHttp\\Handler\\MockHandler,\n GuzzleHttp\\HandlerStack, GuzzleHttp\\Psr7\\Response;\n\nclass ObjectRetrieverMockTest ex... | php | chosen |
[
{
"from": "human",
"value": "Add tests for ScriptInterpreterFlags class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests\\Script;\n\n\nuse BitWasp\\Bitcoin\\Script\\ScriptInterpreterFlags;\nuse BitWasp\\Bitcoin\\Tests\\AbstractTestCase;\n\nclass ScriptInterpreterFlagsT... | php | chosen |
[
{
"from": "human",
"value": "Add Test case for BounceMsgSpec.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Zimbra\\Mail\\Tests\\Struct;\n\nuse Zimbra\\Mail\\Tests\\ZimbraMailTestCase;\nuse Zimbra\\Enum\\AddressType;\nuse Zimbra\\Mail\\Struct\\EmailAddrInfo;\nuse Zimbra\\Mail\\Struct\\Boun... | php | chosen |
[
{
"from": "human",
"value": "Add example with search filter\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire 'vendor/autoload.php';\n\nuse Sajari\\Engine\\EngineClient;\nuse Sajari\\Engine\\Exception\\EngineException;\n\n$logger = new Monolog\\Logger('log');\n$logger->pushHandler(new Monolog\\H... | php | chosen |
[
{
"from": "human",
"value": "Add pt Portugal lang support\n"
},
{
"from": "gpt",
"value": "<?php\n\nreturn [\n\n /**\n *\n * Shared translations.\n *\n */\n 'title' => 'Instalador Laravel',\n 'next' => 'Próximo Passo',\n 'finish' => 'Instalar',\n\n\n /**\n *\n ... | php | chosen |
[
{
"from": "human",
"value": "Move CleanCache commands to lib/Robo/Plugins/Commands/\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SuiteCRM\\Robo\\Plugin\\Commands;\n\n\n/**\n * Class CleanCacheCommands\n *\n * @category RoboTasks\n * @package SuiteCRM\\Robo\\Plugin\\Commands\n * @author ... | php | chosen |
[
{
"from": "human",
"value": "Add converter from old tool's format to PHP format\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once 'TextCat.php';\n\nif($argc != 3) {\n\tdie(\"Use $argv[0] INPUTDIR OUTPUTDIR\\n\");\n}\nif(!file_exists($argv[2])) {\n\tmkdir($argv[2], 0755, true);\n}\n$cat = new ... | php | chosen |
[
{
"from": "human",
"value": "Add test-case for Type error messages\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the JsonSchema 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": "human",
"value": "Hide lower priced subscription levels on the registration form for existing members.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This will hide subscription levels on the registration form page\n * if their price is lower than the price of member's current\n * su... | php | chosen |
[
{
"from": "human",
"value": "Add test for all linklist\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Denkmal_Paging_Link_AllTest extends CMTest_TestCase {\n\n public function tearDown() {\n CMTest_TH::clearEnv();\n }\n\n public function testGetItems() {\n $link1 = Denkma... | php | chosen |
[
{
"from": "human",
"value": "Add base tests for translations resource.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Onesky\\Api\\Tests;\n\nuse Onesky\\Api\\Client;\n\n/**\n * Class to test the translations resource.\n *\n * See more about translations resource here:\n * https://github.com... | php | chosen |
[
{
"from": "human",
"value": "Fix ZF-12173: Zend_Form and Zend_Form_Element prefix paths are not prefix agnostic (namespaces). Patch by Antonio J García Lagar.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Zend Framework\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license... | php | chosen |
[
{
"from": "human",
"value": "Create test for the dummy class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\Cerbero\\SkeletonTest;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass CiaoSpec extends ObjectBehavior\n{\n public function it_is_initializable()\n {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add Template Properties collection utility test\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Aedart\\Scaffold\\Contracts\\Collections\\TemplateProperties;\nuse Aedart\\Scaffold\\Templates\\TemplateData;\nuse Aedart\\Testing\\Laravel\\TestCases\\unit\\GetterSetterTra... | php | chosen |
[
{
"from": "human",
"value": "Add initial tests for Beeminder_HttpDriver_Curl\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Beeminder_Tests_HttpDriver_CurlTest extends PHPUnit_Framework_TestCase\n{\n public function testInstantiation()\n {\n $driver = new Beeminder_HttpDriver_Curl(... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for RpcQueue"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once __DIR__ . \"/tester_autoload.php\";\n\nclass RpcQueueTest extends \\PHPUnit_Framework_TestCase {\n\n\tfunction test_rpc_call_timeout() {\n\t\t$log = new \\Psr\\Log\\NullLogger();\n\t\t$q ... | php | chosen |
[
{
"from": "human",
"value": "Add a koala_content:setup command which creates some default content\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Koala\\ContentBundle\\Command;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\Component\\Console\\Input\\Inp... | php | chosen |
[
{
"from": "human",
"value": "Add a Client decorator to handle __call behaviour\n\nSigned-off-by: Stéphane HULARD <a24f38cb8c57ec2778c80a9f0c151933508927e5@chstudio.fr>\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the bee4/transport package.\n * For the full copyright and ... | php | chosen |
[
{
"from": "human",
"value": "Add generic webservice class (factory to create webservices from path)\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once 'webservice/db.php';\n\n/**\n * Abstract Base class for all web services.\n */\nabstract class WebService {\n\n /**\n * Executes the w... | php | chosen |
[
{
"from": "human",
"value": "Enforce spaces around concat operator\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Makes sure there are spaces between the concatenation operator (.) and\n * the strings being concatenated.\n * @name Snap_Sniffs_Strings_ConcatenationSpacingSniff\n */\nclass Snap_S... | php | chosen |
[
{
"from": "human",
"value": "Add PayPal notify_url override example.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This will change the notify_url sent to PayPal during PayPal Standard payments.\n *\n * By default, RCP sends the local site URL. If you're developing on localhost\n * or some oth... | php | chosen |
[
{
"from": "human",
"value": "Add invoke first function test suite.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for dropFirst Mimic library function.\n *\n * @since 0.1.0\n */\nclass InvokeFi... | php | chosen |
[
{
"from": "human",
"value": "Add helper class for handling MFA information.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Sil\\SilAuth\\mfa;\n\nclass MfaInfo\n{\n const EMPLOYEE_ID = 'employee_id';\n const MFA_OPTIONS = 'mfa_options';\n const PROMPT_FOR_MFA = 'prompt_for_mfa';\n ... | php | chosen |
[
{
"from": "human",
"value": "Add class for holding tree node value including debug info\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Ordermind\\LogicalPermissions\\PermissionTree;\n\nclass PermissionTreeNodeValue\n{\n private bool $internalValue;\n\n /**\... | php | chosen |
[
{
"from": "human",
"value": "Add created/updated times to image table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass AddImageTimes extends AbstractMigration\n{\n public function change()\n {\n $table= $this->table('image', [ 'signed' => fal... | php | chosen |
[
{
"from": "human",
"value": "Create new page for admin order history.\n"
},
{
"from": "gpt",
"value": " <!-- Page Content -->\n <div class=\"container\">\n\n <!-- Page Header -->\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <h1 class=\"page-hea... | php | chosen |
[
{
"from": "system",
"value": "Add fix for Windows OS\n"
},
{
"from": "human",
"value": "<?php\n\nrequire BASEPATH . 'helpers/path_helper.php';\n\nclass Path_helper_test extends CI_TestCase \n{\n\tpublic function test_set_realpath()\n\t{\t\t\t\t\n\t\t$expected = getcwd() . '/';\n\t\t$this->assert... | php | chosen |
[
{
"from": "human",
"value": "Create Notification for sending GI mailable\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App\\Notifications;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Notifications\\Notification;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse App\\Mail\\Genera... | php | chosen |
[
{
"from": "human",
"value": "Add example for CSV export\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/php\n<?php\n\n// HTTPFUL Library\n// http://phphttpclient.com/\ninclude \"../../httpful/httpful.phar\";\n\n// Use PHP Library from\n// http://csv.thephpleague.com/\nuse League\\Csv\\Writer;\nrequi... | php | chosen |
[
{
"from": "human",
"value": "Add model form type for change password\n"
},
{
"from": "gpt",
"value": "<?php \nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Model;\n\nuse Symfony\\Component\\Security\\Core\\Validator\\Constraints as SecurityAssert;\nuse Symfony\\Component\\Validator\\Co... | php | chosen |
[
{
"from": "human",
"value": "Fix missing cannot process template exception\n"
},
{
"from": "gpt",
"value": "<?php namespace Aedart\\Scaffold\\Exceptions;\n\nuse RuntimeException;\n\n/**\n * Cannot Process Template Exception\n *\n * Throw this exception whenever a template cannot be processed, e.... | php | chosen |
[
{
"from": "human",
"value": "Add test for listing taxonomy webservice\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse AppBundle\\AppBundle;\nuse AppBundle\\DB;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFounda... | php | chosen |
[
{
"from": "system",
"value": "Fix to load MySql Class\n"
},
{
"from": "human",
"value": "<?php\nnamespace Spika\\Provider;\n\nuse Spika\\Db\\CouchDb;\nuse Spika\\Db\\MySQL;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\nclass SpikaDbServiceProvider implements ServiceProviderIn... | php | chosen |
[
{
"from": "human",
"value": "Allow arrays to be logged in a more readable way\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Jean Silva <me@jeancsil>\n * @license MIT\n */\nnamespace Jeancsil\\FlightSpy\\Log;\n\nuse Monolog\\Logger;\nuse Psr\\Log\\LoggerAwareTrait;\n\nclass ArrayLogger ... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for getServiceAttributesResponse class\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * Copyright (C) 2013 Kolibre\n *\n * This file is part of Kolibre-KADOS.\n * Kolibre-KADOS is free software: you can redistribute it and/or modify\n * it under the te... | php | chosen |
[
{
"from": "human",
"value": "Add simple website to get apache error logs\n"
},
{
"from": "gpt",
"value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><title>Qu... | php | chosen |
[
{
"from": "human",
"value": "Add tests for turning transcriptions into HTML and markup\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Test\\TestCase\\Model\\Entity;\n\nuse App\\Model\\CurrentUser;\nuse App\\Model\\Entity\\Sentence;\nuse App\\Model\\Entity\\Transcription;\nuse Cake\\TestS... | php | chosen |
[
{
"from": "human",
"value": "Add tests for composite denormalizer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\SyliusLabs\\RabbitMqSimpleBusBundle\\Denormalizer;\n\nuse PhpAmqpLib\\Message\\AMQPMessage;\nuse PhpSpec\\ObjectBehavior;\nuse SyliusLabs\\RabbitMqSimpleBusBundle\\Denormal... | php | chosen |
[
{
"from": "human",
"value": "Add test for css vendor response\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CM_Response_Resource_Css_VendorTest extends CMTest_TestCase {\n\n public function testProcess() {\n $render = new CM_Frontend_Render(new CM_Frontend_Environment());\n $r... | php | chosen |
[
{
"from": "human",
"value": "Add a special QueryString parser....\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Omnipay\\UnionPay\\Common;\n\n/**\n * String Util for UnionPay\n * Class StringUtil\n * @package Omnipay\\UnionPay\\Common\n */\nclass StringUtil\n{\n public static function p... | php | chosen |
[
{
"from": "human",
"value": "Add new Bookings - Update endpoint\n"
},
{
"from": "gpt",
"value": "<?php namespace Tev\\Bs\\Endpoint\\Bookings;\n\nuse Buzz\\Message\\RequestInterface;\nuse Tev\\Bs\\Endpoint\\AbstractEndpoint;\n\n/**\n * Endpoint object for /api/bookings/:id.\n *\n * See: /docs/end... | php | chosen |
[
{
"from": "human",
"value": "Add missing index on the user column\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n/**\n * @copyright Copyright (c) 2021 Joas Schilling <coding@schilljs.com... | php | chosen |
[
{
"from": "human",
"value": "Add compressed doctrine storage stratrgy\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Kevinrob\\GuzzleCache\\Storage;\n\nuse Doctrine\\Common\\Cache\\Cache;\nuse Kevinrob\\GuzzleCache\\CacheEntry;\n\nclass CompressedDoctrineCacheStorage implements CacheStorage... | php | chosen |
[
{
"from": "human",
"value": "[TASK] Add Unit Tests for Utility\\Algorithms\n\nThis adds Unit Tests for the Utility\\Algorithms class and its functions.\n\nChange-Id: I040f2177c4955f05392b9fc0ef6508a90c8fd681\nReleases: master, 2.0\nOriginal-Commit-Hash: 936ffe938c27361bab71f34c3e7bafbbc2319dad\n"
},
{
... | php | chosen |
[
{
"from": "human",
"value": "Add test for Twig SupportExtension (check if Exception raised when jquery path is invalid)\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * This file is part of the Artscore Studio Framework package.\n *\n * (c) Nicolas Claverie <info@artscore-studio.fr>\n *\n * For th... | php | chosen |
[
{
"from": "human",
"value": "Add config options for server module\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * SolusVM_ConfigOptions\n *\n * Define the settings that are configurable on a per product basis when a product uses the module\n *\n * @package\t\tSolusVM\n * @category\tWHMCS Provisio... | php | chosen |
[
{
"from": "human",
"value": "Make a test case for the Observation class.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Tests;\n\nuse mcordingley\\Regression\\Observation;\nuse PHPUnit_Framework_TestCase;\n\nclass ObservationTest extends PHPUnit_Framework_TestCase\n... | php | chosen |
[
{
"from": "human",
"value": "Add teams content type and associated city taxonomy\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Plugin Name: Improv events & teams \n * Plugin URI: https://github.com/vatoz/wpimprov\n * Description: Will display events and teams\n * Version: 0.0.1\n * Author: Vac... | php | chosen |
[
{
"from": "system",
"value": "Improve error message for missing shells\n\nAttempt to improve the missing shell error to cover the scenario when\nsomeone is using a new style plugin but has an outdated bin/cake.php\nthat isn't using CommandRunner.\n\nRefs markstory/asset_compress#324\n"
},
{
"from": ... | php | chosen |
[
{
"from": "human",
"value": "Create User Controller in user bundle\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Owbaz\\UserBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n\nclass UserCon... | php | chosen |
[
{
"from": "human",
"value": "Add test for tickets index view\n"
},
{
"from": "gpt",
"value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('ensure that the tickets index works');\n$I->amOnPage('/tickets');\n$I->see('Title', 'th');\n$I->see('Description', 'th');\n$I->see('Priority', '... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the new DbFormatter\n\nEach Formatter should be covered by unit tests.\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... | php | chosen |
[
{
"from": "human",
"value": "Create DB migration to auto-remove mis-created stations.\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Entity\\Migration;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\Migrations\\AbstractMigration;\n\nfinal class Versio... | php | chosen |
[
{
"from": "human",
"value": "UPDATE : missing file in repo\n\ngit-svn-id: d2ca001274ea5b586d14e99f1302c6041fd0d671@583 9d51a8f0-6521-42ea-932e-d822aa02ce2f\n"
},
{
"from": "gpt",
"value": "<?php\n\n$instance_sub_table = new Table(\"cc_configuration\", \"configuration_key as cfgkey, configuration... | php | chosen |
[
{
"from": "human",
"value": "Add status column for accounts\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AlterTableAccountAddStatusColumn extends Migrat... | php | chosen |
[
{
"from": "human",
"value": "Add runnable to generate winner.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file is part of the Stippers project (available here: https://github.com/Stannieman/stippers/).\n * The license and all terms en conditions that apply to Stippers also apply to th... | php | chosen |
[
{
"from": "human",
"value": "Enable media servers to report status"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @package api\n * @subpackage objects\n */\nclass KalturaMediaServerStatus extends KalturaObject\n{\n\tprivate static $mapBetweenObjects = array\n\t(\n\t);\n\t\n\t/* (non-PHPdoc)\n\t *... | php | chosen |
[
{
"from": "human",
"value": "Add console application which shows the filter reloading status\n"
},
{
"from": "gpt",
"value": "#!/usr/local/bin/php -q\n<?php\n\n$last_text = \"\";\n\nwhile(!stristr($status, \"Done\")) {\n $status = get_status();\n if($status <> \"\") {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add new String atom type.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Enzyme\\Axiom\\Atoms;\n\nuse Enzyme\\Axiom\\Exceptions\\AtomException;\n\nclass StringAtom implements AtomInterface\n{\n protected $value;\n\n public function __construct($value)\n ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for test cases\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 and as... | php | chosen |
[
{
"from": "human",
"value": "Add test to show problem and how it is fixed.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace libphonenumber\\Tests\\Issues;\n\nuse libphonenumber\\PhoneNumber;\nuse libphonenumber\\PhoneNumberToTimeZonesMapper;\nuse libphonenumber\\PhoneNumberUtil;\n\n/**\n * Te... | php | chosen |
[
{
"from": "human",
"value": "Add authorization url helper test\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Frankkessler\\Guzzle\\Oauth2\\Tests;\n\nuse Frankkessler\\Guzzle\\Oauth2\\AccessToken;\nuse Frankkessler\\Guzzle\\Oauth2\\GrantType\\ClientCredentials;\nuse Frankkessler\\Guzzle\\Oa... | php | chosen |
[
{
"from": "human",
"value": "Add new interface for constraints.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace H4D\\Leveret\\Validation;\n\ninterface ConstraintInterface\n{\n\n /**\n * @param mixed $value\n *\n * @return bool\n */\n public function validate($value);\n\... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for Resource"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Alchemy\\Zippy\\Tests\\Resource;\n\nuse Alchemy\\Zippy\\Resource\\Resource;\nuse Alchemy\\Zippy\\Tests\\TestCase;\n\nclass ResourceTest extends TestCase\n{\n /**\n * @covers Alchemy\... | php | chosen |
[
{
"from": "human",
"value": "Add a helper to check if the current user is root\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Concrete\\Core\\Foundation\\Environment;\n\nclass User\n{\n /**\n * @var FunctionInspector\n */\n protected $functionInspector;\n\n /**\n * @par... | php | chosen |
[
{
"from": "human",
"value": "Move exception class to its own file\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * DatabaseConnectionException class\n *\n * Type of exception thrown when ResqueStat can not connect\n * to a database\n *\n * @subpackage resqueboard.lib\n * @since 1.... | php | chosen |
[
{
"from": "human",
"value": "Fix name of file SQLServerModel\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App\\Model;\n\nclass SQLServerModelExample extends \\Pleets\\Sql\\AbstractionModel\n{\n public function consulta()\n {\n $sql = \"SELECT * FROM SYS.TABLES\";\n $re... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Controller firewall\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ZfcRbacTest\\Controller;\n\nuse PHPUnit_Framework_TestCase;\nuse ZfcRbac\\Firewall\\Controller as ControllerFirewall;\n\nclass ControllerTest extends PHPUnit_Framework_TestCase\n{\n... | php | chosen |
[
{
"from": "human",
"value": "Add test: /admin/files/ajax_delete multi file delete.\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Fc2blog\\Tests\\App\\Controller\\Admin\\Files;\n\nuse Fc2blog\\Config;\nuse Fc2blog\\Model\\FilesModel;\nuse Fc2blog\\Tests\\DBHelper;\... | php | chosen |
[
{
"from": "human",
"value": "Add a basic version of send grid mailer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Theodo\\SendGridMailerBundle\\Mailer;\n\nuse SendGrid as SendGridService;\nuse SendGrid\\Email;\n\n/**\n * Send emails via the sendGridMailer API\n * Different methods can be ... | php | chosen |
[
{
"from": "human",
"value": "Add concept class of data mapper\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace HydrefLab\\SWAPI;\n\nuse ReflectionClass;\n\nclass Mapper\n{\n /**\n * @param object $data\n * @param string|object $className\n * @return object\n */\n public ... | php | chosen |
[
{
"from": "human",
"value": "Add entry is publish exception \n\nChange-Id: I7eb08b9a03c18054e3bf2069a07679b089b0f5bf\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * contentinum - accessibility websites\n *\n * LICENSE\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.