conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change: Set error message if validation fails\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Checkdomain\\TeleCash\\IPG\\API\\Response\\Action;\n\nuse Checkdomain\\TeleCash\\IPG\\API\\Response\\Action;\nuse Checkdomain\\TeleCash\\IPG\\API\\Service\\OrderServi... | php | chosen |
[
{
"from": "system",
"value": "Fix test case testing test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace atk4\\ui\\tests;\n\nclass TemplateTest extends \\atk4\\core\\PHPUnit_AgileTestCase\n{\n /**\n * Test constructor.\n */\n public function testTesting()\n {\n $thi... | php | chosen |
[
{
"from": "system",
"value": "Include Extensions, FileManager and Tinymce in AllCoreTests\n"
},
{
"from": "human",
"value": "<?php\nApp::uses('CroogoTestCase', 'TestSuite');\n\n/**\n * AllCorePluginsTest\n *\n */\nclass AllCorePluginsTest extends PHPUnit_Framework_TestSuite {\n\n\tpublic static... | php | chosen |
[
{
"from": "system",
"value": "Use lazy URL generator as to prevent construction race\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Routing\\Canonical;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\n/**\n * Canonical service provider.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Change the label sync to use a command. Make the autoloader work with a global require."
},
{
"from": "human",
"value": "<?php\nuse Garden\\Cli\\Cli;\nuse Garden\\Cli\\Schema;\n\nerror_reporting(E_ALL); //E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_E... | php | chosen |
[
{
"from": "system",
"value": "Test edge case in Prophecy strategy\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Tests\\Strategy;\n\nuse Moka\\Strategy\\ProphecyMockingStrategy;\nuse Prophecy\\Prophecy\\ObjectProphecy;\n\nclass ProphecyMockingStrategyTest extends... | php | chosen |
[
{
"from": "system",
"value": "Add more tests to validator number\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is a part of the Validator library.\n *\n * (c) 2013 Ebidtech\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribute... | php | chosen |
[
{
"from": "system",
"value": "Use normal without extra libs\n"
},
{
"from": "human",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <... | php | chosen |
[
{
"from": "system",
"value": "Allow pet search to non-admins as well\n"
},
{
"from": "human",
"value": "<?php\n\nadd_action( 'wp_ajax_pet-search', 'pet_search' );\n\nfunction pet_search() {\n\tglobal $post;\n\n\t$meta_query = array(\n\t\t'relation' => 'AND'\n\t);\n\n\tforeach( ['sex', 'size', 'b... | php | chosen |
[
{
"from": "system",
"value": "Allow method chaining after setUrl()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RuiGomes\\RssFeedFinder;\n\nuse Illuminate\\Support\\Collection;\nuse PHPHtmlParser\\Dom;\n\nclass FeedFinder\n{\n /**\n * @var \\PHPHtmlParser\\Dom\n */\n prote... | php | chosen |
[
{
"from": "system",
"value": "Save site details during install\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\Installer;\n\nuse BoomCMS\\Core\\Auth;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\n\nclass ServiceProvider extend... | php | chosen |
[
{
"from": "system",
"value": "III-179: Extend cdb xml container interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Event\\Events;\n\ninterface EventCdbXMLInterface\n{\n /**\n * @return int\n */\n public function getEventId();\n\n /**\n * @retur... | php | chosen |
[
{
"from": "system",
"value": "Remove no longer used argument from buildUrl() call\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Keyteq\\Keymedia\\API;\n\nuse Keyteq\\Keymedia\\API\\Configuration;\nuse Keyteq\\Keymedia\\Util\\RequestBuilder;\n\nclass RestConnector\n{\n protected $confi... | php | chosen |
[
{
"from": "system",
"value": "Use method store instead of storePublicly"
},
{
"from": "human",
"value": "<?php\n\nnamespace Canvas\\Http\\Controllers;\n\nuse Illuminate\\Http\\UploadedFile;\nuse Illuminate\\Routing\\Controller;\nuse Illuminate\\Support\\Facades\\Storage;\n\nclass MediaController... | php | chosen |
[
{
"from": "system",
"value": "Add mutator for the moderated attribute\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Torann\\Moderate;\n\ntrait HasModerateTrait\n{\n /**\n * Register eloquent event handlers.\n *\n * @return void\n */\n public static function bootHasM... | php | chosen |
[
{
"from": "system",
"value": "Add getRequest that PHPStorm will complete (ZF1 bad design)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Del\\Common\\ZF1\\Controller;\n\nuse Del\\Common\\ContainerService;\nuse Exception;\nuse Zend_Auth;\nuse Zend_Controller_Action;\nuse Zend_Layout;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Add check to ensure item has a download link\n"
},
{
"from": "human",
"value": "<?php\n\nclass DownloadableOrderItemExtension extends DataExtension\n{\n\n public function getDownloadLink()\n {\n $order = Order::get()->byID($this->owner->ParentID);\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Update to generalize the flash message text.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Scholarship\\Forms\\NominationForm;\n\nclass NominationController extends \\BaseController {\n\n /**\n * @var nominationForm\n */\n protected $nominationForm;\n\n funct... | php | chosen |
[
{
"from": "system",
"value": "Add separate methods for creating streams\n\nBeing able to create streams from 3 distinct sources aligns with\nexisting middleware that may need to:\n\n- Create streams from strings\n- Create streams from files\n- Create streams from resources\n\nIn the case of strings and file... | php | chosen |
[
{
"from": "system",
"value": "Add incomplete send() method to Adapter.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The M... | php | chosen |
[
{
"from": "system",
"value": "Make sure the UUIDs are unique too :)\n"
},
{
"from": "human",
"value": "<?php\n\nif (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {\n print \"This script must be run from the command line\\n\";\n exit();\n}\n\ndefine('INSTALLDIR', realpath... | php | chosen |
[
{
"from": "system",
"value": "Reset postdata in index module\n"
},
{
"from": "human",
"value": "<?php\n global $post;\n $items = get_field('index', $module->ID);\n?>\n<div class=\"grid\" data-equal-container>\n <?php foreach ($items as $item) : $post = $item['page']; setup_postdata($pos... | php | chosen |
[
{
"from": "system",
"value": "Disable slash escaping by default\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\n/**\n * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)\n *\n * Lic... | php | chosen |
[
{
"from": "system",
"value": "Allow setting the hostname via a -h flag\n\nThis should make it possible to use the app from i.e. inside a (docker) container for easy running...\r\n``` docker run -it --rm -v $(pwd):/app -w /app -p 80:8080 php:7-cli bin/analyze serve --hostname 0.0.0.0 ```"
},
{
"from"... | php | chosen |
[
{
"from": "system",
"value": "Make sure custom returns something so we don't break stuff\n"
},
{
"from": "human",
"value": "<?php\n $data = json_decode( file_get_contents( 'index.json' ) );\n\n header( 'Access-Control-Allow-Origin: *' );\n header( 'Content-Type: application/json' );\n ... | php | chosen |
[
{
"from": "system",
"value": "Make Calendar factory add the default recurrence types to each Calendar it builds.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendar;\n\nclass CalendarFactory\n{\n\tpublic static function fromRegistry(RegistryInterface $registry)\n\t{\n\t\tretu... | php | chosen |
[
{
"from": "system",
"value": "Deal with salted passwords in Redmine 4\n\nRedmine 4 adds a salt to the SHA1-hashed passwords. If the \"salt\" field\nof the user record is present, the hashed password is calculated by\nSHA1(salt + SHA1(cleartext)) where + means string concatenation.\n"
},
{
"from": "h... | php | chosen |
[
{
"from": "system",
"value": "Add vimeo as className in FeedTypeAdmin.php\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Protalk\\AdminBundle\\Admin;\n\nuse Sonata\\AdminBundle\\Admin\\Admin;\nuse Sonata\\AdminBundle\\Datagrid\\ListMapper;\nuse Sonata\\AdminBundle\\Datagrid\\DatagridMappe... | php | chosen |
[
{
"from": "system",
"value": "Remove comment and move piece of code into own method for better understanding/readability\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Google Map Class\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright ... | php | chosen |
[
{
"from": "system",
"value": "Fix template assignment in Draft games\n\nAs of 171db587bd2cb5, we are no longer allowed to redefine template\nvariables. In this case, we want to redefine `Links` (because we're\nadding a Draft-specific link), so explicitly unset it before defining\nit again.\n"
},
{
"... | php | chosen |
[
{
"from": "system",
"value": "Add notice in the example of servers-side scripting with Lua.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Predis package.\n *\n * (c) Daniele Alessandri <suppakilla@gmail.com>\n *\n * For the full copyright and license information, pl... | php | chosen |
[
{
"from": "system",
"value": "Fix template file not found\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of eelly package.\n *\n * (c) eelly.com\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was dis... | php | chosen |
[
{
"from": "system",
"value": "Fix - namespace in test\n"
},
{
"from": "human",
"value": "<?php\n\nuse JakubOnderka\\PhpVarDumpCheck;\n\nclass ZendTest extends PHPUnit_Framework_TestCase\n{\n protected $uut;\n\n\n public function __construct()\n {\n $settings = new PhpVarDumpCheck... | php | chosen |
[
{
"from": "system",
"value": "Test that the notes collection works.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Mulgrew\\Model\\Notebook;\n\nclass NotebookTest extends PHPUnit_Framework_TestCase\n{\n public function testConstructor()\n {\n $notebook = new Notebook();\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add missing execution of query\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * TraitFormatRepository\n *\n * This class was generated by the PhpStorm \"Php Annotations\" Plugin. Add your... | php | chosen |
[
{
"from": "system",
"value": "Remove extra lines after the php closing tag, new lines meant that this include was sent to the browser, creating http headers, breaking everything...... :'(\n"
},
{
"from": "human",
"value": "<?php\n/**\n* Global variables & options\n*/\n\n/**\n * DATABASE CONNECTI... | php | chosen |
[
{
"from": "system",
"value": "Add tests and configuration for editing\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distr... | php | chosen |
[
{
"from": "system",
"value": "[ReportBundle] Remove prefix on configurationType type\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file... | php | chosen |
[
{
"from": "system",
"value": "Fix the ordering of stripping and transliteration\n\nThis was kind of a silly way to do this. First stripping everything that is not default, and then using iconv transliteration. At that point there would be no special chars left. This explains why i always lose my French éàç ... | php | chosen |
[
{
"from": "system",
"value": "Kill some <= 1.15 back compat\n\nDeletion of:\n\n/**\n * For backwards compatibility with MediaWiki 1.15 and earlier.\n */\n$aliases =& $specialPageAliases;\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Aliases for Special:PageTriage\n *\n * @file\n * @ingroup E... | php | chosen |
[
{
"from": "system",
"value": "Add fallback for upcoming events\n"
},
{
"from": "human",
"value": "<div class=\"section upcoming-events\">\n <?php\n global $post;\n $all_events = tribe_get_events(array(\n // 'tribe_events_cat' => 'conferences',\n 'order' => 'ASC',\n 'eventDisplay'=>'l... | php | chosen |
[
{
"from": "system",
"value": "[User] Change user bundle configuration to be able to support multiple entity\n\n[Behat] Separate security context & clean up\n\n[Core][User] replace unused services\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Refactor instantiation, add abides contract method\n"
},
{
"from": "human",
"value": "<?php namespace Coreplex\\Crumbs\\Tests;\n\nuse Mockery as m;\nuse Coreplex\\Crumbs\\Container;\nuse PHPUnit_Framework_TestCase;\nuse Coreplex\\Crumbs\\Components\\Crumb as Crumb;\... | php | chosen |
[
{
"from": "system",
"value": "Add tra and some rewording for plugin info for plugin edit window\n\ngit-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@30965 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/... | php | chosen |
[
{
"from": "system",
"value": "Make $routePattern default value null\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Juy\\ActiveMenu;\n\n/**\n * Class Active\n *\n * @package Juy\\Providers\n */\nclass Active\n{\n /**\n * Current matched route\n *\n * @var Route\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Add Business slug unique validation\n\nFixes https://github.com/alariva/timegrid/issues/27\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse App\\Http\\Requests\\Request;\n\nclass BusinessFormRequest extends Request\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Enable pretty Forge checkbox fields.\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n\n<html lang=\"en\">\n\n <head>\n <meta charset=\"UTF-8\"/>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n <title>Rogue</... | php | chosen |
[
{
"from": "system",
"value": "Add more validation for session_id and session_age\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MaxMind\\MinFraud\\Validation\\Rules;\n\nuse Respect\\Validation\\Rules\\AbstractWrapper;\nuse Respect\\Validation\\Validator as v;\n\n/**\n * @internal\n */\ncl... | php | chosen |
[
{
"from": "system",
"value": "Allow schema override for SSL support\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 ... | php | chosen |
[
{
"from": "system",
"value": "[Security] Fix wrong cache directive when using the new PUBLIC_ACCESS attribute\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 licens... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Abbreviations changed in accordance with national standard\"\n"
},
{
"from": "human",
"value": "<?php\n/**\n * System messages translation for CodeIgniter(tm)\n *\n * @author\tCodeIgniter community\n * @copyright\tCopyright (c) 2014 - 2015, British Columbia... | php | chosen |
[
{
"from": "system",
"value": "Fix minor issue in REST controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CuteControllers\\Base;\n\nclass Rest extends Controller\n{\n public function route()\n {\n $method = strtolower($this->request->method) . '_';\n if ($this->r... | php | chosen |
[
{
"from": "system",
"value": "Use ~ instead of -"
},
{
"from": "human",
"value": "<?php\nclass RandomIntTest extends PHPUnit_Framework_TestCase\n{\n public function testFuncExists()\n {\n $this->assertTrue(function_exists('random_int'));\n }\n \n public function testOutput(... | php | chosen |
[
{
"from": "system",
"value": "Add blank setUp and tearDown.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once __DIR__.'/../controllers/main.php';\n\nuse Controllers;\n\nclass ContactFormTest extends \\PHPUnit_Framework_TestCase\n{\n public function testDisplaysForm() {\n $this->as... | php | chosen |
[
{
"from": "system",
"value": "Test against old, but not quite too old folks too.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Carbon\\Carbon;\nuse Northstar\\Models\\User;\n\nclass RemoveOldBirthdatesTest extends TestCase\n{\n /** @test */\n public function it_should_fix_birthdates()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add service name for service definition initialization manager\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the PcdxParameterEncryptionBundle package.\n *\n * (c) picodexter <https://picodexter.io/>\n *\n * For the full copyright and licen... | php | chosen |
[
{
"from": "system",
"value": "[Core][Promotion] Return application result in promotion action command\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the... | php | chosen |
[
{
"from": "system",
"value": "Change listener failure logging level to warn.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Doctrine;\n\nuse FOQ\\ElasticaBundle\\Persister\\ObjectPersister;\nuse Symfony\\Component\\HttpKernel\\Log\\LoggerInterface;\n\nabstract class A... | php | chosen |
[
{
"from": "system",
"value": "Change method data to view\n"
},
{
"from": "human",
"value": "<?php\n namespace Hook;\n\n class Navigation\n {\n public function data($data)\n {\n return [\n 'nav' => [\n [\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow additional arguments to be passed to permalink functions\n(Useful for specifying truncation length, for example)\n"
},
{
"from": "human",
"value": "<?php namespace TightenCo\\Jigsaw;\n\nclass CollectionItem\n{\n private $data;\n private $helpers;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove log in information in header\n"
},
{
"from": "human",
"value": "<div id=\"header\">\n\t<script>\n\t$(function() {\n\t\tvar activeurl = '<?php echo current_url(); ?>';\n\t\t$(\"#navigation > li > a\").each(function() {\n\t\t\tif ($(this).attr('href') == active... | php | chosen |
[
{
"from": "system",
"value": "[+] Delete Channel Role add access & param rules\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Containers\\ChannelAuthorization\\UI\\API\\Requests;\n\nuse App\\Ship\\Parents\\Requests\\Request;\n\n/**\n * Class DeleteChannelRoleRequest.\n */\nclass Dele... | php | chosen |
[
{
"from": "system",
"value": "Use --path instead of deprecated --package.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Auth\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass AuthCommand extend... | php | chosen |
[
{
"from": "system",
"value": "Update documentation block for exception\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @description Exception that will be thrown if there is an error writing an rst file\n */\n\nnamespace JuliusHaertl\\PHPDocToRst;\n\n\nclass WriteException extends \\Exception ... | php | chosen |
[
{
"from": "system",
"value": "Replace boolean input checkbox with select\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ATPCore\\View\\Helper\\Form;\n\nclass Boolean extends \\ATP\\View\\Helper\n{\n\tpublic function __invoke($params)\n\t{\n\t\t$isChecked = $params['value'];\n\t\tunset($pa... | php | chosen |
[
{
"from": "system",
"value": "Add flex video styling to Multimedia video\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Multimedia\n *\n * 1. Multimedia video\n * 2. Facebook Like box\n */\n\n/**\n * Get the latest multimedia video\n */\nfunction get_multimedia_video() {\n echo '<iframe wi... | php | chosen |
[
{
"from": "system",
"value": "Clone sidebar to bottom for phone display\n\nSigned-off-by: Herman Banken <a70bbf187a5275b5d5ff0f9d438a50197e0c274d@gmail.com>\n"
},
{
"from": "human",
"value": "<?php get_template_part('templates/part/head'); ?>\n<body <?php body_class(); ?>>\n\n <!--[if lt IE 7]>... | php | chosen |
[
{
"from": "system",
"value": "Check if the DebugKit plugin is loaded before binding an event linked to it"
},
{
"from": "human",
"value": "<?php\n\nuse Cake\\Core\\Configure;\nuse Cake\\Event\\EventManager;\nuse WyriHaximus\\TwigView\\Event;\n\nEventManager::instance()->on(new Event\\ExtensionsL... | php | chosen |
[
{
"from": "system",
"value": "Add missing reader telephone column title\n"
},
{
"from": "human",
"value": "<table class=\"table table-striped\">\n<thead>\n<tr>\n\t<th>\n\t\t<?php echo 'Identyfikator ' . Html::anchor(Uri::update_query_string(array('by' => 'id')), '', array('class' => 'glyphicon g... | php | chosen |
[
{
"from": "system",
"value": "Add bin folder, update version\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Parvula;\n\n// Define some useful constants\ndefine('_ROOT_', '');\ndefine('_APP_', _ROOT_ . 'Parvula/');\ndefine('_DATA_', _ROOT_ . 'data/');\ndefine('_STATIC... | php | chosen |
[
{
"from": "system",
"value": "Revert \"config local via apache\"\n\nThis reverts commit d2c7c28abef6a7237a42aad639b5cc3c5dd3aa14.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\t'debug' => true,\n//\t'url' => 'http://localhost:8000',\n 'url' => 'http://localhost/perso/lblog/p... | php | chosen |
[
{
"from": "system",
"value": "Remove a unused use statement\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emonkak\\Framework\\Instantiator;\n\nuse Emonkak\\Di\\ContainerInterface;\nuse Emonkak\\Di\\ContainerConfiguratorInterface;\nuse Doctrine\\Common\\Cache\\Cache;\n\nclass ContainerIns... | php | chosen |
[
{
"from": "system",
"value": "Change connection model to user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Model;\n\nclass Role extends \\Cartalyst\\Sentinel\\Roles\\EloquentRole\n{\n\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Model;\n\nclass Role extends \\Cartaly... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong message in $error404 variable.\n"
},
{
"from": "human",
"value": "<?php\n header(\"Content-type:application/json\");\n\n require_once 'details/user_management.php';\n\n if (!is_logged_in())\n exit('{\"error\":{\"code\":403,\"reason\":\"Not ... | php | chosen |
[
{
"from": "system",
"value": "Add type hints to addListener and removeListener\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Glitch\\Interpreter;\n\nclass EventValue\n{\n private $listeners = array();\n\n public function addListener($listener)\n {\n $this->listeners[] = $... | php | chosen |
[
{
"from": "system",
"value": "Remove the echo when the constructor is called.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Note {\n\tpublic $db = null;\n\tpublic $email = '';\n\tpublic $password = '';\n\tpublic $id = 0;\n\n\tpublic function __construct() {\n\t\trequire_once 'db-connect.inc.... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect naming of registerSqsFifoConnector method\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Maqe\\LaravelSqsFifo;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Maqe\\LaravelSqsFifo\\Connectors\\SqsFifoConnector;\n\nclass LaravelSqsFifoServicePr... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect use of translation function\n\nIn comments template\n"
},
{
"from": "human",
"value": "<?php\n$comments_link_url = $this->get( 'comments_link_url' );\n?>\n<?php if ( $comments_link_url ) : ?>\n\t<?php $comments_link_text = $this->get( 'comments_link_te... | php | chosen |
[
{
"from": "system",
"value": "Return $this from the Size getter.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * php-binary\n * A PHP library for parsing structured binary streams\n *\n * @package php-binary\n * @author Damien Walsh <me@damow.net>\n */\nnamespace Binary\\Field;\n\nuse Binary\... | php | chosen |
[
{
"from": "system",
"value": "Fix getKey check when ($model['id'] === 0)\n\nI have inherited a project which has a row with an id of 0 which causes an exception to be thrown incorrectly.\r\n\r\nLooking through $model->getKey() I noticed that it returns 'NULL' if a key doesn't exist but will return '(int) 0'... | php | chosen |
[
{
"from": "system",
"value": "Include classes and interfaces with generics\n"
},
{
"from": "human",
"value": "<?hh // strict\n\nnamespace HHVM\\UserDocumentation;\n\nuse FredEmmott\\DefinitionFinder\\ScannedBase;\nuse FredEmmott\\DefinitionFinder\\ScannedFunctionAbstract;\n\nabstract final class... | php | chosen |
[
{
"from": "system",
"value": "Change php version to 7\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * @author Mirel Nicu Mitache <mirel.mitache@gmail.com>\n * @package MPF Framework\n * @link http://www.mpfframework.com\n * @category core package\n * @version 1.0\n * @since MPF Framework V... | php | chosen |
[
{
"from": "system",
"value": "Deploy on push, test 5\n"
},
{
"from": "human",
"value": "<?php\n // Use in the \"Post-Receive URLs\" section of your GitHub repo.\n if ( $_POST['payload'] && false ) {\n file_put_contents('log/payload.txt', print_r($_POST['payload']), FILE_APPEND);\n\n... | php | chosen |
[
{
"from": "system",
"value": "Switch to DashedRoute for jsonActions\n"
},
{
"from": "human",
"value": "<?php\nuse Cake\\Routing\\Router;\n\nRouter::plugin('FrontendBridge', function ($routes) {\n\tRouter::connect('/json_action/:plugin/:controller/:action/*', array('jsonAction' => true));\n\tRout... | php | chosen |
[
{
"from": "system",
"value": "Make the mailchimp tests look for an api key in an environment variable, and skip if it isn't found\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('tests/php/base.php');\n\nclass CashSeedTests extends UnitTestCase {\n\tfunction testS3Seed(){\n\t\t$settings... | php | chosen |
[
{
"from": "system",
"value": "Update namespaces for beta 8\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * (c) Sajjad Hashemian <wolaws@gmail.com>\n */\n\nnamespace Sijad\\GithubAutolink\\Listener;\n\nuse Flarum\\Event\\ConfigureFormatter;\nuse Flarum\\Settings\\SettingsRepositoryInterface;\n... | php | chosen |
[
{
"from": "system",
"value": ":new: Add Title, Header & Footer to Page\n"
},
{
"from": "human",
"value": "<?hh //strict\nabstract class Page {\n abstract public function __construct(): void;\n abstract public function render(): :html;\n}\n"
},
{
"from": "gpt",
"value": "<?hh //stri... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for the `lowest` stability\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminated\\Testing\\Tests\\Asserts;\n\nuse Illuminated\\Testing\\Tests\\App\\Post;\nuse Illuminated\\Testing\\Tests\\TestCase;\n\nclass DatabaseAssertsTest extends TestCase\... | php | chosen |
[
{
"from": "system",
"value": "Fix errors with new thumbnail helper.\n"
},
{
"from": "human",
"value": "@extends('app')\n\n@section('title', $candidate->name)\n@section('meta_title', $candidate->name)\n@section('meta_description', 'Vote for ' . $candidate->name . ' in ' . setting('site_title') . ... | php | chosen |
[
{
"from": "system",
"value": "Allow string for when there are no syndication targets\n"
},
{
"from": "human",
"value": "@extends('master')\n\n@section('title')\nMicropub Config «\n@stop\n\n@section('content')\n<p>The values for your micropub endpoint.</p>\n<dl>\n <dt>Me (your url)</dt><dd>{{ ... | php | chosen |
[
{
"from": "system",
"value": "Use weak but dependency-free entropy source in PhutilOpaqueEnvelope\n\nSummary:\nIf PHP doesn't have access to /dev/urandom, we currently fatal here before we can get to the setup check for it.\n\nTo avoid this, use a weaker random source. This doesn't need to be a strong rando... | php | chosen |
[
{
"from": "system",
"value": "Fix issue detected by scrutinizer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Vision\\Hydrator\\Strategy;\n\nuse Vision\\Annotation\\Paragraph;\nuse Vision\\Annotation\\Symbol;\nuse Vision\\Annotation\\Word;\nuse Zend\\Hydrator\\Strategy\\StrategyInterface... | php | chosen |
[
{
"from": "system",
"value": "Put max page size limit in the config.php file\n"
},
{
"from": "human",
"value": "<?php\n\n$config = null; // We're doing this here so it can be instantiated once but used everywhere\n\nfinal class Config\n{\n\n const MODE = 'staging'; // options are \"developmen... | php | chosen |
[
{
"from": "system",
"value": "Stop Rebecca test from failing\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Room11\\Jeeves\\Tests\\Chat\\Plugin;\n\nuse Room11\\Jeeves\\Chat\\Plugin\\Rebecca;\n\nclass RebeccaTest extends AbstractPluginTest\n{\n /**\n * @inhe... | php | chosen |
[
{
"from": "system",
"value": "Add another file type to the AcceptTypes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass File extends Model\n{\n public static $AcceptTypes = array(\n 'text/plain',\n 'text/x-asm', //... | php | chosen |
[
{
"from": "system",
"value": "Check for creating only Saga instances.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Apha\\Saga;\n\nuse Apha\\Domain\\Identity;\n\nclass GenericSagaFactory implements SagaFactory\n{\n /**\n * @param string $sagaType\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix php 5.3 syntax issue\n"
},
{
"from": "human",
"value": "<?php\nnamespace SimpleSAML\\Metadata;\n\n/**\n * Test SAML parsing\n */\nclass SAMLParserTest extends \\PHPUnit_Framework_TestCase\n{\n\n /**\n * Test Registration Info is parsed\n */\n publi... | php | chosen |
[
{
"from": "system",
"value": "Stop referencing Item and Items from view data.\n"
},
{
"from": "human",
"value": "<?php echo '<?xml version=\"1.0\" encoding=\"utf-8\"?>'; ?>\n<feed xmlns=\"http://www.w3.org/2005/Atom\"\n\t xml:lang=\"en\"\n\t xml:base=\"<?= PROTOCOL_HOST_PORT . \\CWA\\APP_ROOT ... | php | chosen |
[
{
"from": "system",
"value": "[Chopbox][Chore] Add css fixes and docblocks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ChopBox\\ChopBox\\Repository;\n\nuse ChopBox\\User;\n\nclass UserRepository\n{\n public function findUserByEmail($email)\n {\n return $user = User::where(... | php | chosen |
[
{
"from": "system",
"value": "Return array, change param name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coosos\\TagBundle\\Controller;\n\nuse Coosos\\TagBundle\\Entity\\Tag;\nuse Coosos\\TagBundle\\Repository\\TagRepository;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\M... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.