Skip to content

Commit 8cf4cb3

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 136eae8 commit 8cf4cb3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Console/Commands/SyncArticleImages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function fetchUnsplashImageDataFromId(string $imageId): ?array
5959
return [
6060
'image_url' => $response['urls']['raw'],
6161
'author_name' => $response['user']['name'],
62-
'author_url' => $response['user']['links']['html']
62+
'author_url' => $response['user']['links']['html'],
6363
];
6464
}
6565
}

app/Models/Article.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function hasHeroImage(): bool
108108

109109
public function hasHeroImageAuthor(): bool
110110
{
111-
return $this->hero_image_author_name !== null &&
111+
return $this->hero_image_author_name !== null &&
112112
$this->hero_image_author_url !== null;
113113
}
114114

tests/Integration/Commands/SyncArticleImagesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
Http::fake(function () {
1717
return [
1818
'urls' => [
19-
'raw' => 'https://images.unsplash.com/photo-1584824486509-112e4181ff6b?ixid=M3w2NTgwOTl8MHwxfGFsbHx8fHx8fHx8fDE3Mjc2ODMzMzZ8&ixlib=rb-4.0.3'
19+
'raw' => 'https://images.unsplash.com/photo-1584824486509-112e4181ff6b?ixid=M3w2NTgwOTl8MHwxfGFsbHx8fHx8fHx8fDE3Mjc2ODMzMzZ8&ixlib=rb-4.0.3',
2020
],
2121
'user' => [
2222
'name' => 'Erik Mclean',
2323
'links' => [
2424
'html' => 'https://unsplash.com/@introspectivedsgn',
25-
]
25+
],
2626
],
2727
];
2828
});
@@ -44,7 +44,7 @@
4444

4545
test('hero image url and author information is not updated for published articles with no hero image', function () {
4646
Config::set('services.unsplash.access_key', 'test');
47-
47+
4848
$article = Article::factory()->create([
4949
'submitted_at' => now(),
5050
'approved_at' => now(),

0 commit comments

Comments
 (0)