| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 6 | public function getGuestFiles($linkID) |
|
| 34 | { |
||
| 35 | 6 | $files = new FileLinkFilesCollection( |
|
| 36 | 6 | FileLinkFiles::where('link_id', $linkID) |
|
| 37 | 6 | ->where('upload', 0) |
|
| 38 | 6 | ->orderBy('created_at', 'ASC') |
|
| 39 | 6 | ->with('Files') |
|
| 40 | 6 | ->get() |
|
| 41 | ); |
||
| 42 | |||
| 43 | 6 | Log::debug('Retrieved guest files attached to File Link ID '.$linkID.'. Data Gathered - ', array($files)); |
|
| 44 | 6 | return $files; |
|
| 45 | } |
||
| 47 |