conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Drop loop in EIN test"
},
{
"from": "human",
"value": "<?php\n\nnamespace Faker\\Test\\Provider\\en_US;\n\nuse Faker\\Provider\\en_US\\Company;\nuse Faker\\Generator;\n\nclass CompanyTest extends \\PHPUnit_Framework_TestCase\n{\n\n /**\n * @var Generator\n ... | php | chosen |
[
{
"from": "system",
"value": "Add ribbon to Realisations archive and single\n"
},
{
"from": "human",
"value": "<header class=\"banner\" role=\"banner\">\n <div class=\"container\">\n <a class=\"brand\" href=\"<?php echo home_url('/') ?>\"></a>\n </div>\n</header> <?\n\nif (is_page() && !is_... | php | chosen |
[
{
"from": "system",
"value": "Tag {{tmpl}} should not change nesting value\n"
},
{
"from": "human",
"value": "<?php\n\nclass jQueryTmpl_Tag_Tmpl implements jQueryTmpl_Tag\n{\n public function getTokenType()\n {\n return 'Tmpl';\n }\n\n public function getRegex()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add second set of pages to test\n"
},
{
"from": "human",
"value": "<?php\n\nuse Codeception\\Util\\Fixtures;\nuse Codeception\\Util\\Stub;\nuse Grav\\Common\\Grav;\nuse Grav\\Common\\Page\\Pages;\nuse Grav\\Common\\Page\\Page;\nuse RocketTheme\\Toolbox\\ResourceLoca... | php | chosen |
[
{
"from": "system",
"value": "Exit streaming example once all streams have been flushed\n"
},
{
"from": "human",
"value": "<?php\n// this example executes some commands within the given running container and\n// displays the streaming output as it happens.\n\nrequire __DIR__ . '/../vendor/autolo... | php | chosen |
[
{
"from": "system",
"value": "Fix typo that broke inventory breadcrumb links\n"
},
{
"from": "human",
"value": "@extends('layouts.blog')\n\n@section('content')\n\n <section class=\"col-sm-8 blog-main blog-inventory\">\n\n <ol class=\"breadcrumb\">\n <li><a href=\... | php | chosen |
[
{
"from": "system",
"value": "Add a paint-event test to the main page\n"
},
{
"from": "human",
"value": "<?php\n /**\n * @author Manuel Thalmann <m@nuth.ch>\n * @license Apache-2.0\n */\n namespace ManuTh\\TemPHPlate\\Pages;\n use System\\Web;\n use ManuTh\\TemPHPlate\\Te... | php | chosen |
[
{
"from": "system",
"value": "Add quick return if no trait entry ids are provided\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Details;\n\nuse AppBundle\\Entity\\Data\\TraitCategoricalEntry;\nuse AppBundle\\Entity\\Data\\TraitNumericalEntry;\nuse AppBundle\\Service\\DBVe... | php | chosen |
[
{
"from": "system",
"value": "Fix bug on generate tag group command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Conner\\Tagging\\Console\\Commands;\n\nuse Conner\\Tagging\\TaggingUtility;\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Complete test, Phalcon installed on CircleCi\n"
},
{
"from": "human",
"value": "<?php\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass ControllerTest extends TestCase\n{\n public function testGetDefaultParam()\n {\n $controller = new \\Frogg\\Controller(... | php | chosen |
[
{
"from": "system",
"value": "Print start and end of template includes\n"
},
{
"from": "human",
"value": "<?php\nnamespace Plitz\\Bindings\\Blitz;\n\nuse Plitz\\Lexer\\Lexer;\nuse Plitz\\Parser\\Expressions;\nuse Plitz\\Parser\\Parser;\n\ntrait ResolveIncludeTrait\n{\n protected $disableFunct... | php | chosen |
[
{
"from": "system",
"value": "Allow for override of freemium\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OhMyBrew\\ShopifyApp\\Observers;\n\nuse OhMyBrew\\ShopifyApp\\Models\\Shop;\n\nclass ShopObserver\n{\n /**\n * Listen to the shop creating event.\n *\n * @param Shop ... | php | chosen |
[
{
"from": "system",
"value": "Add a link to the github wiki\n"
},
{
"from": "human",
"value": "\t\t<div id=\"footer\">\n <p style=\"float: right\">\n © 2009 <a href=\"http://www.gasteroprod.com/\">Nicolas HOIZEY</a>\n </p>\n\t <p>\n\t <a href=\"<?php echo $casimir->... | php | chosen |
[
{
"from": "system",
"value": "Remove default slice length of null\n\nThere's already a check if it's null, so this seems superfluous.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Haystack\\Container;\n\nuse Haystack\\HArray;\n\nclass HaystackArraySlice\n{\n private $arr;\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix a problem with checking for a set value\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author \"Michael Collette\" <metrol@metrol.net>\n * @package Metrol/DBSql\n * @version 1.0\n * @copyright (c) 2016, Michael Collette\n */\n\nnamespace M... | php | chosen |
[
{
"from": "system",
"value": "[SimpleJobSchedule] Add base key to redis backed time keeper\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Issei\\SimpleJobSchedule\\TimeKeeper;\n\nuse Issei\\SimpleJobSchedule\\TimeKeeperInterface;\nuse Predis\\Client as Redis;\n... | php | chosen |
[
{
"from": "system",
"value": "Add factory method to create Money from cents\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace PerFi\\Domain;\n\nuse Money\\Currencies\\ISOCurrencies;\nuse Money\\Money;\nuse Money\\Parser\\DecimalMoneyParser;\n\nclass MoneyFactory\n{\... | php | chosen |
[
{
"from": "system",
"value": "Make the base exception extend throwable\n\nThis makes it more clear this interface can be 'caught'"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the API Platform project.\n *\n * (c) Kévin Dunglas <dunglas@gmail.com>\n *\n * For the full cop... | php | chosen |
[
{
"from": "system",
"value": "Split `alert` method into two different methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TomIrons\\Tuxedo\\Mailables;\n\nuse TomIrons\\Tuxedo\\Message;\nuse TomIrons\\Tuxedo\\TuxedoMailable;\n\nclass AlertMailable extends TuxedoMailable\n{\n use Mess... | php | chosen |
[
{
"from": "system",
"value": "Remove anchor from start of code block regex.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\CommonMark\\Parser\\Block;\n\nuse FluxBB\\CommonMark\\Common\\Text;\nuse FluxBB\\CommonMark\\Node\\CodeBlock;\nuse FluxBB\\CommonMark\\Node\\Container;\nuse F... | php | chosen |
[
{
"from": "system",
"value": "Include error code in output on error\n"
},
{
"from": "human",
"value": "<?php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse \\Curl\\Curl;\n\n$myfile = curl_file_create('cats.jpg', 'image/png', 'test_name');\n\n$curl = new Curl();\n\n// HINT: If API documentatio... | php | chosen |
[
{
"from": "system",
"value": "Use resource uri instead so rule will also work in subfolder installations\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Slim JSON Web Token Authentication middleware\n *\n * Copyright (c) 2015 Mika Tuupola\n *\n * Licensed under the MIT li... | php | chosen |
[
{
"from": "system",
"value": "Add basic unit tests for BMAttackSurrender"
},
{
"from": "human",
"value": "<?php\n\nclass BMAttackSurrenderTest extends PHPUnit_Framework_TestCase {\n /**\n * @var BMAttackSurrender\n */\n protected $object;\n\n /**\n * Sets up the fixture, for... | php | chosen |
[
{
"from": "system",
"value": "Use absolute path for symlinks\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\nnamespace PharIo\\Phive;\n\nuse PharIo\\FileSystem\\Filename;\n\nclass UnixoidPharInstaller extends PharInstaller {\n protected function link(Filename $phar, Filen... | php | chosen |
[
{
"from": "system",
"value": "Add period after middle name of users.\n"
},
{
"from": "human",
"value": "<br>\n<br>\n<div class=\"row\">\n\n<?php foreach ($query as $row): { ?>\n <div class=\"col-lg-5\">\n <div class=\"media\">\n <a class=\"pull-left\" href=\"#\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Update to merge list arrays\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * ConfigMerge\n *\n * @link https://github.com/kanellov/config-merge\n * @copyright Copyright (c) 2015 Vassilis Kanellopoulos - contact@kanellov.com\n * @license https://raw.githubusercont... | php | chosen |
[
{
"from": "system",
"value": "Fix event name being returned instead of description in API\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zeropingheroes\\Lanager\\Http\\Resources;\n\nuse Illuminate\\Http\\Resources\\Json\\JsonResource;\n\nclass Event extends JsonResource\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Change text for share twitter\n"
},
{
"from": "human",
"value": "<div class=\"networks\">\n <a href=\"https://www.facebook.com/sharer/sharer.php?u=https://emergenciaecuador.com\" class=\"icon-facebook-square\"> Compartir</a>\n <a href=\"https://twitter.com/int... | php | chosen |
[
{
"from": "system",
"value": "Remove special chars from file and save\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OfxParser;\n\n/**\n * @author Diogo Alexsander Cavilha <diogo@agenciasys.com.br>\n */\nclass Fix\n{\n private $file;\n\n public function __construct($file)\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add image/svg+xml to the default list of allowed MIME types\n\nCloses #16"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n // Request headers that must be present when requesting images\n 'required_custom_headers' => [\n // 'name' => 'value',\n ... | php | chosen |
[
{
"from": "system",
"value": "Add ordering by weight when getting terms by vocabulary.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AbleCore;\n\nclass TaxonomyTerm extends EntityExtension {\n\n\t/**\n\t * Gets the entity type of the current class.\n\t *\n\t * @return string The entity t... | php | chosen |
[
{
"from": "system",
"value": "Add blank line before return statements."
},
{
"from": "human",
"value": "<?php\n\nnamespace Github\\Api;\n\n/**\n * Get rate limits\n *\n * @link https://developer.github.com/v3/rate_limit/\n * @author Jeff Finley <quickliketurtle@gmail.com>\n */\nclass RateLimit... | php | chosen |
[
{
"from": "system",
"value": "Use Mailerlite API to subscribe to mailing list\n"
},
{
"from": "human",
"value": "<?php\n\nclass Rewards {\n\n static function addRoutes($f3) {\n $f3->route(\"POST /process-rewards\", 'Rewards->process');\n }\n\n function process($f3, $args) {\n $db= $f3->... | php | chosen |
[
{
"from": "system",
"value": "Fix saved rented space in db from string 0 to true\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nclass ParkingController\n{\n public function get()\n {\n return Response::json('success', $this->table()->get());\n }\... | php | chosen |
[
{
"from": "system",
"value": "Add nullable to some fields"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddB3ServerTable extends Migration\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Send 404 error for security purposes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace eHOSP\\Http\\Middleware;\n\nuse Closure;\nuse Auth;\n\nclass RoleMiddleware\n{\n /**\n * Redirect to home if user has no permission, due to their user_type\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Make committing with case-insensitive username possible\n"
},
{
"from": "human",
"value": "<?php\n\n/* Libre.fm -- a free network service for sharing your music listening habits\n\n Copyright (C) 2009 Libre.fm Project\n\n This program is free software: you can r... | php | chosen |
[
{
"from": "system",
"value": "Add remaining AttributeService methods to the interface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2022 SURFnet B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ... | php | chosen |
[
{
"from": "system",
"value": "Update on role seeder for auth\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass AuthorizationRoleSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function run()\... | php | chosen |
[
{
"from": "system",
"value": "Add comment to switch to quicktest library.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for collectionNumberOperation Mimic library function.\n *\n * @since 0.1.0\n */\nclass CollectionNumberOperationFuncTest extends ... | php | chosen |
[
{
"from": "system",
"value": "Undo las changes. Point releases are only for STABLE branches.\n"
},
{
"from": "human",
"value": "<?php // $Id$\n\n/////////////////////////////////////////////////////////////////////////////////\n/// Code fragment to define the version of glossary\n/// This frag... | php | chosen |
[
{
"from": "system",
"value": "Fix task to create build.properties\n"
},
{
"from": "human",
"value": "<?php\nnamespace Task;\nuse Mage\\Task\\AbstractTask;\n\nclass CreateBuildProperties extends AbstractTask {\n\n public function getName() {\n return 'Creating build.properties file...';\n }\... | php | chosen |
[
{
"from": "system",
"value": "Remove pagination, its overkill here\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Allows editing of site banner data \"globally\".\n */\nclass SiteBannerSiteConfigExtension extends DataExtension\n{\n\n public function updateCMSFields(FieldList $fields)\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix Dutch translation of beatmap_discussion.php\n\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2016 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed in the hopes of\n * attracting more community contributions to th... | php | chosen |
[
{
"from": "system",
"value": "Use php legacy quote printable encode (use word wrap)\n\ngit-svn-id: 4cd2d1688610a87757c9f4de95975a674329c79f@1735 b8ca103b-dd03-488c-9448-c80b36131af2\n"
},
{
"from": "human",
"value": "<?php\n\nclass rfc_2047 {\n\n\n static function encoding_encode($str, $encodin... | php | chosen |
[
{
"from": "system",
"value": "Add a test to delete the references of a map\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace geotime\\Test;\n\nuse geotime\\Database;\nuse geotime\\Geotime;\nuse geotime\\models\\Map;\nuse PHPUnit_Framework_TestCase;\n\n\nclass MapTest extends \\PHPUnit_Framew... | php | chosen |
[
{
"from": "system",
"value": "Update unit tests to work with compact hash format added in d192cc4\n"
},
{
"from": "human",
"value": "<?php\n\nclass HashPathExtensionTest extends PHPUnit_Framework_TestCase\n{\n\n public function testHashFile()\n {\n\n $hashPath = new HashPathExtensio... | php | chosen |
[
{
"from": "system",
"value": "Test if const \\Moip\\Resource\\Customer::ADDRESS_COUNTRY is valid\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Moip\\Tests\\Resource;\n\nuse Moip\\Tests\\MoipTestCase;\n\n/**\n* class CustomerTest\n*/\nclass CustomerTest extends MoipTestCase\n{\n\t/**\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Fix issues with schema service provider.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DevelMe;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass SchemaServiceProvider extends ServiceProvider\n{\n /**\n * Schema Wireframe Commands\n *\n * ... | php | chosen |
[
{
"from": "system",
"value": "Update registrar to dynamically fetch registered `_User` subclass\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LaraParse\\Auth;\n\nuse Illuminate\\Contracts\\Auth\\Registrar as RegistrarContract;\nuse Illuminate\\Contracts\\Validation\\Factory as Validation... | php | chosen |
[
{
"from": "system",
"value": "Add sample hook using sticky session variables\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Hooks\n *\n * @author Gerry Demaret <gerry@tigron.be>\n * @author Christophe Gosiau <christophe@tigron.be>\n */\n\nclass Hook_Admin {\n\t/**\n\t * Bootstrap the applicat... | php | chosen |
[
{
"from": "system",
"value": "Fix merge issue to demoshop.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Spryker Demoshop.\n * For full license information, please view the LICENSE file that was distributed with this source code.\n */\n\nnamespace Pyz\\Zed\\ZedNavi... | php | chosen |
[
{
"from": "system",
"value": "Add titles to text cards\n"
},
{
"from": "human",
"value": "\n@card(['heading' => !$hideTitle && $post_title != \"\" ? $post_title : ''])\n <div class=\"c-card__body\">\n {!! apply_filters('the_content', apply_filters('Modularity/Display/SanitizeContent', ... | php | chosen |
[
{
"from": "system",
"value": "Use v2 api exception in example\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Example 6 - How to get the currently activated payment methods.\n */\ntry\n{\n /*\n * Initialize the Mollie API library with your API key.\n *\n * See: https://www.mollie... | php | chosen |
[
{
"from": "system",
"value": "[Bug] Fix applicationName must be nullable in type inting\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Deamon\\LoggerExtraBundle\\Services;\n\nclass DeamonLoggerExtraContext\n{\n public function __construct(\n private string $applicationName,\n ... | php | chosen |
[
{
"from": "system",
"value": "Enable some sieve, spam and quota related plugins for roundcube\n"
},
{
"from": "human",
"value": "<?php\n\n$config = array();\n\n$config['db_dsnw'] = 'sqlite:////data/webmail/roundcube.db';\n$config['default_host'] = 'localhost';\n$config['smtp_server'] = 'localhos... | php | chosen |
[
{
"from": "system",
"value": "Check if request have cache header before resize an image\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gitiki\\Controller;\n\nuse Gitiki\\Exception\\InvalidSizeException,\n Gitiki\\Gitiki,\n Gitiki\\Image;\n\nuse Symfony\\Component\\HttpFoundation\\Re... | php | chosen |
[
{
"from": "system",
"value": "Add informative output to resources update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OParl\\Spec\\Commands;\n\nuse App\\Jobs\\ResourcesUpdateJob;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Foundation\\Bus\\DispatchesJobs;\n\nclass UpdateResource... | php | chosen |
[
{
"from": "system",
"value": "Use migrations so that the test doesn't fail\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Browser;\n\nuse Laravel\\Dusk\\Browser;\nuse Tests\\DuskTestCase;\n\nclass ExampleTest extends DuskTestCase\n{\n /**\n * A basic browser test example.\n ... | php | chosen |
[
{
"from": "system",
"value": "Add the ability for individual blog entries to read a *.meta.php file.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gen;\n\nclass Blog\n{\n protected $util;\n\n public function __construct(Util $util)\n {\n $this->util = $util;\n }\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Change to the default Application Controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ArchiveAppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Update template to use the new DTO object instead of relying on the old system\n"
},
{
"from": "human",
"value": "<?php\rif (!empty($postresult)) {\r\tinclude 'includes/form-xmlresult.inc.php';\r\t\r\techo formResult2Xml($postresult, $formmessages, $tplHelper);\r} \... | php | chosen |
[
{
"from": "system",
"value": "Disable RefreshDatabase & set default user.\n\nThe RefreshDatabase trait doesn't seem to work with Dusk, probably because the transaction isn't committed when request is made?\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests;\n\nuse Laravel\\Dusk\\TestCas... | php | chosen |
[
{
"from": "system",
"value": "Use local as alias name.\n"
},
{
"from": "human",
"value": "<?php\n$home = drush_server_home();\n// Solve the key file to use\n$path = explode('/', dirname(__FILE__));\narray_pop($path);\narray_pop($path);\n$path[] = '.vagrant';\n$path = implode('/', $path);\n$key =... | php | chosen |
[
{
"from": "system",
"value": "Add parts to the page template\n"
},
{
"from": "human",
"value": "<?php\n/*\nTemplate Name: Full Width - About Us\n*/\nget_header(); ?>\n\n\n<div id=\"page-full-width\" role=\"main\">\n\n\n\t<section class=\"about-us\">\n\n <?php get_template_part( 'template-par... | php | chosen |
[
{
"from": "system",
"value": "Add the Windows compatibility for the processor counter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Liuggio\\Fastest\\Process;\n\n/**\n * Number of processors seen by the OS and used for process scheduling.\n */\nclass ProcessorCounter\n{\n const PROC_... | php | chosen |
[
{
"from": "system",
"value": "Add Access Rules in AudioConference controller\n"
},
{
"from": "human",
"value": "<?php\n/**\n * oskr-portal\n * Created: 11.05.17 12:44\n * @copyright Copyright (c) 2017 OSKR NIAEP\n */\n\nnamespace frontend\\controllers;\n\nuse frontend\\models\\audioconference\\A... | php | chosen |
[
{
"from": "system",
"value": "Remove depecated --dev composer argument\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev', $returnStatus);\nif ($returnStatus !== 0) {\n exit(1);\n}\n\npassthru(\n './vend... | php | chosen |
[
{
"from": "system",
"value": "Update to compatible with PHPWebDriver 1.12.0\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('PHPWebDriver/WebDriver.php');\nrequire_once('SystemWebDriverSession.php');\n\nclass SystemWebDriver extends PHPWebDriver_WebDriver {\n function __construct($exec... | php | chosen |
[
{
"from": "system",
"value": "Handle Get request if id is present\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once \"autoloader.php\";\nrequire_once \"/lib/xsrf.php\";\nrequire_once(\"/etc/apache2/teamcuriosity-mysql/encrypted-config.php\");\n\nuse Edu\\Cnm\\TeamCuriosity;\n\n\n/**\n * a... | php | chosen |
[
{
"from": "system",
"value": "Remove hover state from label\n"
},
{
"from": "human",
"value": "@can(App\\Policies\\UserPolicy::ADMIN, App\\User::class)\n <a href=\"{{ route('admin.users.show', $user->username()) }}\">\n <img class=\"rounded-full\" src=\"{{ $user->gravatarUrl($avatarSiz... | php | chosen |
[
{
"from": "system",
"value": "Use full path to code coverage.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev', $returnStatus);\nif ($returnStatus !== 0) {\n exit(1);\n}\n\nrequire 'vendor/autoload.php';\... | php | chosen |
[
{
"from": "system",
"value": "Fix Stream instance of Guzzle"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gerencianet\\Exception;\n\nuse Exception;\n\n\nclass GerencianetException extends Exception\n{\n private $error;\n private $errorDescription;\n\n public function __construct($... | php | chosen |
[
{
"from": "system",
"value": "Format 'else' to satisfy Nitpick CI.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Robo\\TaskCollection;\n\nuse Robo\\Result;\nuse Robo\\Contract\\TaskInterface;\n\n/**\n * Creates a task group consisting of a task, all of the before tasks,\n * and all of th... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP error reporting not showing in the logs\n\nThe Log class must be defined prior to the initialization of the\naftertime framework. Move the require statement just before that.\n"
},
{
"from": "human",
"value": "<?php\n$time_start = microtime(true);\nini_set (... | php | chosen |
[
{
"from": "system",
"value": "Add reference to syntax and provide example graph\n\nTo make the pastebin form slightly more user-friendly, link to the\nWikipedia article describing the DOT syntax, and make an example graph\ndefinition available. Also very briefly explain what the pastebin page\nis all about ... | php | chosen |
[
{
"from": "system",
"value": "Fix routes for API calls\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'vendor/autoload.php';\n\n$router = new AltoRouter();\n\n/*\n * Map our routes\n */\n\n$router->map( 'GET', '/', function()\n{\n require __DIR__ . '/home.php';\n});\n\n$router->map( 'GET... | php | chosen |
[
{
"from": "system",
"value": "Fix (profil): Text files should end with a newline character\n"
},
{
"from": "human",
"value": "<?php\nnamespace AppBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Optio... | php | chosen |
[
{
"from": "system",
"value": "Replace query builder with DQL\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 LICENSE\n * file tha... | php | chosen |
[
{
"from": "system",
"value": "PURGE is not defined in HTTP RFCs\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Awesomite\\Chariot;\n\nclass HttpMethods\n{\n const METHOD_ANY = '*';\n const METHOD_HEAD = 'HEAD';\n const METHOD_GET = 'GET';\n const METHOD_POST = 'POST';\n con... | php | chosen |
[
{
"from": "system",
"value": "Fix the corporation migration to not have any unique indexes\n"
},
{
"from": "human",
"value": "<?php\n\nuse Phinx\\Db\\Adapter\\MysqlAdapter;\nuse Phinx\\Migration\\AbstractMigration;\n\nclass Corporations extends AbstractMigration\n{\n /**\n * Change Method... | php | chosen |
[
{
"from": "system",
"value": "Revert registering request for console.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Routing;\n\nuse Illuminate\\Http\\Request;\n\nclass RoutingServiceProvider extends ... | php | chosen |
[
{
"from": "system",
"value": "Move identifier setter to setEventManager\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ZfcBase\\EventManager;\n\nuse Zend\\EventManager\\EventCollection,\n Zend\\EventManager\\EventManager;\n\nabstract class EventProvider\n{\n /**\n * @var EventCo... | php | chosen |
[
{
"from": "system",
"value": "Define charset at start as well\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Krystal Framework\n * \n * Copyright (c) No Global State Lab\n * \n * For the full copyright and license information, please view\n * the license file that w... | php | chosen |
[
{
"from": "system",
"value": "Fix image gallery on the item view page.\n"
},
{
"from": "human",
"value": "<?php\n/* @var $this yii\\web\\View */\n/* @var $item frontend\\models\\Item */\n\n$preview = $item->originalPreview($item->preview, '250x150');\n?>\n<div class=\"row img-row margin-bottom\"... | php | chosen |
[
{
"from": "system",
"value": "Fix failed Continue Integration. use hasDefinition to check existence of jms_metadata_parser\n"
},
{
"from": "human",
"value": "<?php\nnamespace Tpg\\ExtjsBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\n... | php | chosen |
[
{
"from": "system",
"value": "Add additional unit tests for DiagonalMatrix.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Math\\LinearAlgebra;\nclass DiagonalMatrixTest extends \\PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n $this->A = [\n [1, 0, 0],... | php | chosen |
[
{
"from": "system",
"value": "Remove the first set of quotation\n"
},
{
"from": "human",
"value": "<?php \n\n // change username column length for w command\n putenv(\"PROCPS_USERLEN=20\");\n exec('w -h | awk \\'{print \"\"$1\",\"$3\",\"$4\",\"$5}\\'',$users);\n $result = array();\n ... | php | chosen |
[
{
"from": "system",
"value": "Update logdir after config was moved\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Redports\\Master;\n\n/**\n * Configuration class to store various static settings.\n *\n * @author Bernhard Froehlich <decke@bluelife.at>\n * @copyright 2015 Bernhard Fro... | php | chosen |
[
{
"from": "system",
"value": "Set relations in the database\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Callback extends Model\n{\n /**\n * Callback -> customers relation.\n *\n * @return \\Illuminate\\Database\... | php | chosen |
[
{
"from": "system",
"value": "Add data_values to Post file upload test(side server)"
},
{
"from": "human",
"value": "<?php\n\n$request_method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '';\r\n$data_values = $request_method === 'POST' ? $_POST : $_GET;\n\n$key = isset($dat... | php | chosen |
[
{
"from": "system",
"value": "Use Role::hs() instead of IoC.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Foundation\\Job;\n\nuse Illuminate\\Contracts\\Foundation\\Application;\nuse Orc... | php | chosen |
[
{
"from": "system",
"value": "Save the user's data under the username key.\n"
},
{
"from": "human",
"value": "<?php\nnamespace User;\n\nuse Application\\BaseDb;\n\nclass UserDb extends BaseDb\n{\n protected $keyName = 'users';\n\n public function save($user)\n {\n $data = array(\... | php | chosen |
[
{
"from": "system",
"value": "Add first json_parsing implementation poc\n"
},
{
"from": "human",
"value": "<?php\n\n// Page qui reçoit les requêtes de l'agent\n\ninclude_once (\"../../../inc/includes.php\");\ninclude_once (\"inc/armadito-includes.php\");\n\nif($_SERVER['REQUEST_METHOD'] == \"POS... | php | chosen |
[
{
"from": "system",
"value": "Fix Guzzle message factory improper usage\n"
},
{
"from": "human",
"value": "<?php\nnamespace Slack\\Tests;\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Subscriber\\Mock;\nuse GuzzleHttp\\Message\\MessageFactory;\nuse GuzzleHttp\\Subscriber\\History;\nuse Slack\\ApiC... | php | chosen |
[
{
"from": "system",
"value": "Add delay to guarentee that microtime has changed.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Atto\\Container;\n\nclass ContainerTest extends PHPUnit_Framework_TestCase\n{\n function testContainer()\n {\n $container = new Container();\n $thi... | php | chosen |
[
{
"from": "system",
"value": "Add Creative Commons to CC licence names\n"
},
{
"from": "human",
"value": "<?php\n\nglobal $gds_image_licences;\n\n$gds_image_licences = [\n 'ogl' => 'OGL',\n 'cc-by' => 'Attribution',\n 'cc-by-sa' => 'Attribution-ShareAlike',\n 'cc-by-nd' => 'Attribution-NoDer... | php | chosen |
[
{
"from": "system",
"value": "Add support for \"egulias/email-validator\" 2.x\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Respect/Validation.\n *\n * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Add a new button for specialization\n"
},
{
"from": "human",
"value": "<?php\n\nfunction add_review_widget( $atts ){\n ob_start();\n locate_template('templates/layout/review_widget.php', true, false);\n return ob_get_clean();\n}\n\nadd_shortcode( 'review_widget... | php | chosen |
[
{
"from": "system",
"value": "Use brackets for array declaration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emergence\\People;\n\nuse HandleBehavior;\n\nclass Invitation extends \\ActiveRecord\n{\n public static $tableName = 'invitations';\n public static $singularNoun = 'invita... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.