| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | 2 | protected function getParentFiles($parentID) |
|
| 48 | { |
||
| 49 | 2 | $parentFiles = Customerfiles::where('cust_id', $parentID) |
|
| 50 | 2 | ->where('shared', 1) |
|
| 51 | 2 | ->with('Files') |
|
| 52 | 2 | ->with('CustomerFileTypes') |
|
| 53 | 2 | ->with('User') |
|
| 54 | 2 | ->get(); |
|
| 55 | |||
| 56 | 2 | Log::debug('Customer Parent Notes Query completed for Customer ID '.$this->custID.'. Results - ', array($parentFiles)); |
|
| 57 | 2 | return $parentFiles; |
|
| 58 | } |
||
| 60 |