Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 4 | public function execute() |
|
21 | { |
||
22 | 4 | $hasParent = Customers::findOrFail($this->custID)->parent_id; |
|
23 | 4 | $files = $this->getLocalFiles(); |
|
24 | |||
25 | 4 | if($hasParent) |
|
26 | { |
||
27 | 2 | $parentFiles = $this->getParentFiles($hasParent); |
|
28 | 2 | return $files->merge($parentFiles); |
|
29 | } |
||
30 | 2 | return $files; |
|
31 | } |
||
60 |