Skip to content

Commit 48246da

Browse files
authored
Fix more typos (#51039)
* Fix more typos * Fix more typos
1 parent 5f5484f commit 48246da

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

src/Illuminate/Foundation/Configuration/ApplicationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function withEvents(array|bool $discover = [])
108108
}
109109

110110
/**
111-
* Register the braodcasting services for the application.
111+
* Register the broadcasting services for the application.
112112
*
113113
* @param string $channels
114114
* @param array $attributes

src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class EventServiceProvider extends ServiceProvider
3333
protected $observers = [];
3434

3535
/**
36-
* Indiates if events should be discovered.
36+
* Indicates if events should be discovered.
3737
*
3838
* @var bool
3939
*/

tests/Database/DatabaseQueryBuilderTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,19 +2479,19 @@ public function testJoinsWithNestedJoins()
24792479
public function testJoinsWithMultipleNestedJoins()
24802480
{
24812481
$builder = $this->getBuilder();
2482-
$builder->select('users.id', 'contacts.id', 'contact_types.id', 'countrys.id', 'planets.id')->from('users')->leftJoin('contacts', function ($j) {
2482+
$builder->select('users.id', 'contacts.id', 'contact_types.id', 'countries.id', 'planets.id')->from('users')->leftJoin('contacts', function ($j) {
24832483
$j->on('users.id', 'contacts.id')
24842484
->join('contact_types', 'contacts.contact_type_id', '=', 'contact_types.id')
2485-
->leftJoin('countrys', function ($q) {
2486-
$q->on('contacts.country', '=', 'countrys.country')
2485+
->leftJoin('countries', function ($q) {
2486+
$q->on('contacts.country', '=', 'countries.country')
24872487
->join('planets', function ($q) {
2488-
$q->on('countrys.planet_id', '=', 'planet.id')
2488+
$q->on('countries.planet_id', '=', 'planet.id')
24892489
->where('planet.is_settled', '=', 1)
24902490
->where('planet.population', '>=', 10000);
24912491
});
24922492
});
24932493
});
2494-
$this->assertSame('select "users"."id", "contacts"."id", "contact_types"."id", "countrys"."id", "planets"."id" from "users" left join ("contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id" left join ("countrys" inner join "planets" on "countrys"."planet_id" = "planet"."id" and "planet"."is_settled" = ? and "planet"."population" >= ?) on "contacts"."country" = "countrys"."country") on "users"."id" = "contacts"."id"', $builder->toSql());
2494+
$this->assertSame('select "users"."id", "contacts"."id", "contact_types"."id", "countries"."id", "planets"."id" from "users" left join ("contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id" left join ("countries" inner join "planets" on "countries"."planet_id" = "planet"."id" and "planet"."is_settled" = ? and "planet"."population" >= ?) on "contacts"."country" = "countries"."country") on "users"."id" = "contacts"."id"', $builder->toSql());
24952495
$this->assertEquals(['1', 10000], $builder->getBindings());
24962496
}
24972497

@@ -2502,16 +2502,16 @@ public function testJoinsWithNestedJoinWithAdvancedSubqueryCondition()
25022502
$j->on('users.id', 'contacts.id')
25032503
->join('contact_types', 'contacts.contact_type_id', '=', 'contact_types.id')
25042504
->whereExists(function ($q) {
2505-
$q->select('*')->from('countrys')
2506-
->whereColumn('contacts.country', '=', 'countrys.country')
2505+
$q->select('*')->from('countries')
2506+
->whereColumn('contacts.country', '=', 'countries.country')
25072507
->join('planets', function ($q) {
2508-
$q->on('countrys.planet_id', '=', 'planet.id')
2508+
$q->on('countries.planet_id', '=', 'planet.id')
25092509
->where('planet.is_settled', '=', 1);
25102510
})
25112511
->where('planet.population', '>=', 10000);
25122512
});
25132513
});
2514-
$this->assertSame('select "users"."id", "contacts"."id", "contact_types"."id" from "users" left join ("contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id") on "users"."id" = "contacts"."id" and exists (select * from "countrys" inner join "planets" on "countrys"."planet_id" = "planet"."id" and "planet"."is_settled" = ? where "contacts"."country" = "countrys"."country" and "planet"."population" >= ?)', $builder->toSql());
2514+
$this->assertSame('select "users"."id", "contacts"."id", "contact_types"."id" from "users" left join ("contacts" inner join "contact_types" on "contacts"."contact_type_id" = "contact_types"."id") on "users"."id" = "contacts"."id" and exists (select * from "countries" inner join "planets" on "countries"."planet_id" = "planet"."id" and "planet"."is_settled" = ? where "contacts"."country" = "countries"."country" and "planet"."population" >= ?)', $builder->toSql());
25152515
$this->assertEquals(['1', 10000], $builder->getBindings());
25162516
}
25172517

tests/Foundation/FoundationDocsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function testItBubblesUpAskStrategyExceptions()
180180
$this->artisan('docs');
181181
}
182182

183-
public function testItBubblesUpNonProcessInterruptExceptionsInAskStratgies()
183+
public function testItBubblesUpNonProcessInterruptExceptionsInAskStrategies()
184184
{
185185
putenv('ARTISAN_DOCS_ASK_STRATEGY='.__DIR__.'/fixtures/process-failure-strategy.php');
186186

tests/Integration/Events/ShouldDispatchAfterCommitEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testItOnlyDispatchesNestedTransactionsEventsAfterTheRootTransact
105105
$this->assertTrue(AnotherShouldDispatchAfterCommitTestEvent::$ran);
106106
}
107107

108-
public function testItOnlyDispatchesNestedTransactionsEventsAfterTheRootTransactionIsCommitedDifferentOrder()
108+
public function testItOnlyDispatchesNestedTransactionsEventsAfterTheRootTransactionIsCommittedDifferentOrder()
109109
{
110110
Event::listen(ShouldDispatchAfterCommitTestEvent::class, ShouldDispatchAfterCommitListener::class);
111111
Event::listen(AnotherShouldDispatchAfterCommitTestEvent::class, AnotherShouldDispatchAfterCommitListener::class);

tests/Integration/Foundation/RoutingServiceProviderTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingGe
1717

1818
$response = $this->withoutExceptionHandling()->get('test-route?'.http_build_query([
1919
'sent' => 'sent-data',
20-
'overridden' => 'overriden-sent-data',
20+
'overridden' => 'overridden-sent-data',
2121
]));
2222

2323
$response->assertOk();
@@ -48,7 +48,7 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingGe
4848

4949
$response = $this->getJson('test-route?'.http_build_query([
5050
'sent' => 'sent-data',
51-
'overridden' => 'overriden-sent-data',
51+
'overridden' => 'overridden-sent-data',
5252
]), [
5353
'content-type' => 'application/json',
5454
]);
@@ -57,7 +57,7 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingGe
5757
$response->assertExactJson([
5858
'json-data' => 'json-data',
5959
'merged' => 'replaced-merged-data',
60-
'overridden' => 'overriden-merged-data',
60+
'overridden' => 'overridden-merged-data',
6161
'request-data' => 'request-data',
6262
]);
6363
}
@@ -70,14 +70,14 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingGe
7070

7171
$response = $this->getJson('test-route?'.http_build_query([
7272
'sent' => 'sent-data',
73-
'overridden' => 'overriden-sent-data',
73+
'overridden' => 'overridden-sent-data',
7474
]));
7575

7676
$response->assertOk();
7777
$response->assertExactJson([
7878
'json-data' => 'json-data',
7979
'merged' => 'replaced-merged-data',
80-
'overridden' => 'overriden-merged-data',
80+
'overridden' => 'overridden-merged-data',
8181
'request-data' => 'request-data',
8282
]);
8383
}
@@ -90,14 +90,14 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingPo
9090

9191
$response = $this->post('test-route', [
9292
'sent' => 'sent-data',
93-
'overridden' => 'overriden-sent-data',
93+
'overridden' => 'overridden-sent-data',
9494
]);
9595

9696
$response->assertOk();
9797
$response->assertExactJson([
9898
'sent' => 'sent-data',
9999
'merged' => 'replaced-merged-data',
100-
'overridden' => 'overriden-merged-data',
100+
'overridden' => 'overridden-merged-data',
101101
'request-data' => 'request-data',
102102
]);
103103
}
@@ -110,15 +110,15 @@ public function testItIncludesMergedDataInServerRequestInterfaceInstancesUsingPo
110110

111111
$response = $this->postJson('test-route', [
112112
'sent' => 'sent-data',
113-
'overridden' => 'overriden-sent-data',
113+
'overridden' => 'overridden-sent-data',
114114
]);
115115

116116
$response->assertOk();
117117
$response->assertExactJson([
118118
'json-data' => 'json-data',
119119
'sent' => 'sent-data',
120120
'merged' => 'replaced-merged-data',
121-
'overridden' => 'overriden-merged-data',
121+
'overridden' => 'overridden-merged-data',
122122
'request-data' => 'request-data',
123123
]);
124124
}
@@ -144,7 +144,7 @@ public function handle(Request $request, $next)
144144

145145
$request->merge(['merged' => 'replaced-merged-data']);
146146

147-
$request->merge(['overridden' => 'overriden-merged-data']);
147+
$request->merge(['overridden' => 'overridden-merged-data']);
148148

149149
$request->request->set('request-data', 'request-data');
150150

tests/Integration/Http/ThrottleRequestsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function testItFallbacksToUserPropertyWhenThereIsNoNamedLimiterWhenAuthen
305305

306306
public function testItFallbacksToUserAccessorWhenThereIsNoNamedLimiterWhenAuthenticated()
307307
{
308-
$user = UserWithAcessor::make();
308+
$user = UserWithAccessor::make();
309309

310310
Carbon::setTestNow(Carbon::create(2018, 1, 1, 0, 0, 0));
311311

@@ -333,7 +333,7 @@ public function testItFallbacksToUserAccessorWhenThereIsNoNamedLimiterWhenAuthen
333333
}
334334
}
335335

336-
class UserWithAcessor extends User
336+
class UserWithAccessor extends User
337337
{
338338
public function getRateLimitingAttribute(): int
339339
{

0 commit comments

Comments
 (0)