conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Move team guard check to the actual use case"
},
{
"from": "human",
"value": "<?php namespace Mpociot\\Teamwork\\Traits;\n\n/**\n * This file is part of Teamwork\n *\n * @license MIT\n * @package Teamwork\n */\n\nuse Exception;\nuse Illuminate\\Database\\Eloquent\\B... | php | chosen |
[
{
"from": "system",
"value": "Set a title to the default page\n"
},
{
"from": "human",
"value": "<?php\n /**\n * @author Manuel Thalmann <m@nuth.ch>\n * @license Apache-2.0\n */\n namespace MyCompany\\MyWebsite\\Pages;\n use System\\Web;\n use System\\Web\\Forms\\Renderin... | php | chosen |
[
{
"from": "system",
"value": "Fix some deprecated things for NC 14\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Nextcloud - Phone Sync\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Loic Blot <loic.blot@uni... | php | chosen |
[
{
"from": "system",
"value": "Update domain in nginx vhost template"
},
{
"from": "human",
"value": "#\n# Auto generated Nginx configuration\n# @author: hyn/multi-tenant\n# @see: http://laravel-tenancy.com\n# @time: {{ date('H:i:s d-m-Y') }}\n# @website id: {{ $website-... | php | chosen |
[
{
"from": "system",
"value": "Improve the function that sets the site url.\n\n- Use a more readable, less changable method of testing the environment - servername - instead of ip address.\n\n- Put the localhost variable in the else case as that is the most frequent use within the studio.\n"
},
{
"fr... | php | chosen |
[
{
"from": "system",
"value": "Fix for Custom Table Name\n\nError was:\"name\":\"PHP Strict Warning\",\"message\":\"Accessing static property nhkey\\\\arh\\\\managers\\\\DBManager::$tableName as non static\",\"code\":2048,\"type\":\"yii\\\\base\\\\ErrorException\",\"file\":\"/var/www/public/vendor/nhkey/yii2... | php | chosen |
[
{
"from": "system",
"value": "Fix delete action should return a json object"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Controllers\\Controller;\nuse App\\Project;\nuse App\\ProjectLabel;\n\nclass LabelsController ... | php | chosen |
[
{
"from": "system",
"value": "Adjust pending survey table query\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Livewire;\n\nuse App\\Models\\TestDate;\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Rappasoft\\LaravelLivewireTables\\DataTableComponent;\nuse Rappasoft\\Larave... | php | chosen |
[
{
"from": "system",
"value": "Add missing cacert.pem to phar archives\n"
},
{
"from": "human",
"value": "<?php\n\n// directory paths\n$baseDirectory = realpath(__DIR__.'/..');\n$buildDirectory = $baseDirectory . '/build';\n$artifactsDirectory = $buildDirectory . '/artifacts';\n$stagingDirectory ... | php | chosen |
[
{
"from": "system",
"value": "Make alignment a canOnlyBe type\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Common\\BlockEditor\\Blocks;\n\nfinal class QuoteBlock extends AbstractBlock\n{\n public function getConfig(): array\n {\n return [\n 'class' => 'BlockEdito... | php | chosen |
[
{
"from": "system",
"value": "Add generic get() method for data\n\nData::get() will check content-type and use the appropriate type-specific\nget method to handle the data.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Freischutz\\Application;\n\nuse Phalcon\\Mvc\\User\\Component;\n\n/**\n... | php | chosen |
[
{
"from": "system",
"value": "Add a public modifier to an interface method\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 LICENS... | php | chosen |
[
{
"from": "system",
"value": "Store + Shipping + Menus\n\n* Using new Store feature from Elcodi\n* Added Store management in Admin\n* Changed all definitions that was depending on such implementation\n* Removed under construction logic and tests\n\n* Removed menu fixtures\n* Defined them as dynamic content.... | php | chosen |
[
{
"from": "system",
"value": "Use fsockopen() instead of socket functions\n"
},
{
"from": "human",
"value": "<?php\n\nfunction pole_display_price($label, $price) {\n if (!function_exists('socket_create')) return;\n if (!defined('POLE_SERVER')) return;\n\n $sock= socket_create(AF_INET, SOCK_ST... | php | chosen |
[
{
"from": "system",
"value": "Deal with multiple listings in vendor items\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/txn.php';\ninclude '../lib/item.php';\n\n$txn_id= (int)$_REQUEST['txn'];\n\nif ($txn_id) {\n $txn= txn_load($db, $txn_id);\n if ($txn['paid']... | php | chosen |
[
{
"from": "system",
"value": "Make blogpost summary and content nullable\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateBlogpostsTable extends Mig... | php | chosen |
[
{
"from": "system",
"value": "Add psalm specific generic return type for deserialize\n\nSee https://psalm.dev/ and\nhttps://medium.com/vimeo-engineering-blog/uncovering-php-bugs-with-template-a4ca46eb9aeb\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace JMS\\Seri... | php | chosen |
[
{
"from": "system",
"value": "[Dns] Fix parse errors in resolver stub\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace React\\Dns;\n\nuse React\\Socket\\Connection;\n\nclass Resolver\n{\n public function resolve($domain, $callback)\n {\n $nameserver = '8.8.8.8';\n $query... | php | chosen |
[
{
"from": "system",
"value": "Update return type to `static` to improve static analysis"
},
{
"from": "human",
"value": "<?php\n\nnamespace Stripe\\ApiOperations;\n\n/**\n * Trait for retrievable resources. Adds a `retrieve()` static method to the\n * class.\n *\n * This trait should only be app... | php | chosen |
[
{
"from": "system",
"value": "Fix code to comply with coding standards\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Thread extends Model\n{\n protected $table = 'threads';\n\n public function posts() {\n return $th... | php | chosen |
[
{
"from": "system",
"value": "Add test for get products when no store is specified\n"
},
{
"from": "human",
"value": "<?php\r\n\r\n/**\r\n * @loadSharedFixture\r\n */\r\nclass SPM_ShopyMind_Test_Lib_ShopymindClient_Callback_Get_Products extends EcomDev_PHPUnit_Test_Case\r\n{\r\n\r\n public fu... | php | chosen |
[
{
"from": "system",
"value": "Use absolute include web path\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Sporz</title>\n <link href=\"bootstrap/css/bootstrap.min.css\" rel=\"stylesheet\">\n\t</head>\n\t<body>\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix post id in _post view"
},
{
"from": "human",
"value": "<div class=\"post\" id=\"post-<?php echo post['id'];?>\">\n <h2><?php echo h($post['title'])?></h2>\n <p class=\"date\">Modified at: <?php echo strftime('%c', strtotime($post['modified_at']))?></p>\n <div... | php | chosen |
[
{
"from": "system",
"value": "Use Guzzle/MockHandler instead of external url to test csv download\n"
},
{
"from": "human",
"value": "<?php\n/*\n * This file is part of the PayBreak\\ApiClient package.\n *\n * (c) PayBreak <dev@paybreak.com>\n *\n * For the full copyright and license information,... | php | chosen |
[
{
"from": "system",
"value": "Remove $middle from constructor and fix some typo\n"
},
{
"from": "human",
"value": "<?php\nnamespace Kuartet\\BI\\ExchangeRate;\n\nuse \\Carbon\\Carbon;\nuse \\PHPUnit_Framework_TestCase;\n\nclass ExchangeRateTest extends PHPUnit_Framework_TestCase\n{\n public f... | php | chosen |
[
{
"from": "system",
"value": "Fix getter for text representation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MusicBrainz\\Value\\Property;\n\nuse MusicBrainz\\Helper\\ArrayAccess;\nuse MusicBrainz\\Value\\TextRepresentation;\n\n/**\n * Provides a getter for the text representation.\n *... | php | chosen |
[
{
"from": "system",
"value": "Fix phpmd error: USE declarations must go after the first namespace declaration\n"
},
{
"from": "human",
"value": "<?php\nnamespace Polidog\\Todo\\Resource\\Page;\n\nnamespace Polidog\\Todo\\Form;\n\nuse Ray\\WebFormModule\\FormFactory;\n\nclass TodoFormTest extends... | php | chosen |
[
{
"from": "system",
"value": "Use https for gravatar images"
},
{
"from": "human",
"value": "<?php\n\n\n\n/**\n * Skeleton subclass for representing a row from the 'profile' table.\n *\n * \n *\n * You should add additional methods to this class to meet the\n * application requirements. This cl... | php | chosen |
[
{
"from": "system",
"value": "Check for missing path_info, also use OC_Response for 404 error\n"
},
{
"from": "human",
"value": "<?php\n$RUNTIME_NOSETUPFS = true;\n$RUNTIME_NOAPPS = TRUE;\nrequire_once('lib/base.php');\nif (array_key_exists('PATH_INFO', $_SERVER)){\n\t$path_info = $_SERVER['PATH... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with TenantResolver injection.\n"
},
{
"from": "human",
"value": "<?php\nnamespace ThinkSayDo\\EnvTenant\\Events;\n\nuse ThinkSayDo\\EnvTenant\\Resolver;\n\nclass TenantNotResolvedEvent extends TenantEvent\n{\n public $resolver;\n\n public function __c... | php | chosen |
[
{
"from": "system",
"value": "Test Driven Development Unit Test code CONTD\n\nhttps://app.asana.com/0/334403035277160/335518406456410\n"
},
{
"from": "human",
"value": "<?php\n/**\n * PSR-4 Compliant Autoloader\n *\n * This will dynamically load classes by resolving the prefix and class name. Th... | php | chosen |
[
{
"from": "system",
"value": "Add new client secret option for config for oAuth2\n"
},
{
"from": "human",
"value": "<?php\n\nreturn [\n\n //what authentication method to use 'direct', 'oauth2'. Currently only support 'direct'\n 'auth_type' => 'direct',\n\n 'direct' => [\n 'userna... | php | chosen |
[
{
"from": "system",
"value": "Fix missing return statement in getUserByIdentifier\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Auth0\\Login\\Repository;\n\nuse Auth0\\Login\\Auth0User;\nuse Auth0\\Login\\Auth0JWTUser;\nuse Auth0\\Login\\Contract\\Auth0UserRepository as Auth0UserReposito... | php | chosen |
[
{
"from": "system",
"value": "Add checks to make sure services and reporters are valid\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ScottRobertson\\Scrutiny;\n\nclass Client\n{\n private $services = array();\n private $reporters = array();\n\n public function addService($servic... | 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 Vimeo.\n *\n * (c) Vincent Klaiber <hello@vinkla.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that... | php | chosen |
[
{
"from": "system",
"value": "Fix the other script in the cron dir\n\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Cleans up old entries in tblActivation\n */\n\ndefine('MAX_LIFETIME', 30);\t//delete entries older than 30 days\n\nrequire_once('/home/ml/dev/pc/config.php');\t//FIXME: no hardc... | php | chosen |
[
{
"from": "system",
"value": "Fix Memcachestat. Using wrong classname"
},
{
"from": "human",
"value": "<?php\n\nrequire_once('../_include.php');\n\ntry {\n\n\t$config = SimpleSAML_Configuration::getInstance();\n\t$session = SimpleSAML_Session::getInstance();\n\n\t/* Make sure that the user has a... | php | chosen |
[
{
"from": "system",
"value": "Update plugin fetcher to match on full path\n\nWordPress stores dirname/filename.php in the database, so this is a\nvalid name to use\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WP_CLI\\Fetchers;\n\n/**\n * Fetch a WordPress plugin based on one of its attr... | php | chosen |
[
{
"from": "system",
"value": "Add hint for fullBaseUrl in CLI environments\n\nWhenever a URL is generated from within a shell context, the fullBaseUrl cannot be known (automatically), like from the $_SERVER['HOST_NAME'],\r\nwhich leads to problems when e.g. sending emails...\r\nThe information and documenta... | php | chosen |
[
{
"from": "system",
"value": "Add ability to pass `width` arg to dot remarkup interpeter\n\nSummary:\nAllows to keep really wide graphs inside the div:\n\n dot (width=100%) {{{ }}}\n\nTest Plan:\nCreated a graph that is wider than a phriction page.\nAdded `(width=100%)` and now the images stays within the ... | php | chosen |
[
{
"from": "system",
"value": "Remove API key from URL in StaffCP\n"
},
{
"from": "human",
"value": "<?php\n$GLOBALS['email'] = array(\n 'email' => 'no-reply@tadhg.sh',\n 'username' => 'theepicgamers28@gmail.com',\n 'password' => 'ettettett',\n 'name' => 'NamelessMC',\n 'host' => '... | php | chosen |
[
{
"from": "system",
"value": "Correct facebook social feed box\n"
},
{
"from": "human",
"value": "<div id=\"fbActivity\">\n\t<h3>Recent Activity</h3>\n\t<iframe src=\"http://www.facebook.com/plugins/activity.php?site=felixonline.co.uk&width=300&height=300&header=false&colorscheme... | php | chosen |
[
{
"from": "system",
"value": "Remove table markup for lists of events\n"
},
{
"from": "human",
"value": "<table>\n <thead>\n <tr>\n <th scope=\"col\" class=\"date\">Time</th>\n <th scope=\"col\" class=\"title\">Event Title</th>\n </tr>\n </thead>\n <t... | php | chosen |
[
{
"from": "system",
"value": "TASK: Package TS implement must return null on exception\n"
},
{
"from": "human",
"value": "<?php\nnamespace Neos\\MarketPlace\\TypoScriptObjects;\n\n/*\n * This file is part of the Neos.MarketPlace package.\n *\n * (c) Contributors of the Neos Project - www.neos.io... | php | chosen |
[
{
"from": "system",
"value": "Remove usages of the deprecated helpers\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('array_except_value')) {\n function array_except_value(array $array, $value)\n {\n if (!is_array($value)) {\n $value = [$value];\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow getting value from OnNextNorification\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Rx\\Notification;\n\nuse Rx\\ObserverInterface;\nuse Rx\\Notification;\n\nclass OnNextNotification extends Notification\n{\n private $value;\n\n public function _... | php | chosen |
[
{
"from": "system",
"value": "Add negative positioning to hidden file input\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Form\\Field;\n\nclass File extends \\AzuraForms\\Field\\File\n{\n public function configure(array $config = []): void\n {\n parent::configure($confi... | php | chosen |
[
{
"from": "system",
"value": "Create the assets folder though\n"
},
{
"from": "human",
"value": "<?php\n\nglobal $amp_conf;\n$location = $amp_conf['AMPWEBROOT'].'/ucp';\nif(!file_exists($location)) {\n\tsymlink(dirname(__FILE__).'/htdocs',$location);\n}\n\n$links = array('js','css','fonts','imag... | php | chosen |
[
{
"from": "system",
"value": "Add remove method to remove attribute from session\n"
},
{
"from": "human",
"value": "<?php\n/**\n * A SessionInterface\n *\n * @link https://github.com/pavlakis/session\n * @copyright Copyright © 2016 Antonis Pavlakis\n * @author Antonis Pavlakis (@pa... | php | chosen |
[
{
"from": "system",
"value": "Refactor Auth config to use closures."
},
{
"from": "human",
"value": "<?php\n\nreturn array(\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Authentication Model\n\t|-------------------------------------------------------... | php | chosen |
[
{
"from": "system",
"value": "Apply new symfony preset fixer \"phpdoc_types_null_last\"\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\VotingBundle\\EventListener;\n\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Kunstmaan\\VotingBundle\\Entity\\AbstractVote;\nuse Kunstmaan\\... | php | chosen |
[
{
"from": "system",
"value": "Change working directory to app directory\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the ICanBoogie package.\n *\n * (c) Olivier Laviale <olivier.laviale@gmail.com>\n *\n * For the full copyright and license information, please view the ... | php | chosen |
[
{
"from": "system",
"value": "Add web middleware to route\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Gregoriohc\\Preview;\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\ServiceProvider as LaravelServiceProvider;\n\nclass PreviewServiceProvider extends LaravelSer... | php | chosen |
[
{
"from": "system",
"value": "Move constructor and magic method to top of methods\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace ShootProof\\Cli\\Utility;\n\nclass ShootproofFile\n{\n public $id = '';\n public $name = '';\n public $url = [];\n\n public function arrayFactory(ar... | php | chosen |
[
{
"from": "system",
"value": "Add sections instance variable to customizer core\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Customizer;\n\nabstract class Core {\n\n\tpublic function add_section( Section $section ) {\n\n\t}\n\n\tpublic function remove_section( Section $section ) {\n\n\t... | php | chosen |
[
{
"from": "system",
"value": "Make it a paragraph so it gets justified.\n"
},
{
"from": "human",
"value": "Spencer and Jennifer recently purchased a townhouse in the Great Bridge area of Chesapeake. The townhouse is an end unit with two bedrooms, two & half baths, brand new kitchen appliances, ... | php | chosen |
[
{
"from": "system",
"value": "Check VE is available before running unit tests\n\nBug: T127763\nChange-Id: Ic5eef55c3327f95362e2f69fbebc86be306790f7\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Graph extension Hooks\n *\n * @file\n * @ingroup Extensions\n */\n\nnamespace Graph;\n\nuse Resour... | php | chosen |
[
{
"from": "system",
"value": "Allow _get access in ArrayObject\n\ngit-svn-id: 4cd2d1688610a87757c9f4de95975a674329c79f@1807 b8ca103b-dd03-488c-9448-c80b36131af2\n"
},
{
"from": "human",
"value": "<?\nclass _ArrayObject implements ArrayAccess {\n\n function offsetExists ($key){ return isset($thi... | php | chosen |
[
{
"from": "system",
"value": "Fix silencing errors on unset\n"
},
{
"from": "human",
"value": "<?php\nnamespace Scat\\Model;\n\nclass Config extends \\Scat\\Model {\n static protected $cache= [];\n\n static public function getValue($name) {\n if (array_key_exists($name, self::$cache)) {\n ... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in Thrift trunk\n\nSummary: $classl => $class\n\n\ngit-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@665376 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright (c) 2006- Facebook\n * Distributed under the Th... | php | chosen |
[
{
"from": "system",
"value": "Add pdo try again as lost connection message\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Database;\n\nuse Illuminate\\Support\\Str;\nuse Throwable;\n\ntrait DetectsLostConnections\n{\n /**\n * Determine if the given exception was caused ... | php | chosen |
[
{
"from": "system",
"value": "Use PHP 8 constructor property promotion\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types = 1);\n/**\n * /src/Serializer/CollectionNormalizer.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>\n */\n\nnamespace App\\Serializer\\Normaliz... | php | chosen |
[
{
"from": "system",
"value": "Allow to get theme instance via 'theme' helper, added theme helper tests\n"
},
{
"from": "human",
"value": "<?php\n\nif (!function_exists('theme')) {\n /**\n * Return a specified view from current theme.\n *\n * @param string $view\n * @param arra... | php | chosen |
[
{
"from": "system",
"value": "Create function to return all jobs by state\n\nI moved this for security reasons (so we can use Auth).\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Job;\nuse App\\Http\\Controllers\\Controller;\n\nclass JobController exte... | php | chosen |
[
{
"from": "system",
"value": "Allow all users to read list of publishing groups.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Policies;\n\nuse App\\Models\\User;\nuse Illuminate\\Auth\\Access\\HandlesAuthorization;\n\nclass PublishingGroupPolicy\n{\n use HandlesAuthorization;\n\... | php | chosen |
[
{
"from": "system",
"value": "Put protected method after public methods.\n\n\nsvn commit r1579\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Swat/SwatPage.php';\nrequire_once 'XML/RPC2/Server.php';\n\n/**\n * Base class for an XML-RPC Server\n *\n * The XML-RPC server acts as a regul... | php | chosen |
[
{
"from": "system",
"value": "Add survey title and subtitle to questionnaires\n"
},
{
"from": "human",
"value": "<?php\n\nclass QuestionnairesController extends Controller {\n\n function view($token) {\n\n $this->Questionnaire = new Database();\n $this->Questionnaire->query('SEL... | php | chosen |
[
{
"from": "system",
"value": "Handle unknown extensions with the html frontend\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace BNETDocs\\Controllers;\n\nuse \\BNETDocs\\Libraries\\Controller;\nuse \\BNETDocs\\Libraries\\Exceptions\\UnspecifiedViewException;\nuse \\BNETDocs\\Libraries\\Rout... | php | chosen |
[
{
"from": "system",
"value": "Fix the array key name\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Casinelli\\CampaignMonitor;\n\nclass CampaignMonitor\n{\n protected $app;\n\n public function __construct($app)\n {\n $this->app = $app;\n }\n\n public function campai... | php | chosen |
[
{
"from": "system",
"value": ":memo: Set to returns a array of object\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Interface StyleSheetParser.\n * \n * @package hatemile\\util\\css\n * @author Carlson Santana Cruz\n * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0\n ... | php | chosen |
[
{
"from": "system",
"value": "[Sf6] Add UserBundle mappings to Symfony6 support\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... | php | chosen |
[
{
"from": "system",
"value": "[DashboardBundle] Enable esi by default for the dashboard bundle\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Kunstmaan\\DashboardBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\\Component\\DependencyInjection\\Cont... | php | chosen |
[
{
"from": "system",
"value": "Fix loading of update transaction after changing tax rate\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/txn.php';\n\n$txn_id= (int)$_REQUEST['txn'];\nif (!$txn_id)\n die_jsonp(\"no transaction specified.\");\n\n$txn= txn_load($db, $... | php | chosen |
[
{
"from": "system",
"value": "Add appropriate header for response data\n"
},
{
"from": "human",
"value": "<?php\n\n$__database = AdvancedBan::getDatabase( );\n\n$response = json_encode([\n\t\"PunishmentHistory\" => $__database->getData(\"PunishmentHistory\"),\n\t\"Punishments\" => $__database->g... | php | chosen |
[
{
"from": "system",
"value": "Make dynamic signup button shortcode.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Roots\\Sage\\Extras;\n\nuse Roots\\Sage\\Setup;\n\n/**\n * Add <body> classes\n */\nfunction body_class($classes) {\n // Add page slug if it doesn't exist\n if (is_single()... | php | chosen |
[
{
"from": "system",
"value": "Check for new daily challenges on home page\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nuse App\\Models\\Challenge;\n\nuse Session;\n\nclass HomeCo... | php | chosen |
[
{
"from": "system",
"value": "Allow file comments to be edited\n\nSummary:\nFixes T10750. Files have some outdated cache/key code which prevents recording an edit history on file comments.\n\nRemove this ancient cruft.\n\n(Users must `bin/storage adjust` after upgrading to this patch to reap the benefits.)\... | php | chosen |
[
{
"from": "system",
"value": "Add active_url to URL validation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Screeenly\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\nuse Illuminate\\Contracts\\Validation\\Validator;\n\nclass CreateScreenshotRequest extends FormReques... | php | chosen |
[
{
"from": "system",
"value": "Fix merge (phpdoc => typehint)\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 t... | php | chosen |
[
{
"from": "system",
"value": "Rename this CSS class correctly.\n\n\nsvn commit r1670\n"
},
{
"from": "human",
"value": "<?php\n\nrequire_once 'Swat/SwatFormField.php';\n\n/**\n * A container to use around control widgets in a form\n *\n * Adds a label and space to output messages.\n *\n * @packa... | php | chosen |
[
{
"from": "system",
"value": "Support floats in numeric constraint"
},
{
"from": "human",
"value": "<?php\nnamespace Ayeo\\Validator\\Constraint;\n\nuse Ayeo\\Validator\\Exception\\InvalidConstraintParameter;\n\nclass NumericMin extends AbstractConstraint //todo: rename to IntegerMin\n{\n\t/**\n... | php | chosen |
[
{
"from": "system",
"value": "FIX Name not showing in updates report\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Describes an available update to an installed Composer package\n *\n * Originally from https://github.com/XploreNet/silverstripe-composerupdates\n *\n * @author Matt Dwen\n * @l... | php | chosen |
[
{
"from": "system",
"value": "Add config retrieval convenience function.\n"
},
{
"from": "human",
"value": "<?php\r\n\r\nnamespace ATPCore\\Controller;\r\n\r\nclass AbstractController extends \\Zend\\Mvc\\Controller\\AbstractActionController\r\n{\r\n\tpublic function get($resource)\r\n\t{\r\n\t\... | php | chosen |
[
{
"from": "system",
"value": "III-877: Fix BookingInfo parameter casing and docblock\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Offer\\Events;\nuse \\CultuurNet\\UDB3\\BookingInfo;\n\nabstract class AbstractBookingInfoEvent extends AbstractEvent\n{\n protected $bo... | php | chosen |
[
{
"from": "system",
"value": "Load ratings in reviews for customer users"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Customers may only see approved reviews and any they posted themselves\n *\n * @author Daniel Deady <daniel@clockworkgeek.com>\n * @license MIT\n */\nclass Clockworkgeek_Ext... | php | chosen |
[
{
"from": "system",
"value": "Make service provider methods private\n"
},
{
"from": "human",
"value": "<?php\nnamespace Concrete\\Core\\Config;\n\nuse Concrete\\Core\\Foundation\\Service\\Provider;\n\nclass ConfigServiceProvider extends Provider\n{\n /**\n * Configuration repositories\n ... | php | chosen |
[
{
"from": "system",
"value": "Add commit about purpose of movie genre result\n"
},
{
"from": "human",
"value": "<?php \nrequire_once('../inc/config.php');\nrequire_once(CONTROLLERS_PATH.'page_controller.php');\n\n//routing\n$path = array_key_exists('path', $_GET) ? $_GET['path'] : '';\nif(preg_m... | php | chosen |
[
{
"from": "system",
"value": "Set sqlite as standard install method\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Welcome to the Mackstar.Spout Project\n *\n * This is where the main configuration is added.\n * You can override this per environment in \n * /conf/env/{env}.php\n * \n */\n$... | php | chosen |
[
{
"from": "system",
"value": "Add comments for acceptable page arguments\n"
},
{
"from": "human",
"value": "<?php\n\n\t//https://developers.facebook.com/apps/\n\tdefine(\"FB_APP_ID\", \"replace_me\");\n\tdefine(\"FB_APP_SECRET\", \"replace_me\");\n\n\t// Live Streams for testing\n\t// https://ww... | php | chosen |
[
{
"from": "system",
"value": "Fix typo in unit test\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Class Vcl4Test\n *\n * @covers Vcl4\n * @author Carey Sizer <careysizer@gmail.com>\n */\nclass Vcl4Test extends SapphireTest\n{\n /**\n * @covers Vcl4::getPurgeRegex()\n */\n pub... | php | chosen |
[
{
"from": "system",
"value": "Move along, nothing to see here.\n"
},
{
"from": "human",
"value": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=... | php | chosen |
[
{
"from": "system",
"value": "Validate if optimistic locks are released properly\n\nBy trying to update an entry using a different connection.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Doctrine\\Tests\\ORM\\Functional\\Ticket;\n\nuse Doctrine\\DBAL\\LockMode;\nuse Doctrine\\Tests\\Mo... | php | chosen |
[
{
"from": "system",
"value": "Fix for keys with more than 2 levels\n"
},
{
"from": "human",
"value": "<?php /*\nReturns the site's configuration\n*/\n\nfunction print_config_values ($config, $prefix = '') {\n\tforeach ($config as $key => $value) {\n\t\tif (is_array($value)) {\n\t\t\tprint_config... | php | chosen |
[
{
"from": "system",
"value": "Add helper to get record size\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Algolia\\AlgoliaSearch\\Support;\n\nclass Debug\n{\n private static $debug = false;\n\n private static $handler;\n\n public static function isEnabled()\n {\n retur... | php | chosen |
[
{
"from": "system",
"value": "refactoring: Test case name grammar fix.\n"
},
{
"from": "human",
"value": "<?php\nnamespace Doctrineum;\n\nclass EnumTest extends \\PHPUnit_Framework_TestCase\n{\n /** @test */\n public function can_create_instance()\n {\n $instance = Enum::get('foo... | php | chosen |
[
{
"from": "system",
"value": "Enhance testLock() by checking whether the unlocking happens\n"
},
{
"from": "human",
"value": "<?php\n\nclass CM_LockTest extends CMTest_TestCase {\n\n\tpublic function testLock() {\n\t\t$lock = new CM_Lock('lock-test');\n\t\t$this->assertFalse($lock->isLocked());\... | php | chosen |
[
{
"from": "system",
"value": "Configure labels for event post type.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Register a custom post type for events.\n *\n * @package Victorian Climbing Club\n */\n\nfunction register_events_post_type() {\n $args = array(\n 'public' => true,\n 'has... | php | chosen |
[
{
"from": "system",
"value": "Add config override for dev purpose\n"
},
{
"from": "human",
"value": "<?php\n\n// Include config\nrequire_once 'config/config.inc.php';\n\n// Establish database connection \n\n$db = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE);\n\nif($db->conn... | php | chosen |
[
{
"from": "system",
"value": "Implement results action in town controller\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\n... | php | chosen |
[
{
"from": "system",
"value": "Drop attributes on oc_share table\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace OC\\Core\\Migrations;\n\nuse Closure;\nuse OCP\\DB\\ISchemaWrapp... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.