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
53f3a817ea90964688948ed144e8bdb686a3662f.json
Fix postgres grammar for nested json arrays.
tests/Database/DatabaseQueryBuilderTest.php
@@ -2625,6 +2625,10 @@ public function testPostgresWrappingJson() $builder->select('*')->from('users')->where('items->price->in_usd', '=', 1)->where('items->age', '=', 2); $this->assertSame('select * from "users" where "items"->\'price\'->>\'in_usd\' = ? and "items"->>\'age\' = ?', $builder->toSql());...
true
Other
laravel
framework
2c32afbf5b2c6df43070257029178ef94a794157.json
Allow builder instance as subquery in where Use isQueryable-method instead of checking if column is Closure
src/Illuminate/Database/Query/Builder.php
@@ -658,7 +658,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' // If the column is a Closure instance and there is an operator value, we will // assume the developer wants to run a subquery and then compare the result // of that subquery with the given va...
true
Other
laravel
framework
2c32afbf5b2c6df43070257029178ef94a794157.json
Allow builder instance as subquery in where Use isQueryable-method instead of checking if column is Closure
tests/Integration/Database/QueryBuilderTest.php
@@ -1,6 +1,6 @@ <?php -namespace Illuminate\Tests\Integration\Database\EloquentBelongsToManyTest; +namespace Illuminate\Tests\Integration\Database; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Database\Schema\Blueprint; @@ -102,6 +102,15 @@ public function testWhereValueSubQuery() ...
true
Other
laravel
framework
6aa3a468dab0f0ed93640221cc4a082176b95e7a.json
Simplify check for wildcard listeners (#31436)
src/Illuminate/Events/Dispatcher.php
@@ -117,13 +117,7 @@ public function hasListeners($eventName) */ public function hasWildcardListeners($eventName) { - foreach ($this->wildcards as $key => $listeners) { - if (Str::is($key, $eventName)) { - return true; - } - } - - return false; +...
false
Other
laravel
framework
3cca78e9c1e26b694eb27f3d3ff522f2d6de1d98.json
Apply fixes from StyleCI (#31429)
src/Illuminate/Auth/AuthManager.php
@@ -4,9 +4,7 @@ use Closure; use Illuminate\Contracts\Auth\Factory as FactoryContract; -use Illuminate\Support\Str; use InvalidArgumentException; -use LogicException; class AuthManager implements FactoryContract {
true
Other
laravel
framework
3cca78e9c1e26b694eb27f3d3ff522f2d6de1d98.json
Apply fixes from StyleCI (#31429)
tests/Auth/AuthTokenGuardTest.php
@@ -2,12 +2,9 @@ namespace Illuminate\Tests\Auth; -use Illuminate\Auth\AuthManager; use Illuminate\Auth\TokenGuard; -use Illuminate\Container\Container; use Illuminate\Contracts\Auth\UserProvider; use Illuminate\Http\Request; -use LogicException; use Mockery as m; use PHPUnit\Framework\TestCase;
true
Other
laravel
framework
dfff0dd133eff56b93dbc27f61f15fb4882fcfbc.json
allow colon as first separator
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -71,7 +71,7 @@ protected function compileOpeningTags(string $value) $pattern = "/ < \s* - x-([\w\-\:\.]*) + x[-\:]([\w\-\:\.]*) (?<attributes> (?: \s+ @@ -111,7 +111,7 @@ protected func...
true
Other
laravel
framework
dfff0dd133eff56b93dbc27f61f15fb4882fcfbc.json
allow colon as first separator
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -42,6 +42,14 @@ public function testColonNestedComponentParsing() <?php \$component->withAttributes([]); ?>@endcomponentClass", trim($result)); } + public function testColonStartingNestedComponentParsing() + { + $result = (new ComponentTagCompiler(['foo:alert' => TestAlertComponent::class]))->co...
true
Other
laravel
framework
763e0b24ba27f9d3afe1bfde3f368ac16be4cc94.json
use dots as folder separator
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -190,7 +190,7 @@ public function guessClassName(string $component) $componentPieces = array_map(function ($componentPiece) { return ucfirst(Str::camel($componentPiece)); - }, explode(':', $component)); + }, explode('.', $component)); return $namespace.'View\\Component...
true
Other
laravel
framework
763e0b24ba27f9d3afe1bfde3f368ac16be4cc94.json
use dots as folder separator
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -72,7 +72,7 @@ public function testClassNamesCanBeGuessedWithNamespaces() $app->shouldReceive('getNamespace')->andReturn('App\\'); Container::setInstance($container); - $result = (new ComponentTagCompiler([]))->guessClassName('base:alert'); + $result = (new ComponentTagCompiler([]))...
true
Other
laravel
framework
ce6465dd5eeabaf4cbfc1c71cbec6178be6026d8.json
Apply fixes from StyleCI
src/Illuminate/Support/Testing/Fakes/BusFake.php
@@ -178,7 +178,8 @@ public function dispatched($command, $callback = null) * @param callable|null $callback * @return \Illuminate\Support\Collection */ - public function dispatchedAfterResponse(string $command, $callback = null) { + public function dispatchedAfterResponse(string $command, $cal...
false
Other
laravel
framework
95a8f05bb9b6769dfdad58eb550777b59f398b5b.json
Remove serializer option for now (#31417)
src/Illuminate/Redis/Connectors/PhpRedisConnector.php
@@ -98,10 +98,6 @@ protected function createClient(array $config) $client->setOption(Redis::OPT_READ_TIMEOUT, $config['read_timeout']); } - if (! empty($config['serializer'])) { - $client->setOption(Redis::OPT_SERIALIZER, $config['serializer']); - } -...
false
Other
laravel
framework
641972afcc9fa6ed9a36d27b280511ceac2ec506.json
change docblock on the dispatcher contact (#31399)
src/Illuminate/Contracts/Events/Dispatcher.php
@@ -8,7 +8,7 @@ interface Dispatcher * Register an event listener with the dispatcher. * * @param string|array $events - * @param mixed $listener + * @param \Closure|string $listener * @return void */ public function listen($events, $listener);
false
Other
laravel
framework
66f8086c920653111b232cf8e0a9036e9de8ebdf.json
allow colons in component names
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -71,7 +71,7 @@ protected function compileOpeningTags(string $value) $pattern = "/ < \s* - x-([\w\-]*) + x-([\w\-\:]*) (?<attributes> (?: \s+ @@ -111,7 +111,7 @@ protected function compi...
false
Other
laravel
framework
4bf2b8aee7209e93ddc9ffae38f3d79ce3d288f3.json
update component stub
src/Illuminate/Foundation/Console/stubs/view-component.stub
@@ -19,10 +19,10 @@ class DummyClass extends Component /** * Get the view / contents that represent the component. * - * @return string + * @return \Illuminate\View\View|string */ - public function view() + public function render() { - return 'DummyView'; + return...
false
Other
laravel
framework
b10ee6cc91a8e9f5edab9661fa48fb084f0e1ce6.json
add default link this matches the current link/target combo so users who do not update their `filesystems.php` config still get the same functionality.
src/Illuminate/Foundation/Console/StorageLinkCommand.php
@@ -27,7 +27,7 @@ class StorageLinkCommand extends Command */ public function handle() { - foreach ($this->laravel['config']['filesystems.links'] ?? [] as $link => $target) { + foreach ($this->laravel['config']['filesystems.links'] ?? [public_path('storage') => storage_path('app/public')] ...
false
Other
laravel
framework
e8f9bbebe96963cdb87d4be07c73ae15765614f9.json
Update ViewComponents to a subdirectory (#31336)
src/Illuminate/Foundation/Console/ComponentMakeCommand.php
@@ -104,7 +104,7 @@ protected function getStub() */ protected function getDefaultNamespace($rootNamespace) { - return $rootNamespace.'\ViewComponents'; + return $rootNamespace.'\View\Components'; } /**
true
Other
laravel
framework
e8f9bbebe96963cdb87d4be07c73ae15765614f9.json
Update ViewComponents to a subdirectory (#31336)
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -525,8 +525,8 @@ public function check($name, ...$parameters) public function component($class, $alias = null, $prefix = '') { if (is_null($alias)) { - $alias = Str::contains($class, '\\ViewComponents\\') - ? collect(explode('\\', Str::after($class, '\\ViewCom...
true
Other
laravel
framework
e8f9bbebe96963cdb87d4be07c73ae15765614f9.json
Update ViewComponents to a subdirectory (#31336)
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -192,7 +192,7 @@ public function guessClassName(string $component) return ucfirst(Str::camel($componentPiece)); }, explode(':', $component)); - return $namespace.'ViewComponents\\'.implode('\\', $componentPieces); + return $namespace.'View\\Components\\'.implode('\\', $component...
true
Other
laravel
framework
e8f9bbebe96963cdb87d4be07c73ae15765614f9.json
Update ViewComponents to a subdirectory (#31336)
tests/View/Blade/BladeComponentTagCompilerTest.php
@@ -41,7 +41,7 @@ public function testClassNamesCanBeGuessed() $result = (new ComponentTagCompiler([]))->guessClassName('alert'); - $this->assertEquals("App\ViewComponents\Alert", trim($result)); + $this->assertEquals("App\View\Components\Alert", trim($result)); Container::setInsta...
true
Other
laravel
framework
e8f9bbebe96963cdb87d4be07c73ae15765614f9.json
Update ViewComponents to a subdirectory (#31336)
tests/View/ViewBladeCompilerTest.php
@@ -193,13 +193,13 @@ public function testComponentAliasesCanBeConventionallyDetermined() $compiler = new BladeCompiler($files = $this->getFiles(), __DIR__); - $compiler->component('App\ViewComponents\Forms\Input'); - $this->assertEquals(['forms:input' => 'App\ViewComponents\Forms\Input'], $c...
true
Other
laravel
framework
9cba528a36893789f88f7aff71cbf75ba6a56841.json
remove renderable from component
src/Illuminate/View/Component.php
@@ -4,14 +4,13 @@ use Closure; use Illuminate\Container\Container; -use Illuminate\Contracts\Support\Renderable; use Illuminate\Support\Facades\View; use Illuminate\Support\Str; use ReflectionClass; use ReflectionMethod; use ReflectionProperty; -abstract class Component implements Renderable +abstract class ...
false
Other
laravel
framework
6f8b87eee17114f1cf0ff896db9fdcc31f0fc8f0.json
Add assertion with empty chain
src/Illuminate/Support/Testing/Fakes/QueueFake.php
@@ -94,6 +94,23 @@ public function assertPushedWithChain($job, $expectedChain = [], $callback = nul : $this->assertPushedWithChainOfClasses($job, $expectedChain, $callback); } + /** + * Assert if a job was pushed with empty chain based on a truth-test callback. + * + * @param str...
true
Other
laravel
framework
6f8b87eee17114f1cf0ff896db9fdcc31f0fc8f0.json
Add assertion with empty chain
tests/Support/SupportTestingQueueFakeTest.php
@@ -138,6 +138,13 @@ public function testAssertPushedWithChainUsingClassesOrObjectsArray() ]); } + public function testAssertPushedWithEmptyChain() + { + $this->fake->push(new JobWithChainStub([])); + + $this->fake->assertPushedWithEmptyChain(JobWithChainStub::class); + } + p...
true
Other
laravel
framework
05227c32f3ae4619d141b2cd5a4918cb13ad944b.json
add validate with bag method
src/Illuminate/Validation/Validator.php
@@ -377,6 +377,25 @@ public function validate() return $this->validated(); } + /** + * Run the validator's rules against its data. + * + * @param string $errorBag + * @return array + * + * @throws \Illuminate\Validation\ValidationException + */ + public function valid...
false
Other
laravel
framework
464ddd66543d500efb63a6e52a5cffe7d5cabd9d.json
add doc block
src/Illuminate/Routing/Route.php
@@ -502,6 +502,12 @@ public function bindingFieldFor($parameter) return $this->bindingFields[$parameter] ?? null; } + /** + * Get the parent parameter of the given parameter. + * + * @param string $parameter + * @return string + */ public function parentOfParameter($paramet...
false
Other
laravel
framework
fc3a5a9aefc9747c7921364a63a5e838ea174723.json
remove unused imports
tests/Integration/Database/MigrateWithRealpathTest.php
@@ -2,11 +2,6 @@ namespace Illuminate\Tests\Integration\Database; -use Illuminate\Database\Events\MigrationEnded; -use Illuminate\Database\Events\MigrationsEnded; -use Illuminate\Database\Events\MigrationsStarted; -use Illuminate\Database\Events\MigrationStarted; -use Illuminate\Support\Facades\Event; use Illumin...
false
Other
laravel
framework
dba3cbecbc1d695bb87534c413f3966f06afc96e.json
add no migrations event
src/Illuminate/Database/Events/NoMigrations.php
@@ -0,0 +1,24 @@ +<?php + +namespace Illuminate\Database\Events; + +class NoMigrations +{ + /** + * The migration method that was called. + * + * @var string + */ + public $method; + + /** + * Create a new event instance. + * + * @param string $method + * @return void + */...
true
Other
laravel
framework
dba3cbecbc1d695bb87534c413f3966f06afc96e.json
add no migrations event
src/Illuminate/Database/Migrations/Migrator.php
@@ -9,6 +9,7 @@ use Illuminate\Database\Events\MigrationsEnded; use Illuminate\Database\Events\MigrationsStarted; use Illuminate\Database\Events\MigrationStarted; +use Illuminate\Database\Events\NoMigrations; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Arr; use Illuminate\Support\Collection; @@ -...
true
Other
laravel
framework
dba3cbecbc1d695bb87534c413f3966f06afc96e.json
add no migrations event
tests/Integration/Database/MigrateWithRealpathTest.php
@@ -40,27 +40,4 @@ public function testMigrationsHasTheMigratedTable() 'batch' => 1, ]); } - - public function testMigrationEventsAreFired() - { - Event::fake(); - - Event::listen(MigrationsStarted::class, function ($event) { - return $this->assertInstanceOf(Mig...
true
Other
laravel
framework
dba3cbecbc1d695bb87534c413f3966f06afc96e.json
add no migrations event
tests/Integration/Database/MigratorEventsTest.php
@@ -0,0 +1,71 @@ +<?php + +namespace Illuminate\Tests\Integration\Database; + +use Illuminate\Database\Events\MigrationEnded; +use Illuminate\Database\Events\MigrationsEnded; +use Illuminate\Database\Events\MigrationsStarted; +use Illuminate\Database\Events\MigrationStarted; +use Illuminate\Database\Events\NoMigrations...
true
Other
laravel
framework
6d9a0b1fc1be82a538e29f8a8ab17d4db69dc213.json
remove temporary variable (#31250)
src/Illuminate/View/Engines/CompilerEngine.php
@@ -61,12 +61,10 @@ public function get($path, array $data = []) $this->compiler->compile($path); } - $compiled = $this->compiler->getCompiledPath($path); - // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other ...
false
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Auth/Access/HandlesAuthorization.php
@@ -19,7 +19,7 @@ protected function allow($message = null, $code = null) /** * Throws an unauthorized exception. * - * @param string $message + * @param string|null $message * @param mixed|null $code * @return \Illuminate\Auth\Access\Response */
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Cookie/CookieJar.php
@@ -118,7 +118,7 @@ public function hasQueued($key, $path = null) * * @param string $key * @param mixed $default - * @param string $path + * @param string|null $path * @return \Symfony\Component\HttpFoundation\Cookie */ public function queued($key, $default = null, $pa...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Concerns/BuildsQueries.php
@@ -117,8 +117,8 @@ public function chunkById($count, callable $callback, $column = null, $alias = n * * @param callable $callback * @param int $count - * @param string $column - * @param string $alias + * @param string|null $column + * @param string|null $alias * @re...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Eloquent/Builder.php
@@ -703,7 +703,7 @@ public function pluck($column, $key = null) /** * Paginate the given query. * - * @param int $perPage + * @param int|null $perPage * @param array $columns * @param string $pageName * @param int|null $page @@ -730,7 +730,7 @@ public function pagina...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
@@ -48,8 +48,8 @@ trait HasRelationships * Define a one-to-one relationship. * * @param string $related - * @param string $foreignKey - * @param string $localKey + * @param string|null $foreignKey + * @param string|null $localKey * @return \Illuminate\Database\Eloquent\...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -344,7 +344,7 @@ public function as($accessor) * Set a where clause for a pivot table column. * * @param string $column - * @param string $operator + * @param string|null $operator * @param mixed $value * @param string $boolean * @return $this @@ -376,7 +376,7 @@...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php
@@ -373,7 +373,7 @@ public function get($columns = ['*']) /** * Get a paginator for the "select" statement. * - * @param int $perPage + * @param int|null $perPage * @param array $columns * @param string $pageName * @param int $page @@ -389,7 +389,7 @@ public function...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
@@ -42,7 +42,7 @@ class MorphToMany extends BelongsToMany * @param string $relatedPivotKey * @param string $parentKey * @param string $relatedKey - * @param string $relationName + * @param string|null $relationName * @param bool $inverse * @return void */
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Foundation/helpers.php
@@ -918,7 +918,7 @@ function __($key = null, $replace = [], $locale = null) /** * Generate a url for the application. * - * @param string $path + * @param string|null $path * @param mixed $parameters * @param bool|null $secure * @return \Illuminate\Contracts\Routing\Ur...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Support/Facades/Cookie.php
@@ -25,7 +25,7 @@ public static function has($key) /** * Retrieve a cookie from the request. * - * @param string $key + * @param string|null $key * @param mixed $default * @return string|array|null */
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Support/MessageBag.php
@@ -150,8 +150,8 @@ public function hasAny($keys = []) /** * Get the first message from the message bag for a given key. * - * @param string $key - * @param string $format + * @param string|null $key + * @param string|null $format * @return string */ public func...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Support/ServiceProvider.php
@@ -227,8 +227,8 @@ protected function addPublishGroup($group, $paths) /** * Get the paths to publish. * - * @param string $provider - * @param string $group + * @param string|null $provider + * @param string|null $group * @return array */ public static function...
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Support/Str.php
@@ -281,7 +281,7 @@ public static function kebab($value) * Return the length of the given string. * * @param string $value - * @param string $encoding + * @param string|null $encoding * @return int */ public static function length($value, $encoding = null)
true
Other
laravel
framework
9f0af8433eaae7a59e297229ca84d998e0e56edf.json
Fix param types in docblocks (#31252)
src/Illuminate/Support/Traits/EnumeratesValues.php
@@ -825,7 +825,7 @@ protected function getArrayableItems($items) * Get an operator checker callback. * * @param string $key - * @param string $operator + * @param string|string $operator * @param mixed $value * @return \Closure */
true
Other
laravel
framework
8a8eed4d157102ef77527891ac1d8f8e85e7afee.json
add method to ensure a directory exists
src/Illuminate/Filesystem/Filesystem.php
@@ -459,6 +459,21 @@ public function directories($directory) return $directories; } + /** + * Ensure a directory exists. + * + * @param string $path + * @param int $mode + * @param bool $recursive + * @return void + */ + public function ensureDirectoryExists($path...
false
Other
laravel
framework
7b7861d0df900520182764db7943049327ee554d.json
Serialize values in array cache store (#23079)
src/Illuminate/Cache/ArrayStore.php
@@ -45,7 +45,7 @@ public function get($key) return; } - return $item['value']; + return unserialize($item['value']); } /** @@ -59,7 +59,7 @@ public function get($key) public function put($key, $value, $seconds) { $this->storage[$key] = [ - ...
true
Other
laravel
framework
7b7861d0df900520182764db7943049327ee554d.json
Serialize values in array cache store (#23079)
tests/Cache/CacheArrayStoreTest.php
@@ -194,4 +194,16 @@ public function testAnotherOwnerCanForceReleaseALock() $this->assertTrue($wannabeOwner->acquire()); } + + public function testValuesAreNotStoredByReference() + { + $store = new ArrayStore; + $object = new \stdClass; + $object->foo = true; + + $store...
true
Other
laravel
framework
60e43aca9229827d692e9e041d08bf1f90478e62.json
fix bug in data parsing
src/Illuminate/View/Component.php
@@ -63,7 +63,7 @@ public function data() return [$method->getName() => $this->createVariableFromMethod($method)]; }); - return $publicProperties->merge($publicMethods)->toArray(); + return $publicProperties->merge($publicMethods)->all(); } /**
false
Other
laravel
framework
dc2b6cca647044a7041616ea3e45e27b9123d0d8.json
remove unused property (#31244)
src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php
@@ -9,13 +9,6 @@ trait InteractsWithPivotTable { - /** - * The cached copy of the currently attached pivot models. - * - * @var \Illuminate\Database\Eloquent\Collection - */ - private $currentlyAttached; - /** * Toggles a model (or models) from the parent. * @@ -479,7 +472,7 @...
false
Other
laravel
framework
7c3867fa6703ed49cfae623d8b1702f5af684ccd.json
Add shallow option for resource routes
src/Illuminate/Routing/PendingResourceRegistration.php
@@ -153,6 +153,19 @@ public function middleware($middleware) return $this; } + /** + * Set the shallow option for a resource. + * + * @param boolean $shallow + * @return \Illuminate\Routing\PendingResourceRegistration + */ + public function shallow($shallow = true) + { + ...
true
Other
laravel
framework
7c3867fa6703ed49cfae623d8b1702f5af684ccd.json
Add shallow option for resource routes
src/Illuminate/Routing/ResourceRegistrar.php
@@ -230,6 +230,9 @@ protected function addResourceStore($name, $base, $controller, $options) */ protected function addResourceShow($name, $base, $controller, $options) { + + $name = $this->getNameWithShallowness($name, $options); + $uri = $this->getResourceUri($name).'/{'.$base.'}'; ...
true
Other
laravel
framework
7c3867fa6703ed49cfae623d8b1702f5af684ccd.json
Add shallow option for resource routes
tests/Routing/RouteRegistrarTest.php
@@ -335,6 +335,17 @@ public function testCanExcludeMethodsOnRegisteredResource() $this->assertTrue($this->router->getRoutes()->hasNamedRoute('users.destroy')); } + public function testCanSetShallowOptionOnRegisteredResource() + { + $this->router->resource('users.tasks', RouteRegistrarContro...
true
Other
laravel
framework
7c3867fa6703ed49cfae623d8b1702f5af684ccd.json
Add shallow option for resource routes
tests/Routing/RoutingRouteTest.php
@@ -1182,6 +1182,41 @@ public function testInvalidActionException() $router->dispatch(Request::create('/')); } + public function testShallowResourceRouting() + { + $router = $this->getRouter(); + $router->resource('foo.bar', 'FooController', ['shallow' => true]); + $routes = $...
true
Other
laravel
framework
7355d0193f34c4514aeb5499528d91396a307a09.json
allow skipping for expired views add a new boolean on the `CompilerEngine` that lets us turn off checking if views are expired and recompiling them.
src/Illuminate/View/Engines/CompilerEngine.php
@@ -22,15 +22,24 @@ class CompilerEngine extends PhpEngine */ protected $lastCompiled = []; + /** + * Flag to check expired views. + * + * @var bool + */ + protected $checkExpiredViews; + /** * Create a new Blade view engine instance. * * @param \Illuminate\Vie...
true
Other
laravel
framework
7355d0193f34c4514aeb5499528d91396a307a09.json
allow skipping for expired views add a new boolean on the `CompilerEngine` that lets us turn off checking if views are expired and recompiling them.
src/Illuminate/View/ViewServiceProvider.php
@@ -150,7 +150,7 @@ public function registerPhpEngine($resolver) public function registerBladeEngine($resolver) { $resolver->register('blade', function () { - return new CompilerEngine($this->app['blade.compiler']); + return new CompilerEngine($this->app['blade.compiler'], $this...
true
Other
laravel
framework
7355d0193f34c4514aeb5499528d91396a307a09.json
allow skipping for expired views add a new boolean on the `CompilerEngine` that lets us turn off checking if views are expired and recompiling them.
tests/View/ViewCompilerEngineTest.php
@@ -38,8 +38,20 @@ public function testViewsAreNotRecompiledIfTheyAreNotExpired() ', $results); } - protected function getEngine() + public function testViewsAreNotRecompiledIfWeDoNotWantThemRecompiled() { - return new CompilerEngine(m::mock(CompilerInterface::class)); + $engine = $this...
true
Other
laravel
framework
f3e92bac8b0bc12776e2693917d5cfe4076e835b.json
remove unused variable (#31191)
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -157,7 +157,7 @@ protected function appendFilePath($contents) protected function getOpenAndClosingPhpTokens($contents) { return collect(token_get_all($contents)) - ->pluck($tokenNumber = 0) + ->pluck(0) ->filter(function ($token) { return in_arra...
false
Other
laravel
framework
faa26d25017f86eee58daf9de586774374bc8ec2.json
Fix linting issues
src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
@@ -191,22 +191,22 @@ public function compileDropAllTables() public function compileDropColumn(Blueprint $blueprint, Fluent $command) { $columns = $this->wrapArray($command->columns); - $dropExistingConstraintsSql = $this->compileDropDefaultConstraint($blueprint, $command).';'; + $dropExistin...
false
Other
laravel
framework
db7ee7e2be959b572ee57837f78a14ae47e47967.json
add createMany to factoryBuilder
src/Illuminate/Database/Eloquent/FactoryBuilder.php
@@ -190,6 +190,20 @@ public function create(array $attributes = []) return $results; } + /** + * Create a collection of models and persist them to the database. + * + * @param iterable $records + * @return mixed + */ + public function createMany(iterable $records) + { + ...
true
Other
laravel
framework
db7ee7e2be959b572ee57837f78a14ae47e47967.json
add createMany to factoryBuilder
tests/Integration/Database/EloquentFactoryBuilderTest.php
@@ -176,6 +176,25 @@ public function testCreatingCollectionOfModels() $this->assertCount(0, FactoryBuildableUser::find($instances->pluck('id')->toArray())); } + public function testCreateManyCollectionOfModels() + { + $users = factory(FactoryBuildableUser::class)->createMany([ + ...
true
Other
laravel
framework
418dfb0d387a6922285a39bedbd96c8870111074.json
fix a few bugs
src/Illuminate/View/Compilers/ComponentTagCompiler.php
@@ -75,7 +75,7 @@ protected function compileOpeningTags(string $value) (?<attributes> (?: \s+ - [\w\-:\.]+ + [^\s\=]+ ( = (?: @@...
false
Other
laravel
framework
2fb52cb0258a6f0328958018183fd0d84c262d5a.json
add `dumpSession` method to TestResponse (#31131) similar to `dumpHeaders` this dumps either all or selected keys from the session. useful for debugging tests.
src/Illuminate/Foundation/Testing/TestResponse.php
@@ -1168,6 +1168,23 @@ public function dumpHeaders() return $this; } + /** + * Dump the session from the response. + * + * @param array $keys + * @return $this + */ + public function dumpSession($keys = null) + { + if (is_array($keys)) { + dump($this->ses...
false
Other
laravel
framework
7c116138df46dfa19e48664a6f36f9283d896550.json
Add loadFactoriesFrom method
src/Illuminate/Support/ServiceProvider.php
@@ -4,6 +4,7 @@ use Illuminate\Console\Application as Artisan; use Illuminate\Contracts\Support\DeferrableProvider; +use Illuminate\Database\Eloquent\Factory as ModelFactory; abstract class ServiceProvider { @@ -143,6 +144,21 @@ protected function loadMigrationsFrom($paths) }); } + /** + ...
false
Other
laravel
framework
d5c46e5f7b07fb6524a16f88c809ca9f2f7789f3.json
Refresh the cache event dispatcher when faked
src/Illuminate/Cache/CacheManager.php
@@ -277,6 +277,15 @@ protected function setEventDispatcher(Repository $repository): void ); } + /** + * Refreshes the event dispatcher of all resolved repositories + * with the currently bound event dispatcher implementation. + */ + public function refreshEventDispatcher() + { + ...
true
Other
laravel
framework
d5c46e5f7b07fb6524a16f88c809ca9f2f7789f3.json
Refresh the cache event dispatcher when faked
src/Illuminate/Support/Facades/Event.php
@@ -38,6 +38,7 @@ public static function fake($eventsToFake = []) static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake)); Model::setEventDispatcher($fake); + Cache::refreshEventDispatcher(); return $fake; }
true
Other
laravel
framework
d5c46e5f7b07fb6524a16f88c809ca9f2f7789f3.json
Refresh the cache event dispatcher when faked
tests/Support/SupportFacadesEventTest.php
@@ -2,9 +2,14 @@ namespace Illuminate\Tests\Support; +use Illuminate\Cache\CacheManager; +use Illuminate\Cache\Events\CacheMissed; +use Illuminate\Config\Repository as ConfigRepository; use Illuminate\Container\Container; +use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; use Illuminate\Database\...
true
Other
laravel
framework
850425d1bd5bde3fc4ecbe47459ca9060d4de2a4.json
Add integration tests
tests/Integration/Database/EloquentMySqlConnectionTest.php
@@ -0,0 +1,91 @@ +<?php + +namespace Illuminate\Database; + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Schema; +use Orchestra\Testbench\TestCase; + +class EloquentMySqlConnectionTest extends TestCase +{ + const TABLE = 'player'; + const FLOAT_COL...
false
Other
laravel
framework
3a513ad935e95fc45179adca6c8edf5b745a1493.json
Apply fixes from StyleCI (#31097)
src/Illuminate/Auth/Notifications/ResetPassword.php
@@ -61,7 +61,7 @@ public function toMail($notifiable) } else { $url = url(config('app.url').route('password.reset', [ 'token' => $this->token, - 'email' => $notifiable->getEmailForPasswordReset() + 'email' => $notifiable->getEmailForPasswordReset(), ...
false
Other
laravel
framework
917ee514d4bbd4162b6ddb385c643df97dcfa7d3.json
Remove all indentation.
src/Illuminate/Mail/resources/views/html/button.blade.php
@@ -1,19 +1,19 @@ <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td align="center"> - <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td align="center">...
true
Other
laravel
framework
917ee514d4bbd4162b6ddb385c643df97dcfa7d3.json
Remove all indentation.
src/Illuminate/Mail/resources/views/html/header.blade.php
@@ -1,7 +1,7 @@ <tr> - <td class="header"> - <a href="{{ $url }}"> - {{ $slot }} - </a> - </td> +<td class="header"> +<a href="{{ $url }}"> +{{ $slot }} +</a> +</td> </tr>
true
Other
laravel
framework
917ee514d4bbd4162b6ddb385c643df97dcfa7d3.json
Remove all indentation.
src/Illuminate/Mail/resources/views/html/layout.blade.php
@@ -1,54 +1,54 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta http-equiv="Content-Type" content="te...
true
Other
laravel
framework
917ee514d4bbd4162b6ddb385c643df97dcfa7d3.json
Remove all indentation.
src/Illuminate/Mail/resources/views/html/message.blade.php
@@ -1,27 +1,27 @@ @component('mail::layout') - {{-- Header --}} - @slot('header') - @component('mail::header', ['url' => config('app.url')]) - {{ config('app.name') }} - @endcomponent - @endslot +{{-- Header --}} +@slot('header') +@component('mail::header', ['url' => config('app.url')...
true
Other
laravel
framework
917ee514d4bbd4162b6ddb385c643df97dcfa7d3.json
Remove all indentation.
src/Illuminate/Mail/resources/views/html/promotion.blade.php
@@ -1,7 +1,7 @@ <table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation"> - <tr> - <td align="center"> - {{ Illuminate\Mail\Markdown::parse($slot) }} - </td> - </tr> +<tr> +<td align="center"> +{{ Illuminate\Mail\Markdown::parse($slot) }} +...
true
Other
laravel
framework
39985508183c017d5e3ed234996b0239b743e572.json
use local config options if possible
src/Illuminate/Mail/MailManager.php
@@ -249,11 +249,12 @@ protected function createSendmailTransport(array $config) /** * Create an instance of the Amazon SES Swift Transport driver. * + * @param array $config * @return \Illuminate\Mail\Transport\SesTransport */ - protected function createSesTransport() + protecte...
false
Other
laravel
framework
4e33586e6cf6baf3a857e8ec6bd6de2ae4f93ad9.json
Fix undefined property in WithFaker (#31083)
src/Illuminate/Foundation/Testing/WithFaker.php
@@ -45,7 +45,7 @@ protected function makeFaker($locale = null) { $locale = $locale ?? config('app.faker_locale', Factory::DEFAULT_LOCALE); - if ($this->app->bound(Generator::class)) { + if (isset($this->app) && $this->app->bound(Generator::class)) { return $this->app->make(Gen...
false
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/PresetCommand.php
@@ -1,96 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console; - -use Illuminate\Console\Command; -use InvalidArgumentException; - -class PresetCommand extends Command -{ - /** - * The console command signature. - * - * @var string - */ - protected $signature = 'preset - ...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/Bootstrap.php
@@ -1,44 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console\Presets; - -class Bootstrap extends Preset -{ - /** - * Install the preset. - * - * @return void - */ - public static function install() - { - static::updatePackages(); - static::updateSass(); - static::remo...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/None.php
@@ -1,72 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console\Presets; - -use Illuminate\Filesystem\Filesystem; - -class None extends Preset -{ - /** - * Install the preset. - * - * @return void - */ - public static function install() - { - static::updatePackages(); - static:...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/Preset.php
@@ -1,64 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console\Presets; - -use Illuminate\Filesystem\Filesystem; - -class Preset -{ - /** - * Ensure the component directories we need exist. - * - * @return void - */ - protected static function ensureComponentDirectoryExists() - { - $...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/React.php
@@ -1,76 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console\Presets; - -use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Arr; - -class React extends Preset -{ - /** - * Install the preset. - * - * @return void - */ - public static function install() - { - static::ensu...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/Vue.php
@@ -1,76 +0,0 @@ -<?php - -namespace Illuminate\Foundation\Console\Presets; - -use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Arr; - -class Vue extends Preset -{ - /** - * Install the preset. - * - * @return void - */ - public static function install() - { - static::ensure...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/bootstrap-stubs/_variables.scss
@@ -1,19 +0,0 @@ -// Body -$body-bg: #f8fafc; - -// Typography -$font-family-sans-serif: 'Nunito', sans-serif; -$font-size-base: 0.9rem; -$line-height-base: 1.6; - -// Colors -$blue: #3490dc; -$indigo: #6574cd; -$purple: #9561e2; -$pink: #f66d9b; -$red: #e3342f; -$orange: #f6993f; -$yellow: #ffed4a; -$green: #38c172; -...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/bootstrap-stubs/app.scss
@@ -1,13 +0,0 @@ -// Fonts -@import url('https://fonts.googleapis.com/css?family=Nunito'); - -// Variables -@import 'variables'; - -// Bootstrap -@import '~bootstrap/scss/bootstrap'; - -.navbar-laravel { - background-color: #fff; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); -}
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/none-stubs/app.js
@@ -1,7 +0,0 @@ -/** - * First, we will load all of this project's Javascript utilities and other - * dependencies. Then, we will be ready to develop a robust and powerful - * application frontend using useful Laravel and JavaScript libraries. - */ - -require('./bootstrap');
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/none-stubs/bootstrap.js
@@ -1,42 +0,0 @@ -window._ = require('lodash'); - -/** - * We'll load the axios HTTP library which allows us to easily issue requests - * to our Laravel back-end. This library automatically handles sending the - * CSRF token as a header based on the value of the "XSRF" token cookie. - */ - -window.axios = require('axio...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/none-stubs/webpack.mix.js
@@ -1,15 +0,0 @@ -const mix = require('laravel-mix'); - -/* - |-------------------------------------------------------------------------- - | Mix Asset Management - |-------------------------------------------------------------------------- - | - | Mix provides a clean, fluent API for defining some Webpack build steps ...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
@@ -1,24 +0,0 @@ -import React, { Component } from 'react'; -import ReactDOM from 'react-dom'; - -export default class Example extends Component { - render() { - return ( - <div className="container"> - <div className="row justify-content-center"> - <div className=...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/react-stubs/app.js
@@ -1,15 +0,0 @@ -/** - * First we will load all of this project's JavaScript dependencies which - * includes React and other helpers. It's a great starting point while - * building robust, powerful web applications using React + Laravel. - */ - -require('./bootstrap'); - -/** - * Next, we will create a fresh React com...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/react-stubs/webpack.mix.js
@@ -1,15 +0,0 @@ -const mix = require('laravel-mix'); - -/* - |-------------------------------------------------------------------------- - | Mix Asset Management - |-------------------------------------------------------------------------- - | - | Mix provides a clean, fluent API for defining some Webpack build steps ...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/vue-stubs/ExampleComponent.vue
@@ -1,23 +0,0 @@ -<template> - <div class="container"> - <div class="row justify-content-center"> - <div class="col-md-8"> - <div class="card"> - <div class="card-header">Example Component</div> - - <div class="card-body"> - ...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/vue-stubs/app.js
@@ -1,32 +0,0 @@ -/** - * First we will load all of this project's JavaScript dependencies which - * includes Vue and other libraries. It is a great starting point when - * building robust, powerful web applications using Vue and Laravel. - */ - -require('./bootstrap'); - -window.Vue = require('vue'); - -/** - * The fo...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Console/Presets/vue-stubs/webpack.mix.js
@@ -1,15 +0,0 @@ -const mix = require('laravel-mix'); - -/* - |-------------------------------------------------------------------------- - | Mix Asset Management - |-------------------------------------------------------------------------- - | - | Mix provides a clean, fluent API for defining some Webpack build steps ...
true
Other
laravel
framework
e658f7e0fe3212919b837fbd0eb25c2ddaa979e7.json
remove preset commands that are now in laravel/ui
src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
@@ -38,7 +38,6 @@ use Illuminate\Foundation\Console\OptimizeCommand; use Illuminate\Foundation\Console\PackageDiscoverCommand; use Illuminate\Foundation\Console\PolicyMakeCommand; -use Illuminate\Foundation\Console\PresetCommand; use Illuminate\Foundation\Console\ProviderMakeCommand; use Illuminate\Foundation\Cons...
true
Other
laravel
framework
fa463b0998853faadc302ed21c4dd704c99144cc.json
check main mail config for from
src/Illuminate/Mail/MailManager.php
@@ -373,7 +373,7 @@ protected function guzzle(array $config) */ protected function setGlobalAddress($mailer, array $config, string $type) { - $address = Arr::get($config, $type); + $address = Arr::get($config, $type, $this->app['config']['mail.'.$type]); if (is_array($address) &...
false
Other
laravel
framework
f0d4ca01bb3505ccb8b5b24cea851389b7de79e5.json
fix composer file
src/Illuminate/Testing/composer.json
@@ -33,7 +33,7 @@ "suggest": { "illuminate/console": "Required to assert console commands (^7.0).", "illuminate/database": "Required to assert databases (^7.0).", - "illuminate/http": "Required to assert responses (^7.0).", + "illuminate/http": "Required to assert responses (^7.0)."...
false
Other
laravel
framework
ba562657ab6f44117645e77cef0f946441b15a37.json
Apply fixes from StyleCI (#31062)
src/Illuminate/Support/Stringable.php
@@ -85,7 +85,7 @@ public function afterLast($search) */ public function append(...$values) { - return new static($this->value . implode('', $values)); + return new static($this->value.implode('', $values)); } /** @@ -304,7 +304,7 @@ public function match($pattern) { ...
false
Other
laravel
framework
1aa66d78726bcaf3ff648d1bc318f157cab3df82.json
Apply fixes from StyleCI (#31057)
src/Illuminate/Support/Stringable.php
@@ -3,7 +3,6 @@ namespace Illuminate\Support; use Closure; -use Illuminate\Support\Str; use Illuminate\Support\Traits\Macroable; class Stringable
true
Other
laravel
framework
1aa66d78726bcaf3ff648d1bc318f157cab3df82.json
Apply fixes from StyleCI (#31057)
tests/Support/SupportStringableTest.php
@@ -5,7 +5,7 @@ use Illuminate\Support\Stringable; use PHPUnit\Framework\TestCase; -class SupportStrTest extends TestCase +class SupportStringableTest extends TestCase { public function testMatch() {
true