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 | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/Support/SupportCollectionTest.php | @@ -3580,7 +3580,7 @@ public function testConcatWithCollection($collection)
*/
public function testDump($collection)
{
- $log = new Collection();
+ $log = new Collection;
VarDumper::setHandler(function ($value) use ($log) {
$log->add($value); | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/Support/SupportReflectsClosuresTest.php | @@ -12,7 +12,7 @@ public function testReflectsClosures()
{
$this->assertParameterTypes([ExampleParameter::class], function (ExampleParameter $one) {
// assert the Closure isn't actually executed
- throw new RuntimeException();
+ throw new RuntimeException;
});
... | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/Testing/ParallelConsoleOutputTest.php | @@ -10,7 +10,7 @@ class ParallelConsoleOutputTest extends TestCase
{
public function testWrite()
{
- $original = new BufferedOutput();
+ $original = new BufferedOutput;
$output = new ParallelConsoleOutput($original);
$output->write('Running phpunit in 12 processes with larav... | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/Testing/TestResponseTest.php | @@ -1241,7 +1241,7 @@ public function testItCanBeTapped()
public function testAssertPlainCookie()
{
$response = TestResponse::fromBaseResponse(
- (new Response())->withCookie(new Cookie('cookie-name', 'cookie-value'))
+ (new Response)->withCookie(new Cookie('cookie-name', 'cooki... | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/Validation/ValidationValidatorTest.php | @@ -2634,7 +2634,7 @@ public function testValidateEmailWithFilterUnicodeCheck()
public function testValidateEmailWithCustomClassCheck()
{
$container = m::mock(Container::class);
- $container->shouldReceive('make')->with(NoRFCWarningsValidation::class)->andReturn(new NoRFCWarningsValidation());... | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/View/ComponentTest.php | @@ -52,7 +52,7 @@ public function testInlineViewsGetCreated()
$this->viewFactory->shouldReceive('exists')->once()->andReturn(false);
$this->viewFactory->shouldReceive('addNamespace')->once()->with('__components', '/tmp');
- $component = new TestInlineViewComponent();
+ $component = new... | true |
Other | laravel | framework | 74c9365845225459349b76e759ad64daba1ddf45.json | Remove empty constructor braces. (#36661) | tests/View/ViewComponentTest.php | @@ -62,7 +62,7 @@ public function testPublicMethodsWithNoArgsAreConvertedToStringableCallablesInvo
public function testItIgnoresExceptedMethodsAndProperties()
{
- $component = new TestExceptedViewComponent();
+ $component = new TestExceptedViewComponent;
$variables = $component->data(... | true |
Other | laravel | framework | 5390126e81d67368c543cbf2660b788e2faad731.json | Apply fixes from StyleCI (#36646) | src/Illuminate/Support/Str.php | @@ -2,7 +2,6 @@
namespace Illuminate\Support;
-use Illuminate\Support\Arr;
use Illuminate\Support\Traits\Macroable;
use League\CommonMark\GithubFlavoredMarkdownConverter;
use Ramsey\Uuid\Codec\TimestampFirstCombCodec; | true |
Other | laravel | framework | 5390126e81d67368c543cbf2660b788e2faad731.json | Apply fixes from StyleCI (#36646) | tests/Support/SupportStrTest.php | @@ -367,16 +367,16 @@ public function testReplaceLast()
public function testRemove()
{
- $this->assertSame("Fbar", Str::remove('o', 'Foobar'));
- $this->assertSame("Foo", Str::remove('bar', 'Foobar'));
- $this->assertSame("oobar", Str::remove('F', 'Foobar'));
- $this->assertSame(... | true |
Other | laravel | framework | 5390126e81d67368c543cbf2660b788e2faad731.json | Apply fixes from StyleCI (#36646) | tests/Support/SupportStringableTest.php | @@ -3,7 +3,6 @@
namespace Illuminate\Tests\Support;
use Illuminate\Support\Collection;
-use Illuminate\Support\Str;
use Illuminate\Support\Stringable;
use PHPUnit\Framework\TestCase;
@@ -455,16 +454,16 @@ public function testReplaceLast()
public function testRemove()
{
- $this->assertSame("Fb... | true |
Other | laravel | framework | 18b1b8946cc71cc074ea2733ff2054fb21d1dcb5.json | Adjust event facade comment for ide hint (#36641)
Co-authored-by: Nolin <nolin.chang@interpay.com.tw> | src/Illuminate/Support/Facades/Event.php | @@ -19,7 +19,7 @@
* @method static void flush(string $event)
* @method static void forget(string $event)
* @method static void forgetPushed()
- * @method static void listen(string|array $events, \Closure|string $listener = null)
+ * @method static void listen(\Closure|string|array $events, \Closure|string $listen... | false |
Other | laravel | framework | fe48f2cff966e1193aab240ffb4c90072aed89e6.json | Fix description (#36642) | src/Illuminate/Queue/Middleware/ThrottlesExceptions.php | @@ -135,7 +135,7 @@ public function withPrefix(string $prefix)
}
/**
- * Specify the number of seconds a job should be delayed when it is released (before it has reached its max exceptions).
+ * Specify the number of minutes a job should be delayed when it is released (before it has reached its max ... | false |
Other | laravel | framework | 92b7bdeb4b8c40848fa276cfe1897c656302942f.json | add more quotes | src/Illuminate/Foundation/Inspiring.php | @@ -45,6 +45,11 @@ public static function quote()
'Waste no more time arguing what a good man should be, be one. - Marcus Aurelius',
'Well begun is half done. - Aristotle',
'When there is no desire, all things are at peace. - Laozi',
+ 'Walk as if you are kissing the Ea... | false |
Other | laravel | framework | ebfa75fee5acef028a09f52a78a7069b1a09a723.json | Apply fixes from StyleCI (#36615) | src/Illuminate/Auth/SessionGuard.php | @@ -615,7 +615,7 @@ public function logoutOtherDevices($password, $attribute = 'password')
protected function rehashUserPassword($password, $attribute)
{
if (! Hash::check($password, $this->user()->{$attribute})) {
- throw new InvalidArgumentException("The given password does not match the... | false |
Other | laravel | framework | 7aabd8f0a8f8e0a3420359f807f42ceacb5c4140.json | Use FQN in docblock, remove description | src/Illuminate/Auth/SessionGuard.php | @@ -580,7 +580,7 @@ protected function cycleRememberToken(AuthenticatableContract $user)
* @param string $attribute
* @return bool|null
*
- * @throws AuthenticationException If the password is invalid.
+ * @throws \Illuminate\Auth\AuthenticationException
*/
protected function reha... | false |
Other | laravel | framework | ef4541d51a805eb711e14af897515aa7b2ed3569.json | Add @throws to logoutOtherDevices() | src/Illuminate/Auth/SessionGuard.php | @@ -601,6 +601,8 @@ protected function rehashUserPassword($password, $attribute)
* @param string $password
* @param string $attribute
* @return bool|null
+ *
+ * @throws AuthenticationException If the password is invalid.
*/
public function logoutOtherDevices($password, $attribu... | false |
Other | laravel | framework | 580fb32724e9dfbeade884dcd91721f4f47b44b5.json | Require the correct password to rehash it | src/Illuminate/Auth/SessionGuard.php | @@ -573,6 +573,26 @@ protected function cycleRememberToken(AuthenticatableContract $user)
$this->provider->updateRememberToken($user, $token);
}
+ /**
+ * Rehash the user's password.
+ *
+ * @param string $password
+ * @param string $attribute
+ * @return bool|null
+ *
+ ... | true |
Other | laravel | framework | 580fb32724e9dfbeade884dcd91721f4f47b44b5.json | Require the correct password to rehash it | tests/Integration/Auth/AuthenticationTest.php | @@ -2,6 +2,7 @@
namespace Illuminate\Tests\Integration\Auth;
+use Illuminate\Auth\AuthenticationException;
use Illuminate\Auth\EloquentUserProvider;
use Illuminate\Auth\Events\Attempting;
use Illuminate\Auth\Events\Authenticated;
@@ -211,7 +212,7 @@ public function testLoggingOutOtherDevices()
$this-... | true |
Other | laravel | framework | c02e3250c3a933b08656ac4c84168353eba771a8.json | Apply fixes from StyleCI (#36603) | src/Illuminate/Log/LogManager.php | @@ -244,7 +244,7 @@ protected function createStackDriver(array $config)
$handlers = collect($config['channels'])->flatMap(function ($channel) {
return $this->channel($channel)->getHandlers();
})->all();
-
+
$processors = collect($config['channels'])->flatMap(function ($ch... | false |
Other | laravel | framework | c67a685598de8e12e7fcf03095ac168f85122c4e.json | Update docblock (#36592) | src/Illuminate/Foundation/Console/stubs/view-component.stub | @@ -19,7 +19,7 @@ class DummyClass extends Component
/**
* Get the view / contents that represent the component.
*
- * @return \Illuminate\Contracts\View\View|string
+ * @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{ | false |
Other | laravel | framework | e0c638167c5e6911d6fc579bc4e04b66f6a94784.json | Remove null from return in phpdoc (#36593) | src/Illuminate/Support/Stringable.php | @@ -335,7 +335,7 @@ public function markdown(array $options = [])
* Get the string matching the given pattern.
*
* @param string $pattern
- * @return static|null
+ * @return static
*/
public function match($pattern)
{ | false |
Other | laravel | framework | e9e91b0d88115c7a968beadd8a12af5114216f51.json | Add Faker as dev dependency (#36586) | composer.json | @@ -80,6 +80,7 @@
"require-dev": {
"aws/aws-sdk-php": "^3.155",
"doctrine/dbal": "^2.12|^3.0",
+ "fakerphp/faker": "^1.9.2",
"filp/whoops": "^2.8",
"guzzlehttp/guzzle": "^7.2",
"league/flysystem-aws-s3-v3": "^2.0", | false |
Other | laravel | framework | 6d1da017689c004efece0bde8c3790202c359a31.json | Apply fixes from StyleCI (#36577) | tests/Routing/RouteRegistrarTest.php | @@ -338,7 +338,9 @@ public function testCanRegisterResourceWithMissingOption()
{
$this->router->middleware('resource-middleware')
->resource('users', RouteRegistrarControllerStub::class)
- ->missing(function () { return 'missing'; });
+ ->missing(function () {
+ ... | false |
Other | laravel | framework | c887875c23f393e3443b1fd2a8dd0c748e6f13ea.json | Add resource missing option | src/Illuminate/Routing/ResourceRegistrar.php | @@ -20,13 +20,6 @@ class ResourceRegistrar
*/
protected $resourceDefaults = ['index', 'create', 'store', 'show', 'edit', 'update', 'destroy'];
- /**
- * Actions that use model binding.
- *
- * @var string[]
- */
- protected $modelBoundMethods = ['show', 'edit', 'update', 'destroy'];
-... | false |
Other | laravel | framework | 62925b64310bb796dff479aea4acc55a1620d470.json | Add resource missing option | src/Illuminate/Routing/PendingResourceRegistration.php | @@ -195,6 +195,19 @@ public function shallow($shallow = true)
return $this;
}
+ /**
+ * Define the callable that should be invoked on a missing model exception.
+ *
+ * @param $callback
+ * @return $this
+ */
+ public function missing($callback)
+ {
+ $this->options['... | true |
Other | laravel | framework | 62925b64310bb796dff479aea4acc55a1620d470.json | Add resource missing option | src/Illuminate/Routing/ResourceRegistrar.php | @@ -20,6 +20,13 @@ class ResourceRegistrar
*/
protected $resourceDefaults = ['index', 'create', 'store', 'show', 'edit', 'update', 'destroy'];
+ /**
+ * Actions that use model binding.
+ *
+ * @var string[]
+ */
+ protected $modelBoundMethods = ['show', 'edit', 'update', 'destroy'];
+... | true |
Other | laravel | framework | 62925b64310bb796dff479aea4acc55a1620d470.json | Add resource missing option | tests/Routing/RouteRegistrarTest.php | @@ -334,6 +334,22 @@ public function testCanRegisterResourcesWithoutOption()
}
}
+ public function testCanRegisterResourceWithMissingOption()
+ {
+ $this->router->middleware('resource-middleware')
+ ->resource('users', RouteRegistrarControllerStub::class)
+ ->missing(f... | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | src/Illuminate/Events/NullDispatcher.php | @@ -37,6 +37,7 @@ public function __construct(DispatcherContract $dispatcher)
*/
public function dispatch($event, $payload = [], $halt = false)
{
+ //
}
/**
@@ -48,6 +49,7 @@ public function dispatch($event, $payload = [], $halt = false)
*/
public function push($event, $pay... | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php | @@ -33,6 +33,7 @@ public function get($limit, $before)
*/
public function find(string $batchId)
{
+ //
}
/**
@@ -68,6 +69,7 @@ public function store(PendingBatch $batch)
*/
public function incrementTotalJobs(string $batchId, int $amount)
{
+ //
}
/**... | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | src/Illuminate/Support/Testing/Fakes/BusFake.php | @@ -517,6 +517,7 @@ public function chain($jobs)
*/
public function findBatch(string $batchId)
{
+ //
}
/** | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | tests/Container/ContainerTest.php | @@ -577,20 +577,23 @@ class CircularAStub
{
public function __construct(CircularBStub $b)
{
+ //
}
}
class CircularBStub
{
public function __construct(CircularCStub $c)
{
+ //
}
}
class CircularCStub
{
public function __construct(CircularAStub $a)
{
+ ... | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | tests/Integration/Queue/CustomPayloadTest.php | @@ -60,5 +60,6 @@ class MyJob implements ShouldQueue
public function handle()
{
+ //
}
} | true |
Other | laravel | framework | 2d304d4e5dc49c5f80e0ee77cf44d08e8d94325d.json | Consolidate empty function bodies (#36560) | tests/Support/SupportReflectorTest.php | @@ -81,6 +81,7 @@ class B extends A
{
public function f(parent $x)
{
+ //
}
}
@@ -92,6 +93,7 @@ class C
{
public function f(A|Model $x)
{
+ //
}
}'
);
@@ -101,12 +103,14 @@ class TestClassWithCall
{
public function __call($method, $parameters)
{
+ ... | true |
Other | laravel | framework | d5cd4b3ee7e4db527c5a089af78183e6742afeb5.json | Add test for stack prepend (#36555) | tests/View/ViewFactoryTest.php | @@ -443,6 +443,27 @@ public function testMultipleStackPush()
$this->assertSame('hi, Hello!', $factory->yieldPushContent('foo'));
}
+ public function testSingleStackPrepend()
+ {
+ $factory = $this->getFactory();
+ $factory->startPrepend('foo');
+ echo 'hi';
+ $factory->... | false |
Other | laravel | framework | 71265318358ee150fe8b13f68a03cb9f869fb483.json | Apply fixes from StyleCI (#36553) | tests/Container/ContainerTest.php | @@ -564,29 +564,33 @@ public function testContainerCanResolveClasses()
$this->assertInstanceOf(ContainerConcreteStub::class, $class);
}
- public function testContainerCanCatchCircularDependency() {
+ public function testContainerCanCatchCircularDependency()
+ {
$this->expectException(C... | false |
Other | laravel | framework | 0443f1c42c20f6a30d0d81050bc43e94c9c51145.json | Add class argument (#36513) | src/Illuminate/Database/Console/Seeds/SeedCommand.php | @@ -6,6 +6,7 @@
use Illuminate\Console\ConfirmableTrait;
use Illuminate\Database\ConnectionResolverInterface as Resolver;
use Illuminate\Database\Eloquent\Model;
+use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class SeedCommand extends Command
@@ -81,7 +82,7 @... | false |
Other | laravel | framework | 35071ab6ec3c906c0f26d153e743770e8df86079.json | Add ThrottlesExceptionsWithRedis job middleware | src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php | @@ -0,0 +1,62 @@
+<?php
+
+namespace Illuminate\Queue\Middleware;
+
+use Illuminate\Container\Container;
+use Illuminate\Contracts\Redis\Factory as Redis;
+use Illuminate\Redis\Limiters\DurationLimiter;
+use Illuminate\Support\InteractsWithTime;
+use Throwable;
+
+class ThrottlesExceptionsWithRedis extends ThrottlesExc... | true |
Other | laravel | framework | 35071ab6ec3c906c0f26d153e743770e8df86079.json | Add ThrottlesExceptionsWithRedis job middleware | src/Illuminate/Redis/Limiters/DurationLimiter.php | @@ -111,6 +111,30 @@ public function acquire()
return (bool) $results[0];
}
+ /**
+ * Determine if the key has been "accessed" too many times.
+ *
+ * @return bool
+ */
+ public function tooManyAttempts()
+ {
+ [$this->decaysAt, $this->remaining] = $this->redis->eval(
+ ... | true |
Other | laravel | framework | 35071ab6ec3c906c0f26d153e743770e8df86079.json | Add ThrottlesExceptionsWithRedis job middleware | tests/Integration/Queue/ThrottlesExceptionsWithRedisTest.php | @@ -0,0 +1,167 @@
+<?php
+
+namespace Illuminate\Tests\Integration\Queue;
+
+use Exception;
+use Illuminate\Bus\Dispatcher;
+use Illuminate\Bus\Queueable;
+use Illuminate\Contracts\Queue\Job;
+use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis;
+use Illuminate\Queue\CallQueuedHandler;
+use Illuminate\Queue\I... | true |
Other | laravel | framework | 0798479b95fd241c829b0e36a1d6f8573a586738.json | Apply fixes from StyleCI (#36508) | src/Illuminate/Testing/TestResponse.php | @@ -14,9 +14,7 @@
use Illuminate\Support\Traits\Tappable;
use Illuminate\Testing\Assert as PHPUnit;
use Illuminate\Testing\Constraints\SeeInOrder;
-use Illuminate\Testing\Fluent\Assert as FluentAssert;
use Illuminate\Testing\Fluent\AssertableJson;
-use Illuminate\Testing\Fluent\FluentAssertableJson;
use LogicExcep... | true |
Other | laravel | framework | 0798479b95fd241c829b0e36a1d6f8573a586738.json | Apply fixes from StyleCI (#36508) | tests/Testing/TestResponseTest.php | @@ -9,7 +9,6 @@
use Illuminate\Encryption\Encrypter;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Http\Response;
-use Illuminate\Testing\Fluent\Assert;
use Illuminate\Testing\Fluent\AssertableJson;
use Illuminate\Testing\TestResponse;
use JsonSerializable; | true |
Other | laravel | framework | 883713b084fab51f972503395b14f662297cbab4.json | Use user defined url for AwsTemporaryUrl method | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -23,6 +23,7 @@
use League\Flysystem\Sftp\SftpAdapter as Sftp;
use PHPUnit\Framework\Assert as PHPUnit;
use Psr\Http\Message\StreamInterface;
+use Psr\Http\Message\UriInterface;
use RuntimeException;
use Symfony\Component\HttpFoundation\StreamedResponse;
@@ -593,9 +594,18 @@ public function getAwsTemporaryUrl(... | false |
Other | laravel | framework | d7a4280423518939eeefce1f75f84b6e6bf03ad3.json | Apply fixes from StyleCI (#36477) | src/Illuminate/Cache/PhpRedisLock.php | @@ -46,7 +46,7 @@ protected function serializedAndCompressedOwner(): string
$owner = $client->_serialize($this->owner);
- // https://github.com/phpredis/phpredis/issues/1938
+ // https://github.com/phpredis/phpredis/issues/1938
if ($this->compressed()) {
if ($this->lzfC... | false |
Other | laravel | framework | c5eadc4d9de5a2597dc0c4b64f0d009e287c25a6.json | Use FQN in DocBlocks | src/Illuminate/Testing/Fluent/Assert.php | @@ -75,7 +75,7 @@ protected function prop(string $key = null)
* Instantiate a new "scope" at the path of the given key.
*
* @param string $key
- * @param Closure $callback
+ * @param \Closure $callback
* @return $this
*/
protected function scope(string $key, Closure $cal... | true |
Other | laravel | framework | c5eadc4d9de5a2597dc0c4b64f0d009e287c25a6.json | Use FQN in DocBlocks | src/Illuminate/Testing/Fluent/Concerns/Has.php | @@ -31,7 +31,7 @@ protected function count(string $key, int $length): self
*
* @param string $key
* @param null $value
- * @param Closure|null $scope
+ * @param \Closure|null $scope
* @return $this
*/
public function has(string $key, $value = null, Closure $scope = nul... | true |
Other | laravel | framework | c5eadc4d9de5a2597dc0c4b64f0d009e287c25a6.json | Use FQN in DocBlocks | src/Illuminate/Testing/Fluent/Concerns/Matching.php | @@ -13,7 +13,7 @@ trait Matching
* Asserts that the property matches the expected value.
*
* @param string $key
- * @param mixed|callable $expected
+ * @param mixed|\Closure $expected
* @return $this
*/
public function where(string $key, $expected): self
@@ -94,7 +94,7 @... | true |
Other | laravel | framework | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411.json | Add docblocks & minor cleanup | src/Illuminate/Testing/Fluent/Assert.php | @@ -19,19 +19,39 @@ class Assert implements Arrayable
Macroable,
Tappable;
- /** @var array */
+ /**
+ * The properties in the current scope.
+ *
+ * @var array
+ */
private $props;
- /** @var string */
+ /**
+ * The "dot" path to the current scope.
+ *
+ ... | true |
Other | laravel | framework | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411.json | Add docblocks & minor cleanup | src/Illuminate/Testing/Fluent/Concerns/Debugging.php | @@ -4,17 +4,35 @@
trait Debugging
{
+ /**
+ * Dumps the given props.
+ *
+ * @param string|null $prop
+ * @return $this
+ */
public function dump(string $prop = null): self
{
dump($this->prop($prop));
return $this;
}
+ /**
+ * Dumps the given prop... | true |
Other | laravel | framework | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411.json | Add docblocks & minor cleanup | src/Illuminate/Testing/Fluent/Concerns/Has.php | @@ -8,7 +8,14 @@
trait Has
{
- protected function count(string $key, $length): self
+ /**
+ * Assert that the prop is of the expected size.
+ *
+ * @param string $key
+ * @param int $length
+ * @return $this
+ */
+ protected function count(string $key, int $length): self
{
... | true |
Other | laravel | framework | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411.json | Add docblocks & minor cleanup | src/Illuminate/Testing/Fluent/Concerns/Interaction.php | @@ -7,9 +7,19 @@
trait Interaction
{
- /** @var array */
+ /**
+ * The list of interacted properties.
+ *
+ * @var array
+ */
protected $interacted = [];
+ /**
+ * Marks the property as interacted.
+ *
+ * @param string $key
+ * @return void
+ */
protected ... | true |
Other | laravel | framework | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411.json | Add docblocks & minor cleanup | src/Illuminate/Testing/Fluent/Concerns/Matching.php | @@ -9,16 +9,14 @@
trait Matching
{
- public function whereAll(array $bindings): self
- {
- foreach ($bindings as $key => $value) {
- $this->where($key, $value);
- }
-
- return $this;
- }
-
- public function where($key, $expected): self
+ /**
+ * Asserts that the pr... | true |
Other | laravel | framework | b1d76be077a96bc28321e5e289c4f0de324cd0ff.json | Add docblocks for dumping methods | src/Illuminate/Http/Client/Factory.php | @@ -32,6 +32,8 @@
* @method \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
* @method \Illuminate\Http\Client\PendingRequest withoutRedirecting()
* @method \Illuminate\Http\Client\PendingRequest withoutVerifying()
+ * @method \Illuminate\Http\Client\PendingRequest dump()
+... | true |
Other | laravel | framework | b1d76be077a96bc28321e5e289c4f0de324cd0ff.json | Add docblocks for dumping methods | src/Illuminate/Support/Facades/Http.php | @@ -30,6 +30,8 @@
* @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
* @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
* @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
+ * @method static \Illuminate\Http\Cl... | true |
Other | laravel | framework | 6699a47565146cd318a22435f99104d54a90c2c1.json | Implement dump() and dd() methods | src/Illuminate/Http/Client/PendingRequest.php | @@ -9,6 +9,7 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable;
+use Symfony\Component\VarDumper\VarDumper;
class PendingRequest
{
@@ -452,6 +453,40 @@ public function beforeSending($callback)
});
}
+ /**
+ * Dump the request.
+ *... | false |
Other | laravel | framework | 5434332367c23230be01391b500005879bd6fa93.json | Add test for dumping requests | tests/Http/HttpClientTest.php | @@ -11,6 +11,7 @@
use Illuminate\Support\Str;
use OutOfBoundsException;
use PHPUnit\Framework\TestCase;
+use Symfony\Component\VarDumper\VarDumper;
class HttpClientTest extends TestCase
{
@@ -781,4 +782,23 @@ function (Request $request) {
$this->factory->assertSentInOrder($executionOrder);
}
+
+ ... | false |
Other | laravel | framework | ddb0c5e68ec8037ed31738bbfed4ededa3cd39da.json | multiplatform newline check (#36464) | src/Illuminate/Foundation/Console/PolicyMakeCommand.php | @@ -131,8 +131,13 @@ protected function replaceModel($stub, $model)
array_keys($replace), array_values($replace), $stub
);
- return str_replace(
- "use {$namespacedModel};\nuse {$namespacedModel};", "use {$namespacedModel};", $stub
+ return preg_replace(
+ vsp... | false |
Other | laravel | framework | cada3d21c7f127ba01bb949b2fa045b7faaedbca.json | Apply fixes from StyleCI (#36461) | src/Illuminate/View/Engines/CompilerEngine.php | @@ -3,8 +3,8 @@
namespace Illuminate\View\Engines;
use Illuminate\View\Compilers\CompilerInterface;
-use Throwable;
use Illuminate\View\ViewException;
+use Throwable;
class CompilerEngine extends PhpEngine
{ | false |
Other | laravel | framework | f31557f76ac5a790d66b717e074537031c48085e.json | Apply fixes from StyleCI | src/Illuminate/Testing/TestResponse.php | @@ -528,7 +528,6 @@ public function assertJson($value, $strict = false)
}
}
-
return $this;
}
| false |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/Fluent/Assert.php | @@ -0,0 +1,76 @@
+<?php
+
+namespace Illuminate\Testing\Fluent;
+
+use Closure;
+use Illuminate\Contracts\Support\Arrayable;
+use Illuminate\Support\Arr;
+use Illuminate\Support\Traits\Macroable;
+use Illuminate\Support\Traits\Tappable;
+use Illuminate\Testing\AssertableJsonString;
+use PHPUnit\Framework\Assert as PHPU... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/Fluent/Concerns/Debugging.php | @@ -0,0 +1,20 @@
+<?php
+
+namespace Illuminate\Testing\Fluent\Concerns;
+
+trait Debugging
+{
+ public function dump(string $prop = null): self
+ {
+ dump($this->prop($prop));
+
+ return $this;
+ }
+
+ public function dd(string $prop = null): void
+ {
+ dd($this->prop($prop));
+ ... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/Fluent/Concerns/Has.php | @@ -0,0 +1,100 @@
+<?php
+
+namespace Illuminate\Testing\Fluent\Concerns;
+
+use Closure;
+use Illuminate\Support\Arr;
+use PHPUnit\Framework\Assert as PHPUnit;
+
+trait Has
+{
+ protected function count(string $key, $length): self
+ {
+ PHPUnit::assertCount(
+ $length,
+ $this->prop(... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/Fluent/Concerns/Interaction.php | @@ -0,0 +1,41 @@
+<?php
+
+namespace Illuminate\Testing\Fluent\Concerns;
+
+use Illuminate\Support\Str;
+use PHPUnit\Framework\Assert as PHPUnit;
+
+trait Interaction
+{
+ /** @var array */
+ protected $interacted = [];
+
+ protected function interactsWith(string $key): void
+ {
+ $prop = Str::before... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/Fluent/Concerns/Matching.php | @@ -0,0 +1,70 @@
+<?php
+
+namespace Illuminate\Testing\Fluent\Concerns;
+
+use Closure;
+use Illuminate\Contracts\Support\Arrayable;
+use Illuminate\Support\Collection;
+use PHPUnit\Framework\Assert as PHPUnit;
+
+trait Matching
+{
+ public function whereAll(array $bindings): self
+ {
+ foreach ($bindings... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | src/Illuminate/Testing/TestResponse.php | @@ -14,6 +14,7 @@
use Illuminate\Support\Traits\Tappable;
use Illuminate\Testing\Assert as PHPUnit;
use Illuminate\Testing\Constraints\SeeInOrder;
+use Illuminate\Testing\Fluent\Assert as FluentAssert;
use LogicException;
use Symfony\Component\HttpFoundation\StreamedResponse;
@@ -507,13 +508,26 @@ public functio... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | tests/Testing/Fluent/AssertTest.php | @@ -0,0 +1,688 @@
+<?php
+
+namespace Illuminate\Tests\Testing\Fluent;
+
+use Illuminate\Support\Collection;
+use Illuminate\Testing\Fluent\Assert;
+use Illuminate\Tests\Testing\Stubs\ArrayableStubObject;
+use PHPUnit\Framework\AssertionFailedError;
+use PHPUnit\Framework\TestCase;
+use RuntimeException;
+use TypeError... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | tests/Testing/Stubs/ArrayableStubObject.php | @@ -0,0 +1,25 @@
+<?php
+
+namespace Illuminate\Tests\Testing\Stubs;
+
+use Illuminate\Contracts\Support\Arrayable;
+
+class ArrayableStubObject implements Arrayable
+{
+ protected $data;
+
+ public function __construct($data = [])
+ {
+ $this->data = $data;
+ }
+
+ public static function make($da... | true |
Other | laravel | framework | add249472cd192cabcb4f113ff7915f667394141.json | Implement Fluent JSON Assertions | tests/Testing/TestResponseTest.php | @@ -9,6 +9,7 @@
use Illuminate\Encryption\Encrypter;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Http\Response;
+use Illuminate\Testing\Fluent\Assert;
use Illuminate\Testing\TestResponse;
use JsonSerializable;
use Mockery as m;
@@ -577,6 +578,27 @@ public function testAssertJsonWithNull()
$respo... | true |
Other | laravel | framework | b72178dbe9d8971c9f8bd1823cb1aa344bcb9637.json | Add Collection@isSingle method | src/Illuminate/Collections/Collection.php | @@ -553,6 +553,16 @@ public function isEmpty()
return empty($this->items);
}
+ /**
+ * Determine if the collection contains a single element.
+ *
+ * @return bool
+ */
+ public function isSingle()
+ {
+ return $this->count() === 1;
+ }
+
/**
* Join all items... | true |
Other | laravel | framework | b72178dbe9d8971c9f8bd1823cb1aa344bcb9637.json | Add Collection@isSingle method | src/Illuminate/Collections/LazyCollection.php | @@ -556,6 +556,16 @@ public function isEmpty()
return ! $this->getIterator()->valid();
}
+ /**
+ * Determine if the collection contains a single element.
+ *
+ * @return bool
+ */
+ public function isSingle()
+ {
+ return $this->take(2)->count() === 1;
+ }
+
/**
... | true |
Other | laravel | framework | b72178dbe9d8971c9f8bd1823cb1aa344bcb9637.json | Add Collection@isSingle method | tests/Support/SupportCollectionTest.php | @@ -541,6 +541,16 @@ public function testCountableByWithCallback($collection)
})->all());
}
+ /**
+ * @dataProvider collectionClassProvider
+ */
+ public function testIsSingle($collection)
+ {
+ $this->assertFalse((new $collection([]))->isSingle());
+ $this->assertTrue((ne... | true |
Other | laravel | framework | b72178dbe9d8971c9f8bd1823cb1aa344bcb9637.json | Add Collection@isSingle method | tests/Support/SupportLazyCollectionIsLazyTest.php | @@ -484,6 +484,13 @@ public function testIsNotEmptyIsLazy()
});
}
+ public function testIsSingleIsLazy()
+ {
+ $this->assertEnumerates(2, function ($collection) {
+ $collection->isSingle();
+ });
+ }
+
public function testJoinIsLazy()
{
$this->assertE... | true |
Other | laravel | framework | f330a094db465c5e07d8234a3ff1c10b2a1b4d99.json | Apply fixes from StyleCI (#36413) | src/Illuminate/Validation/Validator.php | @@ -381,8 +381,8 @@ public function passes()
}
if ($this->stopOnFirstFailure && $this->messages->isNotEmpty()) {
- break;
- }
+ break;
+ }
foreach ($rules as $rule) {
$this->validateAttribute($attribute, $r... | false |
Other | laravel | framework | 8a1445396617408e98cdf306296bd9440f25e5be.json | Add Buffered Console Output (#36404)
* add buffered console output
* Apply fixes from StyleCI (#36403)
* change visibility | src/Illuminate/Console/Application.php | @@ -19,7 +19,6 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\PhpExecut... | true |
Other | laravel | framework | 8a1445396617408e98cdf306296bd9440f25e5be.json | Add Buffered Console Output (#36404)
* add buffered console output
* Apply fixes from StyleCI (#36403)
* change visibility | src/Illuminate/Console/BufferedConsoleOutput.php | @@ -0,0 +1,41 @@
+<?php
+
+namespace Illuminate\Console;
+
+use Symfony\Component\Console\Output\ConsoleOutput;
+
+class BufferedConsoleOutput extends ConsoleOutput
+{
+ /**
+ * The current buffer.
+ *
+ * @var string
+ */
+ protected $buffer = '';
+
+ /**
+ * Empties the buffer and returns... | true |
Other | laravel | framework | aa19ecd0ceef93b6e8a96764cdb07d7c878871b0.json | add macroable trait to database factory (#36380) | src/Illuminate/Database/Eloquent/Factories/Factory.php | @@ -11,11 +11,14 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\ForwardsCalls;
+use Illuminate\Support\Traits\Macroable;
use Throwable;
abstract class Factory
{
- use ForwardsCalls;
+ use ForwardsCalls, Macroable {
+ __call as macroCall;
+ }
... | true |
Other | laravel | framework | aa19ecd0ceef93b6e8a96764cdb07d7c878871b0.json | add macroable trait to database factory (#36380) | tests/Database/DatabaseEloquentFactoryTest.php | @@ -473,6 +473,16 @@ public function test_dynamic_has_and_for_methods()
$this->assertCount(2, $post->comments);
}
+ public function test_can_be_macroable()
+ {
+ $factory = FactoryTestUserFactory::new();
+ $factory->macro('getFoo', function () {
+ return 'Hello World';
+ ... | true |
Other | laravel | framework | 7f9441c1f990f513b40102bef5172b1d3c0eccf0.json | Update Http.php (#36366) | src/Illuminate/Support/Facades/Http.php | @@ -18,6 +18,7 @@
* @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
* @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
* @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0)
+ * @method static \Illuminate\Htt... | false |
Other | laravel | framework | 75b1e9ea2d9157d65fc3d3d8cb20840aa2887c5b.json | Fix GateEvaluated event DocBlocks (#36347) | src/Illuminate/Auth/Access/Events/GateEvaluated.php | @@ -7,7 +7,7 @@ class GateEvaluated
/**
* The authenticatable model.
*
- * @var \Illuminate\Contracts\Auth\Authenticatable
+ * @var \Illuminate\Contracts\Auth\Authenticatable|null
*/
public $user;
@@ -35,7 +35,7 @@ class GateEvaluated
/**
* Create a new event instance.
... | true |
Other | laravel | framework | 75b1e9ea2d9157d65fc3d3d8cb20840aa2887c5b.json | Fix GateEvaluated event DocBlocks (#36347) | src/Illuminate/Auth/Access/Gate.php | @@ -87,7 +87,7 @@ class Gate implements GateContract
*/
public function __construct(Container $container, callable $userResolver, array $abilities = [],
array $policies = [], array $beforeCallbacks = [], array $afterCallbacks = [],
- callable $guess... | true |
Other | laravel | framework | ef3080d16cf8f9b2da33d8553d84786a5672202d.json | Fix retry command for encrypted jobs | src/Illuminate/Queue/Console/RetryCommand.php | @@ -4,7 +4,10 @@
use DateTimeInterface;
use Illuminate\Console\Command;
+use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Support\Arr;
+use Illuminate\Support\Str;
+use RuntimeException;
class RetryCommand extends Command
{
@@ -94,7 +97,8 @@ protected function getJobIdsByRanges(array $ranges)
... | false |
Other | laravel | framework | 3c66f6cda2ac4ee2844a67fc98e676cb170ff4b1.json | support closures in sequences | src/Illuminate/Database/Eloquent/Factories/Sequence.php | @@ -48,7 +48,7 @@ public function __invoke()
$this->index = 0;
}
- return tap($this->sequence[$this->index], function () {
+ return tap(value($this->sequence[$this->index]), function () {
$this->index = $this->index + 1;
});
} | false |
Other | laravel | framework | 3b515cea9cab30e2832ca7b7b9be7923d732cb5e.json | Use explicit flag as default sorting (#36261)
PHP 8.1 will no longer support passing `null` as `asort()` flag. | src/Illuminate/Collections/Collection.php | @@ -1086,7 +1086,7 @@ public function sort($callback = null)
$callback && is_callable($callback)
? uasort($items, $callback)
- : asort($items, $callback);
+ : asort($items, $callback ?? SORT_REGULAR);
return new static($items);
} | false |
Other | laravel | framework | eee817aa38de261ed1c205d9cf9315e4b563d57c.json | Handle directive $value as a string (#36260)
- As per PHPDoc `Str::startsWith` and `Str::endsWith` are not supposed to handle `null` values
- strncmp() will no longer accept `null` in PHP 8.1
- It needs a `string` in the end (`trim`) so it would be relevant to cast it first. | src/Illuminate/View/Compilers/BladeCompiler.php | @@ -449,6 +449,8 @@ protected function compileStatement($match)
*/
protected function callCustomDirective($name, $value)
{
+ $value = $value ?? '';
+
if (Str::startsWith($value, '(') && Str::endsWith($value, ')')) {
$value = Str::substr($value, 1, -1);
} | false |
Other | laravel | framework | d5ffd8efdd04b11a2b1199cc7f2148337418191f.json | Remove problem matchers (#36246) | .github/workflows/tests.yml | @@ -48,9 +48,6 @@ jobs:
tools: composer:v2
coverage: none
- - name: Setup problem matchers
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
-
- name: Set Minimum Guzzle Version
uses: nick-invision/retry@v1
with:
@@ -100,9 +97,6 @@ jobs:
... | false |
Other | laravel | framework | 4880ca605b47608cc10906cd3ab9690c38006932.json | Update layout.blade.php (#36198)
The mail design in gmail app wasn't responsive, and I managed to solve the problem. | src/Illuminate/Mail/resources/views/html/layout.blade.php | @@ -5,8 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
-</head>
-<body>
<style>
@media only screen and (max-width: 600px) {
.inner-body {
@@ -24,6 +22,8 @@
}
}
</style>
+</head>
+<bod... | false |
Other | laravel | framework | 87fe04daf668c4c1de9269a003760e677b575fcb.json | Apply fixes from StyleCI (#36139) | tests/Support/SupportPluralizerTest.php | @@ -77,7 +77,7 @@ public function testPluralNotAppliedForStringEndingWithNonAlphanumericCharacter(
$this->assertSame('Alien ', Str::plural('Alien '));
$this->assertSame('50%', Str::plural('50%'));
}
-
+
public function testPluralAppliedForStringEndingWithNumericCharacter()
{
... | false |
Other | laravel | framework | 1884c4df4cc0d15b0721897153854c55c5e8ccbf.json | Fix incorrect PHPDoc (#36124) | src/Illuminate/Testing/Concerns/TestDatabases.php | @@ -100,7 +100,7 @@ protected function ensureSchemaIsUpToDate()
* Runs the given callable using the given database.
*
* @param string $database
- * @param callable $database
+ * @param callable $callable
* @return void
*/
protected function usingDatabase($database, $callabl... | false |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Auth/GuardHelpers.php | @@ -25,7 +25,7 @@ trait GuardHelpers
protected $provider;
/**
- * Determine if current user is authenticated. If not, throw an exception.
+ * Determine if the current user is authenticated. If not, throw an exception.
*
* @return \Illuminate\Contracts\Auth\Authenticatable
* | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Broadcasting/Broadcasters/AblyBroadcaster.php | @@ -120,7 +120,7 @@ public function broadcast(array $channels, $event, array $payload = [])
}
/**
- * Return true if channel is protected by authentication.
+ * Return true if the channel is protected by authentication.
*
* @param string $channel
* @return bool | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Broadcasting/Broadcasters/UsePusherChannelConventions.php | @@ -7,7 +7,7 @@
trait UsePusherChannelConventions
{
/**
- * Return true if channel is protected by authentication.
+ * Return true if the channel is protected by authentication.
*
* @param string $channel
* @return bool | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Console/Scheduling/Event.php | @@ -87,7 +87,7 @@ class Event
public $expiresAt = 1440;
/**
- * Indicates if the command should run in background.
+ * Indicates if the command should run in the background.
*
* @var bool
*/
@@ -587,7 +587,7 @@ protected function pingCallback($url)
}
/**
- * State t... | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php | @@ -130,7 +130,7 @@ public static function reguard()
}
/**
- * Determine if current state is "unguarded".
+ * Determine if the current state is "unguarded".
*
* @return bool
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php | @@ -1525,7 +1525,7 @@ protected function hasChanges($changes, $attributes = null)
}
/**
- * Get the attributes that have been changed since last sync.
+ * Get the attributes that have been changed since the last sync.
*
* @return array
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Model.php | @@ -1131,7 +1131,7 @@ public function delete()
/**
* Force a hard delete on a soft deleted model.
*
- * This method protects developers from running forceDelete when trait is missing.
+ * This method protects developers from running forceDelete when the trait is missing.
*
* @return... | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php | @@ -569,7 +569,7 @@ public function orderByPivot($column, $direction = 'asc')
}
/**
- * Find a related model by its primary key or return new instance of the related model.
+ * Find a related model by its primary key or return a new instance of the related model.
*
* @param mixed $id
... | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php | @@ -182,7 +182,7 @@ protected function buildDictionary(Collection $results)
}
/**
- * Find a model by its primary key or return new instance of the related model.
+ * Find a model by its primary key or return a new instance of the related model.
*
* @param mixed $id
* @param arr... | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Eloquent/Relations/Relation.php | @@ -49,7 +49,7 @@ abstract class Relation
protected static $constraints = true;
/**
- * An array to map class names to their morph names in database.
+ * An array to map class names to their morph names in the database.
*
* @var array
*/ | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Database/Migrations/MigrationRepositoryInterface.php | @@ -12,7 +12,7 @@ interface MigrationRepositoryInterface
public function getRan();
/**
- * Get list of migrations.
+ * Get the list of migrations.
*
* @param int $steps
* @return array | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Events/Dispatcher.php | @@ -286,7 +286,7 @@ protected function shouldBroadcast(array $payload)
}
/**
- * Check if event should be broadcasted by condition.
+ * Check if the event should be broadcasted by the condition.
*
* @param mixed $event
* @return bool | true |
Other | laravel | framework | 6319d94ccaf8169b103813a82139814573ddef09.json | Add missing articles (#36122) | src/Illuminate/Foundation/Application.php | @@ -560,7 +560,7 @@ public function environment(...$environments)
}
/**
- * Determine if application is in local environment.
+ * Determine if the application is in the local environment.
*
* @return bool
*/
@@ -570,7 +570,7 @@ public function isLocal()
}
/**
- * De... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.