@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace SmartCNAB\Services\Returning\Banks\Itau; |
| 4 | 4 | |
| 5 | 5 | use StdClass; |
| 6 | - |
|
| 7 | 6 | use SmartCNAB\Services\Returning\Returning; |
| 8 | 7 | use SmartCNAB\Support\Bank\Itau; |
| 9 | 8 | |
@@ -70,9 +70,13 @@ discard block |
||
| 70 | 70 | $value, |
| 71 | 71 | array $data = [] |
| 72 | 72 | ) { |
| 73 | - if ($data['occurrenceCode'] == 11) return Caixa::INSTRUCTION_PROTEST; |
|
| 73 | + if ($data['occurrenceCode'] == 11) { |
|
| 74 | + return Caixa::INSTRUCTION_PROTEST; |
|
| 75 | + } |
|
| 74 | 76 | |
| 75 | - if ($data['occurrenceCode'] == 12) return Caixa::INSTRUCTION_DEVOLUTION; |
|
| 77 | + if ($data['occurrenceCode'] == 12) { |
|
| 78 | + return Caixa::INSTRUCTION_DEVOLUTION; |
|
| 79 | + } |
|
| 76 | 80 | |
| 77 | 81 | return $value; |
| 78 | 82 | } |
@@ -90,7 +94,9 @@ discard block |
||
| 90 | 94 | ) { |
| 91 | 95 | $returnValue = $value == '' && $data['occurrenceCode'] == 9; |
| 92 | 96 | |
| 93 | - if ($returnValue) return $value; |
|
| 97 | + if ($returnValue) { |
|
| 98 | + return $value; |
|
| 99 | + } |
|
| 94 | 100 | |
| 95 | 101 | return $value ?: $data['expiration']->add(new \DateInterval('P1D')); |
| 96 | 102 | } |