Passed
Push — master ( ce0306...23e20f )
by Ilham
02:53
created
src/Kernel/Providers/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function register(Container $pimple)
18 18
     {
19
-        $pimple['config'] = function($app) {
19
+        $pimple['config'] = function ($app) {
20 20
             return new Config($app->getConfig());
21 21
         };
22 22
     }
Please login to merge, or discard this patch.
src/Kernel/Providers/LogServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function register(Container $pimple)
18 18
     {
19
-        $pimple['logger'] = $pimple['log'] = function($app) {
19
+        $pimple['logger'] = $pimple['log'] = function ($app) {
20 20
             $config = $this->formatLogConfig($app);
21 21
 
22 22
             if (!empty($config)) {
Please login to merge, or discard this patch.
src/Kernel/Providers/RequestServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function register(Container $pimple)
18 18
     {
19
-        $pimple['request'] = function() {
19
+        $pimple['request'] = function () {
20 20
             return Request::createFromGlobals();
21 21
         };
22 22
     }
Please login to merge, or discard this patch.
src/Kernel/Providers/ExtensionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function register(Container $pimple)
18 18
     {
19
-        $pimple['extension'] = function($app) {
19
+        $pimple['extension'] = function ($app) {
20 20
             return new Extension($app);
21 21
         };
22 22
     }
Please login to merge, or discard this patch.
src/Kernel/Support/Arr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
     public static function flatten(array $array, $depth = INF)
93 93
     {
94
-        return array_reduce($array, function($result, $item) use ($depth) {
94
+        return array_reduce($array, function ($result, $item) use ($depth) {
95 95
             $item = $item instanceof Collection ? $item->all() : $item;
96 96
             if (!is_array($item)) {
97 97
                 return array_merge($result, [$item]);
Please login to merge, or discard this patch.
src/Kernel/BaseClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 
159 159
     protected function accessTokenMiddleware()
160 160
     {
161
-        return function(callable $handler) {
162
-            return function(RequestInterface $request, array $options) use ($handler) {
161
+        return function (callable $handler) {
162
+            return function (RequestInterface $request, array $options) use ($handler) {
163 163
                 if ($this->accessToken) {
164 164
                     $request = $this->accessToken->applyToRequest($request, $options);
165 165
                 }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
     protected function retryMiddleware()
180 180
     {
181
-        return Middleware::retry(function(
181
+        return Middleware::retry(function (
182 182
             $retries,
183 183
             RequestInterface $request,
184 184
             ResponseInterface $response = null
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             }
198 198
 
199 199
             return false;
200
-        }, function() {
200
+        }, function () {
201 201
             return abs($this->app->config->get('http.retry_delay', 500));
202 202
         });
203 203
     }
Please login to merge, or discard this patch.
src/Auth/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function register(Container $app)
17 17
     {
18
-        isset($app['access_token']) || $app['access_token'] = function($app) {
18
+        isset($app['access_token']) || $app['access_token'] = function ($app) {
19 19
             return new AccessToken($app);
20 20
         };
21 21
     }
Please login to merge, or discard this patch.