codesniffer fixes

This commit is contained in:
2023-10-20 11:10:33 +10:00
parent ba6f67798d
commit 8233afa825
67 changed files with 608 additions and 394 deletions

View File

@@ -64,6 +64,11 @@ trait HasGallery
return $this->morphMany(\App\Models\Gallery::class, 'addendum');
}
/**
* Get the article's gallery collection.
*
* @return Illuminate\Database\Eloquent\Collection The gallery collection
*/
public function getGallery(): Collection
{
return Cache::remember($this->galleryCacheKey(), now()->addDays(28), function () {