@@ -31,8 +31,8 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function getByFiltros(Contracts\IntencaoVenda\GetByFiltrosRequest $getByFiltrosRequest) |
| 33 | 33 | { |
| 34 | - try{ |
|
| 35 | - $this->response = $this->_httpClient->post(__FUNCTION__,[ |
|
| 34 | + try { |
|
| 35 | + $this->response = $this->_httpClient->post(__FUNCTION__, [ |
|
| 36 | 36 | 'body' => json_encode($getByFiltrosRequest), |
| 37 | 37 | ]); |
| 38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | ); |
| 43 | 43 | }catch (RequestException $ex) { |
| 44 | 44 | $this->requestException($ex); |
| 45 | - }catch (\Exception $ex){ |
|
| 45 | + }catch (\Exception $ex) { |
|
| 46 | 46 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function getById($intencaoVendaId) |
| 56 | 56 | { |
| 57 | - try{ |
|
| 58 | - $this->response = $this->_httpClient->post(__FUNCTION__,[ |
|
| 57 | + try { |
|
| 58 | + $this->response = $this->_httpClient->post(__FUNCTION__, [ |
|
| 59 | 59 | 'query' => $this->addQueryAdditionalParameters([ |
| 60 | 60 | 'intencaoVendaId' => $intencaoVendaId |
| 61 | 61 | ]) |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | ); |
| 68 | 68 | }catch (RequestException $ex) { |
| 69 | 69 | $this->requestException($ex); |
| 70 | - }catch (\Exception $ex){ |
|
| 70 | + }catch (\Exception $ex) { |
|
| 71 | 71 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 72 | 72 | } |
| 73 | 73 | } |