conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Terminate the request after sending.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Laravel - A PHP Framework For Web Artisans\n *\n * @package Laravel\n * @author Taylor Otwell <taylorotwell@gmail.com>\n */\n\n/*\n|--------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Clear status field on every request\n"
},
{
"from": "human",
"value": "<?php\n\nclass HttpClient\n{\n\tpublic $status;\n\n\tpublic $response;\n\n\tpublic function get($url)\n\t{\n\t\t$this->response = @file_get_contents($url);\n\n\t\tif (isset($http_response_header)... | php | chosen |
[
{
"from": "system",
"value": "Load block styles via amp_post_template_head action\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Load the reader mode template.\n *\n * @package AMP\n */\n\n/**\n * Queried post.\n *\n * @global WP_Post $post\n */\nglobal $post;\n\n// Populate the $post without... | php | chosen |
[
{
"from": "system",
"value": "Add current year to page footer\n"
},
{
"from": "human",
"value": "</div>\n<div class=\"panel text-center\">\n <p>©2014 Bobby Cahill</p>\n</div>\n\n{{-- Include libraries from CDN if live, else use local files --}}\n@if ($app->env == 'live')\n\n<!-- jQuery a... | php | chosen |
[
{
"from": "system",
"value": "Add jQuery load to master template\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <title>@yield('title')</title>\n {{ HTML::sty... | php | chosen |
[
{
"from": "system",
"value": "Add header image & solutions query data\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Template Name: Solutions\n */\n\n$data = Timber::get_context();\n$data['post'] = new TimberPost();\nTimber::render('page.twig', $data);\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "system",
"value": "Remove default name and text of the control class\n"
},
{
"from": "human",
"value": "<?php\n /**\n * @author Manuel Thalmann <m@nuth.ch>\n * @license Apache-2.0\n */\n namespace System\\Web\\Forms;\n use System\\Object;\n use System\\Web\\For... | php | chosen |
[
{
"from": "system",
"value": "Add @method phpdoc for Client\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Guzzle\\Service\\Mediawiki;\n\nuse Guzzle\\Service\\Client;\nuse Guzzle\\Service\\Description\\ServiceDescription;\nuse Guzzle\\Common\\Collection;\nuse Guzzle\\Plugin\\Cookie\\Cooki... | php | chosen |
[
{
"from": "system",
"value": "Fix: Remove extra '/' character in dashboard route\n"
},
{
"from": "human",
"value": "<?php\n\nCroogoRouter::connect('/admin/dashboards/', array(\n\t'admin' => true,\n\t'plugin' => 'dashboards',\n\t'controller' => 'dashboards_dashboards',\n\t'action' => 'dashboard',... | php | chosen |
[
{
"from": "system",
"value": "Update default unit test class with atoum refactoring\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Boomgo\\Tests\\Units;\n\nuse mageekguy\\atoum\\test as AtoumTest;\n\nabstract class Test extends AtoumTest\n{\n public function __construct(score $score = ... | php | chosen |
[
{
"from": "system",
"value": "Remove some weird space in the test configuration.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Arvici\\Heart\\Config\\Configuration;\nuse Arvici\\Component\\View\\View;\n\n/**\n * Template Configuration\n */\nConfiguration::define('database', function() {\n r... | php | chosen |
[
{
"from": "system",
"value": "Make crimes date dynamic and sort by date DESC.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Crime extends Module {\n\n public $url = \"https://data.bathhacked.org/resource/e46f-mhfs.json\";\n \n function getData() {\n $lat = $this->point->lat;\... | php | chosen |
[
{
"from": "system",
"value": "Use old array notation for PHP < 5.4\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Diarmuidie\\NiceID\\Tests\\Utilities;\n\nuse Diarmuidie\\NiceID\\Utilities;\n\n/**\n * Class NiceIDTest\n * @package Diarmuidie\\NiceID\\Tests\n */\nclass FisherYatesTest e... | php | chosen |
[
{
"from": "system",
"value": "Update E2E assets mu-plugin to register script via new filter.\n\nThis is to grant AMP-devmode compatibility to this asset which Site Kit does automatically for all of its assets.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: E2E Assets\n * Descript... | php | chosen |
[
{
"from": "system",
"value": "Add route to handle ticket filtering by status\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routers\n|----------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add basic example of using twitter api\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n... | php | chosen |
[
{
"from": "system",
"value": "Create route for authorize student to leave\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\n| T... | php | chosen |
[
{
"from": "system",
"value": "Fix route group for admin and auth verification.\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|... | php | chosen |
[
{
"from": "system",
"value": "Fix compatibility isssues with Phinx 0.11\n"
},
{
"from": "human",
"value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass PrefixMenus extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is available here... | php | chosen |
[
{
"from": "system",
"value": "Improve json to array transformer\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr>\n * @license: MIT\n */\n\nnamespace IDCI\\Bundle\\ExtraFormBundle\\Form\\DataTransformer;\n\nuse Symfony\\Component\\Fo... | php | chosen |
[
{
"from": "system",
"value": "Add created field to event migration\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddEventsTable extends Migration\n{\n /**\n * Run the migrations.\n *\... | php | chosen |
[
{
"from": "system",
"value": "Remove debug line added by mistake\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once(\"boot.php\");\n\n\nfunction cronhooks_run(&$argv, &$argc){\n\tglobal $a, $db;\n\n\tif(is_null($a)) {\n\t\t$a = new App;\n\t}\n \n\tif(is_null($db)) {\n\t @include(\".htc... | php | chosen |
[
{
"from": "system",
"value": "Update for Apr coop data\n\n"
},
{
"from": "human",
"value": "<?php\n\n$coop_archive_end = mktime(0,0,0,4,1,2007);\n$awos_archive_end = mktime(0,0,0,6,1,2007);\n\n?>\n"
},
{
"from": "gpt",
"value": "<?php\n\n$coop_archive_end = mktime(0,0,0,5,1,2007);\n$... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Hide exceptions if elasticsearch is not running. This needs some fixing and cleaning up by someone smarter than myself.\"\n\nThis reverts commit eb1900265fb3f077cf104c0944d8832a8d48012e and fixes #45.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FO... | php | chosen |
[
{
"from": "system",
"value": "Add orderId to initPayment method\n"
},
{
"from": "human",
"value": "<?php namespace professionalweb\\payment\\contracts\\recurring;\n\nuse professionalweb\\payment\\contracts\\PayService;\n\n/**\n * Interface for payment systems have recurring payments\n * @package... | php | chosen |
[
{
"from": "system",
"value": "Add body property to message, previously undeclared"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpAmqpLib\\Message;\n\nuse PhpAmqpLib\\Wire\\GenericContent;\n\n/**\n * A Message for use with the Channnel.basic_* methods.\n */\nclass AMQPMessage extends Gene... | php | chosen |
[
{
"from": "system",
"value": "Add --seed option for running seeds\n"
},
{
"from": "human",
"value": "<?php namespace Abhijitghogre\\LaravelDbClearCommand\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Set the account types as choices\n\nHaving a domain object that returns all the types\nwith labels feels weird. I think this is better.\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace PerFi\\PerFiBundle\\Form;\n\nuse PerFi\\Domain\\Ac... | php | chosen |
[
{
"from": "system",
"value": "Move build location of phar\n"
},
{
"from": "human",
"value": "<?php\n \n $phar = new Phar('FS.phar',0,'FS.phar');\n \n $stub = \"<?php \n Phar::mapPhar('FS.phar');\n include('phar://FS.phar/FS/Bootstrap.php');\n __HALT_COMPILER();\";\n \n $phar->setStub($s... | php | chosen |
[
{
"from": "system",
"value": ":sparkles: Set Application as a static class in IoC\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tapestry\\Providers;\n\nuse Tapestry\\Tapestry;\nuse Tapestry\\Console\\Application;\nuse Tapestry\\Console\\Commands\\InitCommand;\nuse Tapestry\\Console\\Comm... | php | chosen |
[
{
"from": "system",
"value": "Change wording on error message. It reflected a two-hour timeout which is not implimented.\n\ngit-svn-id: e691eac7f4e7c267eb8bf668e75dc601c2a71df8@593 54a900ba-8191-11dd-a5c9-f1483cedc3eb\n"
},
{
"from": "human",
"value": "<?php\r\nif (!$_SESSION)\r\n{\r\necho <<<W... | php | chosen |
[
{
"from": "system",
"value": "Check it's actually a URL\\!\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TwwSaml\\Controller;\n\nuse Zend\\Mvc\\Controller\\AbstractActionController;\n\nclass AcsController extends AbstractActionController\n{\n\n public function indexAction()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Add a way to inflect by count\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace PragmaRX\\Support\\Inflectors;\r\n\r\nclass Inflector {\r\n\r\n\tprotected static $localizedInflectors = [\r\n\t\t'en' => 'PragmaRX\\Support\\Inflectors\\En',\r\n\t\t'pt' => 'Pra... | php | chosen |
[
{
"from": "system",
"value": "Allow null values in model collection.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: daedeloth\n * Date: 30/11/14\n * Time: 18:49\n */\n\nnamespace Neuron\\Collections;\nuse Neuron\\Interfaces\\Model;\n\n/**\n * Class TokenizedColl... | php | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Load deployer-extended only if running deployer\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'recipe/common.php';\n\nif($_SERVER['_'] == $_SERVER['PHP_SELF']) {\n \\Deployer\\set('deployer_exec', $_SERVER['_']);\n} else {\n \\Deployer\\set... | php | chosen |
[
{
"from": "system",
"value": "Add missing methods to the interface\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Instrument package\n *\n * Copyright (c) 2016 Mika Tuupola\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n... | php | chosen |
[
{
"from": "system",
"value": "Allow to store model instance.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orchestra\\Tenanti;\n\nuse Orchestra\\Support\\Fluent;\n\nclass Tenantor extends Fluent\n{\... | php | chosen |
[
{
"from": "system",
"value": "Fix user connection when session ID refers to deleted member\n"
},
{
"from": "human",
"value": "<?php\n\ntrait Trait_currentMember\n{\n\tprotected $_current_member\t=\tnull;\n\n\tprotected function _checkCurrentMember()\n\t{\n\t\tif(isset($_SESSION['connected_user_i... | php | chosen |
[
{
"from": "system",
"value": "Replace try_get_element call with try_get_property\n\nReplaced the try_get_element call with a try_get_property call in the get_setting function"
},
{
"from": "human",
"value": "<?php\r\nnamespace tomlib\\auth\\config;\r\n\r\ninclude_once dirname(__FILE__) . \"/conf... | php | chosen |
[
{
"from": "system",
"value": "Add missing translations for Polish\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n // Header\n 'login' => 'zaloguj',\n 'logout' => 'wyloguj',\n 'your profile' => 'twój profil',\n 'conversations' => 'konwersacje',\n 'settings' => 'ustawienia... | php | chosen |
[
{
"from": "system",
"value": "Add a profile resetevent constant\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\Members\\Event;\n\n/**\n * Members event constant class.\n *\n * Copyright (C) 2014-2016 Gawain Lynch\n *\n * @author Gawain Lynch <gawain.lynch@gmail.c... | php | chosen |
[
{
"from": "system",
"value": "Add missing exporter function for PHPUnit 7\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... | php | chosen |
[
{
"from": "system",
"value": "Fix first time execution of sample:data command test.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of The OBMS project: https://github.com/obms/obms\n *\n * Copyright (c) Jaime Niñoles-Manzanera Jimeno.\n *\n * For the full copyright and lic... | php | chosen |
[
{
"from": "system",
"value": "Include support for subdivision repository class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Galahad\\LaravelAddressing\\Collection;\n\nuse Illuminate\\Support\\Collection;\n\n/**\n * Class AdministrativeAreaCollection\n *\n * @package Galahad\\LaravelAddr... | php | chosen |
[
{
"from": "system",
"value": "Remove namespace, require NonInvokableException.php, Authentication.php, Authorization.php"
},
{
"from": "human",
"value": "<?php\n\nnamespace oopapi;\n\nrequire_once './Invokable.php';\nrequire_once './RequestHandler.php';\nrequire_once './Invokation.php';\n\n$hand... | php | chosen |
[
{
"from": "system",
"value": "Make main protected in connector\n"
},
{
"from": "human",
"value": "<?php \r\n\r\nnamespace Plinth;\r\n\r\nabstract class Connector {\r\n\t\r\n /**\r\n * @var Main\r\n */\r\n\tprivate $_main;\r\n\r\n\t/**\r\n\t * @param Main $main\r\n\t */\r\n\tpublic fun... | php | chosen |
[
{
"from": "system",
"value": "Add extra comma on config\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n 'defaults' => [\n 'creator' => [\n 'name' => ''\n // add creator default values if not set\n ],\n\n 'updater' => [\n 'name' => '... | php | chosen |
[
{
"from": "system",
"value": "Remove mockery call in test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Tests\\Foundation;\n\nuse Mockery as m;\nuse PHPUnit\\Framework\\TestCase;\nuse Illuminate\\Filesystem\\Filesystem;\nuse Illuminate\\Foundation\\PackageAssetLoader;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Fix the relationship with Countries\n"
},
{
"from": "human",
"value": "<?php\nnamespace CrudJsonApi\\Test\\App\\Model\\Table;\n\nclass NationalCapitalsTable extends \\Cake\\ORM\\Table\n{\n public function initialize(array $config)\n {\n $this->belongsTo... | php | chosen |
[
{
"from": "system",
"value": "Mark internal tick API as final to discourage external usage"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\EventLoop\\Tick;\n\nuse SplQueue;\n\nclass FutureTickQueue\n{\n private $queue;\n\n public function __construct()\n {\n $this->que... | php | chosen |
[
{
"from": "system",
"value": "Fix translation tag for hook for openid provider\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@2102 44740490-163a-0410-bde0-09ae8108e29a\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Hook to add the OpenID provider to the authentication tab.\n *\n * @p... | php | chosen |
[
{
"from": "system",
"value": "Check for JSON errors when converting\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Expressly\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\n\nclass ResponseEvent extends Event\n{\n private $response;\n\n public function getResponse()\n ... | php | chosen |
[
{
"from": "system",
"value": "Set `menu_name` to improve consistency within the dashboard\n"
},
{
"from": "human",
"value": "<?php\n/* ------------------------------------------------------------------------ *\\\n * Post Types\n\\* ----------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Add submit button to hubbasic template mod_search override\n"
},
{
"from": "human",
"value": "<?php // no direct access\ndefined('_JEXEC') or die('Restricted access');?>\n<form method=\"get\" action=\"/search\" id=\"searchform\"<?php if ($params->get('moduleclass_sf... | php | chosen |
[
{
"from": "system",
"value": "Check whether table exists for very first SQL migration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Application\\Mapper;\n\nclass SettingMapper extends AbstractMapper\n{\n\n /**\n * Returns a setting, or create an empty, unsaved one, if not found\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow a call to purchase with only a transactionReference for recurring payments\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Pacnet\\Message;\n\n/**\n * Pacnet Authorize Request\n */\nclass AuthorizeRequest extends SubmitRequest\n{\n public fun... | php | chosen |
[
{
"from": "system",
"value": "Remove title from api pages\n"
},
{
"from": "human",
"value": "@extends ('base')\n\n@section ('scripts')\n <script type=\"text/javascript\" src=\"{{ asset('/js/api.js') }}\"></script>\n@stop\n\n@section('subheader')\n <div class=\"col-xs-12 col-md-4 col-md-off... | php | chosen |
[
{
"from": "system",
"value": "Change user name to something more practical.\n\nSigned-off-by: Se7enChat <e5dc7202134ade0d04c45466a5972470210b05f6@zoho.com>\n"
},
{
"from": "human",
"value": "<?php\nnamespace Se7enChat\\Libraries\\Web\\Presenters;\nuse Se7enChat\\Boundaries\\IndexOutputPort;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Fix name field change & deprecated sf3.4"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr>\n * @license: MIT\n */\n\nnamespace IDCI\\Bundle\\ExtraFormBundle\\Form;\n\nuse IDCI\\Bundle\\ExtraFormBundle\\Mod... | php | chosen |
[
{
"from": "system",
"value": "Update Service Provider for L5.4\n"
},
{
"from": "human",
"value": "<?php namespace Sseffa\\VideoApi;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class VideoApiServiceProvider\n * @package Sseffa\\VideoApi\n * @author Sefa Karagöz\n */\nclass VideoApiSer... | php | chosen |
[
{
"from": "system",
"value": "Remove (Participant) relationship displayed after the last non PI researcher CC2608\n"
},
{
"from": "human",
"value": "@if (isset($related['researchers']) && sizeof($related['researchers']['docs']) > 0)\n <?php\n // preparation\n $researchers_array ... | php | chosen |
[
{
"from": "system",
"value": "FIX Import missing namespace for RunBuildTaskJob\n"
},
{
"from": "human",
"value": "<?php\n\nuse Heyday\\Elastica\\ReindexTask;\nuse SilverStripe\\Core\\Injector\\Injector;\nuse Symbiote\\QueuedJobs\\Services\\QueuedJobService;\nuse SilverStripe\\CronTask\\Interface... | php | chosen |
[
{
"from": "system",
"value": "Fix on soundcloudToHtml method name\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Laravel4-SirTrevorJs\n *\n * @link https://github.com/caouecs/Laravel4-SirTrevorJS\n */\n\nnamespace Caouecs\\Sirtrevorjs\\Converter;\n\n/**\n * Sound for Sir Trevor Js\n *\n * @pa... | php | chosen |
[
{
"from": "system",
"value": "Add missing namespace to project\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Picqer\\Financials\\Moneybird\\Entities;\n\nuse Picqer\\Financials\\Moneybird\\Actions\\FindAll;\nuse Picqer\\Financials\\Moneybird\\Actions\\FindOne;\nuse Picqer\\Financials\\Mon... | php | chosen |
[
{
"from": "system",
"value": "Fix test - forgot feature switch removal\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\GtmPlugin\\EventListener;\n\nuse GtmPlugin\\EventListener\\EnvironmentListener;\nuse Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent;\nuse Xynnn\\GoogleTagM... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in classpec for validator exception.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * php-binary\n * A PHP library for parsing structured binary streams\n *\n * @package php-binary\n * @author Damien Walsh <me@damow.net>\n */\nnamespace Binary\\Field;\n\n... | php | chosen |
[
{
"from": "system",
"value": "Update location of files on service provider.\n"
},
{
"from": "human",
"value": "<?php namespace Nobox\\LazyStrings;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Filesystem\\Filesystem;\n\nuse Nobox\\LazyStrings\\Commands\\LazyDeployCommand;\n\nclas... | php | chosen |
[
{
"from": "system",
"value": "Fix typo mistake in annotation attributes\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Accessible\\Annotation;\n\n/**\n * @Annotation\n * @Target(\"PROPERTY\")\n */\nclass InitializeObject\n{\n /**\n * The name of the class to initialize.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove trl call from model\n\nthis breaks build as we access models during clear-cache and don't have trl data built yet\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_List_ChildPages_Teaser_TeaserImage_Model extends Kwf_Component_FieldModel\n{\n protected f... | php | chosen |
[
{
"from": "system",
"value": "Fix collection call in embedCheckins"
},
{
"from": "human",
"value": "<?php namespace App\\Transformer;\n\nuse Place;\nuse League\\Fractal\\TransformerAbstract;\n\nclass PlaceTransformer extends TransformerAbstract\n{\n protected $availableEmbeds = [\n 'ch... | php | chosen |
[
{
"from": "system",
"value": "Make the filter() function always return a collection\n"
},
{
"from": "human",
"value": "<?php namespace Picqer\\Financials\\Exact\\Query;\n\ntrait Findable {\n\n public function find($id)\n {\n $result = $this->connection()->get($this->url, [\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove the View stuff, FOSRest handles this via listeners.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Trq\\TodoBundle\\Controller;\n\nuse FOS\\RestBundle\\View\\View;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Trq\\TodoBundle\\Ent... | php | chosen |
[
{
"from": "system",
"value": "BAP-10799: Update stepsAction in WidgetController\n - fixed migration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\WorkflowBundle\\Migrations\\Schema\\v1_14;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\... | php | chosen |
[
{
"from": "system",
"value": ":white_check_mark: Add a logged-in test for the dashboard\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\n\nclass StatusTest extends TestCase\n{\n /**\n * Test the home page returns a 200 status code (OK)\n *... | php | chosen |
[
{
"from": "system",
"value": "fix: Remove data provider Hash lolifier handling test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Monolol\\Lolifiers;\n\nuse Monolog\\Logger;\n\nclass HashTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider testHandlingProvider\n ... | php | chosen |
[
{
"from": "system",
"value": "Implement Twittter; fix aggregate scores\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Metrics\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Input;\nuse Metrics\\Http\\Requests;\nuse Metrics\\Http\\Controllers\\Cont... | php | chosen |
[
{
"from": "system",
"value": "Fix getting type, fix publish favicon\n"
},
{
"from": "human",
"value": "<?php\n/**\n * AdminLte Theme for Yii2 projects\n *\n * @link https://github.com/hiqdev/yii2-theme-adminlte\n * @package yii2-theme-adminlte\n * @license BSD-3-Clause\n * @copyright Co... | php | chosen |
[
{
"from": "system",
"value": "tests: Disable some PHP insights sniffs\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Preset\n |--------------------------... | php | chosen |
[
{
"from": "system",
"value": "Change 'other' type in 'manual' type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace APIBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundati... | php | chosen |
[
{
"from": "system",
"value": "Fix typo on class not found exception message\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PHPSpec2\\Exception;\n\nclass ClassNotFoundException extends Exception\n{\n private $classname;\n\n public function __construct($classname)\n {\n $thi... | php | chosen |
[
{
"from": "system",
"value": "phpdoc: Use class level method definition to re-define method return type\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * with this package in the file LI... | php | chosen |
[
{
"from": "system",
"value": "BAP-12009: Create command oro:debug:condition\n- remove not used import\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ActionBundle\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nuse Oro\\Component\\ConfigExpression\\Expre... | php | chosen |
[
{
"from": "system",
"value": "[COM_COURSES] Fix migration syntax. Forgot it changed recently...\n"
},
{
"from": "human",
"value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n// Check to ensure this file is included in Joomla!\ndefined('_JEXEC') or die('Restricted access');\n\n/**\n * Mig... | php | chosen |
[
{
"from": "system",
"value": "Add hyperlink in admin panel\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n@section('content')\n <div class=\"row\">\n <div class=\"col-md-8 col-md-offset-2\">\n <a href=\"{{ action('TriosController@index') }}\" class=\"btn btn-big... | php | chosen |
[
{
"from": "system",
"value": "Fix array notation in function\n"
},
{
"from": "human",
"value": "<?php\n\n$app = [];\n\n$app['config'] = [\n 'db' => [\n 'dsn' => 'mysql:dbname=foler;host=localhost',\n 'user' => 'foler',\n 'password' => ''\n ],\n 'url' => ... | php | chosen |
[
{
"from": "system",
"value": "Fix create database issue on Postgresql\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m160516_095943_init extends Migration\n{\n public function up()\n {\n $tableOptions = null;\n\n if ($this->db->driverName === 'my... | php | chosen |
[
{
"from": "system",
"value": "Rename test classes to avoid conflicts\n"
},
{
"from": "human",
"value": "<?php\n\nclass HeroModule extends PageModule\n{\n}\n\nclass PageModuleTest extends SapphireTest\n{\n protected static $fixture_file = 'PageModuleTest.yml';\n\n /**\n * Test that we'r... | php | chosen |
[
{
"from": "system",
"value": "Use instance variable instead of getter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TomPHP\\ConfigServiceProvider\\League;\n\nuse League\\Container\\ServiceProvider\\AbstractServiceProvider;\nuse TomPHP\\ConfigServiceProvider\\ApplicationConfig;\n\nfinal c... | php | chosen |
[
{
"from": "system",
"value": "system: Fix style for controller class\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file contains the base abstract controller class.\n *\n * PHP Version 5.3\n *\n * @category Libraries\n * @package Core\n * @subpackage Libraries\n * @author M2M... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong login return page for tracker URLs\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Pages\\Controllers\\Mixed;\n\nuse Database\\Objects\\TrackerInfo;\nuse Generator;\nuse Pages\\Controllers\\AbstractHandlerController;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Add option 'response' to render\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Spark\\Controller;\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Spark\\Core\\ApplicationAware;\n\nabstract class Base implements ApplicationAw... | php | chosen |
[
{
"from": "system",
"value": "Add detection for newer Blackberry devices\n"
},
{
"from": "human",
"value": "<?php\n\n\tclass DeviceBlackBerry extends MobileDevice {\n\t\tstatic protected $instance;\n\n\t\tpublic function initialize() {\n\t\t\t$this->{'name'} = 'BlackBerry';\n\t\t\t$this->{'user-... | php | chosen |
[
{
"from": "system",
"value": "Set session on form builder.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Html;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass HtmlServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading of the provider is deferred.\n\t... | php | chosen |
[
{
"from": "system",
"value": "Use the local createQueryBuilder with alias"
},
{
"from": "human",
"value": "<?php\n\nnamespace NS\\SentinelBundle\\Repository;\n\nuse NS\\SecurityBundle\\Doctrine\\SecuredEntityRepository;\nuse NS\\UtilBundle\\Service\\AjaxAutocompleteRepositoryInterface;\n\n/**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add empty line before return to follow Symfony2 code style\n"
},
{
"from": "human",
"value": "<?php\nnamespace Loct\\Pinger\\Provider;\n\nuse \\Loct\\Pinger\\Notifier\\MailgunNotifier;\nuse \\Mailgun\\Mailgun;\nuse \\Pimple\\Container;\nuse \\Pimple\\ServiceProvider... | php | chosen |
[
{
"from": "system",
"value": "Remove obsolete require_once in smarty plugin\n"
},
{
"from": "human",
"value": "<?php\nfunction smarty_function_call_webservice($params, &$smarty) {\n require_once 'webservice//WebService.php';\n $service = WebService::factory($params['path']);\n if ($serv... | php | chosen |
[
{
"from": "system",
"value": "Use object interface in created at interface\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseStructure project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\Databa... | php | chosen |
[
{
"from": "system",
"value": "Remove link to server logs\n\nThe handler was already removed in 66bf9a966069897ba651a596c7d2148c4d76ba1b.\n"
},
{
"from": "human",
"value": "<?php\n$path_prefix = '../';\nrequire('../inc/common.php');\n\nrole_needed(ROLE_ADMIN);\n\n$title = 'Administration Panel';\... | php | chosen |
[
{
"from": "system",
"value": "Change form submit url to match change in folder heirarchy\n"
},
{
"from": "human",
"value": "<html>\n\n<body>\n<?php if (array_key_exists('submit', $_POST)): ?>\nData From Sensor #<?php echo $_POST[\"uid\"]; ?><br>\n\nLevel: <?php echo $_POST[\"level\"]; ?><br>\nMa... | php | chosen |
[
{
"from": "system",
"value": "Check if .env file exists\n"
},
{
"from": "human",
"value": "<?php namespace Lucasmichot\\Laraveldotenv;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LaraveldotenvServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the provid... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.