Completed
Push — master ( 95eeb8...d79361 )
by Jean-Baptiste
03:21 queued 01:34
created
src/Version/Guzzle3.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  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'] = $options;
23
+        $this->defaultOptions[ 'request.options' ] = $options;
24 24
 
25 25
         $this->client = new Client($baseUri, $this->defaultOptions);
26 26
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         return $this->client->getBaseUrl();
36 36
     }
37 37
 
38
-    public function setDefaultOptions($options = [])
38
+    public function setDefaultOptions($options = [ ])
39 39
     {
40 40
         $this->client->setConfig($options);
41 41
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function setDefaultAuth($username, $password, $type = 'basic')
52 52
     {
53
-        $this->client->setDefaultOption('auth', [$username, $password, $type]);
53
+        $this->client->setDefaultOption('auth', [ $username, $password, $type ]);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
src/Version/Guzzle5.php 1 patch
Spacing   +5 added lines, -5 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 = [
24 24
             'base_url' => $baseUri,
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function setBaseUri($baseUri)
37 37
     {
38
-        $this->__construct($baseUri, []);
38
+        $this->__construct($baseUri, [ ]);
39 39
     }
40 40
 
41 41
     public function getBaseUri()
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         return $this->client->getBaseUrl();
44 44
     }
45 45
 
46
-    public function setDefaultOptions($options = [])
46
+    public function setDefaultOptions($options = [ ])
47 47
     {
48 48
         $this->__construct($this->getBaseUri(), $options);
49 49
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function setDefaultAuth($username, $password, $type = 'basic')
57 57
     {
58
-        $this->client->setDefaultOption('auth', [$username, $password, $type]);
58
+        $this->client->setDefaultOption('auth', [ $username, $password, $type ]);
59 59
     }
60 60
 
61 61
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $guzzleRequest = $this->client->createRequest(
87 87
             $request->getMethod(),
88 88
             $request->getUri(),
89
-            ['headers' => $request->getHeaders()]
89
+            [ 'headers' => $request->getHeaders() ]
90 90
         );
91 91
 
92 92
         $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,16 +16,16 @@  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
-        $this->defaultOptions = array_merge(['base_uri' => $baseUri], $options);
21
+        $this->defaultOptions = array_merge([ 'base_uri' => $baseUri ], $options);
22 22
 
23 23
         $this->client = new Client($this->defaultOptions);
24 24
     }
25 25
 
26 26
     public function setBaseUri($baseUri)
27 27
     {
28
-        $this->setDefaultOptions(array_merge($this->defaultOptions, ['base_uri' => $baseUri]));
28
+        $this->setDefaultOptions(array_merge($this->defaultOptions, [ 'base_uri' => $baseUri ]));
29 29
     }
30 30
 
31 31
     public function getBaseUri()
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         return (string) $this->client->getConfig('base_uri');
34 34
     }
35 35
 
36
-    public function setDefaultOptions($options = [])
36
+    public function setDefaultOptions($options = [ ])
37 37
     {
38 38
         $this->__construct($this->getBaseUri(), $options);
39 39
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function setDefaultAuth($username, $password, $type = 'basic')
47 47
     {
48
-        $this->setDefaultOptions(['auth' => [$username, $password, $type]]);
48
+        $this->setDefaultOptions([ 'auth' => [ $username, $password, $type ] ]);
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.