We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9928dc3 commit 1c32da4Copy full SHA for 1c32da4
app/Console/Commands/SyncArticleImages.php
@@ -31,7 +31,7 @@ public function handle(): void
31
32
Article::published()->chunk(100, function ($articles) {
33
$articles->each(function ($article) {
34
- if ($this->shouldBeSynced($article)) {
+ if ($this->checkShouldArticleBeSynced($article)) {
35
$imageData = $this->fetchUnsplashImageDataFromId($article->hero_image);
36
37
if (!is_null($imageData)) {
@@ -45,7 +45,7 @@ public function handle(): void
45
});
46
}
47
48
- protected function shouldBeSynced(Article $article): bool
+ protected function checkShouldArticleBeSynced(Article $article): bool
49
{
50
if (!$article->hero_image || $article->hasHeroImage()) {
51
return false;
0 commit comments