conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Build slim response from captured output buffer\n"
},
{
"from": "human",
"value": "<?php\nuse \\Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse \\Psr\\Http\\Message\\ResponseInterface as Response;\n\n$app = new \\Slim\\App;\n$app->get('/hello/{name}', fu... | php | chosen |
[
{
"from": "system",
"value": "Add return to ensure prodution settings command to get exit status of command\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Doctrine Bundle\n *\n * The code was originally distributed inside the Symfony framework.\n *\n * (c) Fabien Pot... | php | chosen |
[
{
"from": "system",
"value": "Refactor Foreach Into Array Reduce\n\nThis was a foreach doing exactly what array_reduce did before. So just\ntidying this up.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Consolidare;\n\nuse Consolidare\\Mergeable\\Mergeable;\nuse Consolidare\\Mergeable\\M... | php | chosen |
[
{
"from": "system",
"value": "Add return types to tests and final|internal|private methods\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, plea... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong path when publishing config\n\nIt was pointed to `src/Linfo/config`, not `src/config`.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Linfo\\Laravel;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LinfoServiceProvider extends ServiceProvider\... | php | chosen |
[
{
"from": "system",
"value": "Remove dependency on Yii's Object class\n\nInitialization of members via array in constructor was the only feature\nused.\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: Nabeel\r\n * Date: 2015-09-28\r\n * Time: 11:01 AM\r\n */... | php | chosen |
[
{
"from": "system",
"value": "Update calculator request for new CRONUS versions\n"
},
{
"from": "human",
"value": "<?php if (!defined('BASEPATH')) exit('No direct script access allowed');\n\ndefine('CRONUS_BASE', 'http://hess.ess.washington.edu/');\ndefine('CRONUS_URI', CRONUS_BASE . 'cgi-bin/ma... | php | chosen |
[
{
"from": "system",
"value": "Add initial client instantiation test\n"
},
{
"from": "human",
"value": "<?php\nnamespace phpSmug\\Tests;\n\nuse phpSmug\\Client;\n\nclass ClientTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @test\n */\n public function shouldNotHaveToPassHttp... | php | chosen |
[
{
"from": "system",
"value": "Fix broken test in PHP 5.4\n"
},
{
"from": "human",
"value": "<?php\nnamespace Test;\n\n// \\HttpMessage\nuse Kambo\\HttpMessage\\Uri;\nuse Kambo\\HttpMessage\\Factories\\String\\UriFactory;\n\n/**\n * Unit test for the UriFactory object.\n *\n * @package Test\n * @... | php | chosen |
[
{
"from": "system",
"value": "Update dataProvider on BitField structure\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Redtrine\\Tests\\Structure;\n\nuse Redtrine\\Tests\\RedtrineTestCase;\nuse Redtrine\\Structure\\BitField;\n\nclass BitFieldTest extends RedtrineTestCase\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Verify if the surveys will be completed"
},
{
"from": "human",
"value": "<?php \n"
},
{
"from": "gpt",
"value": "<?php\nsession_start();\nrequire_once('config.php');\nif ($_COOKIE['surveyok'] and $_SESSION['surveyok']){\n echo \"The survey will be compl... | php | chosen |
[
{
"from": "system",
"value": "Remove the HTML5 pattenr as that PFBC field is present also on login forms and if the value if changed later (in admin panel) the users/admins wont be able to login anymore\n"
},
{
"from": "human",
"value": "<?php\n/**\n * We made many changes in this code.\n * By p... | php | chosen |
[
{
"from": "system",
"value": "Update comments to do not use signed interface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the <name> project.\n *\n * (c) <yourname> <youremail>\n *\n * For the full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "system",
"value": "Use KCommandContext::getSubject() instead of $command->caller\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * @version $Id$\r\n * @package Nooku_Components\r\n * @subpackage Files\r\n * @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributo... | php | chosen |
[
{
"from": "system",
"value": "Fix in the apply() method in list context (did not returned the correct list when slice and sliceProperties)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * Data Object\n * https://github.com/ivopetkov/data-object\n * Copyright (c) Ivo Petkov\n * Free to use unde... | php | chosen |
[
{
"from": "system",
"value": "Make pages' links in the header active when we visit them\n"
},
{
"from": "human",
"value": " <div class=\"navbar navbar-default\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navb... | php | chosen |
[
{
"from": "system",
"value": "Remove getParent call to TwigBundle"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the GifExceptionBundle project.\n *\n * (c) JoliCode <coucou@jolicode.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * f... | php | chosen |
[
{
"from": "system",
"value": "Fix menu rendering that prevents website from loading\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by JetBrains PhpStorm.\n * User: Maxim\n * Date: 07/07/13\n * Time: 11:43\n * To change this template use File | Settings | File Templates.\n */\n\nnamesp... | php | chosen |
[
{
"from": "system",
"value": "Use foundation stylesheet and js on every page\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Dit is een standaardpagina voor op de website. Voor het includen van deze\n * pagina moet een aantal variabelen geïnitialiseerd worden:\n * $title: bevat de paginatitel.\... | php | chosen |
[
{
"from": "system",
"value": "Fix the optional ( at) expression\n"
},
{
"from": "human",
"value": "<?php\nuse CLIFramework\\Component\\Table\\DateFormatCell;\n\nclass DateFormatCellTest extends PHPUnit_Framework_TestCase\n{\n public function testDateFormat()\n {\n $dateFormatCell = ... | php | chosen |
[
{
"from": "system",
"value": "Modify \"iRail is a member of (...)\"\n\nLinking only \"iRail\" to hello.irail.be and leaving the \"is a member of\" string out of the link seems more logical"
},
{
"from": "human",
"value": "<footer class=\"footer container\">\n <hr/>\n <p class=\"small\"><a ... | php | chosen |
[
{
"from": "system",
"value": "Use geoip helper instead of facade\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: Bram\n * Date: 29-4-2017\n * Time: 06:21\n */\n\nnamespace Stormyy\\B3\\Helper;\n\nuse GeoIP;\n\nabstract class PermissionHelper\n{\n public static... | php | chosen |
[
{
"from": "system",
"value": "Fix issues with bootstraping post methods\n"
},
{
"from": "human",
"value": "<?php namespace MyBB\\Core\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Routing\\Middleware;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Routing\\Router;\n\nabstract ... | php | chosen |
[
{
"from": "system",
"value": "Update filesizes after changing filesize db type\n\nThis updates all wrong filesizes after db migration 19 (`filesize` type\nchange to `bigint`). It will only update files with a filesize of\n2147483647 byte since the database set the max integer value as the\nfilesize if the f... | php | chosen |
[
{
"from": "system",
"value": "Replace \\Criteria with \\ModelCriteria, as in the pagination subscriber\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Component\\Pager\\Event\\Subscriber\\Sortable;\n\nuse Symfony\\Component\\EventDispatcher\\EventSubscriberInterface;\nuse Knp\\Compone... | php | chosen |
[
{
"from": "system",
"value": "Replace deprecated doctrine object repository\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... | php | chosen |
[
{
"from": "system",
"value": "Support interval and offset parms\n"
},
{
"from": "human",
"value": "<?php\n/**\n * mbc-import-logging.php\n *\n * Collect user import activity from the userImportExistingLoggingQueue. Update\n * the LoggingAPI / database with import activity via mb-logging.\n */\n\... | php | chosen |
[
{
"from": "system",
"value": "Increment version to 0.0.5 for release\n"
},
{
"from": "human",
"value": "<?php\ndefine(\"BEYONIC_CLIENT_VERSION\", \"0.0.4\");\n\nif (!function_exists('curl_init')) {\n throw new Exception('Beyonic requires the CURL PHP extension.');\n}\nif (!function_exists('json... | php | chosen |
[
{
"from": "system",
"value": "Add region for SES mail config\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) 2013-2017 Pierre du Plessis <info@customscripts.co.za>\n *\n * This source file is subject to the MIT... | php | chosen |
[
{
"from": "system",
"value": "Add validation check before renting parking space\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nclass ParkingController\n{\n public function getAll()\n {\n return Response::json('success', $this->table()->get());\n ... | php | chosen |
[
{
"from": "system",
"value": "Use redis for bot chat messages\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\ServerSettings;\nuse Illuminate\\Http\\Request;\n\nclass BotChatController extends Controller\n{\n\n\n public function index(){\n re... | php | chosen |
[
{
"from": "system",
"value": "Remove typehinting on populate/transport arg"
},
{
"from": "human",
"value": "<?php namespace Inkwell\\Transport\n{\n\tinterface GatewayInterface\n\t{\n\t\t/**\n\t\t *\n\t\t */\n\t\tpublic function populate(Message $message);\n\n\n\t\t/**\n\t\t *\n\t\t */\n\t\tpubli... | php | chosen |
[
{
"from": "system",
"value": "Reorder mysqli_connection parameters so the environment check actually works\n"
},
{
"from": "human",
"value": "<?hh\n\nnamespace Hack\\UserDocumentation\\API\\Examples\\AsyncMysql;\n\nrequire __DIR__ . \"/connect.inc.php\";\n\nuse \\Hack\\UserDocumentation\\API\\Ex... | php | chosen |
[
{
"from": "system",
"value": "Add missing language string in English\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'again' => 'Again',\n 'close' => 'Close',\n 'connection' => 'Connection',\n 'cpu' => 'CPU',\n 'current_password' => 'Current Password',\n 'disabled' => 'D... | php | chosen |
[
{
"from": "system",
"value": "Allow widgets to use custom functions in templates\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace ATPCore\\View;\r\n\r\nclass Widget extends \\Zend\\View\\Model\\ViewModel\r\n{\r\n\tprotected $_template = \"\";\r\n\t\r\n\tpublic function __construct($para... | php | chosen |
[
{
"from": "system",
"value": "Fix array-style access of non-arrays\n"
},
{
"from": "human",
"value": "<?php\n/**\n *\n */\n\nnamespace Mvc5\\Test\\Config;\n\nuse Mvc5\\Overload;\nuse Mvc5\\Test\\Test\\TestCase;\n\nclass OverloadTest\n extends TestCase\n{\n /**\n *\n */\n functio... | php | chosen |
[
{
"from": "system",
"value": "Add a logo in the cli app\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rusty\\Console;\n\nuse Symfony\\Component\\Console\\Application as ConsoleApplication;\n\nuse Rusty\\Console\\Command;\n\nclass Application extends ConsoleApplication\n{\n public func... | php | chosen |
[
{
"from": "system",
"value": "Fix search index regeneration initializing Sonic client incorrectly\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is covered by the AGPLv3 license, which can be found at the LICENSE file in the root of this project.\n * @copyright 2020 subtitulamos.t... | php | chosen |
[
{
"from": "system",
"value": "OOT-577: Update Project bundle routing annotations\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sbts\\Bundle\\ProjectBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Co... | php | chosen |
[
{
"from": "system",
"value": "Fix logic of enrollment actions\n"
},
{
"from": "human",
"value": "<div class=\"btn-group\">\n\n\n @if (! Auth::user()->student->isEnrolledInCourse($course))\n {{-- Show button to enroll in course. --}}\n <form action=\"{{ route('enrollments.create'... | php | chosen |
[
{
"from": "system",
"value": "Make changes to json object\n\nSigned-off-by: Duy Pham (berong91) <06d8e9b3323f002be1f8a544c4090eaa3213f792@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n $servername = \"localhost\";\n $username = \"tyler637_dolos\";\n $password = \"Dolos123\";\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix existing auto join specification tests.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\RulerZ\\Executor\\DoctrineQueryBuilder;\n\nuse Doctrine\\ORM\\QueryBuilder;\nuse Doctrine\\ORM\\Query\\Expr\\Join;\nuse PhpSpec\\ObjectBehavior;\n\nuse RulerZ\\Ex... | php | chosen |
[
{
"from": "system",
"value": "Fix login for both havenofcode.com and www.havenofcode.com\n"
},
{
"from": "human",
"value": "<?php\n include 'config.php';\n $state = base64_encode(rand());\n $client_id = GITHUB_CLIENT;\n \n // save the state in the cookie\n session_start();\n $_SESSION['st... | php | chosen |
[
{
"from": "system",
"value": "Change PFBC color field to HTML5 native color type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PFBC\\Element;\n\nclass Color extends Textbox\n{\n\n protected $jQueryOptions;\n\n public function jQueryDocumentReady()\n {\n parent::jQueryDocu... | php | chosen |
[
{
"from": "system",
"value": "Fix: Remove extra empty line before namespace declaration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcUserTest\\Factory;\n\nuse Zend\\ServiceManager\\ServiceManager;\nuse ZfcUser\\Factory\\AuthenticationServiceFactory;\n\nclass AuthenticationServiceFact... | php | chosen |
[
{
"from": "system",
"value": "Add false positive login test\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('Autoload.php');\nclass SQLAuthTest extends PHPUnit_Framework_TestCase\n{\n public function testSQLAuthenticator()\n {\n $GLOBALS['FLIPSIDE_SETTINGS_LOC'] = './tests/tr... | php | chosen |
[
{
"from": "system",
"value": "Add new builder to compiler passes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Knp\\Rad\\AutoRegistration\\Bundle;\n\nuse Knp\\Rad\\AutoRegistration\\DependencyInjection\\AutoRegistrationExtension;\nuse Knp\\Rad\\AutoRegistration\\DependencyInjection\\Comp... | php | chosen |
[
{
"from": "system",
"value": "Fix test to handle unkown transport on travis CI testing platform\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: evaisse\n * Date: 02/06/15\n * Time: 17:23\n */\n\nnamespace evaisse\\SimpleHttpBundle\\Tests\\Unit;\n\n\nclass SslTest... | php | chosen |
[
{
"from": "system",
"value": "ISSUE-35: Check if class has parent class.\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BowlOfSoup\\NormalizerBundle\\Service\\Extractor;\n\nuse Doctrine\\Persistence\\Proxy;\n\nclass MethodExtractor extends AbstractExtractor\n{\... | php | chosen |
[
{
"from": "system",
"value": "Stop controlling if the broker implements the right interface\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Wisembly\\AmqpBundle\\DependencyInjection\\Compiler;\n\nuse ReflectionClass;\nuse InvalidArgumentException;\n\nuse Symfony\\Component\\DependencyInjec... | php | chosen |
[
{
"from": "system",
"value": "Convert user to array on successful login\n"
},
{
"from": "human",
"value": "<?php namespace Lavoaster\\LightBlog\\User\\Controllers;\n\nuse Lavoaster\\LightBlog\\User\\Repositories\\UserRepositoryInterface;\n\nclass UserController extends \\BaseController\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary middleware for now\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware stack.\n... | php | chosen |
[
{
"from": "system",
"value": "Fix lang entries on emailer sub_nav\n"
},
{
"from": "human",
"value": "<ul class=\"nav nav-pills\">\n\t<li <?php echo $this->uri->segment(4) == '' ? 'class=\"active\"' : '' ?>>\n\t\t<a href=\"<?php echo site_url(SITE_AREA .'/settings/emailer') ?>\"><?php echo lang('... | php | chosen |
[
{
"from": "system",
"value": "Create Competition Admin roles for each competition seeded\n"
},
{
"from": "human",
"value": "<?php\n\nuse App\\Models\\Competition;\nuse App\\Models\\Season;\nuse Illuminate\\Database\\Seeder;\n\nclass CompetitionsTableSeeder extends Seeder\n{\n public function ... | php | chosen |
[
{
"from": "system",
"value": "[HtmlSanitizer] Fix default config service ID\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LIC... | php | chosen |
[
{
"from": "system",
"value": "Make an exception and remove page title on Parent Page templates, plus code clean\n"
},
{
"from": "human",
"value": "<?php\n\nif ( is_sticky() && is_home() ) :\n//\t\techo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );\nendif;\n\n?>\n<header class=\"ent... | php | chosen |
[
{
"from": "system",
"value": "Set article slug unique constraint\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateArticlesTable extends Migration\n{... | php | chosen |
[
{
"from": "system",
"value": "Replace default tid logic from listener to setDefaultOption method\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the php-ga-measurement-protocol package.\n *\n * (c) Kristian Zondervan <kristian.zondervan@gmail.com>\n *\n * For the full cop... | php | chosen |
[
{
"from": "system",
"value": "Adjust default anti-csrf token ttl to 15 minutes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BNETDocs\\Libraries;\n\nuse \\CarlBennett\\MVC\\Libraries\\Common;\n\nclass CSRF {\n\n const TTL = 300;\n\n private function __construct() {}\n\n public static ... | php | chosen |
[
{
"from": "system",
"value": "Remove incompatible command from kernel.\n\nThis command no longer works because it relies on old Mongo extension.\n\nblaa\n;\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Northstar\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\... | php | chosen |
[
{
"from": "system",
"value": "Use Sentinel\\Auth as our auth check instead of the default auth filter\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|----------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Hotfix: Fix /dev indicator\n...showing on non /dev\n"
},
{
"from": "human",
"value": "<div class=\"bg1\"></div>\n<div class=\"bg2\"></div>\n<br/>\n<div class=\"header\">\n\t<h1>Parontalli</h1>\n\t<? \n\t\tif(strpos($_SERVER[REQUEST_URI], '/dev/') == 0) {\n\t\t\techo... | php | chosen |
[
{
"from": "system",
"value": "Contacts: Make tmp file cleaup a bit safer.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * ownCloud - Addressbook\n *\n * @author Thomas Tanghus\n * @copyright 2012 Thomas Tanghus <thomas@tanghus.net>\n *\n * This library is free software; you can redistribute it... | php | chosen |
[
{
"from": "system",
"value": "Transform errors and warnings to exceptions."
},
{
"from": "human",
"value": "<?php\n\n/*!\n * This file is part of {@link https://github.com/MovLib MovLib}.\n *\n * Copyright © 2013-present {@link https://movlib.org/ MovLib}.\n *\n * MovLib is free software: you ca... | php | chosen |
[
{
"from": "system",
"value": "Handle form in group controller\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository\n * @copyright Copyright (c) ... | php | chosen |
[
{
"from": "system",
"value": "(Migrations): Change user_agent column to text\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass SetUpAuthenticationHistory extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * Write your reversible... | php | chosen |
[
{
"from": "system",
"value": "Make ISO3 code optional for countries\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BinSoul\\Common\\I18n;\n\n/**\n * Represents a country.\n */\ninterface Country\n{\n /**\n * Returns the ISO2 code.\n */\n public fu... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace user data grid choice type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ForkCMS\\Modules\\Backend\\Domain\\UserGroup\\Permission;\n\nuse ForkCMS\\Modules\\Backend\\Domain\\User\\User;\nuse Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType;\nus... | php | chosen |
[
{
"from": "system",
"value": "Simplify logic, add type hint\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Zephir.\n *\n * (c) Zephir Team <team@zephir-lang.com>\n *\n * For the full copyright and license information, please view\n * the LICENSE file that was distr... | php | chosen |
[
{
"from": "system",
"value": "Use laravel application instance when running suitey\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TheCrypticAce\\Suitey;\n\nuse Illuminate\\Pipeline\\Pipeline;\nuse Illuminate\\Support\\Collection;\nuse Illuminate\\Contracts\\Container\\Container;\n\nclass ... | php | chosen |
[
{
"from": "system",
"value": "CRM-7032: Configure form extension for Customer entities\n - Add Account column to customers grids\n - Add Account column to customers views\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\DataGridBundle\\Tools;\n\nuse Oro\\Bundle\\DataGridBundle\... | php | chosen |
[
{
"from": "system",
"value": "Fix token given story hrefs\n\nSummary:\nderp to tha derp\n\nFixes T2578.\n\nTest Plan: click click\n\nReviewers: chad\n\nReviewed By: chad\n\nCC: aran\n\nManiphest Tasks: T2578\n\nDifferential Revision: https://secure.phabricator.com/D5054\n"
},
{
"from": "human",
... | php | chosen |
[
{
"from": "system",
"value": "Add Unit test for Tag Transformer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RCatlin\\Blog\\Tests\\Serializer\\Transformer\\Entity;\n\nuse RCatlin\\Blog\\Entity;\nuse RCatlin\\Blog\\Serializer\\Transformer\\Entity\\TagTransformer;\nuse RCatlin\\Blog\\Test... | php | chosen |
[
{
"from": "system",
"value": "Change the update method for receive the layout attribute\n"
},
{
"from": "human",
"value": "<?php\n/**\n *Base class to persist data\n *\n *@author Vinicius Pinheiro <viny-pinheiro@hotmail.com>\n *@license MIT License\n *@link http://eletronjun.com.br/controlle... | php | chosen |
[
{
"from": "system",
"value": "Use javascript redirect to break out from iframe\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Mondido\n *\n * PHP version 5.6\n *\n * @category Mondido\n * @package Mondido_Mondido\n * @author Andreas Karlsson <andreas@kodbruket.se>\n * @license MIT License... | php | chosen |
[
{
"from": "system",
"value": "Add return value to preg_replace"
},
{
"from": "human",
"value": "<?php\n\nclass DeliveryProfileLiveAppleHttpToMulticast extends DeliveryProfileLiveAppleHttp {\n\t\n\tfunction __construct() {\n\t\tparent::__construct();\n\t\t$this->DEFAULT_RENDERER_CLASS = 'kF4MMani... | php | chosen |
[
{
"from": "system",
"value": "Make format form work the same as other forms\n"
},
{
"from": "human",
"value": "<h1>Editing format for podcast <?php echo link_to($podcast->getTitle(),'podcast/edit?id='.$podcast->getId()) ?></h1>\n\n<div class=\"form-wrapper\">\n <form action=\"<?php echo url_for... | php | chosen |
[
{
"from": "system",
"value": "Add unit tests for file thumbnail generation\n\nSummary: Fixes T12614.\n\nTest Plan:\n - Ran tests, saw them pass.\n - Changed a thumbnail to 800x800, saw tests detect that the default image was missing.\n\nReviewers: chad\n\nReviewed By: chad\n\nManiphest Tasks: T12614\n\nDi... | php | chosen |
[
{
"from": "system",
"value": "III-359: Add doc annotations for the magic methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\ReadModel\\Index;\n\nuse ValueObjects\\Enum\\Enum;\n\nclass EntityType extends Enum\n{\n const EVENT = 'event';\n const ORGANIZER = 'orga... | php | chosen |
[
{
"from": "system",
"value": "Update Helpers for Std & Flex\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('gae_instance')) {\n function gae_instance() {\n return empty($_SERVER['GAE_INSTANCE']) ? '' : $_SERVER['GAE_INSTANCE'];\n }\n}\n\nif (!function_exists('gae_p... | php | chosen |
[
{
"from": "system",
"value": "fix: Fix useless parameter in Hash handling test data provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Monolol\\Lolifiers;\n\nuse Monolog\\Logger;\n\nclass HashTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider testHandlingProv... | php | chosen |
[
{
"from": "system",
"value": "Make an attempt to identify unknown license\n\nIf a LICENSE file is present the see if we can find it's first line on http://www.spdx.org/licenses/\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Respect\\Foundation\\InfoProviders;\n\nclass ProjectLicense exte... | php | chosen |
[
{
"from": "system",
"value": "Test that an exception is thrown when the interface isn't implemented\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Tags\\Tests\\Engine;\n\nuse Frontend\\Core\\Engine\\Model as FrontendModel;\nuse Frontend\\Modules\\Tags\\Engine\\Model;\nu... | php | chosen |
[
{
"from": "system",
"value": "Add test to confirm parameters is loaded\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Okapon\\DoctrineSetTypeBundle\\Tests\\DependencyInjection;\n\nuse Okapon\\DoctrineSetTypeBundle\\DependencyInjection\\OkaponDoctrineSetTypeExtension;\nuse Symfony\\Compone... | php | chosen |
[
{
"from": "system",
"value": "Add unit tests for updated random_int()"
},
{
"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... | php | chosen |
[
{
"from": "system",
"value": "Set PHPUnit to display errors to track down PHP7 bug\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (C) 2015 David Young\n *\n * Sets up PHPUnit tests\n */\nrequire_once __DIR__ . \"/../vendor/autoload.php\";\n\n// Set the default timezone in case the t... | php | chosen |
[
{
"from": "system",
"value": "Add a mailchimp connection in the PeoplePlant tests if the proper api key is available\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('tests/php/base.php');\nrequire_once('framework/php/classes/plants/PeoplePlant.php');\n\nclass PeoplePlantTests extends Unit... | php | chosen |
[
{
"from": "system",
"value": "Declare exceptions that are already thrown by implementations\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, pleas... | php | chosen |
[
{
"from": "system",
"value": "Move the path so we can use the config value for the route\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Styleguide\\Pages;\n\nclass NewsView extends Page\n{\n /** {@inheritdoc} **/\n public $path = '/styleguide/news/item-1';\n\n /**\n * {@inher... | php | chosen |
[
{
"from": "system",
"value": "Add trace ID to footer of member UI\n"
},
{
"from": "human",
"value": "<footer class=\"footer\">\n <div class=\"container\" style=\"overflow: hidden; height: 100%\">\n <div class=\"d-flex justify-content-between\">\n <div>\n <p class=\"text-muted tex... | php | chosen |
[
{
"from": "system",
"value": "Add `is_published` to static pages [WEB-714]\n\nNecessary to support `Search::scopePublished` in that codebase.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models\\Web;\n\nuse App\\Models\\WebModel;\n\nclass StaticPage extends WebModel\n{\n\n prote... | php | chosen |
[
{
"from": "system",
"value": "Use skip combinators in example test.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ExamplesTest extends \\PHPUnit_Framework_TestCase {\n\n public function testParsePhpLikeArrayExample() {\n $array_keyword = Parser::str('array');\n $comma = Parser::char('... | php | chosen |
[
{
"from": "system",
"value": "Fix broken test (new \"countries\" added to data)\n"
},
{
"from": "human",
"value": "<?php\n\nclass KeyValueTest extends \\PHPUnit_Framework_TestCase\n{\n protected $maker;\n \n public function setUp()\n {\n $this->maker = new PeterColes\\Coun... | php | chosen |
[
{
"from": "system",
"value": "RESOLVE an error with undefined index\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace rrsoacis\\component\\setting\\cluster;\n\nuse rrsoacis\\manager\\ClusterManager;\nuse ZipArchive;\nuse rrsoacis\\component\\common\\AbstractController;\nuse rrsoacis\\manager... | php | chosen |
[
{
"from": "system",
"value": "Fix multi inserts in SQLite.\n"
},
{
"from": "human",
"value": "<?php namespace Laravel\\Database\\Query\\Grammars;\n\nuse Laravel\\Database\\Query;\n\nclass SQLite extends Grammar\n{\n\n\t/**\n\t * Compile the ORDER BY clause for a query.\n\t *\n\t * @param Query ... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with zero in phone number (wrong filtration)\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n// Объект - Получатель\r\nclass MultiShip_Recipient extends MultiShip_Object\r\n{\r\n var $_prefix = \"recipient_\";\r\n var $_fields = array(\"first_name\", \"mi... | php | chosen |
[
{
"from": "system",
"value": "Add changes missing from commit a3a01cd\n"
},
{
"from": "human",
"value": "<?php\n\nrequire('ErrorsContainer.php');\n\n class AddSegmentsErrors extends ErrorsContainer {\n\n public function __constructor() {\n $this->errors = [\n ... | php | chosen |
[
{
"from": "system",
"value": "Add hack to deal with PHP entry files\n\nIn case we're using dev environment (or any other the prod one) we'll\nincorrect asset url.\nThis hack tryies to deal with it in an ugly, but working way.\nTODO: deal with absolute URLs (or remove that option if it's never used).\n"
},... | php | chosen |
[
{
"from": "system",
"value": "Use date helper in date time template of page_attribute_display block\n\nMakes use of correct locale on multilingual websites\n"
},
{
"from": "human",
"value": "<?php\ndefined('C5_EXECUTE') or die(_(\"Access Denied.\"));\necho $this->controller->getOpenTag();\necho ... | php | chosen |
[
{
"from": "system",
"value": "Add notes to square webhook job\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Jobs;\n\nuse App\\Events\\PaymentSuccess;\nuse App\\Models\\Payment;\nuse App\\Notifications\\Payment\\ConfirmationNotification;\nuse Spatie\\Webho... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.