| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | 1 | public function index() | |
| 11 |     { | ||
| 12 | 1 | $files = collect(); | |
| 13 | 1 |         foreach(settings('tags_to_merge', []) as $tag) { | |
| 14 | 1 |             foreach(File::withTag($tag)->get() as $file) { | |
| 15 | 1 | $files->push($file); | |
| 16 | } | ||
| 17 | } | ||
| 18 |         return $files->unique(function(File $file) { | ||
| 19 | 1 | return $file->id; | |
| 20 |         })->map(function(File $file) { | ||
| 21 | 1 | return $file->load(['statuses', 'comments']); | |
| 22 | 1 | })->values(); | |
| 23 | } | ||
| 24 | } |