conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add more test cases on getAllKeys and clearAllKeys\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: ComMouse\n * Date: 2015/7/10\n * Time: 21:32\n */\n\nuse Dy\\Cache\\RedisCache;\n\nfinal class RedisTest extends PHPUnit_Framework_Tes... | php | chosen |
[
{
"from": "system",
"value": "Undo redundant embedded URI check.\n\ngit-svn-id: 25f448894bd6eb0cddf10ded73b4f5a7ea3203f3@1782 48356398-32a2-884e-a903-53898d9a118a\n"
},
{
"from": "human",
"value": "<?php\n\nclass HTMLPurifier_URIFilter_SecureMunge extends HTMLPurifier_URIFilter\n{\n public $n... | php | chosen |
[
{
"from": "system",
"value": "Change max number of children from 20 to 3\n\n- did some performance testing after @brynary comment in GitHub and found that 3 performs best on my large code bases\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(ticks=1);\n\nnamespace PHPMD\\TextUI;\n\nuse CodeC... | php | chosen |
[
{
"from": "system",
"value": "Fix the wrong test access setup and teardown.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Test;\n\nuse PHPUnit\\Framework\\TestCase;\nuse ProcessWire\\GraphQL\\Utils;\nuse ProcessWire\\GraphQL\\Schema;\n\nabstract class GraphqlTestCas... | php | chosen |
[
{
"from": "system",
"value": "Allow class names starting with digits\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Phug\\Lexer\\Scanner;\n\nuse Phug\\Lexer\\ScannerInterface;\nuse Phug\\Lexer\\State;\nuse Phug\\Lexer\\Token\\ClassToken;\n\nclass ClassScanner implements ScannerInterface\n... | php | chosen |
[
{
"from": "system",
"value": "Remove code, that belongs in an other plugin\n"
},
{
"from": "human",
"value": "<?php\nrequire_once 'lib/wa_wrapper/WolframAlphaEngine.php';\n\nclass wolframalpha extends Script\n{\n\tprivate $appID = '';\n\n protected $helpMessage = \"'wolfram EXPRESSION'\\n'wol... | php | chosen |
[
{
"from": "system",
"value": "Store post data and query\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Labs64 <netlicensing@labs64.com>\n * @license Apache-2.0\n * @link http://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nnamespace NetLicensing;\n\n\nuse C... | php | chosen |
[
{
"from": "system",
"value": "Throw exceptions in stead of displaying errors\n\nExceptions are handled by ZF. And they have nice stack traces in\ndevelopment.\n"
},
{
"from": "human",
"value": "<?php\n\nif ('development' == getenv('APPLICATION_ENV')) {\n ini_set('display_errors', true);\n ... | php | chosen |
[
{
"from": "system",
"value": "Set job type to KalturaBatchJobType\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@55670 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * @package api\r\n * @subpackage objects\r\n */\r\n\r\n/**\r\n */\r\nclass Kalt... | php | chosen |
[
{
"from": "system",
"value": "Fix error when there is no credentials. Empty is allowed.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * OAuth controller for API endpoints.\n * \n * @author Jaisen Mathai <jaisen@jmathai.com>\n */\nclass ApiOAuthController extends BaseController\n{\n public ... | php | chosen |
[
{
"from": "system",
"value": "Use v-cloak until page is ready.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<div class=\"row\">\n <div class=\"columns twelve-xs\">\n <nav class=\"navbar navbar-default\">\n <div class... | php | chosen |
[
{
"from": "system",
"value": "Improve redirect on new comment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Comment;\nuse App\\Post;\nuse App\\Sub;\nuse Illuminate\\Http\\Request;\n\nclass CommentController extends Controller\n{\n public function st... | php | chosen |
[
{
"from": "system",
"value": "Fix migrations for CakePHP v3.8\n"
},
{
"from": "human",
"value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass RenameMessages extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is available here:\n ... | php | chosen |
[
{
"from": "system",
"value": "Use preg_quote() for escaping horizontal rule markers.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\Markdown\\Extension\\Core;\n\nuse FluxBB\\Markdown\\Common\\Text;\nuse FluxBB\\Markdown\\Extension\\ExtensionInterface;\nuse FluxBB\\Markdown\\Render... | php | chosen |
[
{
"from": "system",
"value": "Remove Check Permissions Middleware Contract (deprecated)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaravelFlare\\Flare\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Routing\\Middleware;\nuse LaravelFlare\\Flare\\Contracts\\PermissionsIn... | php | chosen |
[
{
"from": "system",
"value": "Add host to the JS route generation\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Overrides\\Lord\\Laroute\\Routes;\n\nuse Illuminate\\Routing\\Route;\nuse Lord\\Laroute\\Routes\\Collection as BaseCollection;\n... | php | chosen |
[
{
"from": "system",
"value": "Add network/http/request class to get information about request do by client\n"
},
{
"from": "human",
"value": "<?php\nnamespace Pabana\\Network\\Http;\n\nclass Response\n{\n\tpublic function setLocation($sUrl, $bExit = true)\n\t{\n\t\theader(\"Location: \" . $sUrl)... | php | chosen |
[
{
"from": "system",
"value": "Add sub-header to reports's index view\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('body')\n <h1 class=\"spacing-bottom-large\">Reports</h1>\n <div class=\"box\">\n <table>\n <tbody>\n @foreach ($budgets a... | php | chosen |
[
{
"from": "system",
"value": "Set a subscription relationship for users\n"
},
{
"from": "human",
"value": "<?php namespace App\\Data;\n\nuse UserPresenter;\nuse App\\Authorization;\nuse Illuminate\\Notifications\\Notifiable;\nuse Laracasts\\Presenter\\PresentableTrait;\nuse Illuminate\\Foundatio... | php | chosen |
[
{
"from": "system",
"value": "Fix for rendering empty views\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace pff;\n\n/**\n * Layout system with PHP templates\n *\n * A layout is a specific type of View: it represents a common layout with most\n * of its elements fixed and a few placeholders... | php | chosen |
[
{
"from": "system",
"value": "Fix function signature to match PHP's function.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\n/**\n * A set of 'mocks' that replace the PHP global functions to aid testing.\n */\nnamespace Cake\\Http;\n\nfunction headers_sent()\n{\n return... | php | chosen |
[
{
"from": "system",
"value": "Add return types to internal & magic methods when possible\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... | php | chosen |
[
{
"from": "system",
"value": "Remove redirect, restrict access in .htaccess\n"
},
{
"from": "human",
"value": "<?php\n\n$servername = \"localhost\";\n$username = \"localhost\";\n$password = \"4ddbcTSRXWDHQjpS\";\n$dbname = \"posts\";\n\n$conn = new mysqli($servername, $username, $password, $dbna... | php | chosen |
[
{
"from": "system",
"value": "Make sure prior article is in prior month when seeding\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Database\\Seeders;\n\nuse App\\Models\\Article;\nuse Illuminate\\Support\\Carbon;\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Support\\Facades\\DB;\n... | php | chosen |
[
{
"from": "system",
"value": "Set Plugin-Version to Version 1.3\n"
},
{
"from": "human",
"value": "<?php\n/* Copyright (c) 2011 ILIAS open source, Extended GPL, see docs/LICENSE */\n\n// alphanumerical ID of the plugin; never change this\n$id = \"xpad\";\n\n// code version; must be changed for a... | php | chosen |
[
{
"from": "system",
"value": "Add loadApp to test cases\n"
},
{
"from": "human",
"value": "<?php\n\nclass Test_LibBookmarks_Bookmarks extends UnitTestCase {\n\n\tfunction testAddBM() {\n\t\t$this->assertCount(0, OC_Bookmarks_Bookmarks::findBookmarks(0, 'id', array(), true, -1));\n\t\tOC_Bookmark... | php | chosen |
[
{
"from": "system",
"value": "Use text instead of json as mysql type. Json is not fully supported in laravel\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "Fix link top on topmenu\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"ja\">\n <head>\n <meta charset=\"UTF-8\">\n <title>{{title}}</title>\n <link rel=stylesheet href=theme/{{theme}}/css/style.css>\n </head>\n <body>\... | php | chosen |
[
{
"from": "system",
"value": "Set unit tests not depending on real profile file\n"
},
{
"from": "human",
"value": "<?php\n\nuse Karma\\Application;\nuse Gaufrette\\Adapter\\InMemory;\nuse Karma\\Console;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\nabstract class CommandTestCase e... | php | chosen |
[
{
"from": "system",
"value": "Attach event handlers in routing unit.\n"
},
{
"from": "human",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for more inf... | php | chosen |
[
{
"from": "system",
"value": "Fix deprecation warning for Symfony 4.2\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\nnamespace AtlassianConnectBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config... | php | chosen |
[
{
"from": "system",
"value": "Fix in an internal command.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Bear CMS addon for Bear Framework\n * https://bearcms.com/\n * Copyright (c) 2016 Amplilabs Ltd.\n * Free to use under the MIT license.\n */\n\nreturn function() {\n Cookies::setList(C... | php | chosen |
[
{
"from": "system",
"value": "Add missing config param use_twig\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Avanzu\\AdminThemeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInte... | php | chosen |
[
{
"from": "system",
"value": "Change authentication class on API requests\n"
},
{
"from": "human",
"value": "<?php namespace App\\Http\\Middleware;\n\nuse \\Closure;\nuse \\Illuminate\\Contracts\\Auth\\Guard;\nuse \\Neomerx\\Limoncello\\Contracts\\IntegrationInterface;\nuse \\Neomerx\\Limoncello... | php | chosen |
[
{
"from": "system",
"value": "Replace getDownloadLink with getRedirect for redirect device\n"
},
{
"from": "human",
"value": "<p class=\"cat-download\">Download your eduroam profile<br>\n<a class=\"btn btn-warning cat-btn-redirect\" href=\"<?= o($device->getDownloadLink()) ?>\"><big><big>\n<stro... | php | chosen |
[
{
"from": "system",
"value": "Fix mistake in 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://... | php | chosen |
[
{
"from": "system",
"value": "Add newline at the end of file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace vfalies\\tmdb\\Interfaces\\Results;\n\ninterface PeopleResultsInterface extends ResultsInterface\n{\n public function getProfilePath();\n\n public function getAdult();\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Set focus on input text\n+ modic"
},
{
"from": "human",
"value": "<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>films</title>\n <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js\"></script>\n </head>\n ... | php | chosen |
[
{
"from": "system",
"value": "Stop the view indicating if the command is first\n"
},
{
"from": "human",
"value": "@extends('layout')\n\n@section('content')\n <div class=\"row\">\n @include('commands._partials.list', [ 'step' => 'Before' ])\n @include('commands._partials.list', [... | php | chosen |
[
{
"from": "system",
"value": "Update registry class and interface references\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 wa... | php | chosen |
[
{
"from": "system",
"value": "Prepare release candidate for version 5.0\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of CaptainHook\n *\n * (c) Sebastian Feldmann <sf@sebastian.feldmann.info>\n *\n * For the full copyright and license information, please view the LICENSE... | php | chosen |
[
{
"from": "system",
"value": "Add link to next article\n"
},
{
"from": "human",
"value": "<?php get_header(); ?>\n\n<div id=\"container\">\n <?php the_post(); ?>\n\n <div class=\"summary\">\n <?php the_excerpt(); ?>\n </div>\n\n <div class=\"signature\">\n <?php the_aut... | php | chosen |
[
{
"from": "system",
"value": "Fix bug regarding local config in webdisk.\n"
},
{
"from": "human",
"value": "<?php\n/*\n\tThe MIT License (MIT)\n\n\tCopyright (c) 2015 Fernando Bevilacqua\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy of\n\tthis software and ass... | php | chosen |
[
{
"from": "system",
"value": "Add code coverage for FatalErrorException\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Psy Shell.\n *\n * (c) 2012-2018 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distri... | php | chosen |
[
{
"from": "system",
"value": "Change test data to work properly\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Trl_Table_Table_Trl_TrlModel extends Kwf_Model_FnF\n{\n protected function _init()\n {\n $this->_siblingModels[] = new Kwf_Model_Field(array('fieldName'=>'data'));\n ... | php | chosen |
[
{
"from": "system",
"value": "Update Twig filters and extension\n\nHello,\r\n\r\nI just updated this file to be compatible with Symfony 5.\r\nThe twig filters and extensions were deprecated.\r\n\r\nCheers 😉"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Bundle\\MarkdownBundle\\Twig\\E... | php | chosen |
[
{
"from": "system",
"value": "Switch to HTML5 doctype and add IE version to html tag in Swat demo.\n\nsvn commit r60910\n"
},
{
"from": "human",
"value": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w... | php | chosen |
[
{
"from": "system",
"value": "Return 404 for non-existent pages\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) Unknown Worlds Entertainment, 2016. \n * Created by Lukas Nowaczek <lukas@unknownworlds.com> <@lnowaczek>\n * Visit http://unknownworlds.com/\n * This file is a part of... | php | chosen |
[
{
"from": "system",
"value": "Disable mass-assignment restrictions for the seed\n"
},
{
"from": "human",
"value": "<?php\n\nclass SeatSettingSeeder extends Seeder {\n\n public function run()\n {\n\t\tSeatSetting::create(array('setting' => 'app_name', 'value' => 'SeAT'));\n\t\tSeatSetting::... | php | chosen |
[
{
"from": "system",
"value": "Check unique combination of 'name' and 'in' parameters of @RequestParameter\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\nnamespace Apitte\\Core\\Annotation\\Controller;\n\nuse Doctrine\\Common\\Annotations\\Annotation\\Target;\nuse Doctrine... | php | chosen |
[
{
"from": "system",
"value": "Remove all html from divider and use papi_html_tag\n"
},
{
"from": "human",
"value": "<?php\n\n// Exit if accessed directly\ndefined( 'ABSPATH' ) || exit;\n\n/**\n * Papi Property Divider class.\n *\n * @package Papi\n */\nclass Papi_Property_Divider extends Papi_Pr... | php | chosen |
[
{
"from": "system",
"value": "Add a function to return the profs first initial and last name.\n\ngit-svn-id: e691eac7f4e7c267eb8bf668e75dc601c2a71df8@584 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n"
},
{
"from": "human",
"value": "<?php\n\nclass get_names {\n\t\n\t\n\t\n\tfunction get_users_name($use... | php | chosen |
[
{
"from": "system",
"value": "Add getName() method to tag interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of phpDocumentor.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * @... | php | chosen |
[
{
"from": "system",
"value": "Fix bug in orm transformer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Doctrine\\ORM;\n\nuse FOQ\\ElasticaBundle\\Doctrine\\AbstractElasticaToModelTransformer;\nuse Elastica_Document;\nuse Doctrine\\ORM\\Query;\n\n/**\n * Maps Elastica... | php | chosen |
[
{
"from": "system",
"value": "Implement stub login and complete register method\n"
},
{
"from": "human",
"value": "<?php\n\nclass Account extends CI_Controller {\n\n public function index()\n\t{\n\t\t$this->load->view('account/index');\n\t}\n}"
},
{
"from": "gpt",
"value": "<?php\... | php | chosen |
[
{
"from": "system",
"value": "Fix warnings in php7.2 by initialising the operands array\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Ruler package, an OpenSky project.\n *\n * (c) 2011 OpenSky Project Inc\n *\n * For the full copyright and license information, plea... | php | chosen |
[
{
"from": "system",
"value": "Use md5 hash instead of filename to determine if template must be uploaded"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DocumentManipulationBundle\\Manipulator;\n\nuse Zend\\Service\\LiveDocx\\MailMerge;\nuse Symfony\\Component\\HttpFoundation\\File\... | php | chosen |
[
{
"from": "system",
"value": "Create directory to resource being replicated.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Resource;\nuse Orbt\\ResourceMirror\\Exception\\ReplicatorException;\n\n/**\n * Basic replicator implementation using file operations to replic... | php | chosen |
[
{
"from": "system",
"value": "Allow expiration of gift card to be set\n"
},
{
"from": "human",
"value": "<?php\n\ninclude '../scat.php';\n\n$balance= (float)$_REQUEST['balance'];\n\n$q= \"INSERT INTO giftcard \n SET pin = SUBSTR(RAND(), 5, 4),\n active = 1\";\n$r= $db->query($q... | php | chosen |
[
{
"from": "system",
"value": "Add server relationship and to mutator/accessor.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Realms;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\n/**\n * Invite model.\n *\n * @package App\n */\nclass Invite extends Model\n{\n protected $guarde... | php | chosen |
[
{
"from": "system",
"value": "Change all freepbx die() calls to die_freepbx() \n\n"
},
{
"from": "human",
"value": "<?php\n\nglobal $db;\n\n// Manage upgrade from DISA 1.0\n// r2.0 Add Timeouts and add wait for confirmation\n$sql = \"SELECT digittimeout FROM disa\";\n$check = $db->getRow($sql, D... | php | chosen |
[
{
"from": "system",
"value": "Add content disposition to BinaryFileResponse"
},
{
"from": "human",
"value": "<?php\n\nnamespace Theapi\\CctvBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\StreamedResponse;\nuse Symfony\\Component\\HttpFoundation\\BinaryFileResponse;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Fix broken password reset page\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('content')\n <div class=\"container\">\n @include('layouts.alerts')\n\n <h1 class=\"header\">Reset Password</h1>\n\n <form method=\"POST\... | php | chosen |
[
{
"from": "system",
"value": "Tag Factory no understand full xpaths"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of PHPExifTool.\n *\n * (c) 2012 Romain Neutron <imprec@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that ... | php | chosen |
[
{
"from": "system",
"value": "Fix add line function in core data container\n"
},
{
"from": "human",
"value": "<?php\nclass CoreData\n{\n\tprivate $containers = array();\n\tpublic $current_container;\n\t\n\tpublic function __construct($content) {\n\t\t$this -> newContainer();\n\t\t$this -> parse... | php | chosen |
[
{
"from": "system",
"value": "Update tool version to 0.9.5\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2016 Bitban Technologies, S.L.\n * Todos los derechos reservados.\n */\n\nnamespace Bitban\\PhpCodeQualityTools;\n\nclass PhpCodeQualityTools\n{\n const APP_NAME = 'Bitban ... | php | chosen |
[
{
"from": "system",
"value": "Add support for income accounts via a -1 polarity.\n"
},
{
"from": "human",
"value": "<?php\nreturn function(MongoDB $db) {\n $collection = $db->budgets;\n\n $findOne = function($id) use($collection) {\n return $collection->findOne(['_id' => new MongoID... | php | chosen |
[
{
"from": "system",
"value": "Use FormInterface instead of Form"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2013 Zend Techn... | php | chosen |
[
{
"from": "system",
"value": "Normalize form of calculation to more closely align with other implementations.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Algorithm\\GradientDescent;\n\nuse mcordingley\\Regression\\Observation;\nuse mcordingley\\Regression\\Obse... | php | chosen |
[
{
"from": "system",
"value": "Use session.store instead of session for Guard instance.\n\nOn September 30, commit 3816e425ae3fdaa69474763737d5e906e073c9a9 to\nthe Laravel framework changed the arguments of the Guard constructor,\nso it now takes a Store object instead of a Session object. This one\nline pat... | php | chosen |
[
{
"from": "system",
"value": "Add {table} placeholder for path.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Josegonzalez\\Upload\\File\\Path\\Basepath;\n\nuse Cake\\Utility\\Hash;\nuse LogicException;\n\ntrait DefaultTrait\n{\n /**\n * Returns the basepath for the current field/da... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Load composer only if container class dont exists\"\n\nThis reverts commit 08c9a7daddc17c6ef19e7b0e7beff38ed75b222b.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Plugin Name: Papi\n * Description: Page Type API\n * Author: Fredrik Forsmo\n * Author U... | php | chosen |
[
{
"from": "system",
"value": "Remove page status on empty results\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n <div class=\"card card--section\">\n <div class=\"card-header\">Students enrolled in {{ $course->name }}</div>\n @if($enrollments... | php | chosen |
[
{
"from": "system",
"value": "Remove distribution bundle from the loaded bundles.\n\nWe only need distribution bundle when updating dependencies.\nNo need to load it in the kernel.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Co... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Fix missing prepending extension\"\n\nThis reverts commit fa787a65bf64820654b6b403f1a75a8772e6c56a.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <th... | php | chosen |
[
{
"from": "system",
"value": "Change user database seeder to User create\n\nFactory helper uses Faker, which only dev dependency\nIf we use command \"composer install --no-dev\"\nthe database user seeder will throw error because\nFaker not found."
},
{
"from": "human",
"value": "<?php\n\nuse App... | php | chosen |
[
{
"from": "system",
"value": "Change slot names for consistency\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"<?php echo $sf_user->getCulture() ?>\" dir=\"<?php echo sfCultureInfo::getInstance($sf_user->getCulture())->direction ?>\">\n <head>\n <?php include_http_metas() ?... | php | chosen |
[
{
"from": "system",
"value": "Update default value of confirmation code\n"
},
{
"from": "human",
"value": "<?php\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass ConfideSetupUsersTable extends Migration {\n\n /**\n * Run the migrations.\n *\n * @return void\n */\n ... | php | chosen |
[
{
"from": "system",
"value": "Increase page size to 100 on getAllPrograms to minimize number of requests required\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\WebService\\SR;\n\nuse AppBundle\\WebService\\SR\\Responses\\AllProgramsResponse;\nuse Ci\\RestClientBundle\\Services... | php | chosen |
[
{
"from": "system",
"value": "Fix redirect after deleting of faq feedback\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Faq\\Actions;\n\n/*\n * This file is part of Fork CMS.\n *\n * For the full copyright and license information, please view the license\n * file that w... | php | chosen |
[
{
"from": "system",
"value": "Add type for Condorcet autoloader\n"
},
{
"from": "human",
"value": "<?php\n/*\n Condorcet PHP - Election manager and results calculator.\n Designed for the Condorcet method. Integrating a large number of algorithms extending Condorcet. Expandable for all type... | php | chosen |
[
{
"from": "system",
"value": "Update menu to Bootstrap 4\n"
},
{
"from": "human",
"value": "<nav class=\"navbar navbar-static-top navbar-dark bg-inverse\">\n <div class=\"container\">\n <a class=\"navbar-brand\" href=\"{{ url('/') }}\">Bang</a>\n <ul class=\"nav navbar-nav\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Add count query to base model\n"
},
{
"from": "human",
"value": "<?php \n\n/**\n* Basis for ORM classes \n*/\nabstract class BaseModel{\n\tabstract static function displayName(): string;\n\t\n\tstatic function displayNamePlural(): string{\n\t\treturn static::display... | php | chosen |
[
{
"from": "system",
"value": "Add short-cuts for status and content.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Http;\n\nuse Symfony\\Component\\HttpFoundation\\Cookie;\n\ntrait ResponseTrait {\n\n\t/**\n\t * Set a header on the Response.\n\t *\n\t * @param string $key\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Add API methods to add POST/DELETE routes to the API\n"
},
{
"from": "human",
"value": "<?php namespace Flarum\\Events;\n\nuse Flarum\\Api\\Request;\nuse Flarum\\Http\\RouteCollection;\nuse Psr\\Http\\Message\\ServerRequestInterface;\n\nclass RegisterApiRoutes\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Change config params to default\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of Rudolf.\n * \n * Site configuration.\n * \n * @author Mikołaj Pich <m.pich@outlook.com>\n * @package Rudolf\\Config\n * @version 0.1\n */\n\nreturn array (\n\t'fro... | php | chosen |
[
{
"from": "system",
"value": "Add message how to exit Codeception console\n\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Codeception\\Lib\\Actor\\Shared;\n\nuse Codeception\\Command\\Console;\nuse Codeception\\Lib\\PauseShell;\nuse Codeception\\Util\\Debug;\n... | php | chosen |
[
{
"from": "system",
"value": "OEE-1083: Edit form for currency rates\n- Added configurator to hide controls 'Default currency' and 'Currency rates'\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\CurrencyBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse S... | php | chosen |
[
{
"from": "system",
"value": "Add auth details if session_id is not provided in the request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jwpage\\Clickatell;\n\nuse Guzzle\\Common\\Collection;\nuse Guzzle\\Service\\Client;\nuse Guzzle\\Service\\Description\\ServiceDescription;\n\nclass C... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Move Bolt\\Mapping to Bolt\\Storage\\Mapping namespace"
},
{
"from": "human",
"value": "<?php\nnamespace Bolt\\Tests\\Mapping;\n\nuse Bolt\\Mapping\\MetadataDriver;\nuse Bolt\\Tests\\BoltUnitTest;\n\n/**\n * Class to test src/Mapping/MetadataDriver.\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Change the DB VM seed\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse REBELinBLUE\\Deployer\\Server;\n\nclass ServerTableSeeder extends Seeder\n{\n public function run()\n {\n DB::table('servers')->delete();\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Use global settings to suppress all GUI alerts\n\nDo this instead:\nvboxmanage setextradata global GUI/SuppressMessages \"all\"\n\nto update ~/.virtualbox.d/virtualbox.xml\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n/*\n\n// single file\nphp --file... | php | chosen |
[
{
"from": "system",
"value": "Use PHP5.3 compat array syntax\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by JetBrains PhpStorm.\n * User: Doug\n * Date: 28/07/13\n * Time: 12:58\n * To change this template use File | Settings | File Templates.\n */\n\n namespace DVDoug\\BoxPacker;... | php | chosen |
[
{
"from": "system",
"value": "Move add out of Iterator methods section.\n"
},
{
"from": "human",
"value": "<?php\nnamespace phpgt\\fetch;\n\nuse React\\Promise\\Deferred;\n\n/**\n * Contains multiple requests and their promises.\n */\nclass RequestResolver implements \\Iterator {\n\nprivate $req... | php | chosen |
[
{
"from": "system",
"value": "Fix CSRF tokens not existing after only get requests\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nclass CSRFProtection {\n\tprotected static $_cookieKey = 'CSRF_TOKEN';\n\tpublic static $isForged;\n\n\t/**\n\t * Checks POSTed data for CSRF token val... | php | chosen |
[
{
"from": "system",
"value": "Add additional methods to get info from mod_authnz_ldap environment.\n"
},
{
"from": "human",
"value": "<?php\n\nfinal class PhutilAuthAdapterRemoteUser extends PhutilAuthAdapter {\n\n public function getProviderName() {\n return pht('RemoteUser');\n }\n\n pub... | php | chosen |
[
{
"from": "system",
"value": "[ENH] Rename wizard page \"Initialize Tiki\" to \"Featured Profiles\". It describes better what it is and \"invites\" more profile pages\n\ngit-svn-id: fe65cb8b726aa1bab0c239f321eb4f822d15ce08@48913 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"valu... | php | chosen |
[
{
"from": "system",
"value": "Add menu cap to editor\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Sage includes\n *\n * The $sage_includes array determines the code library included in your theme.\n * Add or remove files to the array as needed. Supports child theme overrides.\n *\n * Please... | php | chosen |
[
{
"from": "system",
"value": "Add helper method phpdoc info\n"
},
{
"from": "human",
"value": "<?php\n\nif (! function_exists('locale')) {\n /**\n * Get the active locale.\n *\n * @return string\n */\n function locale()\n {\n return config('app.locale', config('ap... | php | chosen |
[
{
"from": "system",
"value": "Add only the value to a members extra info\n\nSigned-off-by: Gawain Lynch <f745ec5336bcd096400627fc09f6ec7139408726@gmail.com>"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\Members;\n\nuse Bolt\\Extension\\Bolt\\ClientLogin\\ClientRecord... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.