conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix file path for test\n"
},
{
"from": "human",
"value": "<?php\nrequire_once \"../../classes/Validators/ArrValueExists.php\";\n\nclass ArrValueExistsTest extends PHPUnit_Framework_TestCase {\n public function setUp() {\n $this->validator = new Validators_... | php | chosen |
[
{
"from": "system",
"value": "Add columns title for the export\n"
},
{
"from": "human",
"value": "<?php\ninclude \"database_operations.php\";\n$db = new Database_operations(); // create the \"request object\"\n\n// output headers so that the file is downloaded rather than displayed\nheader('Cont... | php | chosen |
[
{
"from": "system",
"value": "Fix scss files getting included twice in commonjs when using underscore.tpl\n"
},
{
"from": "human",
"value": "<?php\nclass Kwf_Assets_CommonJs_Underscore_TemplateProvider extends Kwf_Assets_Provider_Abstract\n{\n public function getDependency($dependencyName)\n ... | php | chosen |
[
{
"from": "system",
"value": "Move the TODO to the location where it should applied\n"
},
{
"from": "human",
"value": "<?php namespace Destiny;\n\n// TODO: Make all tests work offline (Guzzle mocking, Response forging)\n\nclass TestCase extends \\PHPUnit_Framework_TestCase {\n\n /**\n * A... | php | chosen |
[
{
"from": "system",
"value": "Add Condition\\Different test for type Datetime\n"
},
{
"from": "human",
"value": "<?php\n\nuse Mdd\\QueryBuilder\\Type;\nuse Mdd\\QueryBuilder\\Types;\nuse Mdd\\QueryBuilder\\Conditions;\nuse Mdd\\QueryBuilder\\Tests\\Escapers\\SimpleEscaper;\n\nclass DifferentTest... | php | chosen |
[
{
"from": "system",
"value": "Bugfix: Add missing return statement in collectionPostAction skeleton\n"
},
{
"from": "human",
"value": "\n /**\n * Creates a new {{ entity }}\n *\n{% if 'annotation' == format %}\n * @Route(\"/\", name=\"{{ route_name_prefix }}_create\")\n * @Met... | php | chosen |
[
{
"from": "system",
"value": "Include marker for form type\n"
},
{
"from": "human",
"value": "<?php\n\tadd_action( 'wp_ajax_form_to_disk', 'form_to_disk' );\n\tadd_action( 'wp_ajax_nopriv_form_to_disk', 'form_to_disk' );\n\n\t$f2d_option = get_option( 'f2d_options', '' );\n\n\tfunction form_to_d... | php | chosen |
[
{
"from": "system",
"value": "Check task permission it the user can view group tree\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Permission\\Response;\nuse Page;\nuse User;\nuse Group;\nuse PermissionKey;\nuse Permissions;\nclass GroupTreeNodeResponse extends TreeNodeRespo... | php | chosen |
[
{
"from": "system",
"value": "Add new css class to new WP 3.5 controls\n"
},
{
"from": "human",
"value": " <!-- Content upload <?php echo $id ?> -->\n <div id=\"<?php echo $id ?>_content\" class=\"<?php echo $group ? 'smallbox' : 'stuffbox' ?>\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix a STUPID issue with the forum seeder\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass ForumSeeder extends Seeder\n{\n public function run()\n {\n\t\t$faker = Faker\\Factory::create();\n\n for ($t = 1; $t <= 10; ... | php | chosen |
[
{
"from": "system",
"value": "Put favicon into separate function\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\t\tif... | php | chosen |
[
{
"from": "system",
"value": "Change naming for code style\n[skip ci]\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Stencil;\n\nclass Post {\n public $title;\n public $layout;\n public $content;\n public $date;\n\n function __construct($title = '', $date = '', $layout = '', $content... | php | chosen |
[
{
"from": "system",
"value": "Fix unpublished events showing when querying for events after a given time\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zeropingheroes\\Lanager\\Http\\Controllers\\Api;\n\nuse Illuminate\\Http\\Request;\nuse Zeropingheroes\\Lanager\\Http\\Controllers\\Contr... | php | chosen |
[
{
"from": "system",
"value": "Use async connection manager from react/http-client"
},
{
"from": "human",
"value": "<?php\n\nuse React\\HttpClient\\ConnectionManager;\nuse React\\Dns\\Resolver\\Resolver;\nuse React\\EventLoop\\LoopInterface;\n\nclass Factory\n{\n public function __construct(Lo... | php | chosen |
[
{
"from": "system",
"value": "Add missing return type nullable\n"
},
{
"from": "human",
"value": "<?php\n\tnamespace Service\\Auth;\n\n\tuse Model\\User;\n\tuse Psr\\Container\\ContainerInterface;\n\n\tinterface AuthInterface {\n\t\t/**\n\t\t * @param \\Psr\\Container\\ContainerInterface $contai... | php | chosen |
[
{
"from": "system",
"value": "[Acrimed] Use internal RSS 2.0 parser\n"
},
{
"from": "human",
"value": "<?php\nclass AcrimedBridge extends FeedExpander{\n\n\n\tconst MAINTAINER = \"qwertygc\";\n\tconst NAME = \"Acrimed Bridge\";\n\tconst URI = \"http://www.acrimed.org/\";\n\tconst DESCRIPTION = \... | php | chosen |
[
{
"from": "system",
"value": "Add mobile as a contact field.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package elemental\n */\nclass ElementContact extends BaseElement {\n\n\tprivate static $db = array(\n\t\t'ContactName' => 'Varchar(255)',\n\t\t'Phone' => 'Varchar(100)',\n\t\t'Fax' =... | php | chosen |
[
{
"from": "system",
"value": "Add trailing slash to prevent redirects\n"
},
{
"from": "human",
"value": "<h1 class=\"relative b-1\">\n\n @unless ($page->title == 'Home')\n\n <a href=\"/\">\n <span>Home</span>\n </a>\n\n @endunless\n\n @foreach ($pages as $sitePa... | php | chosen |
[
{
"from": "system",
"value": "Add back the console command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKernel\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Edit doc indentation for game param\n"
},
{
"from": "human",
"value": "<?php\nnamespace NoughtsAndCrosses\\Config;\n\n/** \n * Interface for Config.\n *\n * @package noughtsandcrosses\n */\ninterface ConfigInterface\n{\n /**\n * Gets the game property.\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow themes to overload BoomCMS views (e.g. for customising login page / user generation email\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BoomCMS\\ServiceProviders;\n\nuse BoomCMS\\Core\\Template\\Manager as TemplateManager;\nuse BoomCMS\\Support\\Helper... | php | chosen |
[
{
"from": "system",
"value": "Migrate activity tpl to oc7.0.5\n"
},
{
"from": "human",
"value": "<?php\n/* Copyright (c) 2014, Joas Schilling nickvergessen@owncloud.com\n * This file is licensed under the Affero General Public License version 3\n * or later. See the COPYING-README file. */\n\n/*... | php | chosen |
[
{
"from": "system",
"value": "Use randomNumber instead of rand for better randomness. Use randomElement for picking elements from the allowed digits to make it possible for both digits of a MAC address block to be the same. Fixed for test failing on PHP 5.3.\n"
},
{
"from": "human",
"value": "<?... | php | chosen |
[
{
"from": "system",
"value": "Fix a bug, when token ReflectionClass throws an exception that class is not an interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2012, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license ... | php | chosen |
[
{
"from": "system",
"value": "Remove import of tag trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlmMail\\Mail\\Message\\Provider;\n\nuse SlmMail\\Mail\\Message\\ProvidesOptions;\nuse SlmMail\\Mail\\Message\\ProvidesTags;\nuse Zend\\Mail\\Message;\n\nclass Mailgun extends Message\n... | php | chosen |
[
{
"from": "system",
"value": "[Routing][Config] Allow patterns of resources to be excluded from config loading\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 licen... | php | chosen |
[
{
"from": "system",
"value": "Change tag name from pjax to psxhr\n"
},
{
"from": "human",
"value": "<?php\nif (isset($_GET['get-date'])) {\n\n echo uniqid();\n die();\n}\n?>\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <base href=\"/\">\n <title></titl... | php | chosen |
[
{
"from": "system",
"value": "Add the username to pre-creation process\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Repositories;\n\nuse App\\Models\\User;\n\nclass UserRepository\n{\n /**\n * @param $userData\n * @return static\n */\n public function findOrCreate... | php | chosen |
[
{
"from": "system",
"value": "Mark payment cancelled if id is presented\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Czende\\GoPayPlugin\\Action;\n\nuse Czende\\GoPayPlugin\\GoPayWrapper;\nuse Payum\\Core\\Action\\ActionInterface;\nuse Payum\\Core\\Bridge\\Spl\\ArrayObject;\nuse Payum\\... | php | chosen |
[
{
"from": "system",
"value": "Set name and version of app\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Cffie\\Console;\n\nuse Cffie\\Command\\CffCommand;\nuse Cffie\\Command\\QueryCommand;\nuse Symfony\\Component\\Console\\Application as BaseApplication;\n\nclass Application extends Bas... | php | chosen |
[
{
"from": "system",
"value": "Update form_results link in submission email template\n\ngit-svn-id: 15bb71eaf589134a7157e233fb3ab3453d0ff094@476 b0551a0c-1e16-4222-a7d5-975db1aca215\n"
},
{
"from": "human",
"value": "<? \ndefined('C5_EXECUTE') or die(_(\"Access Denied.\"));\n\n$submittedData='';\... | php | chosen |
[
{
"from": "system",
"value": "Store revisions of created records\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace PragmaRX\\Sdk\\Core;\r\n\r\nuse PragmaRX\\Sdk\\Core\\Traits\\ReloadableTrait;\r\nuse PragmaRX\\Sdk\\Core\\Traits\\IdentifiableTrait;\r\nuse Venturecraft\\Revisionable\\Revis... | php | chosen |
[
{
"from": "system",
"value": "Add KeyValueStorage Behavior to model\n"
},
{
"from": "human",
"value": "<?php\n\nApp::uses('AppModel', 'Model');\n\n/**\n * Class PostMeta\n */\nclass PostMeta extends AppModel\n{\n\n /**\n * Custom database table name, or null/false if no table association ... | php | chosen |
[
{
"from": "system",
"value": "Allow super admins to edit any user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zeropingheroes\\Lanyard\\Policies;\n\nuse Zeropingheroes\\Lanyard\\User;\nuse Illuminate\\Auth\\Access\\HandlesAuthorization;\n\nclass UserPolicy\n{\n use HandlesAuthorizati... | php | chosen |
[
{
"from": "system",
"value": "Add generic API key placeholder\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This package config array\n */\nreturn [\n 'dolunaAPIKey' => 'ak_4hy4kwghd2dwrn9pth19ywrj8',\n];\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This package config ... | php | chosen |
[
{
"from": "system",
"value": "Define valor padrão como desabilitado no plugin ProfileCompletion\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ProfileCompletion;\n\nuse MapasCulturais\\App;\n\nclass Module extends \\MapasCulturais\\Module\n{\n\n public function __construct(array $confi... | php | chosen |
[
{
"from": "system",
"value": "Add test data for tags in the backend\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Backend\\Modules\\Tags\\Tests\\Engine;\n\nuse Backend\\Core\\Engine\\Model as BackendModel;\nuse Backend\\Modules\\Tags\\Engine\\Model as TagsModel;\nuse Common\\WebTestCase;... | php | chosen |
[
{
"from": "system",
"value": "Use short phpdoc @param typename\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file has been made by pH7 (Pierre-Henry SORIA).\n */\n\nnamespace PFBC\\Validation;\n\nuse PH7\\Framework\\Layout\\Form\\Form as FormMessage;\nuse PH7\\Framework\\Security\\CSRF\... | php | chosen |
[
{
"from": "system",
"value": "[phpdoc] Add missing attribute's inline comment\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General P... | php | chosen |
[
{
"from": "system",
"value": "Allow namespace to be passed into service provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Silex\\Provider;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\nuse StatsD\\Client as StatsdClient;\n\nclass StatsdServiceProvider implements Se... | php | chosen |
[
{
"from": "system",
"value": "Fix deprecation and removal date\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * For detailed copyright and license information, please view the\n * LICENSE file that was distributed with this source code.\n */\n\nnamespace Fl... | php | chosen |
[
{
"from": "system",
"value": "Add NOTIFY and UPDATE opcodes\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace DaveRandom\\LibDNS\\Messages;\n\nuse DaveRandom\\Enum\\Enum;\n\nfinal class MessageOpCodes extends Enum\n{\n const QUERY = 0;\n const IQUERY = 1;\n ... | php | chosen |
[
{
"from": "system",
"value": "Replace HttpComponent Request mocks with test data\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Omnipay package.\n *\n * (c) Adrian Macneil <adrian@adrianmacneil.com>\n *\n * For the full copyright and license information, please view ... | php | chosen |
[
{
"from": "system",
"value": "Apply collection modifiers (paging, etc) to rewrites"
},
{
"from": "human",
"value": "<?php\n\nclass Clockworkgeek_Extrarestful_Model_Api2_Rewrite extends Mage_Api2_Model_Resource\n{\n\n protected function _retrieveCollection()\n {\n /* @var $rewrites M... | php | chosen |
[
{
"from": "system",
"value": "Enable to use env variable.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |----------------------------------------------------------------------\n | D... | php | chosen |
[
{
"from": "system",
"value": "Add config/const and change require to include\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ilex;\n\n\n/**\n * Class Autoloader\n * @package Ilex\n */\nclass Autoloader\n{\n public static function getRealPath($path)\n {\n if (($_temp = realpath... | php | chosen |
[
{
"from": "system",
"value": "Fix invalid view include path\n\nRelated to https://github.com/timegridio/timegrid/issues/139\n"
},
{
"from": "human",
"value": "@extends('beautymail::templates.minty')\n\n@section('content')\n\n @include('beautymail::templates.minty.contentStart')\n <tr>\... | php | chosen |
[
{
"from": "system",
"value": "Fix : functional tests fail with 404 error"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Artisan;\n\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase\n{\n /**\n * The base URL to use while testing the application.... | php | chosen |
[
{
"from": "system",
"value": "Trim both expected and actual content in assertion\n\nIn order to prevent silly errors that may be caused by the presence or absence of a newline character at the end of fixtures and/or HTTP responses, we trim both the expected and the actuel content before passing them to the ... | php | chosen |
[
{
"from": "system",
"value": "Split notification code up from main bulk\n"
},
{
"from": "human",
"value": "<?php\n\tclass app {\n\t\tfunction __construct() {\n\t\t\t//load configuration file\n\t\t\trequire('config.php');\n\t\t\tif (!isset($config) || !is_array($config))\n\t\t\t\tthrow new Except... | php | chosen |
[
{
"from": "system",
"value": "Update the admin interface and demo site generator\n\nUpdate the admin interface to feature a fully responsive, fully retina, cleaned up look and feel based on Bootstrap 3. Simultaniously updated the generated demo site to be more in line with what we use as a starting point fo... | php | chosen |
[
{
"from": "system",
"value": "Fix thumb image on small devices\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; ... | php | chosen |
[
{
"from": "system",
"value": "Add custom libraries to use autocomplete\n"
},
{
"from": "human",
"value": "<?php die();\n\n/**\n * Add you custom models here that you are loading in your controllers\n *\n * <code>\n * $this->site_model->get_records()\n * </code>\n * Where site_model is the model ... | php | chosen |
[
{
"from": "system",
"value": "ADD setPerPageDefault, setTotalCountHeader methods and related fields\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: ahmetturk\n * Date: 05/06/2017\n * Time: 11:55\n */\n\nnamespace Fabs\\Rest\\Services;\n\n\nuse Fabs\\Rest\\Constan... | php | chosen |
[
{
"from": "system",
"value": "Add helper to get or set the current locale of the application\n"
},
{
"from": "human",
"value": "<?php\n\nif (! function_exists('on_route')) {\n function on_route($route)\n {\n return Route::current()->getName() == $route;\n }\n}\n"
},
{
"fr... | php | chosen |
[
{
"from": "system",
"value": "Solve bug, now it shows the new avatar uploaded"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: Catalin\r\n * Date: 03-Jun-17\r\n * Time: 13:59\r\n */\r\n\r\ninclude (\"../../BACK/conectare_db.php\");\r\n\r\n$username = $_SESSION... | php | chosen |
[
{
"from": "system",
"value": "Add shutdown event to service provider\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Memory;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MemoryServiceProvider ... | php | chosen |
[
{
"from": "system",
"value": "Add constants and application class loading\n"
},
{
"from": "human",
"value": "<?php \n\n/* Todo MIT license\n */\n\ninclude( __DIR__ . '/util/functions.php' );"
},
{
"from": "gpt",
"value": "<?php \n\n/* Todo MIT license\n */\n\ndefine( 'HTML_EOL', '<br... | php | chosen |
[
{
"from": "system",
"value": "Throw an exception if no response in http tuple\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\nnamespace Behapi\\HttpHistory;\n\nuse IteratorAggregate;\n\nuse Psr\\Http\\Message\\RequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\nus... | php | chosen |
[
{
"from": "system",
"value": "OEE-54: Modify ACL. Refactor ACL Walker.\n - Add set organization listener\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\OrganizationBundle\\Entity\\Manager;\n\nuse Doctrine\\ORM\\EntityManager;\n\nuse Oro\\Bundle\\OrganizationBundle\\Entity\\... | php | chosen |
[
{
"from": "system",
"value": "Test getTests in Project Model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Criterion\\Test\\Model;\n\nclass ProjectModelTest extends \\Criterion\\Test\\TestCase\n{\n\n public function testInit()\n {\n $project = new \\Criterion\\Model\\Project... | php | chosen |
[
{
"from": "system",
"value": "Add form for looking up transactions by number\n"
},
{
"from": "human",
"value": "<?\nrequire 'scat.php';\n\nhead(\"transactions\");\n\n$type= $_REQUEST['type'];\nif ($type) {\n $criteria= \"type = '\".$db->real_escape_string($type).\"'\";\n} else {\n $criteria= '... | php | chosen |
[
{
"from": "system",
"value": "Fix the configuration property access\n"
},
{
"from": "human",
"value": "<?php\r\nnamespace PHPYAM\\extra;\r\n\r\nuse PHPYAM\\core\\interfaces\\IConfiguration;\r\n\r\n/**\r\n * TODO comment.\r\n *\r\n * @package PHPYAM\\extra\r\n * @author Thierry BLIND\r\n * @since... | php | chosen |
[
{
"from": "system",
"value": "Add userId support in wallController\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Feedme\\AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Clean up the profiles activation action\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Frontend\\Modules\\Profiles\\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... | php | chosen |
[
{
"from": "system",
"value": "Use them caps on constants\n"
},
{
"from": "human",
"value": "<?php\n/* Development */\n\ndefine('DB_Name', getenv('DB_NAME'));\ndefine('DB_USER', getenv('DB_USER'));\ndefine('DB_PASSWORD', getenv('DB_PASSWORD'));\ndefine('DB_HOST', getenv('DB_HOST') ? getenv('DB_HO... | php | chosen |
[
{
"from": "system",
"value": "Update of rules, cosmetic changes ,added ranking\n"
},
{
"from": "human",
"value": "@extends('main')\n\n@section('head')\n <style>\n .container {\n text-align: center;\n }\n </style>\n@endsection\n\n@section('content')\n @include('h... | php | chosen |
[
{
"from": "system",
"value": "Make name filter also show non-english characters, plus removing unused characters from the list.\n"
},
{
"from": "human",
"value": "<? /** $Id$ */ ?>\n<? defined('KOOWA') or die('Restricted access'); ?>\n\n<ul class=\"filter-letters\">\t\n\t<span><?= @text('Name');... | php | chosen |
[
{
"from": "system",
"value": "Make the envelope stripping in wrap smarter\n"
},
{
"from": "human",
"value": "<?php namespace Purplapp\\Adn;\n\nuse stdClass;\nuse GuzzleHttp\\Message\\Response;\n\ntrait DataContainerTrait\n{\n private $data = [];\n\n private $dataEnvelope = [];\n\n publi... | php | chosen |
[
{
"from": "system",
"value": "Load breadcrumb titles from documents if possible.\n"
},
{
"from": "human",
"value": "<?php\n/*----------------------------------------------------------------------------*/\n\t\n\tnamespace Apps\\Wiki\\Actors;\n\t\n\tclass Location extends \\Libs\\Actor {\n\t\tpubl... | php | chosen |
[
{
"from": "system",
"value": "Update Nooku Framework, Model::set() has been removed\n"
},
{
"from": "human",
"value": "<?\n/**\n * Belgian Police Web Platform - Districts Component\n *\n * @copyright\tCopyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)\n * @license\t\tGNU GPLv3 <http:... | php | chosen |
[
{
"from": "system",
"value": "Add Lumen check and tags to assets\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Torann\\GeoIP;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Torann\\GeoIP\\Console\\UpdateCommand;\n\nclass GeoIPServiceProvider extends ServiceProvider\n{\n /**\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix FileSystem class due to symfony update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Tests\\Emulation;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase as BaseWebTestCase;\nuse Symfony\\Component\\HttpKernel\\Util\\Files... | php | chosen |
[
{
"from": "system",
"value": "Add the required group when creating the token. Clarify the description text.\n\ngit-svn-id: d0e296eae3c99886147898d36662a67893ae90b2@4019 653ae4dd-d31e-0410-96ef-6bf7bf53c507\n"
},
{
"from": "human",
"value": "<?php\n\nclass SimplePrivatePosts extends Plugin\n{\n\n... | php | chosen |
[
{
"from": "system",
"value": "Add public visibility to constructors\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\UtilitiesBundle\\Twig;\n\nuse Kunstmaan\\UtilitiesBundle\\Helper\\SlugifierInterface;\nuse Twig_Extension;\n\n\nclass UtilitiesTwigExtension extends Twig_Extension... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Fix MySQL migration, add missing CHNAGE token\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\Flow\\Persistence\\Doctrine\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Adapt colum... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Halp! Stuck in pre-commit loop hell. :(\"\n\nThis reverts commit 47c77fe042a66a6986e13e3fb621a1338bd1c590.\n"
},
{
"from": "human",
"value": "<?php\nreturn array (\n 'app_version' => 'v3.6.0',\n 'build_version' => '75',\n 'hash_version' => 'ga2ffe77',\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix namespace to use DoctrineORMAdminBundle\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Sonata\\MediaBundle\\Admin\\Manager;\n\nuse Sonata\\AdminBundle\\Model\\ORM\\ModelManager;\nuse Sonata\\AdminBundle\\Datagrid\\ProxyQueryInterface;\n\n/**\n * this meth... | php | chosen |
[
{
"from": "system",
"value": "Include test for invalid input\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zend\\Romans\\View\\Helper;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Zend\\View\\Helper\\HelperInterface;\n\n/**\n * Roman Test\n */\nclass RomanTest extends TestCase\n{\n /**\n... | php | chosen |
[
{
"from": "system",
"value": "Add autofocus for the 2FA code\n"
},
{
"from": "human",
"value": "<form method=\"post\" action=\"<?= $this->u('twofactor', 'check', array('user_id' => $this->userSession->getId())) ?>\" autocomplete=\"off\">\n\n <?= $this->formCsrf() ?>\n <?= $this->formLabel(... | php | chosen |
[
{
"from": "system",
"value": "Increase number of posts to preview to 6\n"
},
{
"from": "human",
"value": "<div class=\"panel panel-default qanda-panel\">\n <div class=\"panel-heading\">\n <?php echo $group; ?>\n </div>\n <div class=\"list-group\">\n <?php foreach($categori... | php | chosen |
[
{
"from": "system",
"value": "Add a test for a numeric reference\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace adrianclay\\git;\n\nuse adrianclay\\git\\References\\ReferencesArray;\nuse PHPUnit\\Framework\\TestCase;\n\nclass RevisionResolverTest extends TestCase\n{\n private $sha = \"... | php | chosen |
[
{
"from": "system",
"value": "Allow to run PHPStan tests on Windows\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests;\n\nclass PHPStanTest extends AbstractTestCase\n{\n protected $phpStanPreviousDirectory = '.';\n\n protected function setUp(): void\n ... | php | chosen |
[
{
"from": "system",
"value": "Make test work on travis\n"
},
{
"from": "human",
"value": "<?php\n\nuse MarcBP\\PingThis\\Ping\\NetworkPing;\n\nclass NetworkPingTest extends PHPUnit_Framework_TestCase\n{\n public function testPingOk()\n {\n $ping = new NetworkPing('test', 0, '127.0.0... | php | chosen |
[
{
"from": "system",
"value": "Add warning icons to some alerts\n"
},
{
"from": "human",
"value": "@if (App::environment() !== 'production')\n <div class=\"alert alert-warning\">\n <p>This installation of OpenDominion is running on <b>{{ App::environment() }}</b> environment and is not ... | php | chosen |
[
{
"from": "system",
"value": "Change cropped column to edited column to be more general about manipulations\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddCroppedImageColumnToItems extends Mig... | php | chosen |
[
{
"from": "system",
"value": "Add tag support in GetLinkRequest\n\nThis field will allow filtering by a tag when listing Links\n"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: Nabeel\r\n * Date: 2015-10-21\r\n * Time: 12:56 PM\r\n */\r\n\r\nnamespace ShortCi... | php | chosen |
[
{
"from": "system",
"value": "Fix alignment of date column in plain text view\n\nThis got broken by 2a6a1c63cb21015009fe4fd13f62cdac64e1fe36 and\n05a4d686b578794c180ddfaf4945a9d7443f330e.\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n"
},
{
"from": "human",
... | php | chosen |
[
{
"from": "system",
"value": "Fix for display messages from User class.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Landing CMS\n *\n * A simple CMS for Landing Pages.\n *\n * @package Landing CMS\n * @author Ilia Chernykh <landingcms@yahoo.com>\n * @copyright 2017, Landing CMS (... | php | chosen |
[
{
"from": "system",
"value": "Fix autoloading and prioritize getting it as a dependency"
},
{
"from": "human",
"value": "<?php\n\n// Loaded in the project itself\nif (file_exists(__DIR__ . '/../vendor/autoload.php')) {\n return require_once __DIR__ . '/../vendor/autoload.php';\n}\n\n// Loaded... | php | chosen |
[
{
"from": "system",
"value": "Add getAll() accessor for all header fields"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clue\\React\\Buzz\\Message;\n\nclass HeaderBag\n{\n private $headers;\n\n public static function factory($headers)\n {\n if (!($headers instanceof self)) ... | php | chosen |
[
{
"from": "system",
"value": "Use standardized S3 environment variables.\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Filesystem Disk\n |------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Fix generation error for array generators.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace JSON_Loader {\n\n\t/**\n\t * Class Array_Generator\n\t */\n\tclass Array_Generator {\n\n\t\tvar $generator_class;\n\n\t\tvar $values;\n\n\t\tvar $parent;\n\n\t\tvar $arg... | php | chosen |
[
{
"from": "system",
"value": "Allow tideways to run if ENABLE_TIDEWAYS_CLI is defined as an environment variable"
},
{
"from": "human",
"value": "<?php\n\n// don't run on CLI\nif ( empty($_SERVER['REMOTE_ADDR']) and !isset($_SERVER['HTTP_USER_AGENT']) and count($_SERVER['argv']) > 0) {\n retu... | php | chosen |
[
{
"from": "system",
"value": "Fix a incorrectly named route\n"
},
{
"from": "human",
"value": "@extends('layouts.masterLayout')\n\n@section('html_title', 'All Corporation Industry')\n\n@section('page_content')\n\n @foreach (array_chunk($corporations, 2) as $corpSplitted)\n\n <div class=\"row... | php | chosen |
[
{
"from": "system",
"value": "Handle updates/deletes of linked tables correctly\n"
},
{
"from": "human",
"value": "<?php\n\nclass SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post extends XFCP_SV_WordCountSearch_XenForo_DataWriter_DiscussionMessage_Post\n{\n protected function _get... | php | chosen |
[
{
"from": "system",
"value": "Remove abstract keyword on implementing method.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Studio\\Console;\n\nclass AuthControllerMakeCommand extends PublishCommand\... | php | chosen |
[
{
"from": "system",
"value": "[model] Add ability to get ISO4217 info. add a request and action for that. Simply payment interface.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Payum\\AuthorizeNet\\Aim\\Action;\n\nuse Payum\\Core\\Action\\ActionInterface;\nuse Payum\\Core\\Bridge\\Spl\\Ar... | php | chosen |
[
{
"from": "system",
"value": "Add a forgoten close tag\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n\n<html lang=\"en\">\n <head>\n <title>EndofCodes Demo</title>\n <?php\n include 'helpers/html.php';\n includeStyle( \"general\" );\n inclu... | php | chosen |
[
{
"from": "system",
"value": "Disable Cake layout to prevent mangling swagger DOM\n"
},
{
"from": "human",
"value": "<?php\nnamespace Alt3\\Swagger\\Controller;\n\nuse Alt3\\Swagger\\Controller\\AppController;\nuse Cake\\Core\\Configure;\nuse Cake\\Core\\Exception;\nuse Cake\\Network\\Exception\... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.