conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix an issue where some versions of php need the $path property to be converted to a string.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Swiftmade\\Blogdown\\Commands;\n\nuse Swiftmade\\Blogdown\\Parser;\nuse Illuminate\\Console\\Command;\nuse Swiftmade\\B... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to use a custom driver, in feature manager\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DataSift\\Feature;\n\nuse DataSift\\Feature\\Driver\\DriverManager;\nuse DataSift\\Feature\\Driver\\Services\\DriverInterface;\n\n/**\n * Class FeatureMa... | php | chosen |
[
{
"from": "system",
"value": "Use prefixed properties in .env files\n\nAs mentioned in discussion regarding database config files, BaseConfig\nshould prefer env vars prefixed with the classname (and a dot (.)\nseparator) over env vars using the property name alone.\n"
},
{
"from": "human",
"valu... | php | chosen |
[
{
"from": "system",
"value": "Kill WP comments on blog posts.\n"
},
{
"from": "human",
"value": "<?php while (have_posts()) : the_post(); ?>\n <article <?php post_class(); ?>>\n <header>\n <h1 class=\"entry-title\"><?php the_title(); ?></h1>\n <?php get_template_part('templates/ent... | php | chosen |
[
{
"from": "system",
"value": "Add tests for the __toString method of the File model\n"
},
{
"from": "human",
"value": "<?php\nnamespace Transmission\\Tests\\Model;\n\nuse Transmission\\Model\\File;\nuse Transmission\\Util\\PropertyMapper;\n\n\nclass FileTest extends \\PHPUnit_Framework_TestCase\... | php | chosen |
[
{
"from": "system",
"value": "Change links to button in dashboard.\n"
},
{
"from": "human",
"value": "@extends('layouts.master')\n\n@section('content')\n<section class=\"main-inner\">\n <h2>Dashboard</h2>\n\n\t<p>\n <a href=\"{{ str_replace('http://', 'itpc://', route('podcast', array(... | php | chosen |
[
{
"from": "system",
"value": "Update to use <span> instead of <input> for non-modifiable text.\n"
},
{
"from": "human",
"value": "\n<!-- Sleep so users see the activity indicator -->\n<?php sleep(2); ?>\n\n<ul id=\"stats\" title=\"Stats\">\n <li><a href=\"#usage\">Usage</a></li>\n <li><a h... | php | chosen |
[
{
"from": "system",
"value": "Use the new Admin theme for administration\n"
},
{
"from": "human",
"value": "<?php\n\nView::composer('core::partials.sidebar-nav', 'Modules\\Dashboard\\Composers\\SidebarViewComposer');\n"
},
{
"from": "gpt",
"value": "<?php\n\nView::composer('partials.... | php | chosen |
[
{
"from": "system",
"value": "[IDS] Fix IDs selector count result\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file was delivered to you as part of the Yucca package.\n *\n * (c) Rémi JANOT <r.janot@gmail.com>\n *\n * For the full copyright and license information, please view the LICEN... | php | chosen |
[
{
"from": "system",
"value": "Add options method for form select element\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Select элемент формы\n * @file SelectElement.php\n *\n * PHP version 5.3.9+\n *\n * @author Alexander Yancharuk <alex@itvault.info>\n * @date Чтв Ноя 29 22:09:01 2012... | php | chosen |
[
{
"from": "system",
"value": "Update PicoFarad (session creation improvements)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PicoFarad\\Session;\n\nconst SESSION_LIFETIME = 2678400;\n\n\nfunction open($base_path = '/', $save_path = '')\n{\n if ($save_path !== '') session_save_path($sa... | php | chosen |
[
{
"from": "system",
"value": "Add abstract performFreezen and performUnfreeze methods to trait\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Clippings\\Freezable;\n\n/**\n * @author Haralan Dobrev <hkdobrev@gmail.com>\n * @copyright 2014, Clippings Ltd.\n * @license http://spdx.org/... | php | chosen |
[
{
"from": "system",
"value": "Fix outdated cache after saving tracking codes\n"
},
{
"from": "human",
"value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\nclass Concrete5_Controller_Dashboard_System_Seo_TrackingCodes extends DashboardBaseController {\n\n\tpublic function view() {\n... | php | chosen |
[
{
"from": "system",
"value": "Add get and set methods for a resource.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @package PHPUnit_Helper\n *\n * @author Adamo Crespi <hello@aerendir.me>\n * @copyright Copyright (C) 2016.\n * @license MIT\n */\n\nnamespace SerendipityHQ\\L... | php | chosen |
[
{
"from": "system",
"value": "Update organization image on sync"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Github;\nuse App\\Org;\nuse Illuminate\\Console\\Command;\n\nclass UpdateOrg extends Command\n{\n /**\n * The name and signature of the consol... | php | chosen |
[
{
"from": "system",
"value": "system: Load specific L10n providers in factory\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Factory class for providing Localization implementations\n * @author M2Mobi, Heinz Wiesinger\n */\nclass L10nFactory\n{\n\n /**\n * Instance of the L10nProvide... | php | chosen |
[
{
"from": "system",
"value": "Fix home page url when relinquish front end is set\n"
},
{
"from": "human",
"value": "<?php\n\nfunction jf_template_path() {\n return Wrapper::$main_template;\n}\n\nfunction jf_template_base() {\n return Wrapper::$base;\n}\n\nclass Wrapper {\n /**\n * Stores th... | php | chosen |
[
{
"from": "system",
"value": "Fix automated deployments by actually changing directory\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Console\\Command;\n\nclass SiteDeployCommand extends Command {\n\t/**\n\t * The console command name.\n\t *\n\t * @var string\n\t */\n\tprotected $na... | php | chosen |
[
{
"from": "system",
"value": "Make Dotenv to search for .env file in the document root always\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This helper package makes a database connection for package Kola\\PotatoOrm\\Model.\n *\n * @package Kola\\PotatoOrm\\Helper\\DbConn\n * @author Kolawo... | php | chosen |
[
{
"from": "system",
"value": "Fix a typo, props @billzhong\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: Geo Query\n * Description: Modify the WP_Query to support the geo_query parameter. Uses the Haversine SQL implementation by Ollie Jones.\n * Plugin URI: ht... | php | chosen |
[
{
"from": "system",
"value": "Set non-zero steps for example-icon form\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Form_ExampleIcon extends CM_Form_Abstract {\n\n public function setup() {\n\n $this->registerField('sizeSlider', new CM_FormField_Integer(6, 120, 0));\n $t... | php | chosen |
[
{
"from": "system",
"value": "Remove theme specific code from inlaylist template\n"
},
{
"from": "human",
"value": "<?php\n global $post;\n $items = get_field('items', $module->ID);\n\n $class = '';\n\n switch ($args['id']) {\n case 'content-area':\n $class = 'box-p... | php | chosen |
[
{
"from": "system",
"value": "Use the public facing URL for fetching bundles stored on GitHub.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Laravel\\CLI\\Tasks\\Bundle\\Providers; use Laravel\\Request;\n\ncl... | php | chosen |
[
{
"from": "system",
"value": "PhpDoc: Fix type inconsistencies, put |null last for better readability\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Elcodi package.\n *\n * Copyright (c) 2014 Elcodi.com\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Add necessary behaviors and validation rules.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace common\\models\\comments;\n\nuse yii\\db\\ActiveRecord;\nuse yii\\behaviors\\TimestampBehavior;\nuse yii\\behaviors\\BlameableBehavior;\n\nabstract class Comment exte... | php | chosen |
[
{
"from": "system",
"value": "Add test to check custom environment URL\n"
},
{
"from": "human",
"value": "<?php namespace Worldpay;\n\nclass WorldpayTest extends TestCase {\n\n public function testRequestInstantiation()\n {\n $this->assertInstanceOf('Worldpay\\Request', $this->getWorldpay()... | php | chosen |
[
{
"from": "system",
"value": "Add file header to fixture\n"
},
{
"from": "human",
"value": "<?php\n\nspl_autoload_register(\n function ($class) {\n // No op.\n }\n);\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file is part of phpcq/autoload-validation.\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Modify MockObject namespace in tpye hint comment\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\nnamespace Mihaeu\\TestGenerator;\n\nuse PHPUnit\\Framework\\TestCase;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse Twig\\Template;\nuse T... | php | chosen |
[
{
"from": "system",
"value": "Clean up closed state form.\n"
},
{
"from": "human",
"value": "@if(!setting('enable_voting'))\n <div class=\"wrapper\">\n <h1 class=\"highlighted\">Sign up for updates!</h1>\n <p>Voting is closed, but sign up to be notified when we're ready!</p>\n ... | php | chosen |
[
{
"from": "system",
"value": "Put that editor in a div, editors love divs.\n\n2011-12 Called, they want their meme back.\n"
},
{
"from": "human",
"value": "@section('content')\n<div class=\"container\">\n\n <div class=\"row\">\n <!-- Dummy Add post box -->\n <div class=\"box\">\... | php | chosen |
[
{
"from": "system",
"value": "Fix a test to work with php 5.4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ArgumentsResolver\\Tests;\n\nuse ArgumentsResolver\\UnresolvableArgumentException;\n\nclass UnresolvableArgumentExceptionTest extends \\PHPUnit_Framework_TestCase\n{\n public fu... | php | chosen |
[
{
"from": "system",
"value": "BB-4780: Convert Organization scope to Global in NavigationBundle, remove Website and AccountUser scope from FrontendNavigationBundle\n- removed unused constant\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\NavigationBundle\\DependencyInjection\... | php | chosen |
[
{
"from": "system",
"value": "Add get method to cookie facade.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Support\\Facades;\r\n\r\nclass Cookie extends Facade {\r\n\r\n\t/**\r\n\t * Get the registered name of the component.\r\n\t *\r\n\t * @return string\r\n\t */\r\n\tprotect... | php | chosen |
[
{
"from": "system",
"value": "Fix for very new and empty CMS\n"
},
{
"from": "human",
"value": "<div class=\"row\">\n\t<div class=\"span12\">\n\t\t<div class=\"page-header\">\n\t\t\t<h1>{{ HTML::image('/img/arrow.png', 'arrow', array('title' => 'arrow', 'height' => '45', 'width' => '45')) }} {{ ... | php | chosen |
[
{
"from": "system",
"value": "Add theme set up settings.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Load admin dependencies.\n */\n$tempdir = get_template_directory();\nrequire_once($tempdir.'/admin/init.php');\n\n/**\n * Configure Default Title.\n */\nadd_filter('wp_title', function($t... | php | chosen |
[
{
"from": "system",
"value": "Fix cron, for server information update"
},
{
"from": "human",
"value": "<?php \n\ninclude('../www/config.php');\ninclude('../www/functions.php');\n\ninclude('../www/libs/Db.class.php');\ninclude('../www/libs/Socket.class.php');\ninclude('../www/libs/Server.class.ph... | php | chosen |
[
{
"from": "system",
"value": "Fix all specs failing due to strict types being enabled\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * fil... | php | chosen |
[
{
"from": "system",
"value": "Replace app share with app singleton function for laravel 5.4 support\n"
},
{
"from": "human",
"value": "<?php namespace Dyaa\\Pushover;\n\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass PushoverServiceProvider extends S... | php | chosen |
[
{
"from": "system",
"value": "Set the centered cropper as the default cropper for tests.\n\nThe centered cropper is fast, so this should save time when running tests.\n"
},
{
"from": "human",
"value": "<?php\nrequire_once realpath(__DIR__ . '/../core/slir.class.php');\n\nabstract class SLIRTestC... | php | chosen |
[
{
"from": "system",
"value": "Set deprecated php-ext-zip used class\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: LPALQUILER-11\n * Date: 29/08/2018\n * Time: 17:30.\n */\n\nnamespace Greenter\\Zip;\n\nuse ZipArchive;\n\n/**\n * Class ZipFileDecompress.\n */\nc... | php | chosen |
[
{
"from": "system",
"value": "Fix code examples in PHPDoc\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Fix: Add undefined NOT FOUND response code\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhalconUtils\\Constants;\n\n/**\n * Class ResponseCodes\n * @author Adeyemi Olaoye <yemi@cottacush.com>\n * @package App\\Library\n */\nclass ResponseCodes\n{\n const... | php | chosen |
[
{
"from": "system",
"value": "[console] Remove try/catch to test TravisCI error\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * @file\n * Contains \\Drupal\\Console\\Helper\\HttpClientHelper.\n */\n\nnamespace Drupal\\Console\\Helper;\n\nuse Drupal\\Console\\Helper\\Helper;\nuse GuzzleHttp\\... | php | chosen |
[
{
"from": "system",
"value": "Fix the condition to rebuild the phrase cache\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace wcf\\system\\language\\preload;\n\nuse wcf\\data\\language\\Language;\nuse wcf\\system\\language\\preload\\command\\CachePreloadPhrases;\nuse wcf\\system\\WCF;\n\n/**... | php | chosen |
[
{
"from": "system",
"value": "Add additional processing on text type modifiers\n\n- minLength cannot be higher than maxLength\n\n- minLength, maxLength and length cannot be negative\n\n- minLength defaults to 0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Good\\Rolemodel\\Schema;\n\nuse... | php | chosen |
[
{
"from": "system",
"value": "Contacts: Use appropriate value for menu name\n"
},
{
"from": "human",
"value": "<?php\n\nCroogoCache::config('contacts_view', array_merge(\n\tConfigure::read('Cache.defaultConfig'),\n\tarray('groups' => array('contacts'))\n));\n\nCroogoNav::add('contacts', array(\n... | php | chosen |
[
{
"from": "system",
"value": "Add JSON response to basic auth middleware.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Auth;\n\nclass AuthenticateBasic\n{\n\t/**\n\t * Handle an incoming request.\n\t *\n\t * @param \\Illuminate\\Http\\Request... | php | chosen |
[
{
"from": "system",
"value": "Fix for relationships with dashes on POST|PUT\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Luminary\\Services\\ApiRequest\\Content;\n\nclass Content\n{\n /**\n * The request body content\n *\n * @var array\n */\n protected $content;\n\... | php | chosen |
[
{
"from": "system",
"value": "Rewrite annotations to constructor injection\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Shared\\Middleware;\n\n/**\n * Aura router classes\n */\nuse Aura\\Router\\Matcher;\n\n/**\n * PSR-7 interfaces\n * @see http://www.php-fig.org/psr/psr-7/\n */\nu... | php | chosen |
[
{
"from": "system",
"value": "Fix return type in documentation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace jvwp\\common;\n\nclass Ajax\n{\n\n const WP_AJAX_HOOK_PREFIX = 'wp_ajax_';\n\n /**\n * Gets the action hook string to use, based on the action name that was provided\n ... | php | chosen |
[
{
"from": "system",
"value": "Update database config file to use ENV superglobal\n"
},
{
"from": "human",
"value": "<?php namespace App;\n/**\n * Application data persistence configuration\n */\n\n$db = array();\n$db['enable'] = true;\n$db['driver'] = 'mysql';\n$db['host'] = '127.0.0.1';\n$db['n... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Add documentation for entry point\n"
},
{
"from": "human",
"value": "<?php\nnamespace TYPO3\\SingleSignOn\\Client\\Security\\EntryPoint;\n\n/* *\n * This script belongs to the TYPO3 Flow p... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Remove pre-PHP7 code and avoid __toString deprecation warning\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\Flow\\Reflection;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix broken path on CSV converter form\n"
},
{
"from": "human",
"value": "<?php include 'header_meta_inc_view.php';?>\n\n<?php include 'header_inc_view.php';?>\n\n <div class=\"container\">\n <!-- Example row of columns -->\n\n <div class=\"row\">\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix missing --email before actual email for builder cakephp useradd task\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Qobo\\Robo\\Task\\Cakephp;\n\nuse Robo\\Result;\n\n/**\n * Run CakePHP Migration\n *\n * ```php\n * <?php\n * $this->taskCakephpAdminAdd()\... | php | chosen |
[
{
"from": "system",
"value": "Update service provider to use bindShared.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Asset;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Foundation\... | php | chosen |
[
{
"from": "system",
"value": "Remove persistant conections. Does not seem to work so well\n"
},
{
"from": "human",
"value": "<?php\n\n// Set default settings here. Can be overridden in config.php.\n $settings = array();\n $settings['sqlColor'] = true;\n\n\trequire_once('config.php');\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Add an easy-to-use option for linked list items in backend\n"
},
{
"from": "human",
"value": "<?php\n\n$general_details = array (\n\t\t\n\t\tarray(\n\t\t 'name' => 'posts-header',\n\t\t\t'std' => '',\n\t\t\t'type' => 'textarea',\n\t\t\t'title'... | php | chosen |
[
{
"from": "system",
"value": "Fix missing div on passworded post.\n"
},
{
"from": "human",
"value": "<div id=\"comments\">\n\t<?php if (post_password_required()) { ?>\n\t\t<p>Enter your password to view any comments.</p>\n\t\t<?php return;\n\t} ?>\n\n\t<?php if (have_comments()) { ?>\n\t\t<div i... | php | chosen |
[
{
"from": "system",
"value": "Check and makse sure we have no dispatcher object"
},
{
"from": "human",
"value": "<?php\nnamespace Conduit\\Middleware;\n\nuse Phly\\Conduit\\MiddlewareInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Aura... | php | chosen |
[
{
"from": "system",
"value": "Fix `migrate:reset` args as it doesn't accept --step\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Attributes\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass RollbackCommand extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Add force pull image option in docker sub entity\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package: chapi\n *\n * @author: bthapaliya\n * @since: 2016-10-16\n *\n */\nnamespace Chapi\\Entity\\Marathon\\AppEntity;\n\nuse Chapi\\Entity\\Marathon\\AppEntity\\D... | php | chosen |
[
{
"from": "system",
"value": "Increase default timeout for shell tasks.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Studio\\Shell;\n\nuse Symfony\\Component\\Process\\Process;\n\nclass TaskRunner\n{\n\n public function run($task, $directory = null)\n {\n $process = new Pro... | php | chosen |
[
{
"from": "system",
"value": "Use protocol relative URLs for jQuery CDN to avoid mixed-content errors\n"
},
{
"from": "human",
"value": "<?php\nnamespace DrupalReleaseDate\\Controllers;\n\nuse Silex\\Application;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass Charts\n{\n\n public ... | php | chosen |
[
{
"from": "system",
"value": "Test additional fields and display which entry is problematic.\n"
},
{
"from": "human",
"value": "<?php\n\nclass JsonTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider jsonFileProvider\n */\n public function testJsonFile($file)\n {\n... | php | chosen |
[
{
"from": "system",
"value": "Update to ready the blog plugin for new layout changes.\n"
},
{
"from": "human",
"value": "<?php\n\n/** @var rtSitePage $rt_site_page */\n\nuse_helper('I18N', 'Date', 'rtText')\n\n?>\n\n<div class=\"rt-section rt-site-page\">\n\n <div class=\"rt-section-tools-heade... | php | chosen |
[
{
"from": "system",
"value": "openid: Fix notice about unititialized variable.\n"
},
{
"from": "human",
"value": "<?php\n\n/* Find the authentication state. */\nif (!array_key_exists('AuthState', $_REQUEST) || empty($_REQUEST['AuthState'])) {\n\tthrow new SimpleSAML_Error_BadRequest('Missing man... | php | chosen |
[
{
"from": "system",
"value": "Handle exceptions when cropping images.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Console\\Commands;\n\nuse Rogue\\Models\\Post;\nuse Rogue\\Services\\AWS;\nuse Illuminate\\Console\\Command;\nuse Intervention\\Image\\Facades\\Image;\n\nclass EditI... | php | chosen |
[
{
"from": "system",
"value": "Add nullable validation rule to software version field\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RadDB\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass UpdateMachineRequest extends FormRequest\n{\n /**\n * Determine if t... | php | chosen |
[
{
"from": "system",
"value": "Fix issue with https and Google analytics tracking code.\n\nUse `str::after($string, $after);` to always get the (sub)domain without `http://` or `https://`.\n"
},
{
"from": "human",
"value": "<?php ///////////////////////////////////////////////////////\n// -------... | php | chosen |
[
{
"from": "system",
"value": "Add client options getter and setter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpWatson\\Sdk\\Interfaces;\n\nuse GuzzleHttp\\Client as GuzzleClient;\n\ninterface ClientInterface\n{\n /**\n * Make a HTTP request\n *\n * @param $method\n ... | php | chosen |
[
{
"from": "system",
"value": "Send user information to the state\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Http\\Controllers;\n\nuse Rogue\\Models\\Signup;\nuse Illuminate\\Http\\Request;\nuse Rogue\\Services\\Registrar;\nuse Rogue\\Services\\CampaignService;\n\nclass SignupsC... | php | chosen |
[
{
"from": "system",
"value": "Fix test relying on gateway implementaions\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Omnipay\\Common;\n\nuse Mockery as m;\nuse Omnipay\\TestCase;\n\nclass AbstractGatewayTest extends TestCase\n{\n public function setUp()\n {\n $this->gatewa... | php | chosen |
[
{
"from": "system",
"value": "FIX GridField state was being removed when the config was removed\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/**\r\n * GridField config necessary for managing a SiteTree object.\r\n *\r\n * @package silverstripe\r\n * @subpackage blog\r\n *\r\n * @author Michae... | php | chosen |
[
{
"from": "system",
"value": "Modify the controller default mehtod and view file ffor testing purposes\n"
},
{
"from": "human",
"value": "<?php namespace Controllers;\n\n/**\n *This class loads the purchase history for all user types.\n *@author Geoffrey Oliver <geoffrey.oliver2@gmail.com>\n *@c... | php | chosen |
[
{
"from": "system",
"value": "Add extender for the methods.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TelcoLAB\\MyKad;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MyKadServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap the application services.\n *\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow fallback translation for page path\n"
},
{
"from": "human",
"value": "<?php namespace Anomaly\\PagesModule\\Page\\Command;\n\nuse Anomaly\\PagesModule\\Page\\Contract\\PageInterface;\nuse Anomaly\\PagesModule\\Page\\PageTranslationsModel;\n\n/**\n * Class SetP... | php | chosen |
[
{
"from": "system",
"value": "Clear ncenterlite cache data after deleting old notifications\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This script deletes old notifications.\n * \n * Notifications must be dismissed as quickly as possible in order to prevent\n * the ncenterlite_notify ta... | php | chosen |
[
{
"from": "system",
"value": "Change default zerofill to 5\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddZerofillToSettings extends Migration\n{\n /**\n * Run the migrations.\n *\n... | php | chosen |
[
{
"from": "system",
"value": "Change to use relative class loader require... stupid mistake!\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once '/home/sites/phighcharts/poc/UniversalClassLoader.php';\nuse Symfony\\Component\\ClassLoader\\UniversalClassLoader;\n\n$loader = new UniversalClas... | php | chosen |
[
{
"from": "system",
"value": "Remove check for RAW_POPULATE_POST_DATA for unit tests\n\nWe do have a work around meanwhile and for CLI this is not relevant at all. Can be removedWe do have a work around meanwhile and for CLI this is not relevant at all. Can be removed.\n"
},
{
"from": "human",
"... | php | chosen |
[
{
"from": "system",
"value": "Verify if the surveys will be completed"
},
{
"from": "human",
"value": "<?php\nsession_start();\nrequire_once('config.php');\nif ($_COOKIE['surveyok'] and $_SESSION['surveyok']){\n echo \"The survey will be completed. Please wait the redirecting.. \";\n setcookie... | php | chosen |
[
{
"from": "system",
"value": "Add (untested) redirect page backend\n"
},
{
"from": "human",
"value": "<?php\n\n\n?>\n"
},
{
"from": "gpt",
"value": "<?php\nregister_module([\n\t\"name\" => \"Redirect pages\",\n\t\"version\" => \"0.1\",\n\t\"author\" => \"Starbeamrainbowlabs\",\n\t\"d... | php | chosen |
[
{
"from": "system",
"value": "Call listing/overview service from startpage\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\... | php | chosen |
[
{
"from": "system",
"value": "Fix CS regarding nullable arguments\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * f... | php | chosen |
[
{
"from": "system",
"value": "Add target=\"_blank\" to external links\n"
},
{
"from": "human",
"value": "<?php\n\nfinal class Link {\n private $_href;\n private $_text;\n private $_isExternal;\n private $_classes;\n\n private function __construct($text, $href, $isExternal, $classe... | php | chosen |
[
{
"from": "system",
"value": "Test response object for error responses comming back...\n"
},
{
"from": "human",
"value": "<?php\n\nuse PushOver\\Model\\Response;\n\nclass ResponseTest extends PHPUnit_Framework_TestCase\n{\n /**\n * @var array\n */\n protected $data = null;\n\n p... | php | chosen |
[
{
"from": "system",
"value": "Add formation to the promotion form\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Project\\AppBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsR... | php | chosen |
[
{
"from": "system",
"value": "Add note createAction with sample data\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\Entity\\Note;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Co... | php | chosen |
[
{
"from": "system",
"value": "Move event alias mappings to their components.\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LI... | php | chosen |
[
{
"from": "system",
"value": "CRM-5838: Migrate integration's logic from JMSJobQueue to message queue\n\n - Fixing topics names\n"
},
{
"from": "human",
"value": "<?php\nnamespace Oro\\Bundle\\IntegrationBundle\\Async;\n\nclass Topics\n{\n const SYNC_INTEGRATION = 'oro_integration.sync_integr... | php | chosen |
[
{
"from": "system",
"value": "Add the association 'Tagged' belongs to 'Tags'\n"
},
{
"from": "human",
"value": "<?php\nnamespace Muffin\\Tags\\Model\\Table;\n\nuse Cake\\ORM\\Table;\n\nclass TaggedTable extends Table\n{\n\n /**\n * Initialize table config.\n *\n * @param array $co... | php | chosen |
[
{
"from": "system",
"value": "Return types in manager tests\n"
},
{
"from": "human",
"value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an... | php | chosen |
[
{
"from": "system",
"value": "Test extra-finder class name provider\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Grace\\Test\\ORM;\n\nuse Grace\\ORM\\ClassNameProvider;\n\nclass ClassNameProviderTest extends \\PHPUnit_Framework_TestCase\n{\n /** @var ClassNameProvider */\n protect... | php | chosen |
[
{
"from": "system",
"value": "Replace the lower case module names in the relationship links in API responses by the actual relationship identifiers\n"
},
{
"from": "human",
"value": "<?php\nnamespace Api\\V8\\JsonApi\\Helper;\n\nuse Api\\V8\\Helper\\VarDefHelper;\nuse Api\\V8\\JsonApi\\Response\... | php | chosen |
[
{
"from": "system",
"value": "Add list order action boxoffice endpoint\n"
},
{
"from": "human",
"value": "<?php\n\nrequire '../vendor/autoload.php';\n\n$config = json_decode(file_get_contents(\"config/config.json\"), true);\n$config['root'] = __DIR__;\n$app = new \\Slim\\App([ 'settings' => $con... | php | chosen |
[
{
"from": "system",
"value": "Add request to API auth\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bishopm\\Connexion\\Http\\Controllers\\Auth;\n\nuse JWTAuth;\nuse Tymon\\JWTAuth\\Exceptions\\JWTException;\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Support\\Facades\\Log;... | php | chosen |
[
{
"from": "system",
"value": "Add update information for 1.1.2-dev\n"
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\t'0.8.0' => '1.0.0',\n\t'0.8.1' => '1.0.0',\n\t'0.9.0' => '1.1.0',\n\t'0.9.1' => '1.1.0',\n\t'0.9.2' => '1.1.0',\n\t'0.9.3' => '1.1.0',\n\t'0.9.4' => '1.1.0',\n\t'1.0.0'... | php | chosen |
[
{
"from": "system",
"value": "Fix missing import for activate command.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CommerceGuys\\Platform\\Cli\\Command;\n\n\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass EnvironmentActivateCommand extends EnvironmentCommand\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add deprecation on exception method\n"
},
{
"from": "human",
"value": "<?php\nnamespace Wisembly\\AmqpBundle;\n\nuse Exception;\n//use RuntimeException; // to uncomment when bc is gone\n\nuse Wisembly\\AmqpBundle\\Exception\\MessagingException as BC;\n\nfinal class ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.