Completed
Pull Request — master (#2)
by Gregorio
03:07
created
src/Connectors/Http.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
                 $clientConfig['auth'] = 'oauth';
137 137
                 break;
138 138
             case self::AUTH_OAUTH2:
139
-                $authClient = new Client(['base_uri' => $config['uri'],]);
139
+                $authClient = new Client(['base_uri' => $config['uri'], ]);
140 140
                 $grantType = '\\kamermans\\OAuth2\\GrantType\\' . studly_case($config['grant_type']);
141 141
                 unset($config['uri']);
142 142
                 unset($config['grant_type']);
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,8 +150,12 @@
 block discarded – undo
150 150
                 break;
151 151
             case self::AUTH_COOKIE:
152 152
                 $stack = HandlerStack::create();
153
-                if (!isset($config['cookies'])) $config['cookies'] = null;
154
-                if (!isset($config['method'])) $config['method'] = 'POST';
153
+                if (!isset($config['cookies'])) {
154
+                    $config['cookies'] = null;
155
+                }
156
+                if (!isset($config['method'])) {
157
+                    $config['method'] = 'POST';
158
+                }
155 159
                 $middleware = new CookieAuth(
156 160
                     $config['uri'],
157 161
                     $config['fields'],
Please login to merge, or discard this patch.
src/Pipes/DataSetKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function pipe($options = [])
15 15
     {
16
-        return function ($inputData) use ($options) {
16
+        return function($inputData) use ($options) {
17 17
             return Arr::set($inputData, Arr::get($options, 'key'), Arr::get($options, 'value'));
18 18
         };
19 19
     }
Please login to merge, or discard this patch.
src/Pipes/DataMerge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function pipe($options = [])
15 15
     {
16
-        return function ($inputData) use ($options) {
16
+        return function($inputData) use ($options) {
17 17
             return array_merge($inputData, Arr::get($options, 'data'));
18 18
         };
19 19
     }
Please login to merge, or discard this patch.