Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 5 | public function execute($custID) |
|
14 | { |
||
15 | 5 | $equip = $this->getEquipment($custID); |
|
16 | |||
17 | // Get any equipment that is shared between sites |
||
18 | 5 | if($parent = $this->getParentID($custID)) |
|
19 | { |
||
20 | 2 | $equip = $equip->merge($this->getEquipment($parent, true)); |
|
21 | } |
||
22 | |||
23 | 5 | return $equip; |
|
24 | } |
||
37 |