conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix typo that prevents urls from being auto linked"
},
{
"from": "human",
"value": "<?php\n\nnamespace Parsedown\\Providers;\n\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\View\\Compilers\\BladeCompiler;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Disable this test on PHP 7.4, too\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view the LI... | php | chosen |
[
{
"from": "system",
"value": "Update test to match changes on master\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpInPractice\\Matters\\Aggregate;\n\nclass AggregateMock\n{\n use isEventsourced;\n\n public function id()\n {\n return 1;\n }\n\n public function rec... | php | chosen |
[
{
"from": "system",
"value": "Fix share via email link\n\n\nFormer-commit-id: cef1ba1359496c484c06881a6593952d514cab96"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Sharing\\ShareThisPage;\nuse Concrete\\Core\\Sharing\\SocialNetwork\\Service as SocialNetworkService;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "Add missing function getName to the interface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author: Thomas Prelot <tprelot@gmail.com>\n * @license: MIT\n */\n\nnamespace IDCI\\Bundle\\StepBundle\\Step;\n\nuse IDCI\\Bundle\\StepBundle\\Step\\StepInterface;\n\... | php | chosen |
[
{
"from": "system",
"value": "Add ignoreVisible for getting directory before content-changed event,\n\nbecause changing to invisible directory does not fire content-change\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Directories_TopChoose_Events extends Kwc_Abstract_Events\n{\n protect... | php | chosen |
[
{
"from": "system",
"value": "Add a user getter on UD\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @license MIT\n * @copyright 2014-2017 Tim Gunter\n */\n\nnamespace Kaecyra\\ChatBot\\Bot\\Command;\nuse Kaecyra\\ChatBot\\Bot\\DestinationInterface;\nuse Kaecyra\\ChatBot\\Bot\\UserInterface... | php | chosen |
[
{
"from": "system",
"value": "III-628: Test Event UpdateContactPoint instead of Place UpdateContactPoint\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Event\\Commands;\n\nuse CultuurNet\\UDB3\\ContactPoint;\nuse CultuurNet\\UDB3\\Place\\Commands\\UpdateContactPoint;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Use Illuminate\\Events\\Dispatcher instead of contract\n\nLaravel dispatcher should be either Illuminate\\Contracts\\Events\\Dispatcher\nor Illuminate\\Events\\Dispatcher, however only the latter has fire()\nmethod, which in turn just a wrapper for dispatch()\n\nUsing fire() in... | php | chosen |
[
{
"from": "system",
"value": "Use Application Facade instead of in Service Provider\n"
},
{
"from": "human",
"value": "<?php namespace ThibaudDauce\\EloquentInheritanceStorage;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass EloquentInheritanceStorageServiceProvider extends ServiceProvide... | php | chosen |
[
{
"from": "system",
"value": "BAP-8170: Use cron instead of buttons for synchronization\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\LDAPBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuild... | php | chosen |
[
{
"from": "system",
"value": "Add rerender page if false submission\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n\n <title>Frosh IMs</title>\n </head>\n <body>\n <pre>\n <?php print_r($_POST); ?>\n </pre>\n </body>\n</html>\n"
},
{
"from": "gpt",... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong position of date widget"
},
{
"from": "human",
"value": "<div class=\"form-group datepicker {{ $errors->has($fieldName) ? 'has-error' : '' }}\">\n {!! Form::label($elementName, $options['label']) !!}\n {!! Form::text($elementName, $record->$fieldName... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP 5.3 closure bug in the captcha service provider\n"
},
{
"from": "human",
"value": "<?php namespace Larapress\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Larapress\\Services\\Captcha;\nuse Larapress\\Services\\Helpers;\n\nclass CaptchaServic... | php | chosen |
[
{
"from": "system",
"value": "FIX EditableCountryDowndownField being broken by removal of Geoip in 3.0\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * A dropdown field which allows the user to select a country\n *\n * @package userforms\n */\nclass EditableCountryDropdownField extends Editab... | php | chosen |
[
{
"from": "system",
"value": "Remove strict currency code checking"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Money library\n *\n * Copyright (c) 2011-2013 Mathias Verraes\n *\n * For the full copyright and license information, please view the LICENSE\n * file that ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with header categories\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace ATPCms\\Model;\r\n\r\nrequire_once(\"Page.php\");\r\nrequire_once(\"StaticBlock.php\");\r\n\r\nclass Category extends \\ATP\\ActiveRecord\r\n{\r\n\tpublic function displayName()... | php | chosen |
[
{
"from": "system",
"value": "Update params to handle json body\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlimAdditions;\n\nclass Controller\n{\n protected $app;\n\n public function __construct($app)\n {\n $this->app = $app;\n }\n\n protected function setHeader(... | php | chosen |
[
{
"from": "system",
"value": "Fix the is root check\n"
},
{
"from": "human",
"value": "<?php namespace Modules\\Menu\\Events\\Handlers;\n\nuse Modules\\Menu\\Events\\MenuItemWasCreated;\nuse Modules\\Menu\\Repositories\\MenuItemRepository;\n\nclass MakeMenuItemChildOfRoot\n{\n /**\n * @va... | php | chosen |
[
{
"from": "system",
"value": "Add missing file not staged in previous commit\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html @php(language_attributes())>\n @include('partials.head')\n <body @php(body_class())>\n @php(do_action('get_header'))\n @include('partials.header')\n <... | php | chosen |
[
{
"from": "system",
"value": "Fix the resolver to work for non-PHP file extensions.\n"
},
{
"from": "human",
"value": "<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * Resolver that allows PHPTAL to resolve paths in the Kohana filesystem.\n *\n * @package KOtal\n * @categ... | php | chosen |
[
{
"from": "system",
"value": "Make number of vertices configurable"
},
{
"from": "human",
"value": "<?php\n\nuse Fhaculty\\Graph\\Graph;\n\nuse Fhaculty\\Graph\\Loader\\CompleteGraph;\n\nclass CompleteGraphTest extends TestCase\n{\n public function testOne(){\n $loader = new CompleteGr... | php | chosen |
[
{
"from": "system",
"value": "Add sso id to user info\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Da\\OAuthServerBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio\\Bundle\\Fr... | php | chosen |
[
{
"from": "system",
"value": "[Readability] Add constant for error_log()'s message_type parameter\n\nAnd clean indentation; Shorter line length. Easier to read.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Logger Class\n * @desc Handler Logger Management.\n *\n * @... | php | chosen |
[
{
"from": "system",
"value": "Add prelogin hook and postlogin hook emit\n"
},
{
"from": "human",
"value": "<?php\nnamespace OCA\\SingleSignOn;\n\nclass Util {\n public static function login($username) {\n $user = \\OC::$server->getUserManager()->get($username);\n \\OC::$server->... | php | chosen |
[
{
"from": "system",
"value": "Fix little glitch in project list when there is no icon\n"
},
{
"from": "human",
"value": "<div class=\"table-list-icons\">\n <?php if ($project['is_public']): ?>\n <i class=\"fa fa-share-alt fa-fw\" title=\"<?= t('Shared project') ?>\"></i>\n <?php end... | php | chosen |
[
{
"from": "system",
"value": "tests: Fix for locale repository test.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /tests/AppBundle/functional/Repository/LocaleTest.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@protacon.com>\n */\nnamespace AppBundle\\f... | php | chosen |
[
{
"from": "system",
"value": "Fix foreign key constraint error"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass TopicsTableSeeder extends Seeder {\n\n public function run()\n {\n DB::table('topics')->delete();\n $topic = [\n\t\t\t\t'title' ... | php | chosen |
[
{
"from": "system",
"value": "Switch session hash to SHA256 by default, and make configurable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\AccessControl\\Token;\n\n/**\n * Token generator.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass Generator\n{\n /** @var... | php | chosen |
[
{
"from": "system",
"value": "Add div for image \"cut\"\n"
},
{
"from": "human",
"value": "<?php\nnamespace FormKit\\Widget;\nuse FormKit\\Element;\n\n\n/**\n *\n * $input = new ImageFileInput('image');\n * $input->image->align = 'right';\n * $input->image->src = '.....';\n * $input->imageWrappe... | php | chosen |
[
{
"from": "system",
"value": "Change grid breakpoints for the Day template"
},
{
"from": "human",
"value": "<div class=\"wdn-grid-set\">\n <section class=\"bp1-wdn-col-one-third\">\n <?php echo $savvy->render($context, 'sidebar.tpl.php'); ?>\n </section>\n <section id=\"updatecon... | php | chosen |
[
{
"from": "system",
"value": "Add test case for traitOfProject webservice\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: s216121\n * Date: 06.10.16\n * Time: 15:34\n */"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace fennecweb\\ajax\\details;\n\nus... | php | chosen |
[
{
"from": "system",
"value": "Fix path to config.php and xmlrpc.php\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('Classloader.php');\n\n/*\n * Load xmlrpc.inc if it isn't already loaded.\n *\n * We HIGHLY recommend using the included version. It contains a few additions\n * that work... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with the comparison of the first object of each model (ORM\nrelated)."
},
{
"from": "human",
"value": "<?php\r\nnamespace Model\\Database\\ORM;\n\r\nuse Model\\Database\\Model\\TableReferenceInstance;\n\r\nclass Manager {\r\n\tstatic function getModel(TableR... | php | chosen |
[
{
"from": "system",
"value": "Fix a problem with build in Travis"
},
{
"from": "human",
"value": "<?php\n\n $fibonacci = [1, 2];\n\n array_walk( $fibonacci, function($num) use (&$fibonacci)\n {\n if (4000000 / $num > 2.6244){ // Will never be smaller then Φ²\n array_pu... | php | chosen |
[
{
"from": "system",
"value": "Add new strings to language file.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Redirect members to a specific CP URL after login.\n *\n * @author\t\tStephen Lewis <addons@experienceinternet.co.uk>\n * @link \t\thttp://github.com/experience/sl.usher.ee2_addon/... | php | chosen |
[
{
"from": "system",
"value": "Make test method name understandable\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MS\\PHPMD\\Tests\\Functional\\CleanCode;\n\nuse MS\\PHPMD\\Tests\\Functional\\AbstractProcessTest;\n\n/**\n * Class SuperfluousCommentTest\n *\n * @package MS\\PHPMD\\Tests\\F... | php | chosen |
[
{
"from": "system",
"value": "Fix default captcha reload algo\n\nSystem helper on method \"buildSingleTag\" escaping all quotes that make\nimposible use inline javascript in onClick method\n"
},
{
"from": "human",
"value": "<?php\nnamespace Ffcms\\Core\\Helper\\HTML\\Form;\n\n\nuse Ffcms\\Core\\... | php | chosen |
[
{
"from": "system",
"value": "Remove closure for 5.2 and 5.3 support\n"
},
{
"from": "human",
"value": "<?php\n\nclass RequestsTest_Transport_fsockopen extends RequestsTest_Transport_Base {\n\tprotected $transport = 'Requests_Transport_fsockopen';\n\n\tpublic function testHTTPS() {\n\t\t// If Op... | php | chosen |
[
{
"from": "system",
"value": "Add error for non text file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace fennecweb\\ajax\\upload;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Uploads Project biom files and save them in the database\n */\nclass Project extends \\fennecweb\\WebService\n... | php | chosen |
[
{
"from": "system",
"value": "Fix incorrect action reference in doc block\n"
},
{
"from": "human",
"value": "<?php\ndeclare (strict_types = 1);\n\nnamespace GrottoPress\\Jentil\\Setups\\Scripts;\n\nuse GrottoPress\\Jentil\\AbstractTheme;\n\nfinal class Script extends AbstractScript\n{\n publi... | php | chosen |
[
{
"from": "system",
"value": "Delete the intro after confirming it ;-)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Friendica\\Module;\n\nuse Friendica\\BaseModule;\nuse Friendica\\DI;\nuse Friendica\\Model\\Contact;\n\n/**\n * Process follow request confirmations\n */\nclass FollowConfir... | php | chosen |
[
{
"from": "system",
"value": "UPDATE - Took out admin pass\n"
},
{
"from": "human",
"value": "<?php\n\nglobal $project;\n$project = 'mysite';\n\nglobal $databaseConfig;\n$databaseConfig = array(\n\t\"type\" => 'MySQLDatabase',\n\t\"server\" => 'localhost', \n\t\"username\" => 'root', \n\t\"passw... | php | chosen |
[
{
"from": "system",
"value": "Fix issue in trait conflict\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rougin\\Wildfire\\Traits;\n\nuse Rougin\\Describe\\Describe;\nuse Rougin\\Describe\\Driver\\CodeIgniterDriver;\n\n/**\n * Describe Trait\n * \n * @package Wildfire\n * @author Rougin ... | php | chosen |
[
{
"from": "system",
"value": "Make IUCNredlist connector to work in V2.\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('DOWNLOAD_WAIT_TIME', '300000'); // .3 seconds wait time\ninclude_once(dirname(__FILE__) . \"/../../config/environment.php\");\nrequire_library('connectors/IUCNRedlistAPI');... | php | chosen |
[
{
"from": "system",
"value": "Update service provider to use bindShared.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Optimize;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass Optimiz... | php | chosen |
[
{
"from": "system",
"value": "Use classic array declaration instead of the short one\n\nUse this notation to be compatible with php >=5.3.3"
},
{
"from": "human",
"value": "<?php\nnamespace Payum\\PayumModule\\Registry;\n\nuse Payum\\PayumModule\\Action\\GetHttpRequestAction;\nuse Payum\\PayumMo... | php | chosen |
[
{
"from": "system",
"value": " Change AccountUser to User to remove deprecation error\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Edbizarro\\LaravelFacebookAds\\Traits;\n\nuse FacebookAds\\Object\\AdAccountUser;\n\ntrait HasAccountUser\n{\n /**\n * @param string|int $acc... | php | chosen |
[
{
"from": "system",
"value": "Fix for uploading new images into a record which exists\n\n\n\ngit-svn-id: 556f41d716a3fdd6f7eefe65000ef9c8a0afec4c@30712 ee427ae8-e902-0410-961c-c3ed070cd9f9\n"
},
{
"from": "human",
"value": "<?php\n\nclass sfValidatorImageJCroppable extends sfValidatorBase\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow to pass array to scraper-genres\n"
},
{
"from": "human",
"value": "<?php\n\nclass Denkmal_Scraper_Genres {\n\n /** @var string[] */\n private $_genreList = array();\n\n /**\n * @param string $genres Genres list as string\n */\n function __c... | php | chosen |
[
{
"from": "system",
"value": "Tweak on seeder for categories.\n\n5000 was too much. 200 is fine.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse App\\Category;\nuse App\\Product;\n\nclass CategoriesTableSeeder extends Seeder\n{\n public function run()\n {... | php | chosen |
[
{
"from": "system",
"value": "Make properties protected, add get methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Adldap\\Auth\\Events;\n\nuse Adldap\\Connections\\ConnectionInterface;\n\nabstract class Event\n{\n /**\n * The connection that the username and password is being... | php | chosen |
[
{
"from": "system",
"value": "Fix bug de premier fichier\n\nLors du premier upload, le fichier n'apparaissait pas, c'est corrigé."
},
{
"from": "human",
"value": "<?php \n\tdefine('ID_FILE','id.txt');\n\tdefine('UPLOAD_PATH','uploads/');\n\t$behaviour['FILES_TO_ECHO']=array('txt','js','html','ph... | php | chosen |
[
{
"from": "system",
"value": "Raise limit on persisted wordcount\n"
},
{
"from": "human",
"value": "<?php\n\n// This class is used to encapsulate global state between layers without using $GLOBAL[] or\n// relying on the consumer being loaded correctly by the dynamic class autoloader\nclass SV_Wo... | php | chosen |
[
{
"from": "system",
"value": "Set debug mode parameter to a value in any case\n\nUpdated MangopayExtension because appventus_mangopay.mango_api is asking for debug_mode in any case"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppVentus\\MangopayBundle\\DependencyInjection;\n\nuse Symfony\... | php | chosen |
[
{
"from": "system",
"value": "Add missing strict types declaration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Brick\\App\\Session\\Storage;\n\nclass Lock\n{\n /**\n * A storage-specific lock context.\n *\n * @var mixed\n */\n private $context;\n\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Drop the command from the tutorial\n"
},
{
"from": "human",
"value": "<?php\n\nrequire \"vendor/autoload.php\";\n\nrequire \"GreetCommand.php\";\nrequire \"MigrateNewCommand.php\";\nrequire \"MigrateRunCommand.php\";\nrequire \"MigrateInstallCommand.php\";\n\nuse Sy... | php | chosen |
[
{
"from": "system",
"value": "Fix to integratie with Homi's laravel integration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Magister\\Services\\Http;\n\nuse GuzzleHttp\\Client;\nuse Magister\\Services\\Support\\ServiceProvider;\nuse GuzzleHttp\\Subscriber\\Cache\\CacheSubscriber;\n\n/*... | php | chosen |
[
{
"from": "system",
"value": "Set partner 99 to have no live streaming\nSet partner 99 to have content distribution\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@59443 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * @package deployment\r\n * \... | php | chosen |
[
{
"from": "system",
"value": "Add use statement for SpecificationIterator\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Behat.\n * (c) Konstantin Kudryashov <ever.zet@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file... | php | chosen |
[
{
"from": "system",
"value": "HNS-43: Add “value” to the trigger event Utterance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace actsmart\\actsmart\\Sensors\\WebChat\\Events;\n\nuse actsmart\\actsmart\\Utils\\Literals;\nuse Ds\\Map;\n\nclass TriggerEvent extends WebChatEvent\n{\n const ... | php | chosen |
[
{
"from": "system",
"value": "Remove single shard optimization, don't use sharding if you have one shard.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace League\\Flysystem\\UrlGeneration;\n\nuse InvalidArgumentException;\nuse League\\Flysystem\\Config;\nuse League\\Flysystem\\PathPrefixer;... | php | chosen |
[
{
"from": "system",
"value": "Move table header to common table header file\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This <server-gardu-reporter> project created by :\n * Name : syafiq\n * Date / Time : 27 June 2017, 7:18 PM.\n * Email : syafiq.rezpector@gmail.com\n * Gi... | php | chosen |
[
{
"from": "system",
"value": "Add forgotten resource loading for DAO in sandbox.\n"
},
{
"from": "human",
"value": "<?php\nclass Scaffold_Bootstrap extends Zend_Application_Module_Bootstrap\n{\n\n}\n"
},
{
"from": "gpt",
"value": "<?php\nclass Scaffold_Bootstrap extends Zend_Applicat... | php | chosen |
[
{
"from": "system",
"value": "Fix issue identified by Psalm\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "system",
"value": "[Google] Add the possibility to get more details on an api error\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the CalendArt package\n *\n * For the full copyright and license information, please view the LICENSE file\n * that was distribute... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Stricter error message in place of \"Name or service not known\"\"\n\nThis reverts commit f0258bdd739450104cc196cbea750450f391e763.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Database;\n\nuse Throwable;\nuse Illuminate\\Support\\Str;\... | php | chosen |
[
{
"from": "system",
"value": "Add tinymce redactor to form add post\n"
},
{
"from": "human",
"value": "<form action=\"<?php echo $this->getUrl('post/add'); ?>\" method=\"post\">\n <input type=\"text\" name=\"title\">\n <br>\n <textarea name=\"content\">\n </textarea>\n <br>\n <... | php | chosen |
[
{
"from": "system",
"value": "Add missing groupExists()-method to static ACL-adapter\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view th... | php | chosen |
[
{
"from": "system",
"value": "Make the parameters argument optional\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BinSoul\\Db;\n\n/**\n * Represents a connection to a database.\n */\ninterface Connection\n{\n /**\n * Opens the connection.\n *\n * @return bool\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Add ability to limit products and taxons when looking for name part\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 LIC... | php | chosen |
[
{
"from": "system",
"value": "Convert functional test case to abstract\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace adLDAP\\Tests;\n\nuse Mockery;\n\nclass FunctionalTestCase extends \\PHPUnit_Framework_TestCase\n{\n protected function mock($class)\n {\n return Mockery::moc... | php | chosen |
[
{
"from": "system",
"value": "Fix a now, incorrect unit test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace allejo\\stakx\\tests;\n\nuse allejo\\stakx\\Engines\\MarkdownEngine;\n\nclass MarkdownEngineTest extends \\PHPUnit_Stakx_TestCase\n{\n /** @var MarkdownEngine */\n private $md... | php | chosen |
[
{
"from": "system",
"value": "Enable much stricter CSP on the iframe\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Controller;\n\n\nuse Korobi\\WebBundle\\Exception\\NotImplementedException;\nuse Michelf\\Markdown;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix <? -> <?php regression\n\nFixes #8"
},
{
"from": "human",
"value": "<div class=\"row-fluid\">\n\t<? $count = 0; ?>\n\t<? foreach($files as $file): ?>\n\t\t<? if ($count % 2 == 0): ?>\n\t\t\t</div>\n\t\t\t<div class=\"row-fluid\">\n\t\t<? endif; ?>\t\n\t\t\n\t\t<... | php | chosen |
[
{
"from": "system",
"value": "Set mime type for php js file\n"
},
{
"from": "human",
"value": "<?php\ninclude(__DIR__ . '/init.php');\n\nif (isset($passcode) && $passcode) {\n if (isset($_GET['p']) && password_verify($_GET['p'], $passcode)) {\n echo \"document.getElementById('lock').style.di... | php | chosen |
[
{
"from": "system",
"value": "Add log if worker is down\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace APIBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\JsonRes... | php | chosen |
[
{
"from": "system",
"value": "Add image form field to template"
},
{
"from": "human",
"value": "{!! Form::errors($errors) !!}\n\n@if (isset($model))\n {!! Form::model($model, ['route' => ['admin.news.update', $model->id], 'method' => 'PUT']) !!}\n@else\n {!! Form::open(['url' => 'admin/new... | php | chosen |
[
{
"from": "system",
"value": "Refactor for using the new Response class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpWatson\\Sdk\\Tests\\Language\\RetrieveAndRank\\V1;\n\nuse PhpWatson\\Sdk\\Tests\\AbstractTestCase;\nuse PhpWatson\\Sdk\\Language\\ToneAnalyser\\ToneAnalyserService;\n\... | php | chosen |
[
{
"from": "system",
"value": "Check if module array has property set before using it.\nCleaning up messy row to multiple.\n"
},
{
"from": "human",
"value": "<div class=\"modularity-modules\">\n <?php foreach ($modules as $moduleId => $module) : ?>\n <div class=\"modularity-module modularit... | php | chosen |
[
{
"from": "system",
"value": "Fix for `which` on systems that do dumb things.\n\nFixes #21"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Psy Shell\n *\n * (c) 2013 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Add datasource lookup to the integration test\n"
},
{
"from": "human",
"value": "<?php\nnamespace CdliAutogenUsernameTest;\n\nuse CdliAutogenUsername\\Generator;\n\nclass IntegrationTest extends \\PHPUnit_Framework_TestCase\n{\n public function testFilterChainsWi... | php | chosen |
[
{
"from": "system",
"value": "Change labels in ShowAllProjectsToVisitor acceptance test\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * ShowAllProjectsToVisitor acceptance test\n * @author Adrien Desfourneaux (aka Dieze) <dieze51@gmail.com>\n * @package DzProject\n * @subpackage Accep... | php | chosen |
[
{
"from": "system",
"value": "Add class, remove edit and delete links\n"
},
{
"from": "human",
"value": "<?php\n# Copyright © 2012 Martin Ueding <dev@martin-ueding.de>\n\nclass BookmarkHelper extends AppHelper {\n\tvar $helpers = array('Html');\n\n\tfunction print_bookmark($that, $bookmark) {\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix initialization of OC_Filesystem setup from DAV\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * ownCloud\n *\n * @author Jakob Sack\n * @copyright 2011 Jakob Sack kde@jakobsack.de\n *\n * This library is free software; you can redistribute it and/or\n * modif... | php | chosen |
[
{
"from": "system",
"value": "Fix test group for NotFoundException\n"
},
{
"from": "human",
"value": "<?php\nnamespace Veles\\Tests\\Routing\\Exceptions;\n\nuse Veles\\Routing\\Exceptions\\NotFoundException;\n\n/**\n * Generated by PHPUnit_SkeletonGenerator on 2015-08-12 at 09:05:52.\n * @group ... | php | chosen |
[
{
"from": "system",
"value": "Refactor beer availability to use template tags."
},
{
"from": "human",
"value": "<section>\n<?php\n$inventory = get_post_meta(get_the_ID(), 'dabc-store-inventory', true);\n\nif ( $inventory['inventory'] ) :\n\n\t$store_numbers = array_keys( $inventory['inventory'] ... | php | chosen |
[
{
"from": "system",
"value": "Store number of required array elements into constant\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Publi... | php | chosen |
[
{
"from": "system",
"value": "Implement web assets in the twig function\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * Copyright (c) 2013-2017 OpenCFP\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distributed wi... | php | chosen |
[
{
"from": "system",
"value": "Add date range filter to short url repository interface\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Shlinkio\\Shlink\\Core\\Repository;\n\nuse Doctrine\\Common\\Persistence\\ObjectRepository;\nuse Shlinkio\\Shlink\\Core\\Entity\... | php | chosen |
[
{
"from": "system",
"value": "Make single post thumbnail bigger\n\non single post pages\n"
},
{
"from": "human",
"value": "<article <?php post_class(); ?>>\n\t<header class=\"mt-15\">\n\t\t<!-- Displays the title of the post without a link -->\n\t\t<h1 class=\"entry-title\"><?php the_title(); ?>... | php | chosen |
[
{
"from": "system",
"value": "Make a test for single character emojis\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jonnybarnes\\EmojiA11y\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Jonnybarnes\\EmojiA11y\\EmojiModifier;\n\nclass EmojiModifierTest extends PHPUnit_Framework_TestCase\n... | php | chosen |
[
{
"from": "system",
"value": "Use trlStatic in static getSettings\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Basic_BackgroundWindowWidth_Image_Component extends Kwc_Basic_Image_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n ... | php | chosen |
[
{
"from": "system",
"value": "Use more realistic data to seed factors table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse App\\Models\\Exercise;\nuse App\\Models\\Factor;\n\nclass FactorTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct the docblock type for an array of objects\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Monii\\AggregateEventStorage\\Fixtures\\Blogging;\n\nuse Monii\\AggregateEventStorage\\Fixtures\\Blogging\\PostId;\n\nclass Post\n{\n /**\n * @var PostId\n... | php | chosen |
[
{
"from": "system",
"value": "Allow ApcClassLoader to be autoloaded by the initial loader\n"
},
{
"from": "human",
"value": "<?php\n\nini_set('date.timezone', 'UTC');\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = require_on... | php | chosen |
[
{
"from": "system",
"value": "Add FirstName and LastName to profileFields via php-config\n"
},
{
"from": "human",
"value": "<?php\n\nProfileRequestHandler::$profileFields[] = 'Twitter';\n\nProfileRequestHandler::$onBeforeProfileValidated = function($User, $profileChanges, $requestData) {\n //... | php | chosen |
[
{
"from": "system",
"value": "Truncate Log messages to 4000 chars.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LiteCQRS\\Plugin\\Monolog;\n\nuse LiteCQRS\\Bus\\MessageHandlerInterface;\nuse LiteCQRS\\Bus\\MessageInterface;\nuse LiteCQRS\\DomainEvent;\nuse LiteCQRS\\Command;\nuse Except... | php | chosen |
[
{
"from": "system",
"value": "Test of index action working\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nclass SongController extends Controller\n{\n /**\n * Display a listing of the resource.\n *\n * @return \\I... | php | chosen |
[
{
"from": "system",
"value": "Verify is $bean is_subclass_of SugarBean so we can check access\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Smarty plugin\n * @package Smarty\n * @subpackage plugins\n */\n\n/**\n * Smarty {suite_check_access} function plugin\n *\n * Type: function<br>\n... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.