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
6b190c3d0862f9de9432edf28e939cb5e3f8637d.json
Use implode instead of alias (#22654)
src/Illuminate/Database/Query/Grammars/Grammar.php
@@ -484,7 +484,7 @@ protected function whereRowValues(Builder $query, $where) { $values = $this->parameterize($where['values']); - return '('.join(', ', $where['columns']).') '.$where['operator'].' ('.$values.')'; + return '('.implode(', ', $where['columns']).') '.$where['operator'].' ('.$...
false
Other
laravel
framework
61f8477fab55a258f39a3d598f67f7cc0ffd6aca.json
add option for double encode
src/Illuminate/Support/helpers.php
@@ -568,15 +568,16 @@ function dd(...$args) * Escape HTML special characters in a string. * * @param \Illuminate\Contracts\Support\Htmlable|string $value + * @param bool $doubleEncode * @return string */ - function e($value) + function e($value, $doubleEncode = false) { ...
false
Other
laravel
framework
74a8738162b4a41a5647d423273720aac1abb0f0.json
Fix typo Query/Builder::where (#22643)
src/Illuminate/Database/Query/Builder.php
@@ -480,7 +480,7 @@ public function mergeWheres($wheres, $bindings) * Add a basic where clause to the query. * * @param string|array|\Closure $column - * @param string|null $operator + * @param mixed $operator * @param mixed $value * @param string $boolean * @retu...
false
Other
laravel
framework
b373f74ed21bcb04cd86bd71a017e8293fb43ab8.json
Apply fixes from StyleCI (#22651)
src/Illuminate/Auth/RequestGuard.php
@@ -81,7 +81,7 @@ public function validate(array $credentials = []) public function setRequest(Request $request) { $this->user = null; - + $this->request = $request; return $this;
false
Other
laravel
framework
7553c0ba7aeb092f7cf519462a2a32a45a33e682.json
Update Mailer.php (#22639) Update docblock, fixes #22633
src/Illuminate/Mail/Mailer.php
@@ -177,7 +177,7 @@ public function plain($view, array $data, $callback) * * @param string|array $view * @param array $data - * @return \Illuminate\View\View + * @return string */ public function render($view, array $data = []) {
false
Other
laravel
framework
c22ac4bcb9ed425d599827e89ba274c4ae58f6c9.json
Apply fixes from StyleCI (#22631)
tests/Support/SupportCollectionTest.php
@@ -1614,7 +1614,7 @@ public function testGroupByMultiLevelAndClosurePreservingKeys() 'skilllevel', function ($item) { return $item['roles']; - } + }, ], true); $expected_result = [
false
Other
laravel
framework
a145ab29a0b06fe4f7924d9e101db0d34d07cd51.json
Implement MorphOne and MorphMany
src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
@@ -97,7 +97,22 @@ public function morphOne($related, $name, $type = null, $id = null, $localKey = $localKey = $localKey ?: $this->getKeyName(); - return new MorphOne($instance->newQuery(), $this, $table.'.'.$type, $table.'.'.$id, $localKey); + return $this->newMorphOne($instance->newQuery(),...
true
Other
laravel
framework
a145ab29a0b06fe4f7924d9e101db0d34d07cd51.json
Implement MorphOne and MorphMany
tests/Integration/Database/EloquentRelationshipsTest.php
@@ -7,6 +7,8 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\HasMany; +use Illuminate\Database\Eloquent\Relations\MorphOne; +use Illuminate\Database\Eloquent\Relations\MorphMany; use Illuminate\Database\Eloquent\Relations\Bel...
true
Other
laravel
framework
2093e7e8e440f90499ececbad759b701cb864853.json
add null to docs
src/Illuminate/Notifications/Messages/SlackAttachment.php
@@ -117,7 +117,7 @@ class SlackAttachment * Set the title of the attachment. * * @param string $title - * @param string $url + * @param string|null $url * @return $this */ public function title($title, $url = null) @@ -286,8 +286,8 @@ public function timestamp($timestamp...
false
Other
laravel
framework
68d3a1b60f74d754f375c14c71652fd6db4e9f58.json
Keep packages alphabetically sorted (#22595)
composer.json
@@ -19,10 +19,10 @@ "ext-mbstring": "*", "ext-openssl": "*", "doctrine/inflector": "~1.1", + "dragonmantank/cron-expression": "~2.0", "erusev/parsedown": "~1.6", "league/flysystem": "~1.0", "monolog/monolog": "~1.12", - "dragonmantank/cron-expression":...
false
Other
laravel
framework
02d3a0d583eef4bcec3b1150bb072b722a6c689a.json
Remove unused use statements
src/Illuminate/Foundation/Console/ChannelMakeCommand.php
@@ -3,7 +3,6 @@ namespace Illuminate\Foundation\Console; use Illuminate\Console\GeneratorCommand; -use Symfony\Component\Console\Input\InputOption; class ChannelMakeCommand extends GeneratorCommand {
false
Other
laravel
framework
f8ef32f031ea642582f9c33297a4563be29d36e8.json
Fix version of doctrine/dbal for PHP 7.1 (#22563)
composer.json
@@ -72,7 +72,7 @@ }, "require-dev": { "aws/aws-sdk-php": "~3.0", - "doctrine/dbal": "~2.5", + "doctrine/dbal": "~2.6", "filp/whoops": "^2.1.4", "mockery/mockery": "~1.0", "orchestra/testbench-core": "3.6.*", @@ -108,7 +108,7 @@ "ext-pcntl": "Required ...
true
Other
laravel
framework
f8ef32f031ea642582f9c33297a4563be29d36e8.json
Fix version of doctrine/dbal for PHP 7.1 (#22563)
src/Illuminate/Database/composer.json
@@ -31,7 +31,7 @@ } }, "suggest": { - "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.5).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.6).", "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).", ...
true
Other
laravel
framework
65b304e52f92759c3e8233767e2755c7b763fd99.json
Apply fixes from StyleCI (#22557)
tests/Filesystem/FilesystemTest.php
@@ -2,11 +2,11 @@ namespace Illuminate\Tests\Filesystem; -use Illuminate\Filesystem\FilesystemManager; -use Illuminate\Foundation\Application; -use League\Flysystem\Adapter\Ftp; use PHPUnit\Framework\TestCase; +use League\Flysystem\Adapter\Ftp; use Illuminate\Filesystem\Filesystem; +use Illuminate\Foundation\App...
false
Other
laravel
framework
6535186b0f71a6b0cc2d8a821f3de209c05bcf4f.json
allow customization of mail message building
src/Illuminate/Auth/Notifications/ResetPassword.php
@@ -14,6 +14,13 @@ class ResetPassword extends Notification */ public $token; + /** + * The callback that should be used to build the mail message. + * + * @var \Closure|null + */ + public static $toMailCallback; + /** * Create a notification instance. * @@ -44,9 +51,...
false
Other
laravel
framework
a926eede7a37b04123c103c398664a6f0389d0e0.json
Ignore VSCode IDE Local Workspace Folder (#22550) VSCode creates a hidden folder called ".vscode" when storing workspace settings for instance which we do not necessarily want to be added to our source control.
.gitignore
@@ -5,3 +5,4 @@ composer.lock Thumbs.db /phpunit.xml /.idea +/.vscode
false
Other
laravel
framework
a55c4bf892d4cdcd0213218fe77076c4a1b6969c.json
add assertDispatchedTimes for event fakes (#22528)
src/Illuminate/Support/Testing/Fakes/EventFake.php
@@ -47,17 +47,36 @@ public function __construct(Dispatcher $dispatcher, $eventsToFake = []) * Assert if an event was dispatched based on a truth-test callback. * * @param string $event - * @param callable|null $callback + * @param callable|int|null $callback * @return void */...
true
Other
laravel
framework
a55c4bf892d4cdcd0213218fe77076c4a1b6969c.json
add assertDispatchedTimes for event fakes (#22528)
tests/Support/SupportTestingEventFakeTest.php
@@ -0,0 +1,65 @@ +<?php + +namespace Illuminate\Tests\Support; + +use Mockery as m; +use PHPUnit\Framework\TestCase; +use Illuminate\Contracts\Events\Dispatcher; +use Illuminate\Support\Testing\Fakes\EventFake; + +class SupportTestingEventFakeTest extends TestCase +{ + protected function setUp() + { + pare...
true
Other
laravel
framework
90ef1d31b22a042233adb6bfbc1e7f162bb96b73.json
Add test for size inline messages
tests/Validation/ValidationValidatorTest.php
@@ -562,6 +562,12 @@ public function testInlineValidationMessagesAreRespected() $this->assertFalse($v->passes()); $v->messages()->setFormat(':message'); $this->assertEquals('require it please!', $v->messages()->first('name')); + + $trans = $this->getIlluminateArrayTranslator(); + ...
false
Other
laravel
framework
ae2f7043a95f18fa520c886730670f28667f08ea.json
Fix prepareResponse()'s return type (#22517) As it is converted to `\Illuminate\Http\Response`
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -277,7 +277,7 @@ protected function invalidJson($request, ValidationException $exception) * * @param \Illuminate\Http\Request $request * @param \Exception $e - * @return \Symfony\Component\HttpFoundation\Response + * @return \Illuminate\Http\Response */ protected function prep...
false
Other
laravel
framework
334d5a618e7b76ef5c5d90151a05af22e0e32057.json
Apply fixes from StyleCI (#22481)
src/Illuminate/Http/Request.php
@@ -292,7 +292,7 @@ public function userAgent() public function merge(array $input) { $this->getInputSource()->add($input); - + return $this; } @@ -305,7 +305,7 @@ public function merge(array $input) public function replace(array $input) { $this->getInputSou...
false
Other
laravel
framework
c1cdcab67f356c7729d2d1b89747f2ba50fce9e5.json
Apply fixes from StyleCI (#22452)
src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
@@ -187,7 +187,7 @@ public function compileUpdate(Builder $query, $values) { $table = $this->wrapTable($query->from); - $columns = collect($values)->map(function ($value, $key) use($query) { + $columns = collect($values)->map(function ($value, $key) use ($query) { return $this...
true
Other
laravel
framework
c1cdcab67f356c7729d2d1b89747f2ba50fce9e5.json
Apply fixes from StyleCI (#22452)
tests/Integration/Database/EloquentUpdateTest.php
@@ -34,7 +34,7 @@ public function setUp() $table->string('name')->nullable(); $table->string('title')->nullable(); }); - + Schema::create('test_model2', function ($table) { $table->increments('id'); $table->string('name'); @@ -47,7 +47,7 @@ p...
true
Other
laravel
framework
2564437750326edfe5b55da57ae295a770f4c9e5.json
Add array support to Optional (#22417)
src/Illuminate/Support/Optional.php
@@ -2,7 +2,9 @@ namespace Illuminate\Support; -class Optional +use ArrayAccess; + +class Optional implements ArrayAccess { use Traits\Macroable { __call as macroCall; @@ -56,4 +58,53 @@ public function __call($method, $parameters) return $this->value->{$method}(...$parameters); ...
true
Other
laravel
framework
2564437750326edfe5b55da57ae295a770f4c9e5.json
Add array support to Optional (#22417)
tests/Support/SupportHelpersTest.php
@@ -774,6 +774,13 @@ public function something() })->something()); } + public function testOptionalWithArray() + { + $this->assertNull(optional(null)['missing']); + + $this->assertEquals('here', optional(['present' => 'here'])['present']); + } + public function testOptionalIs...
true
Other
laravel
framework
541228883e0c8090acc16ecb47cc8b38c2be75b3.json
Add cattle to $uncountable (#22415) * Add cattle and tarmac to $uncountable * Remove tarmac
src/Illuminate/Support/Pluralizer.php
@@ -14,6 +14,7 @@ class Pluralizer public static $uncountable = [ 'audio', 'bison', + 'cattle', 'chassis', 'compensation', 'coreopsis',
false
Other
laravel
framework
f083c6f1f9bab013b57710e50bf3ae4094cd21ec.json
Fix database events phpdoc (#22420)
src/Illuminate/Database/Events/QueryExecuted.php
@@ -44,8 +44,8 @@ class QueryExecuted * * @param string $sql * @param array $bindings - * @param float $time - * @param string $connection + * @param float|null $time + * @param \Illuminate\Database\Connection $connection * @return void */ public function _...
false
Other
laravel
framework
b6a17a13790dd357061ab569b95a1dea9f4c4d06.json
Apply fixes from StyleCI (#22410)
src/Illuminate/Support/Collection.php
@@ -390,7 +390,7 @@ public function every($key, $operator = null, $value = null) */ public function except($keys) { - if ($keys instanceof Collection) { + if ($keys instanceof self) { $keys = $keys->keys()->all(); } elseif (! is_array($keys)) { $keys = fu...
false
Other
laravel
framework
5defbd745dc41577e408d9714b137b056c3bd807.json
Add an HTTP cache middleware
src/Illuminate/Http/Middleware/Cache.php
@@ -0,0 +1,49 @@ +<?php + +namespace Illuminate\Http\Middleware; + +use Closure; + +class Cache +{ + /** + * Add cache related HTTP headers. + * + * @param \Illuminate\Http\Request $request + * @param \Closure $next + * @param int|null $maxAge + * @param int|null $sharedMaxAge + *...
true
Other
laravel
framework
5defbd745dc41577e408d9714b137b056c3bd807.json
Add an HTTP cache middleware
tests/Http/Middleware/CacheTest.php
@@ -0,0 +1,44 @@ +<?php + +namespace Illuminate\Tests\Http\Middleware; + +use Illuminate\Http\Request; +use Illuminate\Http\Response; +use PHPUnit\Framework\TestCase; +use Illuminate\Http\Middleware\Cache; + +class CacheTest extends TestCase +{ + public function testDoNotSetHeaderWhenMethodNotCacheable() + { + ...
true
Other
laravel
framework
54e6048e3ca49715252505ffe2b3668689b5f8bf.json
Use Null Coalesce Operator (#22383)
src/Illuminate/Auth/AuthManager.php
@@ -65,9 +65,7 @@ public function guard($name = null) { $name = $name ?: $this->getDefaultDriver(); - return isset($this->guards[$name]) - ? $this->guards[$name] - : $this->guards[$name] = $this->resolve($name); + return $this->guards[$name] ?? $this->...
false
Other
laravel
framework
26e10c7e57ad309c9e8d7a5766a0c0160890d9bc.json
Apply StyleCI recommendations
src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
@@ -506,7 +506,6 @@ protected function typeYear(Fluent $column) return $this->typeInteger($column); } - /** * Create the column definition for a date-time type. *
false
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
src/Illuminate/Database/Schema/Blueprint.php
@@ -783,6 +783,17 @@ public function dateTime($column, $precision = 0) return $this->addColumn('dateTime', $column, compact('precision')); } + /** + * Create a new year column on the table. + * + * @param string $column + * @return \Illuminate\Support\Fluent + */ + public fun...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
@@ -585,6 +585,17 @@ protected function typeDate(Fluent $column) return 'date'; } + /** + * Create the column definition for a year type. + * + * @param \Illuminate\Support\Fluent $column + * @return string + */ + protected function typeYear(Fluent $column) + { + r...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
@@ -536,6 +536,17 @@ protected function typeDate(Fluent $column) return 'date'; } + /** + * Create the column definition for a year type (Polyfill). + * + * @param \Illuminate\Support\Fluent $column + * @return string + */ + protected function typeYear(Fluent $column) + { ...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
@@ -545,6 +545,17 @@ protected function typeDate(Fluent $column) return 'date'; } + /** + * Create the column definition for a year type (Polyfill). + * + * @param \Illuminate\Support\Fluent $column + * @return string + */ + protected function typeYear(Fluent $column) + { ...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
@@ -495,6 +495,18 @@ protected function typeDate(Fluent $column) return 'date'; } + /** + * Create the column definition for a year type (Polyfill). + * + * @param \Illuminate\Support\Fluent $column + * @return string + */ + protected function typeYear(Fluent $column) + { ...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
tests/Database/DatabaseMySqlSchemaGrammarTest.php
@@ -626,6 +626,15 @@ public function testAddingDate() $this->assertEquals('alter table `users` add `foo` date not null', $statements[0]); } + public function testAddingYear() + { + $blueprint = new Blueprint('users'); + $blueprint->year('birth_year'); + $statements = $blueprin...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
tests/Database/DatabasePostgresSchemaGrammarTest.php
@@ -449,6 +449,15 @@ public function testAddingDate() $this->assertEquals('alter table "users" add column "foo" date not null', $statements[0]); } + public function testAddingYear() + { + $blueprint = new Blueprint('users'); + $blueprint->year('birth_year'); + $statements = $b...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
tests/Database/DatabaseSQLiteSchemaGrammarTest.php
@@ -416,6 +416,15 @@ public function testAddingDate() $this->assertEquals('alter table "users" add column "foo" date not null', $statements[0]); } + public function testAddingYear() + { + $blueprint = new Blueprint('users'); + $blueprint->year('birth_year'); + $statements = $b...
true
Other
laravel
framework
2d1328b5eae791ea5771fabe077666321b3cdb70.json
Add Support for 'year' datatype for Schema
tests/Database/DatabaseSqlServerSchemaGrammarTest.php
@@ -482,6 +482,15 @@ public function testAddingDate() $this->assertEquals('alter table "users" add "foo" date not null', $statements[0]); } + public function testAddingYear() + { + $blueprint = new Blueprint('users'); + $blueprint->year('birth_year'); + $statements = $blueprin...
true
Other
laravel
framework
c55de5e654d136bc24ca126aca4f5daf87491faa.json
fix sqs queue for 7.2 (#22374)
src/Illuminate/Queue/SqsQueue.php
@@ -121,7 +121,7 @@ public function pop($queue = null) 'AttributeNames' => ['ApproximateReceiveCount'], ]); - if (count($response['Messages']) > 0) { + if (! is_null($response['Messages']) && count($response['Messages']) > 0) { return new SqsJob( $this...
true
Other
laravel
framework
c55de5e654d136bc24ca126aca4f5daf87491faa.json
fix sqs queue for 7.2 (#22374)
tests/Queue/QueueSqsQueueTest.php
@@ -52,6 +52,10 @@ public function setUp() ], ]); + $this->mockedReceiveEmptyMessageResponseModel = new Result([ + 'Messages' => null, + ]); + $this->mockedQueueAttributesResponseModel = new Result([ 'Attributes' => [ 'ApproximateNu...
true
Other
laravel
framework
d44d156aaa545c3231608a423728523a976c4e4b.json
Simplify doc block
src/Illuminate/Database/Schema/PostgresBuilder.php
@@ -83,9 +83,7 @@ public function getColumnListing($table) } /** - * Determines which schema should be used - * Returns and array of schema and table name - * less schema name if found + * Determines which schema should be used. * * @param string $table * @return [ string...
false
Other
laravel
framework
ada99e5e6b8c77feb8d0c5942612b5b431c59043.json
fix SQLite Update
src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
@@ -3,6 +3,7 @@ namespace Illuminate\Database\Query\Grammars; use Illuminate\Support\Arr; +use Illuminate\Support\Str; use Illuminate\Database\Query\Builder; class SQLiteGrammar extends Grammar @@ -175,6 +176,54 @@ public function compileInsert(Builder $query, array $values) return "insert into $table ...
true
Other
laravel
framework
ada99e5e6b8c77feb8d0c5942612b5b431c59043.json
fix SQLite Update
tests/Database/DatabaseQueryBuilderTest.php
@@ -1485,12 +1485,17 @@ public function testUpdateMethodWithJoinsOnMySql() public function testUpdateMethodWithJoinsOnSQLite() { $builder = $this->getSQLiteBuilder(); - $builder->getConnection()->shouldReceive('update')->once()->with('update "users" inner join "orders" on "users"."id" = "order...
true
Other
laravel
framework
ada99e5e6b8c77feb8d0c5942612b5b431c59043.json
fix SQLite Update
tests/Integration/Database/EloquentUpdateTest.php
@@ -0,0 +1,128 @@ +<?php + +namespace Illuminate\Tests\Integration\Database; + +use Orchestra\Testbench\TestCase; +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\SoftDeletes; + +/** + * @group integration + */ +class EloquentUpdateTest extends TestCase ...
true
Other
laravel
framework
71372121752d49d47d9c0407943cfe0092c11cf0.json
Allow setting editor for Whoops
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -371,6 +371,10 @@ protected function whoopsHandler() } } + if (config('app.debug_editor', false)) { + $handler->setEditor(config('app.debug_editor'); + } + $handler->setApplicationPaths( array_flip(Arr::except( ...
false
Other
laravel
framework
015ea8fd59e7a1bd38d08a3036ce08c045fe9075.json
Apply fixes from StyleCI (#22346)
tests/Queue/QueueDatabaseQueueUnitTest.php
@@ -112,8 +112,8 @@ public function testBulkBatchPushesOntoDatabase() public function testBuildDatabaseRecordWithPayloadAtTheEnd() { $queue = m::mock('Illuminate\Queue\DatabaseQueue'); - $record = $queue->buildDatabaseRecord('queue','any_payload',0); + $record = $queue->buildDatabaseRec...
false
Other
laravel
framework
2054da77e02f1eebfd367fbfe903e84aa35e5085.json
Apply fixes from StyleCI (#22341)
tests/Database/DatabaseSchemaBuilderIntegrationTest.php
@@ -59,7 +59,7 @@ public function testDropAllTablesWorksWithForeignKeys() public function testHasColumnWithTablePrefix() { $this->db->connection()->setTablePrefix('test_'); - + $this->db->connection()->getSchemaBuilder()->create('table1', function ($table) { $table->inte...
false
Other
laravel
framework
47fbf49d11194fcd985163093fa6791352df1d8e.json
Add flushCache method
src/Illuminate/Filesystem/FilesystemAdapter.php
@@ -614,6 +614,20 @@ public function getDriver() return $this->driver; } + /** + * Flush the Flysystem cache. + * + * @return void + */ + public function flushCache() + { + $adapter = $this->driver->getAdapter(); + + if ($adapter instanceof CachedAdapter) { + ...
false
Other
laravel
framework
afbc5ac7c32f3ad5d862a6d6c4063bdde964b966.json
Remove unused import
src/Illuminate/Filesystem/FilesystemManager.php
@@ -16,7 +16,6 @@ use League\Flysystem\Adapter\Local as LocalAdapter; use League\Flysystem\AwsS3v3\AwsS3Adapter as S3Adapter; use League\Flysystem\Cached\Storage\Memory as MemoryStore; -use League\Flysystem\Cached\Storage\Predis as PredisStore; use Illuminate\Contracts\Filesystem\Factory as FactoryContract; /**
false
Other
laravel
framework
7d0528112358a0312d2ac52aae653f71b0db8233.json
Support all cache drivers
src/Illuminate/Filesystem/Cache.php
@@ -0,0 +1,77 @@ +<?php + +namespace Illuminate\Filesystem; + +use Illuminate\Contracts\Cache\Repository; +use League\Flysystem\Cached\Storage\AbstractCache; + +class Cache extends AbstractCache +{ + /** + * The cache repository instance. + * + * @var \Illuminate\Contracts\Cache\Repository + */ + ...
true
Other
laravel
framework
7d0528112358a0312d2ac52aae653f71b0db8233.json
Support all cache drivers
src/Illuminate/Filesystem/FilesystemManager.php
@@ -286,29 +286,10 @@ protected function createCacheStore($config) return new MemoryStore; } - $storeConfig = $this->app['config']['cache.stores.'.Arr::get($config, 'store')]; - - if (Arr::get($storeConfig, 'driver') === 'redis') { - return $this->createRedisCacheStore($...
true
Other
laravel
framework
7bdf8674651ad21bcf647a1a64efd569356313ef.json
Apply fixes from StyleCI (#22327)
tests/Database/DatabaseQueryBuilderTest.php
@@ -1583,7 +1583,6 @@ public function testDeleteMethod() $result = $builder->from('users')->where('email', '=', 'foo')->orderBy('id')->take(1)->delete(); $this->assertEquals(1, $result); - $builder = $this->getMySqlBuilder(); $builder->getConnection()->shouldReceive('delete')->once...
true
Other
laravel
framework
7bdf8674651ad21bcf647a1a64efd569356313ef.json
Apply fixes from StyleCI (#22327)
tests/Integration/Database/EloquentDeleteTest.php
@@ -44,12 +44,12 @@ public function setUp() public function testOnlyDeleteWhatGiven() { - for($i = 1; $i <= 10; $i++) { + for ($i = 1; $i <= 10; $i++) { Comment::create([ - 'post_id' => Post::create()->id + 'post_id' => Post::create()->id, ...
true
Other
laravel
framework
878f1cfb5eeca55bb52e566cc2f96d9a9fb20255.json
Add composer suggestion
composer.json
@@ -114,6 +114,7 @@ "laravel/tinker": "Required to use the tinker console command (~1.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", + "league/flysystem-cache...
false
Other
laravel
framework
54f23fe1e08b25405b1ceaae1b7389dd572bc400.json
add a missing import
src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
@@ -2,6 +2,7 @@ namespace Illuminate\Database\Query\Grammars; +use Illuminate\Support\Arr; use Illuminate\Database\Query\Builder; class SQLiteGrammar extends Grammar
false
Other
laravel
framework
76cb1f3ff1d9ed72acb90224ab7184d15bcc502f.json
Apply fixes from StyleCI (#22296)
src/Illuminate/Foundation/Testing/WithFaker.php
@@ -3,7 +3,6 @@ namespace Illuminate\Foundation\Testing; use Faker\Factory; -use Faker\Generator; trait WithFaker {
false
Other
laravel
framework
d48d7b4d4b91a0597960407687bc01b2094da02a.json
detect persistent connection reset (#22277)
src/Illuminate/Database/DetectsLostConnections.php
@@ -31,6 +31,7 @@ protected function causedByLostConnection(Exception $e) 'Transaction() on null', 'child connection forced to terminate due to client_idle_limit', 'query_wait_timeout', + 'reset by peer', ]); } }
false
Other
laravel
framework
cbe8123a479e81779cd85251eb4a5cf861e93ea3.json
add accessor for pivot timestamp informaiton
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -75,6 +75,13 @@ class BelongsToMany extends Relation */ protected $pivotWhereIns = []; + /** + * Indicates if timestamps are available on the pivot table. + * + * @var bool + */ + public $withTimestamps = false; + /** * The custom pivot table column for the created_at ti...
false
Other
laravel
framework
f09ea98bc814c708215896dad702d715923f3bc3.json
add accessor for pivot accessor
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -952,4 +952,14 @@ public function getRelationName() { return $this->relationName; } + + /** + * Get the name of the pivot accessor for this relationship. + * + * @return string + */ + public function getPivotAccessor() + { + return $this->accessor; + } }
false
Other
laravel
framework
a472d71fdfeb3e02a5e487e6fa395f7ea56d20ed.json
Apply fixes from StyleCI (#22259)
src/Illuminate/Console/Scheduling/Schedule.php
@@ -3,7 +3,6 @@ namespace Illuminate\Console\Scheduling; use DateTimeInterface; -use Illuminate\Support\Carbon; use Illuminate\Console\Application; use Illuminate\Container\Container; use Illuminate\Contracts\Queue\ShouldQueue;
false
Other
laravel
framework
a039b0c627dc26d3b132e5ab56bd288b23806f65.json
Fix incorrect paramerter name in docBlock (#22248)
src/Illuminate/Validation/Concerns/FormatsMessages.php
@@ -271,7 +271,7 @@ protected function replaceAttributePlaceholder($message, $value) * Replace the :input placeholder in the given message. * * @param string $message - * @param string $value + * @param string $attribute * @return string */ protected function replaceInpu...
false
Other
laravel
framework
77227bd9f53ac0b6ad07e9007582443e8767f612.json
Apply fixes from StyleCI (#22223)
src/Illuminate/Database/Eloquent/Model.php
@@ -1155,9 +1155,9 @@ public static function unsetConnectionResolver() public function getTable() { if (! isset($this->table)) { - $this->setTable(str_replace( - '\\', '', Str::snake(Str::plural(class_basename($this))) - )); + $this->setTable(str_replace( + ...
false
Other
laravel
framework
cabb61012f67c4a1ad9278dc88ce47b710dbe9d3.json
Use assertFileExists (#22219)
tests/Filesystem/FilesystemTest.php
@@ -405,7 +405,7 @@ public function testCopyCopiesFileProperly() mkdir($this->tempDir.'/foo'); file_put_contents($this->tempDir.'/foo/foo.txt', $data); $filesystem->copy($this->tempDir.'/foo/foo.txt', $this->tempDir.'/foo/foo2.txt'); - $this->assertTrue(file_exists($this->tempDir.'/foo...
false
Other
laravel
framework
5434f834cfa9411401003786fada6f30ff748a6d.json
Detect MySQL Galera deadblocks. (#22214)
src/Illuminate/Database/DetectsDeadlocks.php
@@ -26,6 +26,7 @@ protected function causedByDeadlock(Exception $e) 'A table in the database is locked', 'has been chosen as the deadlock victim', 'Lock wait timeout exceeded; try restarting transaction', + 'WSREP detected deadlock/conflict and aborted the transaction. ...
false
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Database/Eloquent/FactoryBuilder.php
@@ -286,8 +286,8 @@ protected function applyStates(array $definition, array $attributes = []) /** * Get the state attributes. * - * @param string $state - * @param array $attributes + * @param string $state + * @param array $attributes * @return array */ protected f...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Database/Query/Grammars/Grammar.php
@@ -551,7 +551,7 @@ protected function compileOrders(Builder $query, $orders) /** * Compile the query orders to an array. * - * @param \Illuminate\Database\Query\Builder + * @param \Illuminate\Database\Query\Builder $query * @param array $orders * @return array */
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Filesystem/FilesystemAdapter.php
@@ -496,10 +496,10 @@ public function getAwsTemporaryUrl($adapter, $path, $expiration, $options) /** * Get a temporary URL for the file at the given path. * - * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter - * @param string $path - * @param \DateTimeInterface $expiration ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Application.php
@@ -299,7 +299,7 @@ protected function bindPathsInContainer() /** * Get the path to the application "app" directory. * - * @param string $path Optionally, a path to append to the app path + * @param string $path Optionally, a path to append to the app path * @return string */ ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Auth/ResetsPasswords.php
@@ -128,7 +128,7 @@ protected function sendResetResponse($response) /** * Get the response for a failed password reset. * - * @param \Illuminate\Http\Request + * @param \Illuminate\Http\Request $request * @param string $response * @return \Illuminate\Http\RedirectResponse|\Illu...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php
@@ -42,7 +42,7 @@ public function sendResetLinkEmail(Request $request) /** * Validate the email for the given request. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return void */ protected function validateEmail(Request $requ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Console/PackageDiscoverCommand.php
@@ -24,7 +24,7 @@ class PackageDiscoverCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Foundation\PackageManifest + * @param \Illuminate\Foundation\PackageManifest $manifest * @return void */ public function handle(PackageManifest $manifes...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Console/VendorPublishCommand.php
@@ -135,7 +135,7 @@ protected function publishableChoices() /** * Parse the answer that was given via the prompt. * - * @param string $choice + * @param string $choice * @return void */ protected function parseChoice($choice)
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Console/stubs/resource-collection.stub
@@ -9,7 +9,7 @@ class DummyClass extends ResourceCollection /** * Transform the resource collection into an array. * - * @param \Illuminate\Http\Request + * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request)
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Console/stubs/resource.stub
@@ -9,7 +9,7 @@ class DummyClass extends Resource /** * Transform the resource into an array. * - * @param \Illuminate\Http\Request + * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request)
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php
@@ -74,7 +74,7 @@ protected function isAuthenticated($guard = null) /** * Assert that the user is authenticated as the given user. * - * @param $user + * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string|null $guard * @return $this */
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php
@@ -71,7 +71,7 @@ protected function withoutExceptionHandling(array $except = []) /** * Create a new class instance. * - * @param \Illuminate\Contracts\Debug\ExceptionHandler + * @param \Illuminate\Contracts\Debug\ExceptionHandler $originalHandler ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Foundation/Testing/TestResponse.php
@@ -454,8 +454,8 @@ public function assertJsonStructure(array $structure = null, $responseData = nul /** * Assert that the response JSON has the expected count of items at the given key. * - * @param int $count - * @param string|null $key + * @param int $count + * @param string|null ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Http/Resources/Json/Resource.php
@@ -116,7 +116,7 @@ public function toArray($request) /** * Get any additional data that should be returned with the resource array. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return array */ public function with($request)
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Mail/Transport/SparkPostTransport.php
@@ -105,7 +105,7 @@ protected function getRecipients(Swift_Mime_SimpleMessage $message) /** * Get the transmission ID from the response. * - * @param \GuzzleHttp\Psr7\Response $response + * @param \GuzzleHttp\Psr7\Response $response * @return string */ protected function getT...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Redis/Connections/PhpRedisConnection.php
@@ -50,7 +50,7 @@ public function mget(array $keys) /** * Determine if the given keys exist. * - * @param dynamic $key + * @param dynamic $keys * @return int */ public function exists(...$keys) @@ -65,11 +65,11 @@ public function exists(...$keys) /** * Set the st...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Routing/RouteUrlGenerator.php
@@ -11,7 +11,7 @@ class RouteUrlGenerator /** * The URL generator instance. * - * @param \Illuminate\Routing\UrlGenerator + * @var \Illuminate\Routing\UrlGenerator */ protected $url;
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Routing/Router.php
@@ -230,9 +230,9 @@ public function fallback($action) /** * Create a redirect from one URI to another. * - * @param string $uri - * @param string $destination - * @param int $status + * @param string $uri + * @param string $destination + * @param int $status * @re...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Support/InteractsWithTime.php
@@ -40,7 +40,7 @@ protected function availableAt($delay = 0) /** * If the given value is an interval, convert it to a DateTime instance. * - * @param \DateTimeInterface|\DateInterval|int + * @param \DateTimeInterface|\DateInterval|int $delay * @return \DateTimeInterface|int */ ...
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/Support/helpers.php
@@ -548,7 +548,7 @@ function data_set(&$target, $key, $value, $overwrite = true) /** * Dump the passed variables and end the script. * - * @param mixed + * @param mixed $args * @return void */ function dd(...$args)
true
Other
laravel
framework
c91c742eb1f6a0cefacde3a558566081f7738f2c.json
Fix docblock style for 'param' attributes (#22159)
src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php
@@ -44,7 +44,7 @@ protected function compileIncludeIf($expression) /** * Compile the include-when statements into valid PHP. * - * @param string $expression + * @param string $expression * @return string */ protected function compileIncludeWhen($expression)
true
Other
laravel
framework
54b2cb66de5ea72a4cd392caf473dc94006401f1.json
Add support for newQueryForRestoration from queues
src/Illuminate/Database/Eloquent/Model.php
@@ -878,6 +878,25 @@ public function newQueryWithoutScope($scope) return $builder->withoutGlobalScope($scope); } + /** + * Get a new query to restore one or more models by the queueable IDs. + * + * @param array|int $ids + * + * @return \Illuminate\Database\Eloquent\Builder + ...
true
Other
laravel
framework
54b2cb66de5ea72a4cd392caf473dc94006401f1.json
Add support for newQueryForRestoration from queues
src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php
@@ -48,10 +48,12 @@ protected function getRestoredPropertyValue($value) return $value; } + $model = (new $value->class)->setConnection($value->connection); + return is_array($value->id) - ? $this->restoreCollection($value) - : $this->getQueryForModel...
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Auth/Access/Response.php
@@ -15,6 +15,7 @@ class Response * Create a new response. * * @param string|null $message + * @return void */ public function __construct($message = null) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Auth/Events/Attempting.php
@@ -23,6 +23,7 @@ class Attempting * * @param array $credentials * @param bool $remember + * @return void */ public function __construct($credentials, $remember) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Auth/Events/Failed.php
@@ -23,6 +23,7 @@ class Failed * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param array $credentials + * @return void */ public function __construct($user, $credentials) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Database/Console/Migrations/StatusCommand.php
@@ -33,7 +33,7 @@ class StatusCommand extends BaseCommand * Create a new migration rollback command instance. * * @param \Illuminate\Database\Migrations\Migrator $migrator - * @return \Illuminate\Database\Console\Migrations\StatusCommand + * @return void */ public function __constr...
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Foundation/AliasLoader.php
@@ -36,6 +36,7 @@ class AliasLoader * Create a new AliasLoader instance. * * @param array $aliases + * @return void */ private function __construct($aliases) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Http/JsonResponse.php
@@ -22,6 +22,7 @@ class JsonResponse extends BaseJsonResponse * @param int $status * @param array $headers * @param int $options + * @return void */ public function __construct($data = null, $status = 200, $headers = [], $options = 0) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Queue/ListenerOptions.php
@@ -21,6 +21,7 @@ class ListenerOptions extends WorkerOptions * @param int $sleep * @param int $maxTries * @param bool $force + * @return void */ public function __construct($environment = null, $delay = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 0, $force = false) ...
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Queue/WorkerOptions.php
@@ -55,6 +55,7 @@ class WorkerOptions * @param int $sleep * @param int $maxTries * @param bool $force + * @return void */ public function __construct($delay = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 0, $force = false) {
true
Other
laravel
framework
57d31b1a209b3ac74959d93b79612c96a4d58386.json
Add missing return docblocks (#22116)
src/Illuminate/Redis/RedisManager.php
@@ -36,6 +36,7 @@ class RedisManager implements Factory * * @param string $driver * @param array $config + * @return void */ public function __construct($driver, array $config) {
true
Other
laravel
framework
8766d9909007bdb318f390a1d157898bd56b8082.json
Add support for newQueryForRestoration from queues
src/Illuminate/Database/Eloquent/Model.php
@@ -878,6 +878,25 @@ public function newQueryWithoutScope($scope) return $builder->withoutGlobalScope($scope); } + /** + * Get a new query to restore one or more models by the queueable IDs. + * + * @param array|int $ids + * + * @return \Illuminate\Database\Eloquent\Builder + ...
true