app/Services/CollectionService.php
Method getCollection
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getCollection($id)
{
$collection = Cache::remember(self::CACHE_KEY . 'get:' . $id, 86400, function() use($id) {
$collection = Collection::find($id);
if(!$collection) {
Avoid too many return
statements within this method. Open
Open
return $collection;