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 |
||
21 | 6 | public function execute() |
|
22 | { |
||
23 | 6 | $hasParent = Customers::findOrFail($this->custID)->parent_id; |
|
24 | 4 | $localEquip = $this->getLocalEquipment(); |
|
25 | |||
26 | 4 | if($hasParent) |
|
27 | { |
||
28 | 2 | $parentEquip = $this->getParentEquipment($hasParent); |
|
29 | 2 | return $localEquip->merge($parentEquip); |
|
30 | } |
||
31 | 2 | return $localEquip; |
|
32 | } |
||
56 |