Completed
Push — master ( 939420...ce1e21 )
by Adriano
03:21
created
src/Integracao/ControlPay/API/IntencaoVendaApi.php 2 patches
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
                 $response->json(),
46 46
                 Contracts\Venda\VenderResponse::class
47 47
             );
48
-        }catch (RequestException $ex) {
48
+        } catch (RequestException $ex) {
49 49
             $responseBody = $ex->getResponse()->json();
50 50
             throw new \Exception($responseBody['message']);
51
-        }catch (\Exception $ex){
51
+        } catch (\Exception $ex){
52 52
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
53 53
         }
54 54
     }
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
                 $response->json(),
73 73
                 Contracts\Venda\ConsultarVendasResponse::class
74 74
             );
75
-        }catch (RequestException $ex) {
75
+        } catch (RequestException $ex) {
76 76
             $responseBody = $ex->getResponse()->json();
77 77
             var_dump($responseBody);
78 78
             throw new \Exception($responseBody['message']);
79
-        }catch (\Exception $ex){
79
+        } catch (\Exception $ex){
80 80
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
81 81
         }
82 82
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.