@@ -197,11 +197,11 @@ |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | if (is_string($response)) { |
| 200 | - $resultado = json_decode($response, true); |
|
| 201 | - $resultados[$modalidade === 'R' ? 'Rodoviario' : 'Aereo'] = $resultado; |
|
| 202 | - } else { |
|
| 203 | - throw new BraspressClienteException('Erro ao consultar prazo: resposta inválida recebida.'); |
|
| 204 | - } |
|
| 200 | + $resultado = json_decode($response, true); |
|
| 201 | + $resultados[$modalidade === 'R' ? 'Rodoviario' : 'Aereo'] = $resultado; |
|
| 202 | + } else { |
|
| 203 | + throw new BraspressClienteException('Erro ao consultar prazo: resposta inválida recebida.'); |
|
| 204 | + } |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | return $resultados; |