Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 6 | public function execute($custID) |
|
13 | { |
||
14 | 6 | $notes = $this->getNotes($custID); |
|
15 | |||
16 | 6 | if($parent = $this->getParentID($custID)) |
|
17 | { |
||
18 | 2 | $notes = $notes->merge($this->getNotes($parent, true)); |
|
19 | } |
||
20 | |||
21 | 6 | Log::debug('Customer Notes for Customer ID'.$custID.' gathered. Data - ', $notes->toArray()); |
|
22 | 6 | return $notes; |
|
23 | } |
||
45 |