| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | protected function parseMotiveParts(StdClass $data) |
||
| 49 | { |
||
| 50 | $motive = $data->motive; |
||
| 51 | |||
| 52 | if (in_array($data->occurrenceCode, Itau::OCCURRENCES_ERROR)) { |
||
| 53 | return str_split($motive, 2); |
||
| 54 | } |
||
| 55 | |||
| 56 | if ($this->hasOtherMotive($data)) { |
||
| 57 | return [$data->otherMotive]; |
||
| 58 | } |
||
| 59 | |||
| 60 | return [$motive]; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |