conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Trim the input on user form\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace UBC\\Exam\\MainBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolv... | php | chosen |
[
{
"from": "system",
"value": "Update storage strategies to inclue new atomicSet and atomicSetArray\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace CImrie\\ODM\\Mapping\\Traits;\n\n\ntrait StorageStrategies\n{\n public function useAddToSetStorageStrategy()\n {\n $this->useSto... | php | chosen |
[
{
"from": "system",
"value": "Comment out rush warning and job score on job event detail\n"
},
{
"from": "human",
"value": "<?php $job = $item->assocObject;?>\n<?php $id = 'job_evt_'.$job->ID.$item->ID;?>\n<div id=\"<?php echo $id;?>\">\n\t<div class=\"pad\"><?php \n\t\t$job = $item->getAssocObj... | php | chosen |
[
{
"from": "system",
"value": "Change array to short format (PHP 5.4+)\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n 'hostname' => '',\n 'database' => '',\n 'username' => '',\n 'password' => '',\n);\n"
},
{
"from": "gpt",
"value": "<?php\n\nreturn [\n 'hos... | php | chosen |
[
{
"from": "system",
"value": "[UnitTest] Fix incorrect datatype on argument\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018-2019, Pierre-Henry Soria. All Rights Reserved.\n * @license MIT License; S... | php | chosen |
[
{
"from": "system",
"value": "Fix typo: route has been renamed, rename in config\n"
},
{
"from": "human",
"value": "<?php\n/**\n * ZfcAdmin Configuration\n *\n * If you have a ./config/autoload/ directory set up for your project, you can\n * drop this config file in it and change the values as y... | php | chosen |
[
{
"from": "system",
"value": "Fix missing service of type \"IReCaptchaValidatorFactory\"\n\nfixes #7\n\nPlease consider updating 1.5.x with php <5.6 syntax `->setImplement('Minetro\\Forms\\reCAPTCHA\\IReCaptchaValidatorFactory')`\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Minetro\\For... | php | chosen |
[
{
"from": "system",
"value": "Add missing dot in datadog login attempts name\n"
},
{
"from": "human",
"value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text... | php | chosen |
[
{
"from": "system",
"value": "Use getcwd() to determine working path.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\nuse Orchestra\\Testbench\\Console\\Commander;\n\n$APP_KEY = $_SERVER['APP_KEY'] ?? $_ENV['AP... | php | chosen |
[
{
"from": "system",
"value": "Remove preview dates from slideshow title card\n"
},
{
"from": "human",
"value": "<section class=\"slideshow\" role=\"landmark\">\n\n\t<!-- Slider main container -->\n\t<div class=\"swiper-container\">\n\n\t\t<!-- Additional required wrapper -->\n\t\t<div class=\"sw... | php | chosen |
[
{
"from": "system",
"value": "Throw a more specific exception if an attempt is made to create a recurrence type that is not in the factory.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful\\Recurrence;\n\nclass RecurrenceFactory implements RecurrenceFactoryInterface\n{\... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in variable name"
},
{
"from": "human",
"value": "<?php\n\nrequire(__DIR__ . '/vendor/autoload.php');\n\nHttpful\\Bootstrap::init();\nRESTful\\Bootstrap::init();\nBalanced\\Bootstrap::init();\n\nBalanced\\Settings::$api_key = \"ak-test-Hznf9GhTb2Xkj7fGwVD6l... | php | chosen |
[
{
"from": "system",
"value": "Fix issue that ignores manually modified changes\n"
},
{
"from": "human",
"value": "---\n{!! $frontmatter !!}\n---\n<!-- START_INFO -->\n{!! $infoText !!}\n<!-- END_INFO -->\n\n@foreach($parsedRoutes as $group => $routes)\n@if($group)\n#{{$group}}\n@endif\n@foreach(... | php | chosen |
[
{
"from": "system",
"value": "Clean one last new line.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TypiCMS\\Modules\\Core\\Http\\Controllers;\n\nuse Illuminate\\Routing\\Controller;\n\nabstract class BaseApiController extends Controller\n{\n\n /**\n * Array of endpoints that do... | php | chosen |
[
{
"from": "system",
"value": "Correct some more variables to private not static\n"
},
{
"from": "human",
"value": "<?php\n\nclass SchemaPoint\n{\n static $latitude;\n static $longitude;\n static $altitude;\n \n public function __construct($parameters)\n {\n $this->latitu... | php | chosen |
[
{
"from": "system",
"value": "Mark test that does not perform assertions as such\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyr... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Make migration regex more precise\n\n(cherry picked from commit f7c459c3794dbe9d441196ddf42e786ea902ab29)\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\Flow\\Core\\Migrations;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Cont... | php | chosen |
[
{
"from": "system",
"value": "Add new topic button to index page\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-8 col-md-offset-2\">\n <div class=\"panel panel-default\"... | php | chosen |
[
{
"from": "system",
"value": "Use subdomain instead of /files/"
},
{
"from": "human",
"value": "<?php\n\n// PDO socket\n// Or using socket would be even faster then 127.0.0.1 :3\ndefine('POMF_DB_CONN', 'mysql:host=127.0.0.1;dbname=pomf');\n// MySQL user and password\ndefine('POMF_DB_USER', '');\... | php | chosen |
[
{
"from": "system",
"value": "Change criteria for link to billmate checkout\n"
},
{
"from": "human",
"value": "<?php\n\nclass Link extends LinkCore\n{\n public function getPageLink($controller, $ssl = null, $id_lang = null, $request = null, $request_url_encode = false, $id_shop = null, $relat... | php | chosen |
[
{
"from": "system",
"value": "Use new $postTitle in hero\n"
},
{
"from": "human",
"value": "@hero([\n \"image\" => $modHeroImage->url,\n \"imageFocus\" => $modHeroImage->focus,\n \"size\" => $modHeroSize,\n \"overlay\" => $modHeroOverlayType,\n \"color\" => $modHeroFontColor,\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow for multiple service file formats\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ContainerTools\\Configuration;\n\nuse ContainerTools\\Configuration;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\ContainerBu... | php | chosen |
[
{
"from": "system",
"value": "Add support for namespaced user model"
},
{
"from": "human",
"value": "<?php namespace Spatie\\Activitylog\\Models;\n\nuse Eloquent;\nuse DateTime;\n\nclass Activity extends Eloquent {\n\n /**\n * The database table used by the model.\n *\n * @var str... | php | chosen |
[
{
"from": "system",
"value": "Load Backbone app on selective pages\n"
},
{
"from": "human",
"value": "<?php\n\nfunction theme_enqueue_styles() {\n\n $parent_style = 'parent-style';\n\n wp_enqueue_script( 'jquery' );\n wp_enqueue_style( 'bootstrap-css', get_stylesheet_directory_uri().'/b... | php | chosen |
[
{
"from": "system",
"value": "Implement missing methods and functionality.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Enzyme\\LaravelBinder;\n\nuse Illuminate\\Contracts\\Container\\Container;\n\nclass Binder\n{\n protected $container;\n protected $bindings;\n protected $requ... | php | chosen |
[
{
"from": "system",
"value": "Remove config access from buildCommand\n"
},
{
"from": "human",
"value": "<?php\r\nnamespace Lawstands\\Hermes;\r\n\r\nclass Channel\r\n{\r\n /**\r\n * Channel command.\r\n *\r\n * @var $command\r\n */\r\n private $command;\r\n\r\n\r\n /**\r... | php | chosen |
[
{
"from": "system",
"value": "Update handler to output api response with Output exceptions\n"
},
{
"from": "human",
"value": "<?php\n\tnamespace Bolt;\n\n\tuse Bolt\\Api\\Response;\n\n\tclass Handler\n\t{\n\t\tpublic static function error($level, $message, $file, $line, $context)\n\t\t{\n\t\t\tt... | php | chosen |
[
{
"from": "system",
"value": "Implement ContainerAwareInterface and use ContainerAwareTrait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Encore\\Error;\n\nuse Symfony\\Component\\Debug\\ErrorHandler;\nuse Encore\\Container\\Container;\n\nclass Handler\n{\n\tprotected $container = null;\... | php | chosen |
[
{
"from": "system",
"value": "Update regex for diesel fuel\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass VehiclesFuelsTableSeeder extends Seeder\n{\n public function run()\n {\n DB::table('vehicles_fuels')->delete();\n\n $fuels = [\n ... | php | chosen |
[
{
"from": "system",
"value": "Rename argument, remove unusued one\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n * Contains \\Drupal\\AppConsole\\Generator\\PluginBlockGenerator.\n */\n\nnamespace Drupal\\AppConsole\\Generator;\n\nclass PluginBlockGenerator extends Generator\n{\n /**... | php | chosen |
[
{
"from": "system",
"value": "Add trailing comma for all touched array lines.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2012, Robin Appelman <icewind1991@gmail.com>\n * This file is licensed under the Affero General Public License version 3 or later.\n * See the COPYING-REA... | php | chosen |
[
{
"from": "system",
"value": "Set web middleware to get token\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Asvae\\ApiTester\\Providers;\n\nuse Illuminate\\Routing\\Router;\n\nclass RouteServiceProvider extends \\Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in use statement\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Drubo\\Robo\\Task\\Filesystem;\n\nuse Drubo\\Robo\\Task\\Filesystem\\Clean\\Directories as CleanDicrectories;\nuse Drubo\\Robo\\Task\\Filesystem\\Prepare\\Directories as PrepareDicrector... | php | chosen |
[
{
"from": "system",
"value": "Use https for s3 links"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of flagrow/upload.\n *\n * Copyright (c) Flagrow.\n *\n * http://flagrow.github.io\n *\n * For the full copyright and license information, please view the license.md\n * file t... | php | chosen |
[
{
"from": "system",
"value": "Add version const to cache interface\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,\n * Confidential and Proprietary. Any dissemination outside of Quicken Loans\n * is strictly prohibite... | php | chosen |
[
{
"from": "system",
"value": "Add the correct baseUrl for the WebhookController test.\n"
},
{
"from": "human",
"value": "<?php namespace SublimeArts\\SublimeStripe\\Tests\\Http\\Controllers;\n\nuse PluginTestCase;\nuse SublimeArts\\SublimeStripe\\Http\\Controllers\\WebhooksController;\n\nclass W... | php | chosen |
[
{
"from": "system",
"value": "Set the body of the new request to handle issues with cloning request bodies\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bdt\\Eway\\Log;\n\nuse Guzzle\\Log\\MessageFormatter as GuzzleMessageFormatter;\nuse Guzzle\\Http\\Message\\EntityEnclosingRequestInter... | php | chosen |
[
{
"from": "system",
"value": "fix: Remove typehint for PHP 5.5.\n\nSigned-off-by: Bruno Gaspar <367518169777ee9ae71cfcee56304a59ac5423c1@gmail.com>\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Part of the Stripe package.\n *\n * NOTICE OF LICENSE\n *\n * Licensed under the 3-clause BSD Li... | php | chosen |
[
{
"from": "system",
"value": "Remove boot method in laravel 4 service provider from code coverage\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Michaeljennings\\Carpenter;\n\nclass Laravel4ServiceProvider extends CarpenterServiceProvider\n{\n /**\n * Bootstrap the application even... | php | chosen |
[
{
"from": "system",
"value": "Return a short version of a github repo\n"
},
{
"from": "human",
"value": "<?php\nnamespace Criterion\\Helper;\n\nclass Github\n{\n public static function toSSHUrl($url)\n {\n $url = str_replace(array('https://','.com/'), array('git@','.com:'), $url);\n... | php | chosen |
[
{
"from": "system",
"value": "Add name to custom filter\n"
},
{
"from": "human",
"value": "<?php\n/*\n * Copyright 2016 Jack Sleight <http://jacksleight.com/>\n * This source file is subject to the MIT license that is bundled with this package in the file LICENCE. \n */\n\nnamespace Coast\\Filte... | php | chosen |
[
{
"from": "system",
"value": "Fix 200 / 304 issue\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Debril\\RssAtomBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass StreamControllerTest extends WebTestCase\n{\n\n public function testIndex()\n ... | php | chosen |
[
{
"from": "system",
"value": "Add filters for interim reports\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Slate\\Progress;\n\n\nclass SectionInterimReportsRequestHandler extends \\RecordsRequestHandler\n{\n public static $recordClass = SectionInterimReport::class;\n}"
},
{
"... | php | chosen |
[
{
"from": "system",
"value": "Add project_id to invoice detail\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Picqer\\Financials\\Moneybird\\Entities\\Generic;\n\nuse Picqer\\Financials\\Moneybird\\Model;\n\n/**\n * Class InvoiceDetail.\n */\nabstract class InvoiceDetail extends Model\n{\... | php | chosen |
[
{
"from": "system",
"value": "Support for post id/opions page in responsive svg\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The default template for displaying content. Used for both single and index/archive/search.\n *\n * @subpackage cerulean\n * @since cerulean 4.0\n */\nglobal $respons... | php | chosen |
[
{
"from": "system",
"value": "Add tra and some rewording for plugin info used in plugin edit window\n\ngit-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@30966 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki/... | php | chosen |
[
{
"from": "system",
"value": "Change Dotenv contruction to app root directory\n"
},
{
"from": "human",
"value": "<?php\n\nrequire __DIR__.'/../../vendor/autoload.php';\nrequire 'path.php';\n\n$dotenv = new Dotenv\\Dotenv(dirname(__DIR__));\n$dotenv->load();\n\ndate_default_timezone_set(getenv('D... | php | chosen |
[
{
"from": "system",
"value": "Update to make code cleaner.\n"
},
{
"from": "human",
"value": "{{-- Block Type: Call To Action --}}\n\n<section class=\"segment segment--cta\">\n <h1 class=\"heading -alpha\">{{ $block->block_title }}</h1>\n\n <div class=\"wrapper\">\n {{ $block->block_body_ht... | php | chosen |
[
{
"from": "system",
"value": "Implement version details xp, php, engine and os\n\n. xp: XP Version\n. php: PHP Version\n. engine: Engine version - HHVM_VERSION || zend_version()\n. os: OS Version (and distribution if available)\n"
},
{
"from": "human",
"value": "<?php namespace xp\\runtime;\n\nu... | php | chosen |
[
{
"from": "system",
"value": "Disable info if both pagination and filter is disabled\n"
},
{
"from": "human",
"value": "<?php\n$fields = json_decode(json_encode(get_fields($module->ID)));\n\n$classes = '';\nif (isset($fields->mod_table_classes) && is_array($fields->mod_table_classes)) {\n $cl... | php | chosen |
[
{
"from": "system",
"value": "Call parent constructor on response object\n\nSigned-off-by: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl>\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Audio Player\n *\n * This file is licensed under the Affero General Public Licens... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Fix broken test in PHP 5.4\"\n\nThis reverts commit 60a6a6943c76a783f0251245b8a3919d86640f6b.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Test;\n\n// \\HttpMessage\nuse Kambo\\HttpMessage\\Uri;\nuse Kambo\\HttpMessage\\Factories\\String\\UriFactory;... | php | chosen |
[
{
"from": "system",
"value": "Change kibi to kilo format\n"
},
{
"from": "human",
"value": "<?php\n\nuse pendalf89\\filemanager\\assets\\FilemanagerAsset;\nuse pendalf89\\filemanager\\Module;\nuse yii\\helpers\\Html;\n\n/* @var $this yii\\web\\View */\n/* @var $model pendalf89\\filemanager\\mode... | php | chosen |
[
{
"from": "system",
"value": "[BetterPhpDocParser] Fix nullable type print to doc |null\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\BetterPhpDocParser\\Attributes\\Ast\\PhpDoc\\Type;\n\nuse PHPStan\\PhpDocParser\\Ast\\Type\\NullableTypeNode;\nuse Symp... | php | chosen |
[
{
"from": "system",
"value": "Fix issue where guest does not exist\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\UsersModule\\Role\\Command;\n\nuse Anomaly\\Streams\\Platform\\Support\\Authorizer;\nuse Anomaly\\UsersModule\\Role\\Contract\\RoleRepositoryInterface;\nuse Illuminate\\... | php | chosen |
[
{
"from": "system",
"value": "Support for fallback & no fallback.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ContentTranslator;\n\nclass Meta Extends Entity\\Translate\n{\n\n protected $lang;\n\n public function __construct()\n {\n if (\\ContentTranslator\\Switcher::is... | php | chosen |
[
{
"from": "system",
"value": "Remove whitespace at beginning of file.\n"
},
{
"from": "human",
"value": "\n<?php\n\nnamespace FluxBB\\Models;\n\nclass Ban extends Base\n{\n protected $table = 'bans';\n\n\n public function creator()\n {\n return $this->belongsTo('FluxBB\\\\Models\... | php | chosen |
[
{
"from": "system",
"value": "Remove filters parameter from method signature.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Plummer\\Calendarful;\n\ninterface RegistryInterface\n{\n\tpublic function get(Array $filters = []);\n}"
},
{
"from": "gpt",
"value": "<?php\n\nnamespac... | php | chosen |
[
{
"from": "system",
"value": "Add conditional blocks for avatars and post sidebar\n"
},
{
"from": "human",
"value": "<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\n <div class=\"row\">\n <div class=\"col-md-8\">\n <?php\n\n get_template_part(SN... | php | chosen |
[
{
"from": "system",
"value": "Fix migrations with default MySQL connection."
},
{
"from": "human",
"value": "<?php\n\nnamespace PragmaRX\\Tracker\\Support;\n\nuse PragmaRX\\Support\\Migration as PragmaRxMigration;\n\nabstract class Migration extends PragmaRxMigration\n{\n protected function c... | php | chosen |
[
{
"from": "system",
"value": "Add check to ensure hook exists before deleting it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BrainMaestro\\GitHooks;\n\nclass Hook\n{\n private static $hooks;\n\n /**\n * Add valid git hooks.\n */\n public static function add($hook, $scr... | php | chosen |
[
{
"from": "system",
"value": "Add toArray() to every model\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Hochstrasser\\Wirecard\\Model;\n\nabstract class Model\n{\n private $parameters;\n\n function __construct(array $parameters)\n {\n $this->parameters = $parameters;\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix the config to have names of managers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mcfedr\\QueueManagerBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Configur... | php | chosen |
[
{
"from": "system",
"value": "Fix missing default session settings prior to the installation process\n\nCloses #440\nCherry-picked from: croogo/croogo@f51f0852abbf\n"
},
{
"from": "human",
"value": "<?php\n\nif (file_exists(APP . 'Config' . DS . 'croogo.php')) {\n\trequire APP . 'Config' . DS . ... | php | chosen |
[
{
"from": "system",
"value": "Set link's \"automatic\" field to TRUE by default\n"
},
{
"from": "human",
"value": "<?php\n\nclass Admin_Form_Link extends CM_Form_Abstract {\n\n\tpublic function setup () {\n\t\t$this->registerField('label', new CM_FormField_Text());\n\t\t$this->registerField('url... | php | chosen |
[
{
"from": "system",
"value": "Fix checking correct component class\n"
},
{
"from": "human",
"value": "<?php\nclass Kwc_Directories_TopChoose_Component extends Kwc_Directories_Top_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['s... | php | chosen |
[
{
"from": "system",
"value": "Read and write as binary.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Resource;\nuse Orbt\\ResourceMirror\\Exception\\ReplicatorException;\n\n/**\n * Basic replicator implementation using file operations to replicate.\n */\nclass File... | php | chosen |
[
{
"from": "system",
"value": "Fix page type identifier generator\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Soda\\Cms\\Models;\n\nuse Exception;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\nuse ... | php | chosen |
[
{
"from": "system",
"value": "Add placeholder White Papers widget\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Secondary sidebar template.\n *\n * @package BLR_Base_Theme\\Templates\n */\n\n?>\n\n<?php dynamic_sidebar( 'sidebar-secondary' ); ?>\n"
},
{
"from": "gpt",
"value": "<... | php | chosen |
[
{
"from": "system",
"value": "Add missing form type mapping in the form utils\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace LAG\\AdminBundle\\Utils;\n\nuse Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse Symfony\... | php | chosen |
[
{
"from": "system",
"value": "Use of @component for buttons in form\n"
},
{
"from": "human",
"value": "@section('js')\n <script src=\"{{ asset('components/ckeditor/ckeditor.js') }}\"></script>\n@endsection\n\n@include('core::admin._buttons-form')\n\n{!! BootForm::hidden('id') !!}\n\n@include(... | php | chosen |
[
{
"from": "system",
"value": "Use CC template for oneclick payments"
},
{
"from": "human",
"value": "<?php\n/**\n * ######\n * ######\n * ############ ####( ###### #####. ###### ############ ############\n * ############# #####( ###### #####. ... | php | chosen |
[
{
"from": "system",
"value": "Test that getZipCodeData return null when not found\n"
},
{
"from": "human",
"value": "<?php\nnamespace SepomexPhpTests\\Cases;\n\nuse SepomexPhp\\PdoGateway\\Gateway;\nuse SepomexPhp\\SepomexPhp;\nuse SepomexPhpTests\\TestCase;\n\nclass ZipCodeDataTest extends Test... | php | chosen |
[
{
"from": "system",
"value": "Use site's region in admin page\n"
},
{
"from": "human",
"value": "<?php\n\nclass Admin_Page_Abstract extends CM_Page_Abstract {\n\n /** @var Denkmal_Params */\n protected $_params;\n\n /** @var Denkmal_Model_Region|null */\n protected $_region;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Implement lcfirst for PHP < 5.3\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('curl_init')) {\n throw new Exception('Userbin needs the CURL PHP extension.');\n}\nif (!function_exists('json_decode')) {\n throw new Exception('Userbin needs the JSO... | php | chosen |
[
{
"from": "system",
"value": "Add sections to connection request\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Transport\\Entity\\Schedule;\n\nuse Transport\\Entity;\n\n/**\n * Connection\n */\nclass Connection\n{\n public $date;\n\n /**\n * @var Transport\\Entity\\Schedule\\St... | php | chosen |
[
{
"from": "system",
"value": "Increase items per blog (archive) page.\n"
},
{
"from": "human",
"value": "<?php\n\n/* -----------------------------------------------------------------------------\nArchive pagination\n--------------------------------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Use resources for harvest reports"
},
{
"from": "human",
"value": "<?php\r\nnamespace OGetIt\\HarvestReport;\r\n\r\nclass OGetIt_HarvestReport {\r\n\r\n\t/**\r\n\t * @var string\r\n\t */\r\n\tprivate $_coordinates;\r\n\r\n\t/**\r\n\t * @var integer\r\n\t */\r\n\tpri... | php | chosen |
[
{
"from": "system",
"value": "[Tests] Disable template field test for now"
},
{
"from": "human",
"value": "<?php\nnamespace Bolt\\Tests\\Storage;\n\nuse Bolt\\Legacy\\Storage;\nuse Bolt\\Tests\\BoltUnitTest;\n\n/**\n * Class to test src/Storage/Repository and field transforms for load and hydrat... | php | chosen |
[
{
"from": "system",
"value": "Use `RuntimeException` instead of `UnexpectedValueException` when zip extension is not enabled"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be... | php | chosen |
[
{
"from": "system",
"value": "Add more properties and doc blocks\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TomIrons\\Tuxedo\\Mailables;\n\nuse TomIrons\\Tuxedo\\Message;\nuse TomIrons\\Tuxedo\\TuxedoMailable;\n\nclass InvoiceMailable extends TuxedoMailable\n{\n use Message;\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Disable revision support for field collection items temporarily.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AbleCore\\Fields\\FieldHandlerTypes;\n\nuse AbleCore\\Fields\\FieldValueHandler;\nuse AbleCore\\Fields\\FieldValueTypes\\EntityReferenceFieldValue;... | php | chosen |
[
{
"from": "system",
"value": "Add _cc parameter to tracking codes.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Neuron\\Net;\n\nuse Neuron\\Config;\n\n/**\n * Class QueryTrackingParameters\n * @package Neuron\\Net\n */\nclass QueryTrackingParameters\n{\n\t/**\n\t * @return QueryTracking... | php | chosen |
[
{
"from": "system",
"value": "Support gateway initialisation of the custom site name.\nAlso remove references to the unused (and unnecessary?) CompletePurchaseRequest.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Gate2shop;\n\nuse Omnipay\\Common\\AbstractGateway;\nuse Omnipay\... | php | chosen |
[
{
"from": "system",
"value": "Clean up overseer modules slightly and provide a throttling support method\n\nSummary:\nRef T12298. Make it slightly easier to write overseer modules:\n\n - You don't need to implement shouldReloadDaemons(), since you can now just implement shouldWakePool() and get useful beha... | php | chosen |
[
{
"from": "system",
"value": "Fix (?) PASSWORD_DEFAULT for PHP < 5.5\n"
},
{
"from": "human",
"value": "<?php\n\n//echo \"RUNNING (\". __FILE__ .\")!!!!\\n\";\n\n// set the timezone to avoid spurious errors from PHP\ndate_default_timezone_set(\"America/Chicago\");\n\nif(file_exists(__DIR__ .'/..... | php | chosen |
[
{
"from": "system",
"value": "Fix for localized dates (month names with unicode)\n"
},
{
"from": "human",
"value": "<?php\n\nclass CRM_Logviewer_Page_LogViewer extends CRM_Core_Page {\n\n public function run() {\n $this->assign('currentTime', date('Y-m-d H:i:s'));\n $file_log = CRM_Core_E... | php | chosen |
[
{
"from": "system",
"value": "Make incrementing tests check the cache was actually used, too\n"
},
{
"from": "human",
"value": "<?php\n\nclass IncrementingTest extends RememberTestCase\n{\n public function testIncrementingModelsPopsCache()\n {\n $group = Group::create(['id' => stati... | php | chosen |
[
{
"from": "system",
"value": "Validate does not need clientToken\n"
},
{
"from": "human",
"value": "<?php\nrequire 'config.php';\n\n$input = file_get_contents('php://input');\n$json = json_decode($input, true);\n\nif(isset($json['accessToken']) && isset($json['clientToken'])) {\n\t$mysql = new m... | php | chosen |
[
{
"from": "system",
"value": "Configure a title for the subscribe page\n"
},
{
"from": "human",
"value": "@extends('layout.master')\n\n@section('description', trans('cachet.meta.description.subscribe', ['app' => $site_title]))\n\n@section('content')\n<div class=\"pull-right\">\n <p><a class=\... | php | chosen |
[
{
"from": "system",
"value": "Use array_walk instead of array_map\nit's faster, as it avoids copying the arrays.\n"
},
{
"from": "human",
"value": "<?php \nnamespace Repositories;\n\nclass ItemCache extends Item \n{\n const CACHE_KEY = \"itemSearch\";\n public function where($text)\n {\n $... | php | chosen |
[
{
"from": "system",
"value": "Fix phpdoc return tag in logger pluggin\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2011 Fabien Potencier\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed w... | php | chosen |
[
{
"from": "system",
"value": "Add 'Prophecy' namespace to the scoping whitelist\n\nIn oder to setup or check test doubles with Prophecy it has to be\npart of the public API of PHPUnit, even it not provided by PHPUnit\nitself.\n\nIssues:\n- #3578 - Scoped PHAR Prophecy issue\n"
},
{
"from": "human",
... | php | chosen |
[
{
"from": "system",
"value": "Load script will put scripts in header\n"
},
{
"from": "human",
"value": "<?php\n// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:\n// +-------------------------------------------------------------------------+\n// | Author: Armen Baghumian <armen@Open... | php | chosen |
[
{
"from": "system",
"value": "Apply Style CI Path for Changes.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TCG\\Voyager\\Tests;\n\nuse TCG\\Voyager\\Models\\Page;\nuse Illuminate\\Support\\Facades\\Auth;\n\nclass PageTest extends TestCase\n{\n public function setUp()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove no longer existing files from the cache when scanning external storage\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n ... | php | chosen |
[
{
"from": "system",
"value": "Use injected Imagick instance for loading\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE fil... | php | chosen |
[
{
"from": "system",
"value": "BB-2140: Improve DataProviders\n- removed useless comment\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Component\\Layout\\Tests\\Unit;\n\nclass AbstractDataProviderTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @expectedException \\BadMe... | php | chosen |
[
{
"from": "system",
"value": "Change PHP-only to curly brackets format\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Default hero template file.\n *\n * This is the default hero image for page templates, called\n * 'block'. Strictly air specific.\n *\n * @package air-light\n */\n\n// Block s... | php | chosen |
[
{
"from": "system",
"value": "Add url rewrite for if a product is added below a grouped product\n"
},
{
"from": "human",
"value": "<?php\n\nclass GroupedProduct_CatalogueProduct extends DataExtension {\n \n private static $has_one = array(\n \"ProductGroup\" => \"Product\"\n );\n... | php | chosen |