conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add API endpoint to API keys page\n\n// TODO - localize it\n"
},
{
"from": "human",
"value": "@extends('layouts/default')\n\n{{-- Page title --}}\n@section('title')\n Personal API Keys\n @parent\n@stop\n\n{{-- Page content --}}\n@section('content')\n @if (... | php | chosen |
[
{
"from": "system",
"value": "Use the actual primary key value instead of the key name for updating/deleting.\n"
},
{
"from": "human",
"value": "<?php namespace Picqer\\Financials\\Exact\\Persistance;\n\ntrait Storable {\n\n public function save()\n {\n if ($this->exists())\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove unecessary initialization of case insensitive instance variable,\nalready handled in parent class"
},
{
"from": "human",
"value": "<?php\nnamespace Stringizer\\Transformers;\n\nuse Stringizer\\Transformers\\TransformerCaseInsensitive;\n\n/**\n * StringFirstOc... | php | chosen |
[
{
"from": "system",
"value": "Rename options getByKey() method to get()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Milax\\Mconsole\\Core\\API;\n\nuse Milax\\Mconsole\\Contracts\\API\\ModelAPI;\n\nclass Options extends ModelAPI\n{\n /**\n * Get option value by its key\n * \n... | php | chosen |
[
{
"from": "system",
"value": "Trim IP before doing long2ip because of possible failures\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace NemC\\IP2LocLite\\Facades;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass IP2LocLite extends Facade\n{\n public static function get($ip)\n {\... | php | chosen |
[
{
"from": "system",
"value": "Add CAS methods to Null memcache\n\nThis prevents breaking ownCloud completely when memcache is not enabled\nand the locking code is triggered\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Morris Jobke <hey@morrisjobke.de>\n * @author Robin McCorkell <rm... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in parameter name.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Slim\\Middleware;\n\n/**\n * HTTP Basic Authentication\n *\n * Provides HTTP Basic Authentication on given routes\n *\n * @package Slim\n * @author Mika Tuupola <tuupola@appelsi... | php | chosen |
[
{
"from": "system",
"value": "Fix Attempting to Display Blank Errors\n\nFix attempting to display blank errors in single pages\n\n- This is particularly apparent with the newer `Controller::$error`\n property.\n\n\nFormer-commit-id: 19cb81a07b9cd71433f633c539a2d2759121b282"
},
{
"from": "human",
... | php | chosen |
[
{
"from": "system",
"value": "Fix issue in relations on classes with composite keys\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Flooris\\Prestashop\\Traits;\n\ntrait CompositeKeyModelTrait\n{\n /**\n * Set the keys for a save update query.\n *\n * @param \\Illuminate\\D... | php | chosen |
[
{
"from": "system",
"value": "Fix indentation on comments block"
},
{
"from": "human",
"value": "<?php\n/**\n * The template for displaying all pages.\n *\n * This is the template that displays all pages by default.\n * Please note that this is the WordPress construct of pages\n * and that other... | php | chosen |
[
{
"from": "system",
"value": "Remove search form on search results template\n"
},
{
"from": "human",
"value": "<section class=\"no-results not-found\">\n <header class=\"page-header\">\n <h1 class=\"page-title\"><?php _e( 'Nothing Found', 'twentyseventeen' ); ?></h1>\n\t</header>\n\t<d... | php | chosen |
[
{
"from": "system",
"value": "Set command description using translation key\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @file\n * Contains \\Drupal\\AppConsole\\Command\\ContainerDebugCommand.\n */\n\nnamespace Drupal\\AppConsole\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputIn... | php | chosen |
[
{
"from": "system",
"value": "FIX: Hide openstreetmap id, only required for scripting\n"
},
{
"from": "human",
"value": "<?php \n\nclass OSMPointOfInterestExtension extends DataExtension {\n\tprivate static $db = array(\n\t\t// No Big Int support yet so use big decimal\n\t\t'OpenStreetMapID' => ... | php | chosen |
[
{
"from": "system",
"value": "Adhoc: Use the from set by prepare\n\nMissed this when I submitted my last AdHoc PR. Should only set\nfrom once: in prepare. Not override it with an (incorrect) string right\nafter.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Moxl\\Xec\\Action\\AdHoc;\n\nu... | php | chosen |
[
{
"from": "system",
"value": "Update unit test for AgentsDescription to include list operation.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace GrooveHQ\\Test\\Service;\n\nuse GrooveHQ\\Service\\AgentsDescription;\n\nclass AgentsDescriptionTest extends \\PHPUnit_Framework_TestCase\n{\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Implement the reset function of the data collector\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\DataCollector;\n\nuse SpoonDatabase;\nuse Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector;\nuse Symfony\\Component\\HttpFoundation\\Request;... | php | chosen |
[
{
"from": "system",
"value": "Fix in 'modules' project for module class name to module base namespace for setting up routing.\n"
},
{
"from": "human",
"value": "<?php\n\n$router = $di->get(\"router\");\n\nforeach ($application->getModules() as $key => $module) {\n $namespace = str_replace('Mo... | php | chosen |
[
{
"from": "system",
"value": "Fix the home button link.\n"
},
{
"from": "human",
"value": "<script src=\"js/updater.js\"></script>\n<?php\ninclude_once 'core.php';\ninclude_once 'db.php';\n\n?>\n<a href=\"../\"><img class=\"logo\" style=\"margin-top:5px;\" src=\"files/logo.png\" alt=\"Hallo\"/><... | php | chosen |
[
{
"from": "system",
"value": "Fix region and removing version in file\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @copyright Federico Nicolás Motta\n * @author Federico Nicolás Motta <fedemotta@gmail.com>\n * @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix up \"artisan test\" help message\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * A Command that runs all of the available tests and outputs\n * the results to the console.\n */\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\Inp... | php | chosen |
[
{
"from": "system",
"value": "Fix compatibility with PHP 5.3\n\nUsing inside of anonymous functions is not supported in PHP 5.3\n-> Injected reference to test object into anonymous function (testValidates)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ulrichsg\\Getopt;\n\nclass Argument... | php | chosen |
[
{
"from": "system",
"value": "Remove the use of deprecated method\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Este archivo contiene toda la logica de negocio asociada a la ropa que se le entrega\n * a cada trabajador de una relacion laboral.\n *\n * PHP versions 5\n *\n * @filesource\n * @... | php | chosen |
[
{
"from": "system",
"value": "Make abstract test case class abstract\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Laravel Pusher.\n *\n * (c) Vincent Klaiber <hello@vinkla.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha... | php | chosen |
[
{
"from": "system",
"value": "Add PATH to the environment\n"
},
{
"from": "human",
"value": "<?php\nApp::uses('AssetFilter', 'AssetCompress.Lib');\n\n/**\n * Pre-processing filter that adds support for SCSS files.\n *\n * Requires ruby and sass rubygem to be installed\n *\n * @see http://sass-la... | php | chosen |
[
{
"from": "system",
"value": "Remove auto WARN-severity for nonexistent exception\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_Exception_Nonexistent extends CM_Exception {\n\n\tprotected $_severity = self::WARN;\n\n}\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CM_Exceptio... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary section in record-list\n"
},
{
"from": "human",
"value": "<ul class=\"list-group\">\n @forelse($student->records as $record)\n <li class=\"list-group-item clearfix\">\n <div class=\"float-xl-left\">\n <h4 class=... | php | chosen |
[
{
"from": "system",
"value": "Change needed to make SpecificPricingExtension work for a selected group\n"
},
{
"from": "human",
"value": "<?php\n\nclass SpecificPricingExtension extends DataExtension{\n\t\n\tprivate static $has_many = array(\n\t\t\"SpecificPrices\" => \"SpecificPrice\"\n\t);\n\n... | php | chosen |
[
{
"from": "system",
"value": "Allow to include add button\n"
},
{
"from": "human",
"value": "<?php\n\n$title = Orchestra\\Site::get('title');\n$description = Orchestra\\Site::get('description'); ?>\n\n<div class=\"page-header\">\n\t<h2>{{ $title ?: 'Something Awesome' }}\n\t\t@if ( ! empty... | php | chosen |
[
{
"from": "system",
"value": "Change methods to get user primary key field name and table name, use helper classes to create user object\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRoles... | php | chosen |
[
{
"from": "system",
"value": "ProxyExtensionBundle: Remove not referenced class use. And not used.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Provide a Proxy for third party APIs.\n */\n\nnamespace Graviton\\ProxyBundle;\n\nuse Graviton\\BundleBundle\\GravitonBundleInterface;\nuse Gravito... | php | chosen |
[
{
"from": "system",
"value": "Remove add new flowchart page from modeladmin\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Graphical interface for creating basic flowcharts\n */\nclass FlowchartAdmin extends ModelAdmin {\n\n \tprivate static $managed_models = array('FlowchartPage','FlowState'... | php | chosen |
[
{
"from": "system",
"value": "Rewrite controller for Dependency Injection.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace My\\TestBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass LightController extends Controller\n{\n public function switch... | php | chosen |
[
{
"from": "system",
"value": "Fix last namespace typos and casing (Rmiller -> RMiller)\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace RMiller\\BehatSpec\\Extension\\PhpSpecRunExtension\\Process\\CommandRunner;\n\nuse RMiller\\BehatSpec\\Extension\\PhpSpecRunExtension\\Process\\CachingExec... | php | chosen |
[
{
"from": "system",
"value": "Add a message if no options are provided to update\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lstr\\DnsmasqMgmt\\Command;\n\nuse Exception;\n\nuse Lstr\\Silex\\App\\AppAwareInterface;\nuse Lstr\\Silex\\App\\AppAwareTrait;\nuse Silex\\Application;\nuse Sym... | php | chosen |
[
{
"from": "system",
"value": "Make foreign keys unsigned for pivot table generation\n"
},
{
"from": "human",
"value": "<?php namespace Way\\Generators\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\In... | php | chosen |
[
{
"from": "system",
"value": "Refactor: Move use statement to next line\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Bootstrap;\n\nuse App\\Constants\\Services;\nuse League\\Fractal\\Manager as FractalManager;\nuse Phalcon\\Config;\nuse Phalcon\\Di\\Injectable;\nuse Phalcon\\DiInte... | php | chosen |
[
{
"from": "system",
"value": "Change image form type \"file\" field type to \"file\".\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full... | php | chosen |
[
{
"from": "system",
"value": "Create sections for htmlhead and scripts\n\nMake it possible to inject additional files from other views"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<!--\nThis is a starter template page. Use this page to start your new project from\nscratch. This page gets ri... | php | chosen |
[
{
"from": "system",
"value": "Add service configuration to the Album module\n"
},
{
"from": "human",
"value": "<?php\nnamespace Album;\n\nuse Zend\\Mvc\\ModuleRouteListener;\nuse Zend\\Mvc\\MvcEvent;\n\nclass Module\n{\n public function getAutoloaderConfig()\n {\n return array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Make travis run all migrations before running tests\n"
},
{
"from": "human",
"value": "<?php\n function migrate( $sql_array = [] ) {\n require_once '../../config/config-local.php';\n require_once '../../models/database.php';\n require_once '.... | php | chosen |
[
{
"from": "system",
"value": "Fix functions into Session class\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n ----------------------------------------------------------------------\n FusionInventory\n Copyright (C) 2010-2011 by the FusionInventory Development Team.\n\n http://www.fusio... | php | chosen |
[
{
"from": "system",
"value": "Fix for the previous commit\n"
},
{
"from": "human",
"value": "<?php\n\nclass ncChangeLogEntryPeer extends PluginncChangeLogEntryPeer\n{\n protected static function convertToAdapter($entries)\n {\n if (is_array($entries))\n {\n $res = array();\n fo... | php | chosen |
[
{
"from": "system",
"value": "Use more descriptive example passphrase\n"
},
{
"from": "human",
"value": "<?php\n\n// A very simple helper script used to generate self-signed certificates.\n// Accepts the CN and an optional passphrase to encrypt the private key.\n//\n// $ php examples/99-generate... | php | chosen |
[
{
"from": "system",
"value": "Fix query to fetch last import\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jh\\Import\\Entity;\n\nuse Magento\\Framework\\Model\\ResourceModel\\Db\\AbstractDb;\nuse Magento\\Framework\\Model\\ResourceModel\\Db\\Context;\n\n/**\n * @author Aydin Hassan <ayd... | php | chosen |
[
{
"from": "system",
"value": "FIX: Move allowed children to YML file\n"
},
{
"from": "human",
"value": "<?php\n/**\n* Defines the SupportingProjectPage page type - initial code created by ss generator\n*/\nclass PageWithImageFolder extends PageWithImage implements SeoInformationProvider {\n\n\ts... | php | chosen |
[
{
"from": "system",
"value": "Add Support for boolean as to string into yaml extension\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 v... | php | chosen |
[
{
"from": "system",
"value": "Create alias for binding in IoC container\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace KeyCDN;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse KeyCDN\\Facades\\KeyCDNFacade;\n\n/**\n * Class KeyCDNServiceProvider\n * @package KeyCDN\n */\nclass KeyCDNServ... | php | chosen |
[
{
"from": "system",
"value": "Solve \" undefined variable options\"\n\nProblem: Undefined variable options . On command\n\"php artisan ng:directive name\".\nSolution : changed !$options['attribute'] to\nisset($options['attribute'])\n"
},
{
"from": "human",
"value": "@if(!$options['attribute']... | php | chosen |
[
{
"from": "system",
"value": "Revert \"* adding a method for cleaning the uris\"\n\nThis reverts commit 8841631a74b0e67c54e86466b16772f2898740ec.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @package vsc_infrastructure\n * @author marius orcsik <marius@habarnam.ro>\n * @date 10.04.16\n */\n... | php | chosen |
[
{
"from": "system",
"value": "Disable error handler middleware by default.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tools\\TestSuite;\n\nuse Cake\\TestSuite\\IntegrationTestCase as CakeIntegrationTestCase;\n\n/**\n * Tools TestCase class\n */\nabstract class IntegrationTestCase exte... | php | chosen |
[
{
"from": "system",
"value": "Swap order to make more sense.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass DropFileIdFromReactions extends Migration\n{\n /**\n * Run the migrations.\n ... | php | chosen |
[
{
"from": "system",
"value": "Revert reference database definition to c61cdbcd\n"
},
{
"from": "human",
"value": "<?php\n\n$database = [\n 'adapter' => 'mysql',\n 'host' => '127.0.0.1',\n 'port' => 3306,\n 'username' => 'excession',\n 'password' => 'excession',\n 'dbname' => 'e... | php | chosen |
[
{
"from": "system",
"value": "Add test to check dummy url mime type"
},
{
"from": "human",
"value": "<?php\nnamespace AssetManager\\Service;\n\nuse PHPUnit_Framework_TestCase;\n\nclass MimeResolverTest extends PHPUnit_Framework_TestCase\n{\n public function testGetMimeType()\n {\n /... | php | chosen |
[
{
"from": "system",
"value": "Make sure we don't return spaces in \"string\" kind\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zizaco\\FactoryMuff\\Kind;\n\nuse Zizaco\\FactoryMuff\\Kind;\n\nclass String extends Kind\n{\n public function generate()\n {\n $faker = \\Faker\\Factory::... | php | chosen |
[
{
"from": "system",
"value": "Use curl instead of wget, seems to be more ubiquitous\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dock\\Installer\\System\\Linux;\n\nuse Dock\\Installer\\SoftwareInstallTask;\n\nclass Docker extends SoftwareInstallTask\n{\n /**\n * {@inheritdoc}\n ... | php | chosen |
[
{
"from": "system",
"value": "Include autoload.php either from this vendor/ or from project's vendor/\n"
},
{
"from": "human",
"value": "#!/usr/bin/env php\n<?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n$bootloader = new CM_Bootloader(dirname(__DIR__) . '/');\n$bootloader->lo... | php | chosen |
[
{
"from": "system",
"value": "Fix method signature in DocBlock\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Support\\Facades;\n\n/**\n * @method static string current()\n * @method static string full()\n * @method static string previous($fallback = false)\n * @method static ... | php | chosen |
[
{
"from": "system",
"value": "Fix CPU always showing 100%\n"
},
{
"from": "human",
"value": "<?php\n\nfunction collect_cpuUsage($debug, $log) {\n $usage = explode(\" \", exec('vmstat 2 2'));\n\t\n\t// Get CPU usage\n\t$cpu = 100 - $usage[43];\n\t\n\t// Get WA CPU usage\n\t$wa = $usage[44];\n\... | php | chosen |
[
{
"from": "system",
"value": "Include sermon comments for API\n"
},
{
"from": "human",
"value": "<?php namespace Bishopm\\Connexion\\Repositories;\n\nuse Bishopm\\Connexion\\Repositories\\EloquentBaseRepository;\n\nclass SeriesRepository extends EloquentBaseRepository\n{\n public function fin... | php | chosen |
[
{
"from": "system",
"value": "Remove ajax post from group edit\n"
},
{
"from": "human",
"value": "@extends('maintenance::layouts.admin')\n\n@section('title', 'Edit Group')\n\n@section('content')\n\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n\n <div cla... | php | chosen |
[
{
"from": "system",
"value": "Add to console support provider.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Foundation\\Providers;\n\nclass ConsoleSupportProvider extends ServiceProvider {\n\n\t/**\n\t * The provider class names.\n\t *\n\t * @var array\n\t */\n\tprotected $prov... | php | chosen |
[
{
"from": "system",
"value": "Fix worker class name for mock\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gourmet\\Dashboard\\TestSuite;\n\nclass WidgetWorkerTestCase extends \\PHPUnit_Framework_TestCase {\n\n/**\n * Widget's name (i.e. Buzzwords)\n *\n * @var string\n */\n\tprotected $... | php | chosen |
[
{
"from": "system",
"value": "Add var for setting relative path to your WP install from the converter\ndir"
},
{
"from": "human",
"value": "<?php\r\n/**\r\n * Constants for accessing the Drupal database\r\n */\r\ndefine( 'DR_HOST', 'localhost' );\r\n\r\nif( isset( $_REQUEST['drupal_db'] ) ) {\r\... | php | chosen |
[
{
"from": "system",
"value": "Move constant field to class constructor"
},
{
"from": "human",
"value": "<?php\n/**\n * Plugin Name: Hackerspace\n *\n * see http://spaceapi.net/documentation#documentation-tab-13\n */\n\nclass SpaceApi\n{\n\n const API_VERSION = '0.13';\n\n\n // get space a... | php | chosen |
[
{
"from": "system",
"value": "Drop example code for deprecated ApcClassLoader\n"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n$loader = require_once(__DIR__ . '/../app/autoload.php');\nrequire_onc... | php | chosen |
[
{
"from": "system",
"value": "Add sport(s) in participant index table\n\n"
},
{
"from": "human",
"value": "<!-- @author Dessauges Antoine -->\n@extends('layout')\n\n@section('content')\n\n\t<div class=\"container\">\n\n\t\t<h1 id=\"titleParticipant\">Participants</h1>\n\n\t\t<table id=\"particip... | php | chosen |
[
{
"from": "system",
"value": "Make it so that the past speakers go from newest to oldest.\n"
},
{
"from": "human",
"value": "<?php\n\nclass Speakers extends Illuminate\\Filesystem\\Filesystem {\n\n public $speakersPath;\n\n public function __construct()\n {\n $this->speakersPath = app_path... | php | chosen |
[
{
"from": "system",
"value": "Use 'initializer' key to set default db adapter."
},
{
"from": "human",
"value": "<?php\nnamespace ZnZend;\n\nclass Module\n{\n public function getAutoloaderConfig()\n {\n return array(\n 'Zend\\Loader\\StandardAutoloader' => array(\n ... | php | chosen |
[
{
"from": "system",
"value": "Add a skeleton class for Uri.\n"
},
{
"from": "human",
"value": "<?PHP\n\nnamespace \\SerendipityHQ\\Framework\\ValueObjects\\ValueObject;\n\nuse \\Zend\\Uri\\Uri as BaseUri;\n\nclass Uri extends BaseUri\n{}\n"
},
{
"from": "gpt",
"value": "<?PHP\n\nname... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in error message\n"
},
{
"from": "human",
"value": "<?php\n/*\n * SolusVM SuspendAccount\n *\n * Suspend VPS instance\n *\n * @package\t\tSolusVM\n * @category\tWHMCS Provisioning Modules\n * @author\t\tTrajche Petrov\n * @link\t\thttps://qbit.solutions/\n*... | php | chosen |
[
{
"from": "system",
"value": "Remove hello warlus, add skeleton call\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace engine\\controllers;\r\n\r\nuse Walrus\\core\\WalrusFrontController as WalrusFrontController;\r\n\r\n/**\r\n * Class HelloController\r\n * @package engine\\controllers\r... | php | chosen |
[
{
"from": "system",
"value": "Add failing test for single-digit colours\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Korobi\\WebBundle\\Test\\Unit;\n\nuse Korobi\\WebBundle\\Parser\\IRCColourParser;\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass IRCColourParserTest e... | php | chosen |
[
{
"from": "system",
"value": "Fix for infinite recursion in recursive partials example.\n"
},
{
"from": "human",
"value": "<?php\n\nclass RecursivePartials extends Mustache {\n\tprotected $_partials = array(\n\t\t'child' => \"* {{ name }}\",\n\t);\n\n\tpublic $name = 'George';\n\tpublic $child ... | php | chosen |
[
{
"from": "system",
"value": "Fix wrong permissions. Admins couldnt have access to AdminController\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GN... | php | chosen |
[
{
"from": "system",
"value": "Add missing authorization in some places\n\nMissed the headers count check.\n"
},
{
"from": "human",
"value": "<?php\n $authorization = '';\n\n if ($route['authenticated']) {\n $authorization .= ' -H \"Authorization: Bearer {{token}}\"';\n\n i... | php | chosen |
[
{
"from": "system",
"value": "Revert \"No fatal when not requiring Cat.php from Animal.php\"\n\nRe-introduce fatal error.\n\nThis reverts commit 9b1c11819d8b65ecfc81a787067b51ab6258e4ce.\n"
},
{
"from": "human",
"value": "<?php\n\necho \"Animal.php\\n\";\n\nclass Animal extends Creature\n{\n\n}\... | php | chosen |
[
{
"from": "system",
"value": "Add test case for getTables method\n"
},
{
"from": "human",
"value": "<?php\nuse Maghead\\Testing\\BaseTestCase;\nuse Maghead\\Testing\\ModelTestCase;\nuse Maghead\\TableParser\\TableParser;\n\n/**\n * @group table-parser\n */\nclass TableParserTest extends ModelTes... | php | chosen |
[
{
"from": "system",
"value": "CC-2279: Upgrade script for converting stor directory to new format\n\n-almost there...\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace DoctrineMigrations;\n\n/*\nupdate cc_files table to include to \"directory\" column as well as add foreign key relation to\n... | php | chosen |
[
{
"from": "system",
"value": "Remove throttle limit on API"
},
{
"from": "human",
"value": "<?php namespace GeneaLabs\\LaravelGovernor\\Providers;\n\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass Route extends ServiceProvider\n{\n protected ... | php | chosen |
[
{
"from": "system",
"value": "Fix for null values in Voice events\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Nexmo\\Webhook;\n\nuse PDO;\nuse Zend\\Diactoros\\ServerRequestFactory;\nuse Psr\\Http\\Message\\ServerRequestInterface;\n\nabstract class Factory\n{\... | php | chosen |
[
{
"from": "system",
"value": "Correct pbm with empty gtu\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This class has been auto-generated by the Doctrine ORM Framework\n */\nclass GtuTable extends DarwinTable\n{\n /* function witch return an array of countries sorted by id\n @ListId an a... | php | chosen |
[
{
"from": "system",
"value": "Remove alias from service provider.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Support;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Foundat... | php | chosen |
[
{
"from": "system",
"value": "Test returning a json response.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace TrueApex\\ExpenseBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass ApiController exte... | php | chosen |
[
{
"from": "system",
"value": "Return an empty Help setting object for not authenticated user. Previously the help setting was loaded as the user will always be authenticated, this created error in installation wizard\n"
},
{
"from": "human",
"value": "<?php\n\nclass afWidgetHelpSettingsPeer exte... | php | chosen |
[
{
"from": "system",
"value": "Update the getting started guide\n"
},
{
"from": "human",
"value": "<h3>Main Seed Include:</h3>\n<p>\n\tThis on line gets Seed up and running. It should be included at the very top \n\tof all Seed pages, before other code:\n</p>\n<code>\n\t<?php include('<?php ech... | php | chosen |
[
{
"from": "system",
"value": "Remove key from toList() method in LocalitiesCollection class\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Galahad\\LaravelAddressing\\Collection;\n\nuse Galahad\\LaravelAddressing\\Entity\\Locality;\n\n/**\n * Class LocalityCollection\n *\n * @package Gala... | php | chosen |
[
{
"from": "system",
"value": "[Form] Add option \"prototype\" defaulting to true.\n\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the full copyright and license informat... | php | chosen |
[
{
"from": "system",
"value": "Add a newline after badges\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace donatj\\MDDoc\\Documentation;\n\nuse donatj\\MDDom\\Anchor;\nuse donatj\\MDDom\\Image;\n\nclass Badge extends AbstractDocPart {\n\n\tpublic function output( $depth ) {\n\t\t$img = new I... | php | chosen |
[
{
"from": "system",
"value": "Fix PHP notice on query parameter without equals sign\n\n"
},
{
"from": "human",
"value": "<?\n/*\n Add license block if adding additional code\n*/\n\nclass Zotero_URL {\n\t/**\n\t * By Evan K on http://us.php.net/manual/en/function.parse-str.php\n\t */\n\tpublic... | php | chosen |
[
{
"from": "system",
"value": "Include debugging on test REST API\n"
},
{
"from": "human",
"value": "<?php\nrequire_once('phpunit-config.php');\n\n// Get MarkLogic version for skipping tests\n$serverConfig = $mlphp->getServerConfig();\n$mlphp->config['mlversion'] = $serverConfig['version'];\n\n/... | php | chosen |
[
{
"from": "system",
"value": "[GitHub] Use API v3 URL for accessing user data"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the KnpOAuthBundle package.\n *\n * (c) KnpLabs <hello@knplabs.com>\n *\n * For the full copyright and license information, please view the LICENSE\... | php | chosen |
[
{
"from": "system",
"value": "Reorder dashboard widget interface methods.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright a... | php | chosen |
[
{
"from": "system",
"value": "Test funcional de carga de la pagina principal\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Tests\\AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\n\nclass DefaultControllerTest extends WebTestCase\n{\n public function ... | php | chosen |
[
{
"from": "system",
"value": "Change interface, make it populateable\n"
},
{
"from": "human",
"value": "<?php namespace Aedart\\Scaffold\\Contracts\\Templates;\n\nuse Aedart\\Model\\Contracts\\Strings\\IdAware;\nuse Aedart\\Model\\Contracts\\Strings\\SourceAware;\n\n/**\n * Template\n *\n * This... | php | chosen |
[
{
"from": "system",
"value": "Load the model only when necessary"
},
{
"from": "human",
"value": "<?php\n\nclass newpostcont extends CI_Controller{\n\n\tpublic function __construct(){\n\n\t\tparent::__construct();\n\n\t\t$this->load->library('session');\n\n\t\t$this->load->helper('url');\n\n\t\t... | php | chosen |
[
{
"from": "system",
"value": "Check if the user variable is null before passing it as the submitter user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace OkulBilisim\\OjsImportBundle\\Importer\\PKP;\n\nuse Ojs\\JournalBundle\\Entity\\Article;\nuse OkulBilisim\\OjsImportBundle\\Importer\\Imp... | php | chosen |
[
{
"from": "system",
"value": "Fix division by zero is not possible\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\n\nclass Category extends Model\n{\n use HasFactory;\n\n protected $table = 'categories';\n\n ... | php | chosen |
[
{
"from": "system",
"value": "Add missing return value in PHPDoc\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Active Collab Authentication project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\Authentication\\Ada... | php | chosen |
[
{
"from": "system",
"value": "Add const for error message of not logged in user\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API;\n\nuse Symfony\\Component\\Config\\Definition\\Exception\\Exception;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Symfony\\Componen... | php | chosen |
[
{
"from": "system",
"value": "Remove spaces at the end of each line for textual content.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace FluxBB\\CommonMark\\Parser\\Inline;\n\nuse FluxBB\\CommonMark\\Common\\Text;\nuse FluxBB\\CommonMark\\Node\\InlineNodeAcceptorInterface;\nuse FluxBB\\Com... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.