Completed
Pull Request — master (#1)
by Jean-Baptiste
05:12
created
src/Guzzle.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
     private $baseUri;
14 14
 
15 15
     /**
16
-     * @param string $baseUrl
17 16
      */
18 17
     public function __construct($config)
19 18
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct($config)
19 19
     {
20
-        if (!empty($config['base_uri'])) {
21
-            $this->baseUri = $config['base_uri'];
20
+        if (!empty($config[ 'base_uri' ])) {
21
+            $this->baseUri = $config[ 'base_uri' ];
22 22
         }
23 23
     }
24 24
 
Please login to merge, or discard this patch.
src/Version/Guzzle6.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param Request $request
85
-     * @return mixed|\Psr\Http\Message\ResponseInterface
85
+     * @return \Psr\Http\Message\ResponseInterface
86 86
      */
87 87
     public function send(Request $request)
88 88
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
             throw new \InvalidArgumentException('Magic request methods require a URI and optional options array');
102 102
         }
103 103
 
104
-        $uri = $args[0];
105
-        $opts = isset($args[1]) ? $args[1] : [];
104
+        $uri = $args[ 0 ];
105
+        $opts = isset($args[ 1 ]) ? $args[ 1 ] : [ ];
106 106
 
107 107
         return $this->client->$method($uri, $opts);
108 108
     }
Please login to merge, or discard this patch.
src/Version/Guzzle3.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function __construct($baseUrl)
21 21
     {
22
-        parent::__construct(['base_uri' => $baseUrl]);
22
+        parent::__construct([ 'base_uri' => $baseUrl ]);
23 23
 
24 24
         $this->initClient();
25 25
     }
Please login to merge, or discard this patch.
src/Version/Guzzle5.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($baseUrl)
22 22
     {
23
-        parent::__construct(['base_uri' => $baseUrl]);
23
+        parent::__construct([ 'base_uri' => $baseUrl ]);
24 24
 
25 25
         $this->initClient();
26 26
     }
Please login to merge, or discard this patch.