Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0078 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 4 | public function execute() |
|
23 | { |
||
24 | 4 | $links = FileLinks::where('user_id', $this->id) |
|
25 | 4 | ->withCount('FileLinkFiles') |
|
26 | 4 | ->orderBy('expire', 'desc')->get(); |
|
27 | |||
28 | 4 | Log::debug('Retrieved all File Links for User ID '.$this->id.'. Data Gathered - ', array($links)); |
|
29 | 4 | if($this->collection) { |
|
30 | 4 | return new FileLinksCollection($links); |
|
31 | } |
||
32 | |||
33 | return $links; |
||
34 | } |
||
36 |