Completed
Pull Request — master (#9)
by Jean-Baptiste
02:39
created
src/Version/Guzzle3.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * {@InheritDoc}
20 20
      */
21
-    public function __construct($baseUri, $options = [])
21
+    public function __construct($baseUri, $options = [ ])
22 22
     {
23
-        $this->defaultOptions['request.options'] = array_merge(
24
-            ['exceptions' => false]
23
+        $this->defaultOptions[ 'request.options' ] = array_merge(
24
+            [ 'exceptions' => false ]
25 25
             , $options);
26 26
 
27 27
         $this->client = new Client($baseUri, $this->defaultOptions);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         return $this->client->getBaseUrl();
38 38
     }
39 39
 
40
-    public function setDefaultOptions($options = [])
40
+    public function setDefaultOptions($options = [ ])
41 41
     {
42 42
         $this->setConfig($options);
43 43
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function setDefaultAuth($username, $password, $type = 'Basic')
54 54
     {
55
-        $this->client->setDefaultOption('auth', [$username, $password, $type]);
55
+        $this->client->setDefaultOption('auth', [ $username, $password, $type ]);
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/Version/Guzzle5.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * {@InheritDoc}
20 20
      */
21
-    public function __construct($baseUri, $options = [])
21
+    public function __construct($baseUri, $options = [ ])
22 22
     {
23 23
         $this->defaultOptions = array_merge([
24 24
             'base_url' => $baseUri,
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function setBaseUri($baseUri)
39 39
     {
40
-        $this->setDefaultOptions(array_merge($this->defaultOptions, ['base_url' => $baseUri]));
40
+        $this->setDefaultOptions(array_merge($this->defaultOptions, [ 'base_url' => $baseUri ]));
41 41
     }
42 42
 
43 43
     public function getBaseUri()
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         return $this->client->getBaseUrl();
46 46
     }
47 47
 
48
-    public function setDefaultOptions($options = [])
48
+    public function setDefaultOptions($options = [ ])
49 49
     {
50 50
         $this->__construct($this->getBaseUri(), $options);
51 51
     }
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function setDefaultAuth($username, $password, $type = 'basic')
59 59
     {
60
-        $auth = [$username, $password];
60
+        $auth = [ $username, $password ];
61 61
         if ($type !== 'basic') {
62
-            $auth[] = $type;
62
+            $auth[ ] = $type;
63 63
         }
64 64
 
65 65
         $this->setDefaultAuth('auth', $auth);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $guzzleRequest = $this->client->createRequest(
94 94
             $request->getMethod(),
95 95
             $request->getUri(),
96
-            ['headers' => $request->getHeaders()]
96
+            [ 'headers' => $request->getHeaders() ]
97 97
         );
98 98
 
99 99
         $guzzleRequest->setBody(Stream::factory($request->getBody()));
Please login to merge, or discard this patch.
src/Version/Guzzle6.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * {@InheritDoc}
18 18
      */
19
-    public function __construct($baseUri, $options = [])
19
+    public function __construct($baseUri, $options = [ ])
20 20
     {
21 21
         $this->defaultOptions = array_merge([
22 22
             'base_uri' => $baseUri,
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function setBaseUri($baseUri)
30 30
     {
31
-        $this->setDefaultOptions(array_merge($this->defaultOptions, ['base_uri' => $baseUri]));
31
+        $this->setDefaultOptions(array_merge($this->defaultOptions, [ 'base_uri' => $baseUri ]));
32 32
     }
33 33
 
34 34
     public function getBaseUri()
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return $this->client->getConfig('base_uri');
37 37
     }
38 38
 
39
-    public function setDefaultOptions($options = [])
39
+    public function setDefaultOptions($options = [ ])
40 40
     {
41 41
         $this->__construct($this->getBaseUri(), $options);
42 42
     }
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function setDefaultAuth($username, $password, $type = 'basic')
50 50
     {
51
-        $auth = [$username, $password];
51
+        $auth = [ $username, $password ];
52 52
         if ($type !== 'basic') {
53
-            $auth[] = $type;
53
+            $auth[ ] = $type;
54 54
         }
55 55
 
56 56
         $this->setDefaultAuth('auth', $auth);
Please login to merge, or discard this patch.