conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "fix(): Remove conflict from plugin header comment\n"
},
{
"from": "human",
"value": "<?php\n\n/*\nPlugin Name: tonik/gin\nPlugin URI: http://tonik.pl\nDescription: Foundation of the Tonik WordPress Starter Theme. Provides all custom functionalities which it offers.\... | php | chosen |
[
{
"from": "system",
"value": "refactor(roles): Create relationship for roles table\n\nmodified: app/Role.php\n\nsee #97\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Role extends Model\n{\n protected $fillable = ['name', 'd... | php | chosen |
[
{
"from": "system",
"value": "Fix file path to check\n"
},
{
"from": "human",
"value": "<?php\n/**\n * First stage loader\n *\n * Here we get things started by ensuring the PHP version we're running on\n * is supported by the app. We'll display a friendly error page if not.\n *\n * Next, we'll ... | php | chosen |
[
{
"from": "system",
"value": "Add support for json decoding\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nuse Silex\\Application;\nuse Eyewitness\\Router;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\P... | php | chosen |
[
{
"from": "system",
"value": "Remove duplicate slashes from category name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\Actions;\n\nuse FluxBB\\Core\\Action;\nuse FluxBB\\Models\\CategoryRepository;\nuse Illuminate\\Support\\Str;\n\nclass ViewCategory extends Action\n{\n prot... | php | chosen |
[
{
"from": "system",
"value": "Fix order of news items, published on the same day\n"
},
{
"from": "human",
"value": "<?php namespace Neonbug\\News\\Repositories;\r\n\r\nclass NewsRepository {\r\n\t\r\n\tconst CONFIG_PREFIX = 'neonbug.news';\r\n\t\r\n\tprotected $latest_items_limit = 20;\r\n\tprot... | php | chosen |
[
{
"from": "system",
"value": "Make sure that Mock classes are included only once.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Definition of class DICTest\n *\n * @copyright 2015-today Justso GmbH\n * @author j.schirrmacher@justso.de\n * @package justso\\justapi\\test\n */\n\nnamesp... | php | chosen |
[
{
"from": "system",
"value": "Add info on where to report a bug for the pear2 website."
},
{
"from": "human",
"value": "<?php\n\n// Set the title for the main template\n$parent->context->page_title = 'Support - ' . $frontend->title;\n\n?>\n<div class=\"support\">\n <h2>Support</h2>\n <... | php | chosen |
[
{
"from": "system",
"value": "Return types in repositories & dataset\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n *\n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n *\n * For the full copyr... | php | chosen |
[
{
"from": "system",
"value": "Use pipes || instead of OR in PHP code\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('../config.php');\nrequire_once('authenticate.php');\n\nif (! is_numeric($_POST[KEY_SYS]) OR ! is_numeric($_POST[KEY_DIA]) OR ! is_numeric($_POST[KEY_PULSE])) {\n head... | php | chosen |
[
{
"from": "system",
"value": "Fix capitalization in class name.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Jenssegers\\Mongodb\\Model as Eloquent;\n\nclass Token extends ELoquent {\n\n protected $collection = 'tokens';\n\n protected $guarded = array('key');\n\n public static function ran... | php | chosen |
[
{
"from": "system",
"value": "Create the OptionsClientFactory without the Name\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the wp-magnify/magnify-elasticsearch package.\n *\n * (c) Christopher Davis <http://christopherdavis.me>\n *\n * For the full copyright and license... | php | chosen |
[
{
"from": "system",
"value": "Use indirect class alias registration to fix PHP 5.6 behavior\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AmpProject\\CompatibilityFix;\n\nuse AmpProject\\CompatibilityFix;\n\n/**\n * Backwards compatibility fix for classes that were moved.\n *\n * @packag... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in edit form\n"
},
{
"from": "human",
"value": "<?php\nnamespace DlcCategory\\Form;\n\nuse DlcCategory\\Form\\BaseForm;\nuse DlcCategory\\Service\\Category as CategoryService;\nuse Zend\\Form\\FormInterface;\n\nclass EditCategory extends BaseForm\n{\n pu... | php | chosen |
[
{
"from": "system",
"value": "Make GA user id persistent across database resets and app_key resets\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OpenDominion\\Http\\Middleware;\n\nuse Analytics;\nuse Closure;\nuse Illuminate\\Support\\Facades\\Auth;\n\nclass Authenticate\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add public methods into interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaraComponents\\Seo\\Contracts;\n\ninterface Title\n{\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace LaraComponents\\Seo\\Contracts;\n\ninterface Title\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant handle call in TrustedProxies middleware\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Cache;\nuse Closure;\nuse Illuminate\\Http\\Request;\nuse Fideloper\\Proxy\\TrustProxies as Middleware;\n\nclass TrustProxie... | php | chosen |
[
{
"from": "system",
"value": "Fix service provider import path\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap any application services.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Write a base app service provider.\n"
},
{
"from": "human",
"value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Routing\\Stack\\Builder as Stack;\n\nclass AppServiceProvider extend... | php | chosen |
[
{
"from": "system",
"value": "Allow \"Authorization\" header to be used, in the CORS preflight request\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Silktide Nibbler. Copyright 2013-2014 Silktide Ltd. All Rights Reserved.\n */\nnamespace Silktide\\LazyBoy\\Provider;\nuse Pimple\\Container;\n... | php | chosen |
[
{
"from": "system",
"value": "Fix isset POST key for remove and send template\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Controller;\n\nclass Templates extends \\App\\Controller\\App\n{\n\n public function action_index()\n {\n $this->view->title = 'SMS Templates';\n\... | php | chosen |
[
{
"from": "system",
"value": "ADD campo data_public no formulario\n"
},
{
"from": "human",
"value": "<form class=\"\" action=\"sinal_confirmaCad.php\" method=\"post\">\n Titulo:<input type=\"text\" name=\"titulo\"><br>\n Categoria:<select name=\"categoria\">\n <option value=\"OB\" selected>Ob... | php | chosen |
[
{
"from": "system",
"value": "Add select business basic functions\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| H... | php | chosen |
[
{
"from": "system",
"value": "Set Primary key in userprofile model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass UserProfile extends Model{\n\n /**\n * The table associated with the model.\n *\n * @var string\n ... | php | chosen |
[
{
"from": "system",
"value": "Update interface to allow for ttl on set()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GraphStory\\Cache;\n\ninterface CacheAdapter\n{\n /**\n * Gets a cache entry\n * returning null if not in cache.\n *\n * @return null|mixed\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Prepare the schema in the ConsoleHandlerTest\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace MeetupOrganizing\\Command;\n\nuse MeetupOrganizing\\ServiceContainer;\nuse PHPUnit_Framework_TestCase;\nuse Webmozart\\Console\\Args\\StringA... | php | chosen |
[
{
"from": "system",
"value": "Delete recursive root path input\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CalendarReminder;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ReminderFileRepositoryTest extends TestCase\n{\n const REMINDERS_ROOT_PATH = 'tests/reminders';\n\n /** @var ... | php | chosen |
[
{
"from": "system",
"value": "Change viewing observatory to active\n"
},
{
"from": "human",
"value": "@extends ('index')\n@section ('title', $observatory)\n@section ('route', 'observatory')\n@section ('observatory', $observatory)\n\n@section ('sidebar')\n<sidebar class=\"col-lg-3 col-xl-4 p-3\">... | php | chosen |
[
{
"from": "system",
"value": "Disable OAuth header parsing for now.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware st... | php | chosen |
[
{
"from": "system",
"value": "Fix an injection definition for the Twig_Environment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Asmaster\\EquipTwig\\Configuration;\n\nuse Asmaster\\EquipTwig\\TwigFormatter;\nuse Auryn\\Injector;\nuse Equip\\Configuration\\ConfigurationInterface;\nuse Eq... | php | chosen |
[
{
"from": "system",
"value": "Change cmg get to post\n"
},
{
"from": "human",
"value": "<?\nsession_start();\nif($_REQUEST['logout']){unset($_SESSION['admin']);}\n\nif($_SESSION['admin'] == \"\"){\n\tdie();\n}\n\ninclude(\"../lib/CloudMngr/cloudmngr.core.class.php\");\n\n$CloudMngr = new CloudMn... | php | chosen |
[
{
"from": "system",
"value": "Truncate imports table on seed\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\Setting;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP 8.1 deprecation errors"
},
{
"from": "human",
"value": "<?php\n\n/**\n * League.Csv (https://csv.thephpleague.com)\n *\n * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * f... | php | chosen |
[
{
"from": "system",
"value": "Fix reference to hidden category (seems to have changed to a taxomonmy at some point)\n"
},
{
"from": "human",
"value": "<?php\n\n get_header();\n\n global $query_string;\n $query_modifications = is_category() ? \"\" : \"&cat=-308\"; // Exclude hidden posts unles... | php | chosen |
[
{
"from": "system",
"value": "Use the user-set language in twig filter\n"
},
{
"from": "human",
"value": "<?php\nnamespace Grav\\Plugin;\n\nuse \\Grav\\Common\\Grav;\n\nclass AdminTwigExtension extends \\Twig_Extension\n{\n protected $grav;\n\n public function __construct()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Use class name constants in config file.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Bright Nucleus View Component.\n *\n * @package BrightNucleus\\View\n * @author Alain Schlesser <alain.schlesser@gmail.com>\n * @license MIT\n * @link http://www.b... | php | chosen |
[
{
"from": "system",
"value": "Rename Solarium endpoint to clarify purpose\n\nWe will be configuring Solarium through our `.env` file, not through\nthe provider config. Additionally, our current SolrScoutEngine follows\nthe Algolia example in that it uses `searchableAs`, which assumes that\neach model will h... | php | chosen |
[
{
"from": "system",
"value": "Make it so library doesn't spit out error, when trying to display 0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ByteUnits;\n\nclass PowerScale\n{\n private $base;\n private $scale;\n private $precision;\n\n public function __construct($base, $s... | php | chosen |
[
{
"from": "system",
"value": "Add phpdoc and license to file\n"
},
{
"from": "human",
"value": "<?php\n\nclass Soflomo_Form extends Zend_Form\n{\n /**\n * Constructor\n * \n * @return Soflomo_Form\n */\n public function __construct ($options = null)\n {\n $this->a... | php | chosen |
[
{
"from": "system",
"value": "Document and file encryption changes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace EHEncryptionBundle\\Annotation;\n\nuse Doctrine\\Common\\Annotations\\Annotation;\n\n/**\n * @Annotation\n * @Target(\"CLASS\")\n */\nfinal class EncryptedFile\n{\n public ... | php | chosen |
[
{
"from": "system",
"value": "Rename 'Sign Up' display to 'Create an Account'\n"
},
{
"from": "human",
"value": "<div class=\"single\">\n <div class=\"panel warp\">\n <h1>Sign In</h1>\n <div>\n <?php echo inputText('username', 'Username'); ?>\n </div>\n ... | php | chosen |
[
{
"from": "system",
"value": "Use \"having\" instead of \"where\". We don't want to break the query and want to filter by all possible fields.\n"
},
{
"from": "human",
"value": "<?\nclass QuickSearch extends Filter {\n /*\n * Quicksearch represents one-field filter which goes perfectly wi... | php | chosen |
[
{
"from": "system",
"value": "Revert \"remove deprecated loadDevFunctions function\"\n\nThis reverts commit 509c65250fc1fa46da2f2d395fad5b9e7901eb4c.\n"
},
{
"from": "human",
"value": "<?php\n\nini_set('xdebug.max_nesting_level', 300);\nini_set('display_errors', 1);\n\nrequire dirname(__DIR__) .... | php | chosen |
[
{
"from": "system",
"value": "Add speaker name in talk page\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * template.php\n */\n\n/**\n * theme_preprocess_page\n */\nfunction tedxlausanne_preprocess_page(&$variables) {\n\n\n}\n\n/**\n * Preprocess variables for node.tpl.php\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Correct error in namespace declaration\n"
},
{
"from": "human",
"value": "<?php\nnamespace DMS\\Bundle\\TwigExtensionBundle\\Twig\\Date;\n\n/**\n * Adds support for Padding a String in Twig\n */\nclass PadStringExtension extends \\Twig_Extension\n{\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Remove wpautop for full width template\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template Name: Full Width\n *\n * The template for displaying all pages.\n *\n * This is the template that displays all pages by default.\n * Please note that this is the WordPr... | php | chosen |
[
{
"from": "system",
"value": "API: Clear embargo fields once embargo processed\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A queued job that publishes a target after a delay.\n *\n * @package advancedworkflow\n */\nclass WorkflowPublishTargetJob extends AbstractQueuedJob {\n\n\tpublic func... | php | chosen |
[
{
"from": "system",
"value": "Reduce logic duplication in RegisteredWorker\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace wcf\\system\\worker;\n\nuse wcf\\data\\object\\type\\ObjectType;\nuse wcf\\system\\WCF;\n\n/**\n * Represents a worker that is registered with the RebuildWorkerCollect... | php | chosen |
[
{
"from": "system",
"value": "Add git config for symfony-yaml\n"
},
{
"from": "human",
"value": "<?php\n\nif (Site::getConfig('handle') == 'skeleton-v1') {\n Git::$repositories['emergence-skeleton-v1'] = [\n 'remote' => 'https://github.com/JarvusInnovations/emergence-skeleton.git',\n ... | php | chosen |
[
{
"from": "system",
"value": "Switch workbench option to package\n"
},
{
"from": "human",
"value": "<?php namespace Arcanedev\\GeoIP\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Set default debug to false for production config\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Application Debug Mode\n |--------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add validation rules for themes\n"
},
{
"from": "human",
"value": "<?php\n\nclass Theme extends Eloquent {\n\n /**\n * The database table used by the model.\n *\n * @var string\n */\n protected $table = 'themes';\n\n /**\n * The attribut... | php | chosen |
[
{
"from": "system",
"value": "Allow extra options for mpdf\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TFox\\MpdfPortBundle\\Service;\n\nuse Mpdf\\Mpdf;\nuse Mpdf\\Output\\Destination;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nclass PDFService {\n\n /**\n * @... | php | chosen |
[
{
"from": "system",
"value": "Replace uses of old deprecated SpecialPageFactory in MW 1.32+\n\nBug: T246142\nChange-Id: Iefe22e0143b9651ad3f3d0999a1ba3b8a1564de3\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A single 'item' in the Spelling Dictionary Admin Links page\n */\nclass SDItem {\n\t... | php | chosen |
[
{
"from": "system",
"value": "Remove findBy deprecation in trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jhg\\DoctrinePagination\\ORM;\n\ntrait PaginatedRepositoryFindByTrait\n{\n /**\n * {@inheritdoc}\n *\n * @deprecated this method will be removed in this repositor... | php | chosen |
[
{
"from": "system",
"value": "Fix crossinclude conflict for phoxy class\n"
},
{
"from": "human",
"value": "<?php\n$code = file_get_contents($file);\n$obj = null;\n\n$tempns = uniqid('phoxy\\fork_');\n\n$header = <<<END\n namespace $tempns;\n\n use \\phoxy as phoxy;\nEND;\n\n$code = str_replace... | php | chosen |
[
{
"from": "system",
"value": "Make sure we still log the fact that the teacher logged in as someone though.\nAlso, make the \"realuser\" the teacher's id, in case we want to use it later\n"
},
{
"from": "human",
"value": "<?PHP // $Id$\n\n require(\"../config.php\");\n require(\"lib.php\")... | php | chosen |
[
{
"from": "system",
"value": "Test default vaules on ConnectionOptions class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Nats;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass ConnectionOptionsSpec extends ObjectBehavior\n{\n function it_is_initializable()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add comments on use of 'initializer' key."
},
{
"from": "human",
"value": "<?php\n/**\n * ZnZend\n *\n * @author Zion Ng <zion@intzone.com>\n * @link [Source] http://github.com/zionsg/ZnZend\n */\nnamespace ZnZend;\n\nclass Module\n{\n public function getAutolo... | php | chosen |
[
{
"from": "system",
"value": "Fix to work on new strings database.\n"
},
{
"from": "human",
"value": "<?php\nerror_reporting(E_ALL);\nini_set(\"display_errors\", 1);\n\nif(isset($_GET['param'])) {\n $db = new PDO('sqlite:strings.db');\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXC... | php | chosen |
[
{
"from": "system",
"value": "Set the container in the constructor\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the awurth/silex-user package.\n *\n * (c) Alexis Wurth <awurth.dev@gmail.com>\n *\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "system",
"value": "Add auth check for controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LibreEHR\\FHIR\\Http\\Controllers;\n\nuse LibreEHR\\Core\\Contracts\\BaseAdapterInterface;\nuse Illuminate\\Http\\Request;\n\nclass AppointmentController extends AbstractController\n... | php | chosen |
[
{
"from": "system",
"value": "Remove a foreign key artifact that should not have been part of the migration.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jazzee\\Migration;\n\n/**\n * Correctly cascade role, program relationships\n */\nclass Version20130702000000 extends \\Doctrine\\DBA... | php | chosen |
[
{
"from": "system",
"value": "Apply latest changes in FWBundle recipe\n\nSee https://github.com/symfony/recipes/pull/611"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\nrequire dirname(__DIR__).'/vendor/autoload.php';\n\n// Load cached env vars if the .env.lo... | php | chosen |
[
{
"from": "system",
"value": "Allow sessionTokenAction to POST redirect\n"
},
{
"from": "human",
"value": "<?php\nnamespace Payum\\Bundle\\PayumBundle\\Controller;\n\nuse Payum\\Core\\Request\\Capture;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpKernel\\Excepti... | php | chosen |
[
{
"from": "system",
"value": "Change assignment assertion in accessors' tests to more restrict\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MageTest\\Command;\nuse Mage\\Command\\AbstractCommand;\nuse MageTest\\TestHelper\\BaseTest;\nuse PHPUnit_Framework_MockObject_MockObject;\n\n/**\n... | php | chosen |
[
{
"from": "system",
"value": "Fix gamestates not being shuffled anymore in tests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace lucidtaz\\minimax\\tests\\tictactoe;\n\n/**\n * TicTacToe state that gives the possible decisions in a random order\n *\n * This is to rule out any tests that ac... | php | chosen |
[
{
"from": "system",
"value": "Set the user on the master layout\n"
},
{
"from": "human",
"value": "<?php\n\nView::composer('partials.sidebar-nav', 'Modules\\User\\Composers\\SidebarViewComposer');\nView::composer([\n 'user::admin.partials.permissions',\n 'user::admin.partials.permi... | php | chosen |
[
{
"from": "system",
"value": "Use require instead of include\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Imbo module for ZF2 package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE... | php | chosen |
[
{
"from": "system",
"value": "Use classic dirname(__FILE__) instead of __DIR__\n\nFor compatibility of older PHP versions\n"
},
{
"from": "human",
"value": "<?php\n\n$loader = require __DIR__.'/../vendor/autoload.php';\n$loader->add('Lisphp_Test', __DIR__);\n"
},
{
"from": "gpt",
"va... | php | chosen |
[
{
"from": "system",
"value": "Fix error in db config\n"
},
{
"from": "human",
"value": "<?php \n\nrequire_once __DIR__.'/../vendor/autoload.php';\n\nKohana::modules(array(\n\t'database' => MODPATH.'database',\n\t'auth' => MODPATH.'auth',\n\t'cache' => MODPATH.'cache',\n\t'functest' => __D... | php | chosen |
[
{
"from": "system",
"value": "Fix symfony yaml check for tests\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Configula - A simple configuration tool\n *\n * @author Casey McLaughlin <caseyamcl@gmail.com>\n * @license MIT\n * @package Configula\n * ------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix ivory geocoder reverse method...\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Model\\Services\\Geocoding;\n\nuse Geocoder\\Geocoder as BaseGeocoder;\n\n/**\n * Geocoder which describes a google map geocoder\n *\n * @see http://co... | php | chosen |
[
{
"from": "system",
"value": "Add default report only for travis-ci.\n"
},
{
"from": "human",
"value": "<?php\n\nuse mageekguy\\atoum\\reports;\n\n$script->addDefaultReport();\n\n$runner\n\t->addTestsFromDirectory(__DIR__ . '/tests/units/classes')\n\t->disallowUndefinedMethodInInterface()\n;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Add missing return type declarations\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\DBAL\\Driver\\DrizzlePDOMySql;\n\nuse Doctrine\\DBAL\\Platforms\\DrizzlePlatform;\nuse Doctrine\\DBAL\\Schema\\DrizzleSchemaManager;\n\n/**\n * Drizzle driver using ... | php | chosen |
[
{
"from": "system",
"value": "Correct path for Spot2 service provider"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Application;\n\n// Create new app\n$app = new Application();\n\n// Core silex providers\n$app->register(new Silex\\Provider\\ServiceControllerServiceProvider());\n$app->regist... | php | chosen |
[
{
"from": "system",
"value": "Fix payment method label for narrow boxes\n\nReviewed and approved by @fertxigan\n\nFix #18\n"
},
{
"from": "human",
"value": "<?php\n\nclass Aplazame_Aplazame_Block_Payment_Form extends Mage_Payment_Block_Form\n{\n protected function _construct()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert changes to EnglishUK language\n"
},
{
"from": "human",
"value": "<?php \n/*\n *\tMade by Samerton\n * https://github.com/NamelessMC/Nameless/\n * NamelessMC version 2.0.0-pr2\n *\n * License: MIT\n *\n * EnglishUK Language - Language version\n */\n\n// Wh... | php | chosen |
[
{
"from": "system",
"value": "Remove some unused variables, properties and methods\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 phpdocs to the 'real' classes\n\nSimilar to laravel/framework facades\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the TwigBridge package.\n *\n * @copyright Robert Crowe <hello@vivalacrowe.com>\n *\n * For the full copyright and lice... | php | chosen |
[
{
"from": "system",
"value": "Fix for Symfony Rest API\n\nWhen using symfony 2 as api server, the parameters were empty."
},
{
"from": "human",
"value": "<?php\nnamespace Lsw\\ApiCallerBundle\\Call;\n\nuse Lsw\\ApiCallerBundle\\Helper\\Curl;\n\n/**\n * cURL based API call with request data send ... | php | chosen |
[
{
"from": "system",
"value": "Change to handle marking the note as active in the database\n"
},
{
"from": "human",
"value": "<?php\n\nif(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {\n\t\n\t$noteId = $_POST['noteId']... | php | chosen |
[
{
"from": "system",
"value": "Test de l'existence de l'image\n"
},
{
"from": "human",
"value": "<p>Tu veux trouver le film : <?php echo htmlspecialchars($_POST['Film']); ?></p>\n</br>\n\n<?php\n\n $filmrecherche = $_POST['Film'];\n\n $object = json_decode(file_get_contents(\"http:/... | php | chosen |
[
{
"from": "system",
"value": "Add hidden 'tab' input to make log search work\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Logs view.\n *\n * @author Iron Bound Designs\n * @since 1.0\n * @license AGPL\n * @copyright Iron Bound Designs, 2015.\n */\n\nnamespace ITELIC\\Admin\\Tab\\Vi... | php | chosen |
[
{
"from": "system",
"value": "Connect to 3 peers in Managertest\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests\\Networking\\P2P;\n\nuse BitWasp\\Bitcoin\\Bitcoin;\nuse BitWasp\\Bitcoin\\Networking\\Peer\\Locator;\nuse BitWasp\\Bitcoin\\Tests\\Networking\\AbstractTe... | php | chosen |
[
{
"from": "system",
"value": "Fix option value join test after serialization change\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Civi\\Test\\Api4\\Query;\n\nuse Civi\\Api4\\Query\\Api4SelectQuery;\nuse Civi\\Test\\Api4\\UnitTestCase;\n\n/**\n * @group headless\n */\nclass OptionValueJoi... | php | chosen |
[
{
"from": "system",
"value": "Use tick instead of timer.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laravie\\Promise;\n\nuse React\\EventLoop\\Factory;\n\nclass AsyncPromises extends Actionable\n{\n /*... | php | chosen |
[
{
"from": "system",
"value": "Fix type case sensitive names.\n"
},
{
"from": "human",
"value": "<?php\n/* \n * Copyright 2014 Jack Sleight <http://jacksleight.com/>\n * This source file is subject to the MIT license that is bundled with this package in the file LICENCE. \n */\n\nnamespace Coast\... | php | chosen |
[
{
"from": "system",
"value": "Change houseprices to 6 months.\n"
},
{
"from": "human",
"value": "<?php\n\nclass HousePrice extends Module {\n\n public $url = \"https://data.bathhacked.org/resource/ifh9-xtsp.json\";\n \n function getData() {\n $postcodelat = self::$postCodeLoc[0];... | php | chosen |
[
{
"from": "system",
"value": "Bring back echo to ensure stability\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Layout functions\n */\n\n// `is_currentfile`\n//\n// Checks for current file. Returns boolean.\nfunction is_currentfile($file) {\n if (preg_match(\"/$file$/\", $_SERVER['PHP_SELF... | php | chosen |
[
{
"from": "system",
"value": "Use AugmentedContent instead of Content\n\nDo not touch the Content field: it is used also for database handling\nand modifying it will introduce a lot of issues. Instead, added the new\nAugmentedContent element to be used instead of Content in templates.\n"
},
{
"from"... | php | chosen |
[
{
"from": "system",
"value": "Fix getConstants to return the constants of the called class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Field Nation <support@fieldnation.com>\n * @license Apache 2.0\n * @copyright 2017 Field Nation\n */\nnamespace FieldNation;\n\nabstract class Abst... | php | chosen |
[
{
"from": "system",
"value": "Update role edit validation rule\n"
},
{
"from": "human",
"value": "<?php namespace Aliukevicius\\LaravelRbac\\Http\\Requests;\n\nclass EditRoleRequest extends Request {\n\n protected $translationFile = 'aliukevicius/laravelRbac::lang.role';\n\n /**\n * Ge... | php | chosen |
[
{
"from": "system",
"value": "Fix subscribe link in sidebar widget.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'mnw.php';\n\nfunction mnw_subscribe_widget_register() {\n register_sidebar_widget (__('mnw Subscribe'), 'mnw_subscribe_widget');\n}\nadd_action('init', 'mnw_subscribe_... | php | chosen |
[
{
"from": "system",
"value": "Add license header to Bundle class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Surfnet\\StepupMiddlewareBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass SurfnetStepupMiddlewareBundle extends Bundle\n{\n}\n"
},
{
"from": "gpt... | php | chosen |
[
{
"from": "system",
"value": "Fix login response not containing the token\n"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Forum\\Actions;\n\nuse Flarum\\Api\\Client;\nuse Flarum\\Forum\\Events\\UserLoggedIn;\nuse Flarum\\Core\\Repositories\\UserRepositoryInterface;\nuse Psr\\Http\\Mes... | php | chosen |
[
{
"from": "system",
"value": "[features] Add scenarios about add,delete product with main taxon and add main taxon to existing product\n[CoreBundle] Add new fields: mainTaxon in ProductType,main_taxon_id in Product.orm.xml, add new spec for ProductType\n[ProductBundle] Add method for step from background fo... | php | chosen |
[
{
"from": "system",
"value": "Fix the syntax error in getTypeOptions method\n\nIn the method getTypeOptions the array is broken, it's missing one comma."
},
{
"from": "human",
"value": "<?php namespace Mohsin\\Txt\\Models;\n\nuse Model;\n\n/**\n * Directive Model\n */\nclass Directive extends Mo... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Testing and obtaining the mostResentuser\"\n\nThis reverts commit 54c44b7f13aac8be837ee18809ce9db2ecd2b697."
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Models\\Message;\nuse Illuminate\\Http\\Request;\nuse App\\Re... | php | chosen |
[
{
"from": "system",
"value": "Use creation date of mining activity, not update date.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\MiningActivity;\nuse App\\Payment;\nuse Illuminate\\Support\\Facades\\DB;\n\nclass Report... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.