Skip to content

Commit ae790fe

Browse files
authored
Merge pull request #36018 from nexxai/typo-fixes
[8.x] Typo fixes
2 parents 72a44d3 + 8a7ea71 commit ae790fe

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

src/Illuminate/Cache/Lock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected function isOwnedByCurrentProcess()
153153
}
154154

155155
/**
156-
* Specify the number of milliseconds to sleep in between blocked lock aquisition attempts.
156+
* Specify the number of milliseconds to sleep in between blocked lock acquisition attempts.
157157
*
158158
* @param int $milliseconds
159159
* @return $this

src/Illuminate/Database/DatabaseTransactionRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DatabaseTransactionRecord
3030
*
3131
* @param string $connection
3232
* @param int $level
33-
* @retunr void
33+
* @return void
3434
*/
3535
public function __construct($connection, $level)
3636
{

src/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trait InteractsWithConsole
3030
public $unexpectedOutput = [];
3131

3232
/**
33-
* All of the expected ouput tables.
33+
* All of the expected output tables.
3434
*
3535
* @var array
3636
*/

tests/Foundation/FoundationFormRequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ public function test_after_validation_runs_after_validation()
119119
* Catch the given exception thrown from the executor, and return it.
120120
*
121121
* @param string $class
122-
* @param \Closure $excecutor
122+
* @param \Closure $executor
123123
* @return \Exception
124124
*
125125
* @throws \Exception
126126
*/
127-
protected function catchException($class, $excecutor)
127+
protected function catchException($class, $executor)
128128
{
129129
try {
130-
$excecutor();
130+
$executor();
131131
} catch (Exception $e) {
132132
if (is_a($e, $class)) {
133133
return $e;

tests/Http/HttpRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ public function testArrayAccess()
501501
return $route;
502502
});
503503

504-
$this->assertFalse(isset($request['non-existant']));
505-
$this->assertNull($request['non-existant']);
504+
$this->assertFalse(isset($request['non-existent']));
505+
$this->assertNull($request['non-existent']);
506506

507507
$this->assertTrue(isset($request['name']));
508508
$this->assertNull($request['name']);

tests/Integration/Notifications/SendingMailNotificationsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ public function testMailIsSentWithSubject()
203203
$user->notify($notification);
204204
}
205205

206-
public function testMailIsSentToMultipleAdresses()
206+
public function testMailIsSentToMultipleAddresses()
207207
{
208208
$notification = new TestMailNotificationWithSubject;
209209
$notification->id = Str::uuid()->toString();
210210

211-
$user = NotifiableUserWithMultipleAddreses::forceCreate([
211+
$user = NotifiableUserWithMultipleAddresses::forceCreate([
212212
'email' => '[email protected]',
213213
]);
214214

@@ -365,7 +365,7 @@ public function routeNotificationForMail($notification)
365365
}
366366
}
367367

368-
class NotifiableUserWithMultipleAddreses extends NotifiableUser
368+
class NotifiableUserWithMultipleAddresses extends NotifiableUser
369369
{
370370
public function routeNotificationForMail($notification)
371371
{

tests/Log/LogManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function testLogManagerCreateSyslogDriverWithConfiguredFormatter()
327327
$this->assertSame('Y/m/d--test', $dateFormat->getValue($formatter));
328328
}
329329

330-
public function testLogMnagerPurgeResolvedChannels()
330+
public function testLogManagerPurgeResolvedChannels()
331331
{
332332
$manager = new LogManager($this->app);
333333

tests/Mail/MailableQueuedTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testQueuedMailableSent()
3232
->onlyMethods(['createMessage', 'to'])
3333
->getMock();
3434
$mailer->setQueue($queueFake);
35-
$mailable = new MailableQueableStub;
35+
$mailable = new MailableQueueableStub;
3636
$queueFake->assertNothingPushed();
3737
$mailer->send($mailable);
3838
$queueFake->assertPushedOn(null, SendQueuedMailable::class);
@@ -46,7 +46,7 @@ public function testQueuedMailableWithAttachmentSent()
4646
->onlyMethods(['createMessage'])
4747
->getMock();
4848
$mailer->setQueue($queueFake);
49-
$mailable = new MailableQueableStub;
49+
$mailable = new MailableQueueableStub;
5050
$attachmentOption = ['mime' => 'image/jpeg', 'as' => 'bar.jpg'];
5151
$mailable->attach('foo.jpg', $attachmentOption);
5252
$this->assertIsArray($mailable->attachments);
@@ -75,7 +75,7 @@ public function testQueuedMailableWithAttachmentFromDiskSent()
7575
->onlyMethods(['createMessage'])
7676
->getMock();
7777
$mailer->setQueue($queueFake);
78-
$mailable = new MailableQueableStub;
78+
$mailable = new MailableQueueableStub;
7979
$attachmentOption = ['mime' => 'image/jpeg', 'as' => 'bar.jpg'];
8080

8181
$mailable->attachFromStorage('/', 'foo.jpg', $attachmentOption);
@@ -95,7 +95,7 @@ protected function getMocks()
9595
}
9696
}
9797

98-
class MailableQueableStub extends Mailable implements ShouldQueue
98+
class MailableQueueableStub extends Mailable implements ShouldQueue
9999
{
100100
use Queueable;
101101

tests/Redis/RedisManagerExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setUp(): void
3939
]);
4040

4141
$this->redis->extend('my_custom_driver', function () {
42-
return new FakeRedisConnnector();
42+
return new FakeRedisConnector();
4343
});
4444
}
4545

@@ -91,7 +91,7 @@ public function test_parse_connection_configuration_for_cluster()
9191
}
9292
}
9393

94-
class FakeRedisConnnector implements Connector
94+
class FakeRedisConnector implements Connector
9595
{
9696
/**
9797
* Create a new clustered Predis connection.

tests/Support/SupportCollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public function testFirstWhere($collection)
7878

7979
$this->assertSame('book', $data->firstWhere('material', 'paper')['type']);
8080
$this->assertSame('gasket', $data->firstWhere('material', 'rubber')['type']);
81-
$this->assertNull($data->firstWhere('material', 'nonexistant'));
82-
$this->assertNull($data->firstWhere('nonexistant', 'key'));
81+
$this->assertNull($data->firstWhere('material', 'nonexistent'));
82+
$this->assertNull($data->firstWhere('nonexistent', 'key'));
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)