Completed
Push — master ( eae13b...9537bc )
by Adriano
04:02
created
src/Integracao/ControlPay/AbstractAPI.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $this->endpoint = $endpoint;
61 61
         $this->_client = $client;
62 62
 
63
-        if(is_null($this->_client))
63
+        if (is_null($this->_client))
64 64
             $this->_client = new Client();
65 65
 
66 66
         $this->query = new GuzzleHttp\Query();
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 $this->query->set('key', $this->_client->getAuthentication());
73 73
                 break;
74 74
             case BasicAuthentication::class:
75
-                $this->headers['Authorization'] = $this->_client->getAuthentication();
75
+                $this->headers[ 'Authorization' ] = $this->_client->getAuthentication();
76 76
                 break;
77 77
             default:
78 78
                 $this->query->set('key', $this->_client->getAuthentication());
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $this->query = new GuzzleHttp\Query();
105 105
 
106
-        if(isset($this->_httpClient->getDefaultOption()['query']))
107
-            $this->query = $this->_httpClient->getDefaultOption()['query'];
106
+        if (isset($this->_httpClient->getDefaultOption()[ 'query' ]))
107
+            $this->query = $this->_httpClient->getDefaultOption()[ 'query' ];
108 108
 
109 109
         foreach ($params as $key => $value)
110 110
             $this->query->set($key, $value);
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function getQueryParameters()
127 127
     {
128
-        return isset($this->_httpClient->getDefaultOption()['query']) ?
129
-            $this->_httpClient->getDefaultOption()['query'] : [];
128
+        return isset($this->_httpClient->getDefaultOption()[ 'query' ]) ?
129
+            $this->_httpClient->getDefaultOption()[ 'query' ] : [ ];
130 130
     }
131 131
 
132 132
     /**
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function getHeaders()
136 136
     {
137
-        return isset($this->_httpClient->getDefaultOption()['headers']) ?
138
-            $this->_httpClient->getDefaultOption()['headers'] : [];
137
+        return isset($this->_httpClient->getDefaultOption()[ 'headers' ]) ?
138
+            $this->_httpClient->getDefaultOption()[ 'headers' ] : [ ];
139 139
     }
140 140
 
141 141
 }
142 142
\ No newline at end of file
Please login to merge, or discard this patch.