Skip to content

Commit

Permalink
Merge pull request #30984 from laravel/5.5-cs
Browse files Browse the repository at this point in the history
[5.5] Code style fixes
  • Loading branch information
taylorotwell authored Dec 31, 2019
2 parents 25e0775 + 806db1f commit ac2e994
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function testWhereHasOnARelationWithCustomIntermediateAndLocalKey()
public function testFirstOrFailThrowsAnException()
{
HasManyThroughTestCountry::create(['id' => 1, 'name' => 'United States of America', 'shortname' => 'us'])
->users()->create(['id' => 1, 'email' => '[email protected]', 'country_short' => 'us']);
->users()->create(['id' => 1, 'email' => '[email protected]', 'country_short' => 'us']);

HasManyThroughTestCountry::first()->posts()->firstOrFail();
}
Expand Down Expand Up @@ -210,9 +210,9 @@ protected function seedData()
HasManyThroughTestCountry::create(['id' => 1, 'name' => 'United States of America', 'shortname' => 'us'])
->users()->create(['id' => 1, 'email' => '[email protected]', 'country_short' => 'us'])
->posts()->createMany([
['title' => 'A title', 'body' => 'A body', 'email' => '[email protected]'],
['title' => 'Another title', 'body' => 'Another body', 'email' => '[email protected]'],
]);
['title' => 'A title', 'body' => 'A body', 'email' => '[email protected]'],
['title' => 'Another title', 'body' => 'Another body', 'email' => '[email protected]'],
]);
}

/**
Expand All @@ -221,11 +221,11 @@ protected function seedData()
protected function seedDefaultData()
{
HasManyThroughDefaultTestCountry::create(['id' => 1, 'name' => 'United States of America'])
->users()->create(['id' => 1, 'email' => '[email protected]'])
->posts()->createMany([
['title' => 'A title', 'body' => 'A body'],
['title' => 'Another title', 'body' => 'Another body'],
]);
->users()->create(['id' => 1, 'email' => '[email protected]'])
->posts()->createMany([
['title' => 'A title', 'body' => 'A body'],
['title' => 'Another title', 'body' => 'Another body'],
]);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions tests/Notifications/NotificationSlackChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ public function toSlack($notifiable)
->content('Attachment Content')
->fallback('Attachment Fallback')
->fields([
'Project' => 'Laravel',
])
'Project' => 'Laravel',
])
->footer('Laravel')
->footerIcon('https://laravel.com/fake.png')
->markdown(['text'])
Expand All @@ -212,8 +212,8 @@ public function toSlack($notifiable)
->content('Attachment Content')
->fallback('Attachment Fallback')
->fields([
'Project' => 'Laravel',
])
'Project' => 'Laravel',
])
->footer('Laravel')
->footerIcon('https://laravel.com/fake.png')
->markdown(['text'])
Expand All @@ -232,8 +232,8 @@ public function toSlack($notifiable)
$attachment->title('Laravel', 'https://laravel.com')
->content('Attachment Content')
->fields([
'Project' => 'Laravel',
]);
'Project' => 'Laravel',
]);
});
}
}
Expand Down

0 comments on commit ac2e994

Please sign in to comment.