Skip to content

Commit 413b069

Browse files
authored
sync indentation with framework formatting (#10272)
in the framework, we are usign a single indent on new lines, so this mirrors that in the docs
1 parent c11c9cb commit 413b069

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

console-tests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ test('console command', function () {
139139
public function test_console_command(): void
140140
{
141141
$this->artisan('example')
142-
->doesntExpectOutput()
143-
->assertExitCode(0);
142+
->doesntExpectOutput()
143+
->assertExitCode(0);
144144
}
145145
```
146146

@@ -161,8 +161,8 @@ test('console command', function () {
161161
public function test_console_command(): void
162162
{
163163
$this->artisan('example')
164-
->expectsOutputToContain('Taylor')
165-
->assertExitCode(0);
164+
->expectsOutputToContain('Taylor')
165+
->assertExitCode(0);
166166
}
167167
```
168168

dusk.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ Assert that the given JavaScript expression evaluates to the given value:
17641764

17651765
```php
17661766
$browser->assertScript('window.isLoaded')
1767-
->assertScript('document.readyState', 'complete');
1767+
->assertScript('document.readyState', 'complete');
17681768
```
17691769

17701770
<a name="assert-source-has"></a>
@@ -2288,9 +2288,9 @@ Sometimes you may already be on a given page and need to "load" the page's selec
22882288
use Tests\Browser\Pages\CreatePlaylist;
22892289

22902290
$browser->visit('/dashboard')
2291-
->clickLink('Create Playlist')
2292-
->on(new CreatePlaylist)
2293-
->assertSee('@create');
2291+
->clickLink('Create Playlist')
2292+
->on(new CreatePlaylist)
2293+
->assertSee('@create');
22942294
```
22952295

22962296
<a name="shorthand-selectors"></a>
@@ -2372,8 +2372,8 @@ Once the method has been defined, you may use it within any test that utilizes t
23722372
use Tests\Browser\Pages\Dashboard;
23732373

23742374
$browser->visit(new Dashboard)
2375-
->createPlaylist('My Playlist')
2376-
->assertSee('My Playlist');
2375+
->createPlaylist('My Playlist')
2376+
->assertSee('My Playlist');
23772377
```
23782378

23792379
<a name="components"></a>

eloquent-relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ The `wherePivot` adds a where clause constraint to the query, but does not add t
932932

933933
```php
934934
return $this->belongsToMany(Role::class)
935-
->withPivotValue('approved', 1);
935+
->withPivotValue('approved', 1);
936936
```
937937

938938
<a name="ordering-queries-via-intermediate-table-columns"></a>

eloquent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,8 @@ You may also use the `restore` method in a query to restore multiple models. Aga
11301130

11311131
```php
11321132
Flight::withTrashed()
1133-
->where('airline_id', 1)
1134-
->restore();
1133+
->where('airline_id', 1)
1134+
->restore();
11351135
```
11361136

11371137
The `restore` method may also be used when building [relationship](/docs/{{version}}/eloquent-relationships) queries:

0 commit comments

Comments
 (0)