Skip to content

Commit 1c32da4

Browse files
committed
WIP
1 parent 9928dc3 commit 1c32da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Console/Commands/SyncArticleImages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle(): void
3131

3232
Article::published()->chunk(100, function ($articles) {
3333
$articles->each(function ($article) {
34-
if ($this->shouldBeSynced($article)) {
34+
if ($this->checkShouldArticleBeSynced($article)) {
3535
$imageData = $this->fetchUnsplashImageDataFromId($article->hero_image);
3636

3737
if (!is_null($imageData)) {
@@ -45,7 +45,7 @@ public function handle(): void
4545
});
4646
}
4747

48-
protected function shouldBeSynced(Article $article): bool
48+
protected function checkShouldArticleBeSynced(Article $article): bool
4949
{
5050
if (!$article->hero_image || $article->hasHeroImage()) {
5151
return false;

0 commit comments

Comments
 (0)