language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
laravel
framework
bd7956649a55d727ae7cdab83c76fb3bc2a3f1ad.json
Use session->get default
src/Illuminate/Auth/Guard.php
@@ -166,7 +166,7 @@ public function id() { if ($this->loggedOut) return; - return $this->session->get($this->getName()) ?: $this->getRecallerId(); + return $this->session->get($this->getName(), $this->getRecallerId()); } /**
false
Other
laravel
framework
e2c21cc29375a5f29fe84e4f45f986549351c8d4.json
Enable fast finish for hhvm
.travis.yml
@@ -15,3 +15,4 @@ script: vendor/bin/phpunit --verbose matrix: allow_failures: - php: hhvm + fast_finish: true
false
Other
laravel
framework
463802fe7d4e8fa0cf98ad50a9f4ab0ee2794e43.json
Use interface methods instead of stubbing them out
tests/Routing/RoutingUrlGeneratorTest.php
@@ -109,6 +109,7 @@ public function testRouteableInterfaceRouting() $routes->add($route); $model = new RouteableInterfaceStub; + $model->key = 'routeable'; $this->assertEquals('/foo/routeable', $url->route('routeable', array($model), false)); } @@ -254,6 +255,6 @@ public function testForceRootUrl...
false
Other
laravel
framework
5cd82c114dce511db580e2b2b827b75eedda80d8.json
Add tests which cover additional functionality
tests/Database/DatabaseEloquentModelTest.php
@@ -744,14 +744,21 @@ public function testTheMutatorCacheIsPopulated() } + public function testRouteKeyIsPrimaryKey() + { + $model = new EloquentModelStub; + $model->id = 'foo'; + $this->assertEquals('foo', $model->getRouteKey()); + } + + public function testRouteNameIsPrimaryKeyName() { $model = new El...
true
Other
laravel
framework
5cd82c114dce511db580e2b2b827b75eedda80d8.json
Add tests which cover additional functionality
tests/Routing/RoutingUrlGeneratorTest.php
@@ -1,6 +1,7 @@ <?php use Illuminate\Routing\UrlGenerator; +use Illuminate\Support\Contracts\RouteableInterface; class RoutingUrlGeneratorTest extends PHPUnit_Framework_TestCase { @@ -97,6 +98,21 @@ public function testBasicRouteGeneration() } + public function testRouteableInterfaceRouting() ...
true
Other
laravel
framework
2399dabe64136ccb851a4e0f1370c32fda0100d2.json
Reference the correct interface method
src/Illuminate/Routing/UrlGenerator.php
@@ -322,7 +322,7 @@ protected function replaceRouteableParameters($parameters = array()) { if ($parameter instanceof RouteableInterface) { - $parameter = $parameter->getRouteParameter(); + $parameter = $parameter->getRouteKey(); } }
false
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/ApcStore.php
@@ -51,7 +51,7 @@ public function get($key) * @param string $key * @param mixed $value * @param int $minutes - * @return array|bool + * @return void */ public function put($key, $value, $minutes) { @@ -63,7 +63,7 @@ public function put($key, $value, $minutes) * * @param string $key ...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/ApcWrapper.php
@@ -48,7 +48,7 @@ public function put($key, $value, $seconds) * * @param string $key * @param mixed $value - * @return array|bool + * @return int|bool */ public function increment($key, $value) { @@ -60,7 +60,7 @@ public function increment($key, $value) * * @param string $key * @param ...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/ArrayStore.php
@@ -41,7 +41,7 @@ public function put($key, $value, $minutes) * * @param string $key * @param mixed $value - * @return void + * @return int */ public function increment($key, $value = 1) { @@ -55,7 +55,7 @@ public function increment($key, $value = 1) * * @param string $key * @param mi...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/MemcachedStore.php
@@ -65,7 +65,7 @@ public function put($key, $value, $minutes) * * @param string $key * @param mixed $value - * @return void + * @return int|bool */ public function increment($key, $value = 1) { @@ -77,7 +77,7 @@ public function increment($key, $value = 1) * * @param string $key * @para...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/RedisStore.php
@@ -74,7 +74,7 @@ public function put($key, $value, $minutes) * * @param string $key * @param mixed $value - * @return void + * @return int */ public function increment($key, $value = 1) { @@ -86,7 +86,7 @@ public function increment($key, $value = 1) * * @param string $key * @param mi...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/WinCacheStore.php
@@ -54,7 +54,7 @@ public function put($key, $value, $minutes) * * @param string $key * @param mixed $value - * @return void + * @return int|bool */ public function increment($key, $value = 1) { @@ -66,7 +66,7 @@ public function increment($key, $value = 1) * * @param string $key * @para...
true
Other
laravel
framework
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9.json
Update return values
src/Illuminate/Cache/XCacheStore.php
@@ -54,7 +54,7 @@ public function put($key, $value, $minutes) * * @param string $key * @param mixed $value - * @return void + * @return int */ public function increment($key, $value = 1) { @@ -66,7 +66,7 @@ public function increment($key, $value = 1) * * @param string $key * @param mi...
true
Other
laravel
framework
a9444e1ddb2cbc95008fee7174c3fef683889155.json
Move segments processing
src/Illuminate/Support/NamespacedItemResolver.php
@@ -25,13 +25,13 @@ public function parseKey($key) return $this->parsed[$key]; } - $segments = explode('.', $key); - // If the key does not contain a double colon, it means the key is not in a // namespace, and is just a regular configuration item. Namespaces are a // tool for organizing configuratio...
false
Other
laravel
framework
2101129d386268813b2ab70abb045a5f5551879f.json
Make note if route cache file exists.
src/Illuminate/Foundation/Console/RouteCacheCommand.php
@@ -71,6 +71,11 @@ public function fire() return $this->error("Your application doesn't have any routes."); } + if ($this->laravel->routesAreCached()) + { + return $this->error("Route cache file already exists!"); + } + foreach ($this->routes as $route) { $route->prepareForSerialization();
false
Other
laravel
framework
54f198fd9d54ad492eb22a9add5ca15c24208002.json
Write route:clear command.
src/Illuminate/Foundation/Console/RouteCacheCommand.php
@@ -5,7 +5,6 @@ use Illuminate\Filesystem\Filesystem; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; -use Illuminate\Routing\Generators\ControllerGenerator; class RouteCacheCommand extends Command { @@ -48,6 +47,7 @@ class RouteCacheCommand extends Command { ...
true
Other
laravel
framework
54f198fd9d54ad492eb22a9add5ca15c24208002.json
Write route:clear command.
src/Illuminate/Foundation/Console/RouteClearCommand.php
@@ -0,0 +1,57 @@ +<?php namespace Illuminate\Foundation\Console; + +use Illuminate\Routing\Router; +use Illuminate\Console\Command; +use Illuminate\Filesystem\Filesystem; +use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Input\InputArgument; + +class RouteClearCommand extends Command { + ...
true
Other
laravel
framework
54f198fd9d54ad492eb22a9add5ca15c24208002.json
Write route:clear command.
src/Illuminate/Foundation/Providers/RouteCacheServiceProvider.php
@@ -2,6 +2,7 @@ use Illuminate\Support\ServiceProvider; use Illuminate\Foundation\Console\RouteCacheCommand; +use Illuminate\Foundation\Console\RouteClearCommand; class RouteCacheServiceProvider extends ServiceProvider { @@ -24,7 +25,12 @@ public function register() return new RouteCacheCommand($app['route...
true
Other
laravel
framework
e3a8001a13fb3ff0edd4a1c851d30e4fc9f654f3.json
Simplify code per JosephSilber's suggestion.
src/Illuminate/Database/Eloquent/Model.php
@@ -2682,32 +2682,23 @@ public function syncOriginalAttribute($attribute) /** * Determine if the model or given attribute(s) have been modified. * - * @param string|array|null $attribute + * @param string|array|null $attributes * @return bool */ - public function isDirty($attribute = null) + public ...
false
Other
laravel
framework
cff5fb356458f8ef9fefb1734358cc1c1026acb7.json
Add path option to RemindersControllerCommand
src/Illuminate/Auth/Console/RemindersControllerCommand.php
@@ -2,6 +2,7 @@ use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; +use Symfony\Component\Console\Input\InputOption; class RemindersControllerCommand extends Command { @@ -29,8 +30,8 @@ class RemindersControllerCommand extends Command { /** * Create a new reminder table command instance...
false
Other
laravel
framework
45dc7bd26cf388e203b88d07f15093289b6188e1.json
Replace more static return types
src/Illuminate/Database/Eloquent/Collection.php
@@ -73,7 +73,7 @@ public function contains($key) * Fetch a nested element of the collection. * * @param string $key - * @return \Illuminate\Database\Eloquent\Collection + * @return static */ public function fetch($key) { @@ -122,7 +122,7 @@ public function modelKeys() * Merge the collection with ...
true
Other
laravel
framework
45dc7bd26cf388e203b88d07f15093289b6188e1.json
Replace more static return types
src/Illuminate/Database/Eloquent/Model.php
@@ -436,7 +436,7 @@ protected function fillableFromArray(array $attributes) * * @param array $attributes * @param bool $exists - * @return \Illuminate\Database\Eloquent\Model|static + * @return static */ public function newInstance($attributes = array(), $exists = false) { @@ -454,7 +454,7 @@ pub...
true
Other
laravel
framework
45dc7bd26cf388e203b88d07f15093289b6188e1.json
Replace more static return types
src/Illuminate/Support/Collection.php
@@ -34,7 +34,7 @@ public function __construct(array $items = array()) * Create a new collection instance if the value isn't one already. * * @param mixed $items - * @return \Illuminate\Support\Collection + * @return static */ public static function make($items) { @@ -58,7 +58,7 @@ public fun...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Auth/Guard.php
@@ -690,7 +690,7 @@ public function getRequest() * Set the current request instance. * * @param \Symfony\Component\HttpFoundation\Request - * @return \Illuminate\Auth\Guard + * @return $this */ public function setRequest(Request $request) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Console/Application.php
@@ -56,7 +56,7 @@ public static function make($app) /** * Boot the Console application. * - * @return \Illuminate\Console\Application + * @return $this */ public function boot() { @@ -200,7 +200,7 @@ public function renderException($e, $output) * Set the exception handler instance. * * @param ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Cookie/CookieJar.php
@@ -145,7 +145,7 @@ protected function getPathAndDomain($path, $domain) * * @param string $path * @param string $domain - * @return self + * @return $this */ public function setDefaultPathAndDomain($path, $domain) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Capsule/Manager.php
@@ -173,7 +173,7 @@ public function bootEloquent() * Set the fetch mode for the database connections. * * @param int $fetchMode - * @return \Illuminate\Database\Capsule\Manager + * @return $this */ public function setFetchMode($fetchMode) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Connection.php
@@ -688,7 +688,7 @@ public function getReadPdo() * Set the PDO connection. * * @param \PDO $pdo - * @return \Illuminate\Database\Connection + * @return $this */ public function setPdo(PDO $pdo) { @@ -701,7 +701,7 @@ public function setPdo(PDO $pdo) * Set the PDO connection used for reading. * ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Builder.php
@@ -556,7 +556,7 @@ protected function isNested($name, $relation) * @param string $operator * @param mixed $value * @param string $boolean - * @return \Illuminate\Database\Eloquent\Builder|static + * @return $this */ public function where($column, $operator = null, $value = null, $boolean = 'and'...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Collection.php
@@ -28,8 +28,8 @@ public function find($key, $default = null) /** * Load a set of relationships onto the collection. * - * @param dynamic $relations - * @return \Illuminate\Database\Eloquent\Collection + * @param mixed $relations + * @return $this */ public function load($relations) { @@ -49,7 +4...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Model.php
@@ -387,7 +387,7 @@ public static function observe($class) * Fill the model with an array of attributes. * * @param array $attributes - * @return \Illuminate\Database\Eloquent\Model|static + * @return $this * * @throws MassAssignmentException */ @@ -678,7 +678,7 @@ public static function findOrFai...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/ModelNotFoundException.php
@@ -13,7 +13,7 @@ class ModelNotFoundException extends \RuntimeException { * Set the affected Eloquent model. * * @param string $model - * @return ModelNotFoundException + * @return $this */ public function setModel($model) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -327,7 +327,7 @@ protected function getAliasedPivotColumns() * Set the join clause for the relation query. * * @param \Illuminate\Database\Eloquent\Builder|null - * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany + * @return $this */ protected function setJoin($query = null) { @@ -34...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Relations/MorphPivot.php
@@ -44,7 +44,7 @@ public function delete() * Set the morph type for the pivot. * * @param string $morphType - * @return \Illuminate\Database\Eloquent\Relations\MorphPivot + * @return $this */ public function setMorphType($morphType) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Relations/MorphTo.php
@@ -207,7 +207,7 @@ public function getDictionary() /** * Fetch soft-deleted model instances with query * - * @return MorphTo + * @return $this */ public function withTrashed() {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
@@ -53,7 +53,7 @@ public function __construct(Builder $query, Model $parent, $name, $table, $forei /** * Set the where clause for the relation query. * - * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany + * @return $this */ protected function setWhere() {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Eloquent/Relations/Pivot.php
@@ -127,7 +127,7 @@ public function getOtherKey() * * @param string $foreignKey * @param string $otherKey - * @return \Illuminate\Database\Eloquent\Relations\Pivot + * @return $this */ public function setPivotKeys($foreignKey, $otherKey) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Grammar.php
@@ -167,7 +167,7 @@ public function getTablePrefix() * Set the grammar's table prefix. * * @param string $prefix - * @return \Illuminate\Database\Grammar + * @return $this */ public function setTablePrefix($prefix) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Query/Builder.php
@@ -201,7 +201,7 @@ public function __construct(ConnectionInterface $connection, * Set the columns to be selected. * * @param array $columns - * @return \Illuminate\Database\Query\Builder|static + * @return $this */ public function select($columns = array('*')) { @@ -225,7 +225,7 @@ public function ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Query/JoinClause.php
@@ -53,7 +53,7 @@ public function __construct(Builder $query, $type, $table) * @param string $second * @param string $boolean * @param bool $where - * @return \Illuminate\Database\Query\JoinClause + * @return $this */ public function on($first, $operator, $second, $boolean = 'and', $where = false)...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Schema/Blueprint.php
@@ -765,7 +765,7 @@ protected function addColumn($type, $name, array $parameters = array()) * Remove a column from the schema blueprint. * * @param string $name - * @return \Illuminate\Database\Schema\Blueprint + * @return $this */ public function removeColumn($name) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Schema/Builder.php
@@ -202,7 +202,7 @@ public function getConnection() * Set the database connection instance. * * @param \Illuminate\Database\Connection - * @return \Illuminate\Database\Schema\Builder + * @return $this */ public function setConnection(Connection $connection) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Database/Seeder.php
@@ -73,7 +73,7 @@ protected function resolve($class) * Set the IoC container instance. * * @param \Illuminate\Container\Container $container - * @return \Illuminate\Database\Seeder + * @return $this */ public function setContainer(Container $container) { @@ -86,7 +86,7 @@ public function setContaine...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Foundation/Application.php
@@ -698,7 +698,7 @@ protected function registerBaseMiddlewares() * * @param string $class * @param array $parameters - * @return \Illuminate\Foundation\Application + * @return $this */ public function middleware($class, array $parameters = array()) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Foundation/Composer.php
@@ -86,7 +86,7 @@ protected function getProcess() * Set the working path used by the class. * * @param string $path - * @return \Illuminate\Foundation\Composer + * @return $this */ public function setWorkingPath($path) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Html/FormBuilder.php
@@ -960,7 +960,7 @@ public function getSessionStore() * Set the session store implementation. * * @param \Illuminate\Session\Store $session - * @return \Illuminate\Html\FormBuilder + * @return $this */ public function setSessionStore(Session $session) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Http/RedirectResponse.php
@@ -28,7 +28,7 @@ class RedirectResponse extends \Symfony\Component\HttpFoundation\RedirectRespons * @param string $key * @param string $value * @param bool $replace - * @return \Illuminate\Http\RedirectResponse + * @return $this */ public function header($key, $value, $replace = true) { @@ -62,...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Http/Request.php
@@ -22,7 +22,7 @@ class Request extends SymfonyRequest { /** * Return the Request instance. * - * @return \Illuminate\Http\Request + * @return $this */ public function instance() {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Http/ResponseTrait.php
@@ -10,7 +10,7 @@ trait ResponseTrait { * @param string $key * @param string $value * @param bool $replace - * @return \Illuminate\Http\Response + * @return $this */ public function header($key, $value, $replace = true) { @@ -23,7 +23,7 @@ public function header($key, $value, $replace = true) ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Mail/Mailer.php
@@ -468,7 +468,7 @@ public function setSwiftMailer($swift) * Set the log writer instance. * * @param \Illuminate\Log\Writer $logger - * @return \Illuminate\Mail\Mailer + * @return $this */ public function setLogger(Writer $logger) { @@ -481,7 +481,7 @@ public function setLogger(Writer $logger) * ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Mail/Message.php
@@ -28,7 +28,7 @@ public function __construct($swift) * * @param string $address * @param string $name - * @return \Illuminate\Mail\Message + * @return $this */ public function from($address, $name = null) { @@ -42,7 +42,7 @@ public function from($address, $name = null) * * @param string $...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Pagination/Paginator.php
@@ -117,7 +117,7 @@ public function __construct(Factory $factory, array $items, $total, $perPage = n /** * Setup the pagination context (current and last page). * - * @return \Illuminate\Pagination\Paginator + * @return $this */ public function setupPaginationContext() { @@ -233,7 +233,7 @@ public func...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Routing/Route.php
@@ -372,7 +372,7 @@ protected function compileParameterNames() * Bind the route to a given request for execution. * * @param \Illuminate\Http\Request $request - * @return \Illuminate\Routing\Route + * @return $this */ public function bind(Request $request) { @@ -537,7 +537,7 @@ public static...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Session/DatabaseSessionHandler.php
@@ -118,7 +118,7 @@ protected function getQuery() * Set the existence state for the session. * * @param bool $value - * @return \SessionHandlerInterface + * @return $this */ public function setExists($value) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Support/Collection.php
@@ -103,7 +103,7 @@ public function diff($items) * Execute a callback over each item. * * @param \Closure $callback - * @return \Illuminate\Support\Collection + * @return $this */ public function each(Closure $callback) { @@ -116,7 +116,7 @@ public function each(Closure $callback) * Fetch...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Support/Fluent.php
@@ -136,7 +136,7 @@ public function offsetUnset($offset) * * @param string $method * @param array $parameters - * @return \Illuminate\Support\Fluent + * @return $this */ public function __call($method, $parameters) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Support/Manager.php
@@ -107,7 +107,7 @@ protected function callCustomCreator($driver) * * @param string $driver * @param \Closure $callback - * @return \Illuminate\Support\Manager|static + * @return $this */ public function extend($driver, Closure $callback) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Support/MessageBag.php
@@ -41,7 +41,7 @@ public function __construct(array $messages = array()) * * @param string $key * @param string $message - * @return \Illuminate\Support\MessageBag + * @return $this */ public function add($key, $message) { @@ -57,7 +57,7 @@ public function add($key, $message) * Merge a ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Support/ViewErrorBag.php
@@ -27,7 +27,7 @@ public function getBag($key) * * @param string $key * @param \Illuminate\Support\MessageBag $bag - * @return \Illuminate\Support\ViewErrorBag + * @return $this */ public function put($key, MessageBag $bag) {
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/Validation/Validator.php
@@ -2130,7 +2130,7 @@ public function getRules() * Set the validation rules. * * @param array $rules - * @return \Illuminate\Validation\Validator + * @return $this */ public function setRules(array $rules) { @@ -2143,7 +2143,7 @@ public function setRules(array $rules) * Set the custom attributes ...
true
Other
laravel
framework
b073237d341549ada2f13e8e5b1d6d98f93428ec.json
Update phpdocs for better chaining Following the PSR-5 Proposal, chained methods should use `return $this`. New instances should use `return static`. This way, when classes are extended, they refer to the correct class.
src/Illuminate/View/View.php
@@ -159,7 +159,7 @@ protected function gatherData() * * @param string|array $key * @param mixed $value - * @return \Illuminate\View\View + * @return $this */ public function with($key, $value = null) { @@ -181,7 +181,7 @@ public function with($key, $value = null) * @param string $key * @p...
true
Other
laravel
framework
38cbdb207bd3b64628b2cf881dbd5ceff0fb2625.json
Add comment on Artisan class.
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -22,6 +22,9 @@ class ArtisanServiceProvider extends ServiceProvider { */ public function register() { + // This Artisan class is a lightweight wrapper for calling into the Artisan + // command line. If a call to this class is executed we will boot up the + // entire Artisan command line then pass the metho...
false
Other
laravel
framework
21fddea479015b863f319274ad4187900b64d282.json
Remove class loader from optimize file.
src/Illuminate/Foundation/Console/Optimize/config.php
@@ -3,7 +3,6 @@ $basePath = $app['path.base']; return array_map('realpath', array( - $basePath.'/vendor/laravel/framework/src/Illuminate/Support/ClassLoader.php', $basePath.'/vendor/laravel/framework/src/Illuminate/Container/Container.php', $basePath.'/vendor/symfony/http-kernel/Symfony/Component/HttpK...
false
Other
laravel
framework
b98c24f69de3831ab2d42de69fdc14242c6c78a6.json
Allow HHVM failures.
.travis.yml
@@ -11,3 +11,7 @@ before_script: - travis_retry composer install --prefer-source --no-interaction --dev script: vendor/bin/phpunit --verbose + +matrix: + allow_failures: + - php: hhvm
false
Other
laravel
framework
0434715dd49fc46940efa35790c5ddd9506dca65.json
Change Artisan requirement.
src/Illuminate/Console/Application.php
@@ -60,8 +60,6 @@ public static function make($app) */ public function boot() { - require $this->laravel['path'].'/start/artisan.php'; - // If the event dispatcher is set on the application, we will fire an event // with the Artisan instance to provide each listener the opportunity to // register their...
false
Other
laravel
framework
cc45646a55310ffd3929f5f4b7e0766d3c0c37ad.json
Change console directory back to commands.
src/Illuminate/Foundation/Console/CommandMakeCommand.php
@@ -121,7 +121,7 @@ protected function getPath() if (is_null($path)) { - return $this->laravel['path'].'/console'; + return $this->laravel['path'].'/commands'; } else {
false
Other
laravel
framework
b929969bac9354f5a77116bea518da9ea99c2a4f.json
Add failing test for date_format and before/after
tests/Validation/ValidationValidatorTest.php
@@ -1119,6 +1119,9 @@ public function testBeforeAndAfterWithFormat() $v = new Validator($trans, array('start' => '31/12/2012', 'ends' => '31/12/2000'), array('start' => 'date_format:d/m/Y|before:ends', 'ends' => 'date_format:d/m/Y|after:start')); $this->assertTrue($v->fails()); + $v = new Validator($trans, arr...
false
Other
laravel
framework
a22d0bcdfa4e7fdce53b1b77198413f5db5953cf.json
Add "call" method to container.
src/Illuminate/Container/Container.php
@@ -3,6 +3,8 @@ use Closure; use ArrayAccess; use ReflectionClass; +use ReflectionMethod; +use ReflectionFunction; use ReflectionParameter; class BindingResolutionException extends \Exception {} @@ -403,6 +405,81 @@ protected function getReboundCallbacks($abstract) } } + /** + * Wrap the given closure su...
true
Other
laravel
framework
a22d0bcdfa4e7fdce53b1b77198413f5db5953cf.json
Add "call" method to container.
src/Illuminate/Foundation/changes.json
@@ -2,7 +2,8 @@ "4.3.*": [ {"message": "Allow passing a priority to Eloquent event listeners.", "backport": null}, {"message": "Tweak 'compile' configuration file for 'files' and 'providers' support.", "backport": null}, - {"message": "Allow method injection via IoC to any controller or route method.", "backpo...
true
Other
laravel
framework
a22d0bcdfa4e7fdce53b1b77198413f5db5953cf.json
Add "call" method to container.
tests/Container/ContainerTest.php
@@ -329,6 +329,38 @@ public function testInternalClassWithDefaultParameters() $container->make('ContainerMixedPrimitiveStub', $parameters); } + + public function testCallWithDependencies() + { + $container = new Container; + $result = $container->call(function(StdClass $foo, $bar = array()) { + return func_g...
true
Other
laravel
framework
10a0c61cc47bfa97f8b440b6266b8a47d51239b1.json
move domain() and getUri() out of foreach loop
src/Illuminate/Routing/RouteCollection.php
@@ -61,9 +61,10 @@ public function add(Route $route) */ protected function addToCollections($route) { + $domainAndUri = $route->domain().$route->getUri(); + foreach ($route->methods() as $method) { - $domainAndUri = $route->domain().$route->getUri(); $this->routes[$method][$domainAndUri] = $...
false
Other
laravel
framework
aa1eada9c212ef879c03e9f71c93ad2b14c55614.json
Add Illuminate\Support\Arr to compiled class. Signed-off-by: crynobone <crynobone@gmail.com>
src/Illuminate/Foundation/Console/Optimize/config.php
@@ -31,6 +31,7 @@ $basePath.'/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php', $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php', $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Traits/MacroableTrait.php', + $basePath.'/vendor/laravel/...
false
Other
laravel
framework
0932f900853f454b1042a3e862eaab73afb3cfa7.json
Add excluded paths.
.scrutinizer.yml
@@ -1,3 +1,6 @@ +filter: + excluded_paths: [tests/*] + checks: php: code_rating: true
false
Other
laravel
framework
29bb5c44d19038c80f90cd573fc519277767e344.json
Move abstract method to top.
src/Illuminate/Foundation/Publishing/Publisher.php
@@ -38,6 +38,17 @@ public function __construct(Filesystem $files, $publishPath) $this->publishPath = $publishPath; } + /** + * Get the source directory to publish. + * + * @param string $package + * @param string $packagePath + * @return string + * + * @throws \Invalid...
false
Other
laravel
framework
9b7eea0fa73c0bc359bec0132ccb8afec66084a0.json
add test for #5a6c10d
tests/Validation/ValidationValidatorTest.php
@@ -116,6 +116,17 @@ public function testAttributeNamesAreReplaced() $this->assertFalse($v->passes()); $v->messages()->setFormat(':message'); $this->assertEquals('Name is required!', $v->messages()->first('name')); + + //set customAttributes by setter + $trans = $this->getRealTranslator(); + $trans->addRe...
false
Other
laravel
framework
5a6c10d5fafaf5a19e085b6b1b16d9aff9714d80.json
add getter and setter
src/Illuminate/Validation/Validator.php
@@ -2212,6 +2212,48 @@ public function setCustomMessages(array $messages) { $this->customMessages = array_merge($this->customMessages, $messages); } + + /** + * Get the custom attributes for the validator + * + * @return array + */ + public function getCustomAttributes() + { + return $this->customAttribute...
false
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Console/AssetPublishCommand.php
@@ -2,9 +2,9 @@ use Illuminate\Console\Command; use Symfony\Component\Finder\Finder; -use Illuminate\Foundation\AssetPublisher; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; +use Illuminate\Foundation\Publishing\AssetPublisher; class AssetPublishCommand ext...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Console/ConfigPublishCommand.php
@@ -2,9 +2,9 @@ use Illuminate\Console\Command; use Illuminate\Console\ConfirmableTrait; -use Illuminate\Foundation\ConfigPublisher; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; +use Illuminate\Foundation\Publishing\ConfigPublisher; class ConfigPublishComm...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Console/ViewPublishCommand.php
@@ -1,9 +1,9 @@ <?php namespace Illuminate\Foundation\Console; use Illuminate\Console\Command; -use Illuminate\Foundation\ViewPublisher; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; +use Illuminate\Foundation\Publishing\ViewPublisher; class ViewPublishComm...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Providers/PublisherServiceProvider.php
@@ -1,13 +1,13 @@ <?php namespace Illuminate\Foundation\Providers; use Illuminate\Support\ServiceProvider; -use Illuminate\Foundation\ViewPublisher; -use Illuminate\Foundation\AssetPublisher; -use Illuminate\Foundation\ConfigPublisher; -use Illuminate\Foundation\MigrationPublisher; +use Illuminate\Foundation\Publis...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Publishing/AssetPublisher.php
@@ -1,4 +1,4 @@ -<?php namespace Illuminate\Foundation; +<?php namespace Illuminate\Foundation\Publishing; use Illuminate\Filesystem\Filesystem;
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Publishing/ConfigPublisher.php
@@ -1,4 +1,4 @@ -<?php namespace Illuminate\Foundation; +<?php namespace Illuminate\Foundation\Publishing; use Illuminate\Filesystem\Filesystem;
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Publishing/MigrationPublisher.php
@@ -1,4 +1,4 @@ -<?php namespace Illuminate\Foundation; +<?php namespace Illuminate\Foundation\Publishing; use Carbon\Carbon; use Illuminate\Filesystem\Filesystem;
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Foundation/Publishing/ViewPublisher.php
@@ -1,4 +1,4 @@ -<?php namespace Illuminate\Foundation; +<?php namespace Illuminate\Foundation\Publishing; use Illuminate\Filesystem\Filesystem;
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Http/Exception/HttpResponseException.php
@@ -1,4 +1,4 @@ -<?php namespace Illuminate\Routing\Exception; +<?php namespace Illuminate\Http\Exception; use RuntimeException; use Symfony\Component\HttpFoundation\Response;
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
src/Illuminate/Routing/Route.php
@@ -8,7 +8,7 @@ use Illuminate\Routing\Matching\MethodValidator; use Illuminate\Routing\Matching\SchemeValidator; use Symfony\Component\Routing\Route as SymfonyRoute; -use Illuminate\Routing\Exception\HttpResponseException; +use Illuminate\Http\Exception\HttpResponseException; class Route {
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationAssetPublishCommandTest.php
@@ -12,7 +12,7 @@ public function tearDown() public function testCommandCallsPublisherWithProperPackageName() { - $command = new Illuminate\Foundation\Console\AssetPublishCommand($pub = m::mock('Illuminate\Foundation\AssetPublisher')); + $command = new Illuminate\Foundation\Console\AssetPublishCommand($pub = m:...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationAssetPublisherTest.php
@@ -12,7 +12,7 @@ public function tearDown() public function testBasicPathPublishing() { - $pub = new Illuminate\Foundation\AssetPublisher($files = m::mock('Illuminate\Filesystem\Filesystem'), __DIR__); + $pub = new Illuminate\Foundation\Publishing\AssetPublisher($files = m::mock('Illuminate\Filesystem\Filesyst...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationConfigPublishCommandTest.php
@@ -12,7 +12,7 @@ public function tearDown() public function testCommandCallsPublisherWithProperPackageName() { - $command = new Illuminate\Foundation\Console\ConfigPublishCommand($pub = m::mock('Illuminate\Foundation\ConfigPublisher')); + $command = new Illuminate\Foundation\Console\ConfigPublishCommand($pub =...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationConfigPublisherTest.php
@@ -12,15 +12,15 @@ public function tearDown() public function testPackageConfigPublishing() { - $pub = new Illuminate\Foundation\ConfigPublisher($files = m::mock('Illuminate\Filesystem\Filesystem'), __DIR__); + $pub = new Illuminate\Foundation\Publishing\ConfigPublisher($files = m::mock('Illuminate\Filesystem\...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationViewPublishCommandTest.php
@@ -12,7 +12,7 @@ public function tearDown() public function testCommandCallsPublisherWithProperPackageName() { - $command = new Illuminate\Foundation\Console\ViewPublishCommand($pub = m::mock('Illuminate\Foundation\ViewPublisher')); + $command = new Illuminate\Foundation\Console\ViewPublishCommand($pub = m::mo...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Foundation/FoundationViewPublisherTest.php
@@ -12,15 +12,15 @@ public function tearDown() public function testPackageViewPublishing() { - $pub = new Illuminate\Foundation\ViewPublisher($files = m::mock('Illuminate\Filesystem\Filesystem'), __DIR__); + $pub = new Illuminate\Foundation\Publishing\ViewPublisher($files = m::mock('Illuminate\Filesystem\Filesy...
true
Other
laravel
framework
e8df05c6472c85824e27ea9d56959778ab85f07c.json
Move publishing classes.
tests/Routing/RoutingRouteTest.php
@@ -14,7 +14,7 @@ public function testBasicDispatchingOfRoutes() $this->assertEquals('hello', $router->dispatch(Request::create('foo/bar', 'GET'))->getContent()); $router = $this->getRouter(); - $router->get('foo/bar', function() { throw new Illuminate\Routing\Exception\HttpResponseException(new Response('h...
true
Other
laravel
framework
0d4b6eecc83ea43c48a3dad18be594167de4d2bc.json
Add test for CapsuleManagerTrait and fixes a typo. Signed-off-by: crynobone <crynobone@gmail.com>
tests/Support/SupportCapsuleManagerTraitTest.php
@@ -0,0 +1,37 @@ +<?php + +use Mockery as m; +use Illuminate\Container\Container; +use Illuminate\Support\Traits\CapsuleManagerTrait; + +class SupportCapsuleManagerTraitTest extends \PHPUnit_Framework_TestCase { + + use CapsuleManagerTrait; + + public function tearDown() + { + m::close(); + } + + public function testS...
true
Other
laravel
framework
0d4b6eecc83ea43c48a3dad18be594167de4d2bc.json
Add test for CapsuleManagerTrait and fixes a typo. Signed-off-by: crynobone <crynobone@gmail.com>
tests/Support/SupportMacroTraitTest.php
@@ -28,7 +28,7 @@ public function testRegisterMacro() } - public function testResgisterMacroAndCallWithoutStatic() + public function testRegisterMacroAndCallWithoutStatic() { $macroTrait = $this->macroTrait; $macroTrait::macro(__CLASS__, function() { return 'Taylor'; });
true
Other
laravel
framework
936c734964afc1f2503dec8c7cf32eb360ff4898.json
Update the change log.
src/Illuminate/Foundation/changes.json
@@ -1,7 +1,8 @@ { "4.3.*": [ {"message": "Allow passing a priority to Eloquent event listeners.", "backport": null}, - {"message": "Tweak 'compile' configuration file for 'files' and 'providers' support.", "backport": null} + {"message": "Tweak 'compile' configuration file for 'files' and 'providers' support.",...
false
Other
laravel
framework
7931724ee9518b82ffd2f7476a4b2af335ae32cc.json
Fix doc block.
src/Illuminate/Foundation/AliasLoader.php
@@ -24,7 +24,9 @@ class AliasLoader { protected static $instance; /** - * Singleton shouln't allow instantiation + * Create a new AliasLoader instance. + * + * @param array $aliases */ private function __construct($aliases) {
false
Other
laravel
framework
5691f12b63f3cbe41d950a26cc0f64d8ce4a7cd3.json
Add default function.
src/Illuminate/Support/ServiceProvider.php
@@ -189,4 +189,14 @@ public function isDeferred() return $this->defer; } + /** + * Get a list of files that should be compiled for the package. + * + * @return array + */ + public static function compiles() + { + return []; + } + }
false
Other
laravel
framework
1fa90966dd7867da71d03115d5bb6cdb071f8864.json
Handle new compile config.
src/Illuminate/Foundation/Console/OptimizeCommand.php
@@ -101,11 +101,16 @@ protected function compileClasses() */ protected function getClassFiles() { - $app = $this->laravel; - $core = require __DIR__.'/Optimize/config.php'; - return array_merge($core, $this->laravel['config']['compile']); + $files = array_merge($core, $this->laravel['config']['compile.fi...
false
Other
laravel
framework
b18c7258f7ae8ba3a01a41c272cbf2f7e0b75005.json
Set incremented value on model.
src/Illuminate/Database/Eloquent/Model.php
@@ -1302,9 +1302,26 @@ protected function incrementOrDecrement($column, $amount, $method) return $query->{$method}($column, $amount); } + $this->incrementOrDecrementAttributeValue($column, $amount, $method); + return $query->where($this->getKeyName(), $this->getKey())->{$method}($column, $amount); } + ...
true