conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Revert \"Rebug sur le bouton ajouter quand on est en mode ajout le bouton n'est pas affiché\"\n\nThis reverts commit 039afa977340c9ae0342dd5cf9b03114768a3db1.\n"
},
{
"from": "human",
"value": "<span class=\"ombre\"></span>\n<div id=\"col_scroller\">\n <div id=\"... | php | chosen |
[
{
"from": "system",
"value": "Remove apply from removing listener\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 * file that was distribut... | php | chosen |
[
{
"from": "system",
"value": "Use `html_entity_decode()` for decoding entities in upgrader strings.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WP_CLI;\n\n/**\n * A Upgrader Skin for WordPress that only generates plain-text\n *\n * @package wp-cli\n */\nclass UpgraderSkin extends \\WP_... | php | chosen |
[
{
"from": "system",
"value": "[API][Cart] Add token value based cart context\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 * file that wa... | php | chosen |
[
{
"from": "system",
"value": "Set site tagline variable to display next to the logo\n"
},
{
"from": "human",
"value": "<header class=\"site-header\" role=\"banner\">\n <div class=\"wrap grid\">\n <h1 class=\"logo grid-item one-half\"><a class=\"brand\" href=\"<?= esc_url(home_url('/')); ?>\"... | php | chosen |
[
{
"from": "system",
"value": "Remove enum to gain flexibility"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateBusinessesTable extends Migration {\n\n /**\n * Run the migrations.\n *... | php | chosen |
[
{
"from": "system",
"value": "Add template var for model generation\n"
},
{
"from": "human",
"value": "<?php namespace Way\\Generators\\Commands;\n\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass ModelGeneratorCommand extends... | php | chosen |
[
{
"from": "system",
"value": "Add data available to report template\n\n\ngit-svn-id: 28fe03dfd74dd77dcc8ecfe99fabcec8eed81bba@3509 8555b757-d854-4b86-925a-82fd84c90ff4\n"
},
{
"from": "human",
"value": "<?php\n\n$lines = array();\nforeach($report->logs as $entry) {\n $date = Utilities::format... | php | chosen |
[
{
"from": "system",
"value": "Add primary key in id column in trios table.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTriosTable extends Migra... | php | chosen |
[
{
"from": "system",
"value": "ISDOT-98: Configure Campaign entity merge option&mass action for grid\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\EntityMergeBundle\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\n\nuse Oro\\Bundle\\EntityMergeBundl... | php | chosen |
[
{
"from": "system",
"value": "Set default value for note entity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Civi\\Api4\\Service\\Spec\\Provider;\n\nuse Civi\\Api4\\Service\\Spec\\FieldSpec;\nuse Civi\\Api4\\Service\\Spec\\RequestSpec;\n\n\nclass NoteCreationSpecProvider implements Spec... | php | chosen |
[
{
"from": "system",
"value": "Fix a little last bug.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AdminBundle\\Controller;\n\nuse DemandeSubventionBundle\\Entity\\Demandessubvention;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\VarDumper\\VarDu... | php | chosen |
[
{
"from": "system",
"value": "Add sorted set to key types\n"
},
{
"from": "human",
"value": "<?php declare(strict_types=1);\n\nnamespace hollodotme\\Readis\\Application\\ReadModel\\Constants;\n\nabstract class KeyType\n{\n\tpublic const HASH = 'hash';\n\n\tpublic const LIST = 'list';\n\n\tpu... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing slash from realpath call\n\nrealpath returns paths without trailing slashes. This change makes\nthat clearer in the call\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bugsnag\\BugsnagBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Con... | php | chosen |
[
{
"from": "system",
"value": "Add locking middleware as default\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Madewithlove\\Tactician;\n\nuse League\\Tactician\\CommandBus;\nuse League\\Tactician\\Handler\\CommandHandlerMiddleware;\nuse League\\Tactician\\Handler\\CommandNameExtractor\\C... | php | chosen |
[
{
"from": "system",
"value": "Add unique constraint for nl2_settings during installation\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nuse Phinx\\Migration\\AbstractMigration;\n\nfinal class CreateSettingsTable extends AbstractMigration\n{\n public function change(): v... | php | chosen |
[
{
"from": "system",
"value": ":lipstick: Remove double space at eof\n"
},
{
"from": "human",
"value": "<?php\n\nclass DbMultiController extends Zend_Controller_Action\n{\n public function indexAction()\n {\n $queries = $this->getParam('queries', 1);\n\n $table = new Zend_Db_T... | php | chosen |
[
{
"from": "system",
"value": "Add expression only if context is available\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 ... | php | chosen |
[
{
"from": "system",
"value": "Test LangFileCleaner with 100% coverage.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Inet\\SugarCRM\\Tests\\Sugar;\n\nuse Psr\\Log\\NullLogger;\n\nuse Inet\\SugarCRM\\Application;\nuse Inet\\SugarCRM\\LangFileCleaner;\nuse Inet\\SugarCRM\\Tests\\TestsUtil\... | php | chosen |
[
{
"from": "system",
"value": "Add created field to fillable property\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Memvents;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Event extends Model\n{\n\n protected $table = 'events';\n\n protected $fillable = [\n 'name',\n... | php | chosen |
[
{
"from": "system",
"value": "Include controller and method names into every page\n"
},
{
"from": "human",
"value": "<html>\n <head>\n <link href=\"style/libs/font-awesome-4.2.0/css/font-awesome.min.css\" type=\"text/css\" rel=\"stylesheet\">\n <link href=\"style/libs/bootstrap-... | php | chosen |
[
{
"from": "system",
"value": "Fix navbar outside html tags\n"
},
{
"from": "human",
"value": "@extends('main')\n\n@section('head')\n <style>\n .row\n {\n margin-top: 5%;\n }\n #meme\n {\n display: block;\n margin-left: auto;\... | php | chosen |
[
{
"from": "system",
"value": "[SearchBundle] Convert analyzer languages config to lowercase to prevent config mismatch because of case sensitivity\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\SearchBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\n... | php | chosen |
[
{
"from": "system",
"value": "Clear assets box view cache when starting ccw\n"
},
{
"from": "human",
"value": "<?php\nuse Symfony\\Component\\Process\\Process;\nclass Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController extends Kwf_Controller_Action_Cli_Abstract\n{\n public static functi... | php | chosen |
[
{
"from": "system",
"value": "Change wp_trim_excerpt to excerpt_more and update return."
},
{
"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 * Theme set up settings.\n */\nadd_act... | php | chosen |
[
{
"from": "system",
"value": "Update navigation to use Orchestra\\Decorator::navbar()\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<div class=\"navbar\">\n\t<div class=\"navbar-inner\">\n\n\t\t<button type=\"button\" class=\"... | php | chosen |
[
{
"from": "system",
"value": "Fix test coverage report failing because of autoload\n"
},
{
"from": "human",
"value": "<?php\n\nspl_autoload_register(function ($className) {\n $srcDir = 'src';\n $fileName = __DIR__ . DIRECTORY_SEPARATOR . $srcDir . DIRECTORY_SEPARATOR;\n if ($lastNsPos ... | php | chosen |
[
{
"from": "system",
"value": "Use symfony serializer in examples as it is the simplest one\n"
},
{
"from": "human",
"value": "<?php\n\nuse JMS\\Serializer\\SerializerBuilder;\nuse Predis\\Client;\nuse Bernard\\Connection\\PredisConnection;\nuse Bernard\\Serializer\\JMSSerializer;\nuse Bernard\\Q... | php | chosen |
[
{
"from": "system",
"value": "Remove bad code that overwrites model-box\nRemove modelbox generator from flickity. It overwrites the modelbox with an empty box in every page flickity is included\n"
},
{
"from": "human",
"value": "<?php\nclass Flickity_Kwc_Slider_Component extends Kwc_Abstract_Lis... | php | chosen |
[
{
"from": "system",
"value": "Fix minor issue with excerpts\n"
},
{
"from": "human",
"value": "<!--Post data-->\n<?php get_template_part( 'template-parts/content/featuredimage' ); ?>\n<div class=\"card-body post-block\">\n\t<?php get_template_part( 'template-parts/content/title' ); ?>\n\t<?php g... | php | chosen |
[
{
"from": "system",
"value": "Add abstact methods for config\n"
},
{
"from": "human",
"value": "<?php\nnamespace Peast\\Syntax;\n\nabstract class Config\n{\n protected $compiledUnicodeArray = array();\n \n protected function cachedCompiledUnicodeArray($name)\n {\n if (!isset($... | php | chosen |
[
{
"from": "system",
"value": "Add correct call of taxonomy node repo\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\API\\Listing;\n\nuse AppBundle\\Entity\\TaxonomyNode;\nuse AppBundle\\Service\\DBVersion;\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns Taxonomy informat... | php | chosen |
[
{
"from": "system",
"value": "Allow normaliseData to accept non-array values for the $data argument\n - means we can run the method on all data types, including objects, so if the method is overridden we don't have to convert them to arrays beforehand\n"
},
{
"from": "human",
"value": "<?php\n\n... | php | chosen |
[
{
"from": "system",
"value": "Set url target to a new window.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Yajra\\CMS\\DataTables;\n\nuse Yajra\\CMS\\Entities\\FileAsset;\nuse Yajra\\Datatables\\Services\\DataTable;\n\nclass FileAssetsDataTable extends DataTable\n{\n /**\n * Disp... | php | chosen |
[
{
"from": "system",
"value": "Trim key and value for header values\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Dragooon\\Hawk\\Header;\n\nclass HeaderParser\n{\n /**\n * @param mixed $fieldValue\n * @param array $requiredKeys\n * @return array\n * @throws FieldValueP... | php | chosen |
[
{
"from": "system",
"value": "Use File::link in storage:link command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Foundation\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass StorageLinkCommand extends Command\n{\n /**\n * The console command signature.\n *\... | php | chosen |
[
{
"from": "system",
"value": "Add translatable behavior by stof\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Application\\MainBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio... | php | chosen |
[
{
"from": "system",
"value": "Check if handler has factory\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ExpressiveLogger;\n\nuse Interop\\Container\\ContainerInterface;\nuse Monolog\\Handler\\RedisHandler;\n\nclass LoggerFactory\n{\n const NAMED_HANDLERS = [\n 'redis' => Redis... | php | chosen |
[
{
"from": "system",
"value": "Trim the S3 prefix on both sides just to be on the safe side\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jalle19\\VagrantRegistryGenerator\\Configuration;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\n\n/**\n * Class Parser\n * @package Jal... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing package() call in service provider\n"
},
{
"from": "human",
"value": "<?php namespace Devfactory\\Media;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MediaServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading of the p... | php | chosen |
[
{
"from": "system",
"value": "Fix redirect after password change\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Mschlueter\\Backend\\Controllers\\Auth;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Auth;\nuse Illuminate\\Support\\Facades\\Hash;\nuse Mschlueter\\Back... | php | chosen |
[
{
"from": "system",
"value": "Fix compatibility issue with PHP 5.3"
},
{
"from": "human",
"value": "<?php\n\nnamespace SlmQueue\\Job;\n\nuse Zend\\Stdlib\\Message;\n\n/**\n * This class is supposed to be extended. To create a job, just implements the missing \"execute\" method. If a queueing\n *... | php | chosen |
[
{
"from": "system",
"value": "Add testLoginFoundOneRecord and testLoginReturnTwoArray to UserRegistrationandAuthentication test\n"
},
{
"from": "human",
"value": "<?php\nuse App\\User;\nuse Illuminate\\Support\\Facades\\Artisan;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illum... | php | chosen |
[
{
"from": "system",
"value": "Add interface to loazy entity manager\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Storage;\n\n/**\n * Lazy-loading EntityManager.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass LazyEntityManager\n{\n /** @var \\Closure $factory ... | php | chosen |
[
{
"from": "system",
"value": "Add job id as foreign key to applications table\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateApplicationsTable ext... | php | chosen |
[
{
"from": "system",
"value": "Use valid data in test order object\n\nUse a real merchant id and unused order Id. Helps when testing against the real system.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: mduncan\n * Date: 8/13/15\n * Time: 12:34 PM\n */\n\n... | php | chosen |
[
{
"from": "system",
"value": "Fix broken newsflow on launch\n"
},
{
"from": "human",
"value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n$this->inc('elements/header.php', array('enableEditing' => true)); \n?>\n\n<div class=\"ccm-ui\">\n<div class=\"newsflow\" id=\"newsflow-main\">\n... | php | chosen |
[
{
"from": "system",
"value": "Add an index on the category_id column\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePostsTable extends Migration\n{\n /**\n * Run the migrations.\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove the navigation view composer binding\n"
},
{
"from": "human",
"value": "<?php\n\nView::composer('partials.sidebar-nav', 'Modules\\Menu\\Composers\\SidebarViewComposer');\nView::composer('partials.navigation', 'Modules\\Menu\\Composers\\NavigationViewComposer'... | php | chosen |
[
{
"from": "system",
"value": "Fix contract comment and modify the name of the method that returns the item name\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Created by enea dhack - 29/05/2017 04:20 PM\n */\n\nnamespace Enea\\Cashier\\Contracts;\n\ninterface SalableContract\n{\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Correct ValidateInput's use of BadRequestHttpException\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Fuzz\\ApiServer\\Validation;\n\nuse Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException;\n\ntrait ValidatesInput\n{\n\t/**\n\t * Validate the ... | php | chosen |
[
{
"from": "system",
"value": "Remove pointless @method annotations from MockInterface\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Mockery\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * with this package in the file LICENSE.txt.\n * It is al... | php | chosen |
[
{
"from": "system",
"value": "Fix group on equality iterator type hints\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Pinq\\Iterators\\Standard;\n\nuse Pinq\\Iterators\\Common;\n\n/**\n * Implementation of the join iterator using the fetch method.\n *\n * @author Elliot Levin <elliot@aan... | php | chosen |
[
{
"from": "system",
"value": "Add frame around loan item\n"
},
{
"from": "human",
"value": "<?php include_partial('widgets/list', array('widgets' => $widgets, 'category' => 'loanitems','eid'=> $form->getObject()->getId() )); ?>\n<?php slot('title', __('Edit Loan Item')); ?>\n<div class=\"page\"... | php | chosen |
[
{
"from": "system",
"value": "Move deprecation under use statements\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 *... | php | chosen |
[
{
"from": "system",
"value": "Delete fk_pools in games table\n\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateGamesTable extends Migration\n{\n ... | php | chosen |
[
{
"from": "system",
"value": "Convert to lowercase before checking nofollow\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PiradoIV\\Munchitos;\n\nclass Link\n{\n protected $node;\n\n public function __construct($node)\n {\n $this->node = $node;\n }\n\n public functi... | php | chosen |
[
{
"from": "system",
"value": "Fix where uri path is empty\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Web\\Route\\Rules;\n\nuse Web\\Route\\Abstraction\\AbstractRule;\n\nclass UriRule extends AbstractRule\n{\n /**\n * Count the number of pattern segments for this rule.\n */\... | php | chosen |
[
{
"from": "system",
"value": "Set the redirect through $context->response.\n"
},
{
"from": "human",
"value": " <?php\n/**\n * @version\t\t$Id$\n * @package Nooku_Server\n * @subpackage Weblinks\n * @copyright\tCopyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)\n... | php | chosen |
[
{
"from": "system",
"value": "Fix tags_fts table create migration.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Owl\\Models\\Tag;\nuse Owl\\Models\\TagFts;\n\nclass CreateTagsFts extends Migration ... | php | chosen |
[
{
"from": "system",
"value": "Add TODO to send these to quasar when tagging happens\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rogue\\Console\\Commands;\n\nuse Rogue\\Models\\Tag;\nuse Rogue\\Models\\Post;\nuse Illuminate\\Console\\Command;\n\nclass TagPosts extends Command\n{\n /*... | php | chosen |
[
{
"from": "system",
"value": "BUGFIX: Remove `TestOnly` interface to allow LeftAndMainTest to pass.\n"
},
{
"from": "human",
"value": "<?php\nclass RegistryPageTestContact extends DataObject implements RegistryDataInterface, TestOnly {\n\n\tprivate static $db = array(\n\t\t'FirstName' => 'Varcha... | php | chosen |
[
{
"from": "system",
"value": "Simplify condition to load package config.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Contracts\\Config;\n\ninterface PackageRepository\n{\n /**\n * Register a... | php | chosen |
[
{
"from": "system",
"value": ":fire: Remove declaring non-interface public method\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Vainyl\n *\n * PHP Version 7\n *\n * @package Core\n * @license https://opensource.org/licenses/MIT MIT License\n * @link https://vainyl.com\n */\ndeclare(... | php | chosen |
[
{
"from": "system",
"value": "Send the restaurant name when creating sitting\n"
},
{
"from": "human",
"value": "<?php\n\trequire_once 'dbHandler.php';\n\t\n\tif(isset($_POST['action']) && !empty($_POST['action'])) {\n\t\t$dbHandler = new DatabaseHandler();\n\t\t$action = $_POST['action'];\n\t ... | php | chosen |
[
{
"from": "system",
"value": "Hide contact; section out nav\n"
},
{
"from": "human",
"value": "// navigation.php. part of orsee. see orsee.org.\n//\n// menu entry format:\n// 0 1 2 3 4 5 6 7 8\n// entrytype|menu__area|lang_item|url|icon|target|... | php | chosen |
[
{
"from": "system",
"value": "Use new PHP features (::class, null coalescing)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * (c) Christian Gripp <mail@core23.de>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source cod... | php | chosen |
[
{
"from": "system",
"value": "Sort designer list by editor's pick\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\n\nuse App\\Design;\nuse App\\Designer;\nuse App\\Place;\nuse App\\Story;\nuse... | php | chosen |
[
{
"from": "system",
"value": "Trim whitespace from either side of name / email.\n"
},
{
"from": "human",
"value": "<?php\n\tadd_action( 'wp_ajax_form_to_disk', 'form_to_disk' );\n\tadd_action( 'wp_ajax_nopriv_form_to_disk', 'form_to_disk' );\n\n\t$f2d_option = get_option( 'f2d_options', '' );\n\... | php | chosen |
[
{
"from": "system",
"value": "Simplify tests for custom tokens via IAM\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Kreait\\Firebase\\Tests\\Integration\\Auth;\n\nuse Kreait\\Firebase\\Auth;\nuse Kreait\\Firebase\\Auth\\CustomTokenViaGoogleIam;\nuse Kreait\\F... | php | chosen |
[
{
"from": "system",
"value": "Update error handler test for php52\n"
},
{
"from": "human",
"value": "<?php\n\nclass ClientTest extends PHPUnit_Framework_TestCase {\n protected $client;\n\n protected function setUp(){\n // Mock the notify function\n $this->client = $this->getM... | php | chosen |
[
{
"from": "system",
"value": ":sparkles: Apply refractor also in routes"
},
{
"from": "human",
"value": "<?php\n\n\n/*\n|--------------------------------------------------------------------------\n| API Routes\n|--------------------------------------------------------------------------\n|\n| Her... | php | chosen |
[
{
"from": "system",
"value": "Add access behavior for question controller :watch:\n"
},
{
"from": "human",
"value": "<?php\nnamespace app\\controllers;\n\n\nuse app\\models\\Question;\nuse yii\\filters\\VerbFilter;\n\nclass QuestionController extends base\\QuestionController\n{\n /**\n * ... | php | chosen |
[
{
"from": "system",
"value": "Use header redirection when possible\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Redirect class\n *\n * @package NamelessMC\\Core\n * @author Samerton\n * @author computerwizjared\n * @version 2.0.0-pr8\n * @license MIT\n */\nclass Redirect {\n\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Remove progress bar from fast running command\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\ConsolidateUsedFiles;\n\nuse Helper\\FileSystem;\nuse Helper\\NullStyle;\nuse Symfony\\Component\\Console\\Style\\StyleInterface;\n\n/**\n * Consolidate th... | php | chosen |
[
{
"from": "system",
"value": "Include API internal endpoint in notification email to super admins.\n"
},
{
"from": "human",
"value": "<?php\n/* @var $addedByUser \\Sil\\DevPortal\\models\\User */\n/* @var $api \\Sil\\DevPortal\\models\\Api */\n?>\n<p>A new API has been added to the API Developer... | php | chosen |
[
{
"from": "system",
"value": "Add Route Model Binding for \"logs\"\n"
},
{
"from": "human",
"value": "<?php namespace ImguBox\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServiceProvider ex... | php | chosen |
[
{
"from": "system",
"value": "Fix fos user mailer generated route to be absolute\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Redking\\ParseBundle\\Bridge\\FOSUser;\n\nuse FOS\\UserBundle\\Mailer\\TwigSwiftMailer as BaseMailer;\n\nuse FOS\\UserBundle\\Model\\UserInterface;\n\nclass Mail... | php | chosen |
[
{
"from": "system",
"value": "Add some explanation to what is, in hindsight, a non-obvious file for a testing setup.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace HMS\\Behat\\Context;\n\ntrait DatabaseMigrations\n{\n\n /**\n * Migrate the database\n *\n * @BeforeScenario\n... | php | chosen |
[
{
"from": "system",
"value": "Fix templates of default Yii mail sender.\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of Account.\n *\n * (c) 2014 Nord Software\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with... | php | chosen |
[
{
"from": "system",
"value": "Use the same vocabulary to make a findDate as well as retrieving it\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Models;\n\nclass FindEvent extends Base\n{\n public static $NODE_TYPE = 'E10';\n public static $NODE_NAME = 'findEvent';\n\n prote... | php | chosen |
[
{
"from": "system",
"value": "Update sanitize callback for the topics setting.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Google\\Site_Kit\\Modules\\Idea_Hub\\Post_Idea_Topics\n *\n * @package Google\\Site_Kit\\Modules\\Idea_Hub\n * @copyright 2021 Google LLC\n * @license https:... | php | chosen |
[
{
"from": "system",
"value": "Use tagged service IDs sorter to sort tagged services.\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": "Set service provider defer to false\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Presentit\\Laravel;\n\nuse Presentit\\Present;\nuse Illuminate\\Support\\Collection;\nuse Illuminate\\Support\\ServiceProvider;\nuse Presentit\\Transformer\\TransformerFactoryI... | php | chosen |
[
{
"from": "system",
"value": "Add some verbiage to the root page\n"
},
{
"from": "human",
"value": "@extends('layouts.app')\n\n@section('content')\n <div class=\"jumbotron\">\n <h1>Remember to pack everything</h1>\n </div>\n <div class=\"list-link\">\n <h3><a href=\"{{ URL... | php | chosen |
[
{
"from": "system",
"value": "Refactor some test logic out of test"
},
{
"from": "human",
"value": "<?php\n\nnamespace Lily\\Test\\Usage;\n\nuse Symfony\\Component\\DomCrawler\\Crawler;\n\nuse Lily\\Application\\MiddlewareApplication;\nuse Lily\\Application\\RoutedApplication;\n\nuse Lily\\Util\... | php | chosen |
[
{
"from": "system",
"value": "Use name field instead of ID field.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace Admingenerator\\GeneratorBundle\\Form\\Type;\r\n\r\nuse Symfony\\Component\\Form\\AbstractType;\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\n\r\nclass Uploaded... | php | chosen |
[
{
"from": "system",
"value": "Fix template error in title\n"
},
{
"from": "human",
"value": "<?php defined('BASEPATH') OR exit('No direct script access allowed');?>\n<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n\t<title... | php | chosen |
[
{
"from": "system",
"value": "Test facade and container instance\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Jgustavo99\\Gerencianet\\Tests;\n\nuse Jgustavo99\\Gerencianet\\Tests\\AbstractTestCase;\n\nclass FacadeTest extends AbstractTestCase\n{\n public function test_facade_instanc... | php | chosen |
[
{
"from": "system",
"value": "[Backoffice] Use safer checks to prevent unknown methods.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Clastic package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n * For the full copyright and license information, please view th... | php | chosen |
[
{
"from": "system",
"value": "Replace colons in file name for linux compatibility\n"
},
{
"from": "human",
"value": "<?php\n $filename = $_POST['name'];\n $events = stripslashes($_POST['events']);\n\n $file = fopen('logs/' . $filename . '.log.json', \"w\" );\n if($file == false) {\n ech... | php | chosen |
[
{
"from": "system",
"value": "Set the default block set to basic\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Package\\CkeditorContent\\Block\\CkeditorContent;\nuse \\Concrete\\Core\\Block\\BlockController;\nuse Loader;\nuse Core;\n\nclass Controller extends BlockController {\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix an example since run() visibility is now private\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once \"../vendor/autoload.php\";\n\nuse BitWasp\\Bitcoin\\Script\\ScriptFactory;\nuse BitWasp\\Bitcoin\\Transaction\\Transaction;\n\n$ec = \\BitWasp\\Bitcoin\\Bi... | php | chosen |
[
{
"from": "system",
"value": "Fix exceptions in dependency injection configuration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\DoctrineUserBundle\\DependencyInjection;\n\nuse Symfony\\Components\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Components\\DependencyInj... | php | chosen |
[
{
"from": "system",
"value": "[REFACTOR] Remove \"final\" keyword on getItems and getDefaultId methods in dynamic list services.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * event_ListAvailablemodelsService\n * @package modules.event.lib.services\n */\nclass event_ListAvailablemodelsService... | php | chosen |
[
{
"from": "system",
"value": "Change db to MariaDB 5.5\n"
},
{
"from": "human",
"value": "<?php\n\nglobal $project;\n$project = 'isu';\n\nglobal $database;\n$database = 'isuweb55';\n\n// Set the site locale\ni18n::set_locale('sk_SK');\n\nrequire_once(\"conf/ConfigureFromEnv.php\");"
},
{
... | php | chosen |
[
{
"from": "system",
"value": "Use Alias so Model base class can be changed\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BenAllfree\\Trackable\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Site extends Model\n{\n protected $fillable = ['host'];\n \n function metas()\... | php | chosen |
[
{
"from": "system",
"value": "Fix tests for PHP 5.4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace SimpleSAML\\Test\\Module\\core\\Auth;\n\nuse SimpleSAML\\Module\\core\\Auth\\UserPassOrgBase;\n\nclass UserPassOrgBaseTest extends \\PHPUnit_Framework_TestCase\n{\n public function testRe... | php | chosen |
[
{
"from": "system",
"value": "Add styling for Unsubscribe page\n"
},
{
"from": "human",
"value": "<?php\ninclude 'reports/db_queries.php';\necho (\"You have sucessfully unsubscribed from OsmAnd's mailing list.\");\ninsertIntoUnsubscribed(base64_decode( urldecode( $_GET[\"id\"] ) ), $_GET[\"group... | php | chosen |
[
{
"from": "system",
"value": "Update init command to not hang.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Facades\\Artisan;\n\nclass Init extends Command\n{\n /**\n * The name and signature o... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.