Completed
Push — master ( 300603...ff09e3 )
by Aivis
03:25
created
src/Understand/UnderstandLumen/FieldProvider.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,6 @@
 block discarded – undo
63 63
     /**
64 64
      * Create field provider instance and set default providers to provider list
65 65
      *
66
-     * @param type $app
67 66
      * @return void
68 67
      */
69 68
     public function __construct()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,14 +176,14 @@
 block discarded – undo
176 176
 
177 177
         if ( ! starts_with($url, '/'))
178 178
         {
179
-            $url = '/' . $url;
179
+            $url = '/'.$url;
180 180
         }
181 181
 
182 182
         $queryString = $this->request->getQueryString();
183 183
 
184 184
         if ($queryString)
185 185
         {
186
-            $url .= '?' . $queryString;
186
+            $url .= '?'.$queryString;
187 187
         }
188 188
 
189 189
         return $url;
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -268,8 +268,7 @@  discard block
 block discarded – undo
268 268
             {
269 269
                 return $userId;
270 270
             }
271
-        }
272
-        catch (\Exception $e)
271
+        } catch (\Exception $e)
273 272
         {}
274 273
         try
275 274
         {
@@ -277,8 +276,7 @@  discard block
 block discarded – undo
277 276
             {
278 277
                 return $user->id;
279 278
             }
280
-        }
281
-        catch (\Exception $e)
279
+        } catch (\Exception $e)
282 280
         {}
283 281
 
284 282
         try
@@ -287,8 +285,7 @@  discard block
 block discarded – undo
287 285
             {
288 286
                 return $user->id;
289 287
             }
290
-        }
291
-        catch (\Exception $e)
288
+        } catch (\Exception $e)
292 289
         {}
293 290
     }
294 291
 
Please login to merge, or discard this patch.
src/Understand/UnderstandLumen/UnderstandLumenServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->app->configure('understand_lumen');
34 34
 
35
-        $configPath = __DIR__ . '/../config/understand_lumen.php';
35
+        $configPath = __DIR__.'/../config/understand_lumen.php';
36 36
         $this->mergeConfigFrom($configPath, 'understand_lumen');
37 37
     }
38 38
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $handlerType = $this->app['config']->get('understand_lumen.handler', 'sync');
47 47
         $inputToken = $this->app['config']->get('understand_lumen.token');
48
-        $apiUrl = $this->app['config']->get('understand_lumen.url' ,'https://api.understand.io');
48
+        $apiUrl = $this->app['config']->get('understand_lumen.url', 'https://api.understand.io');
49 49
         $silent = $this->app['config']->get('understand_lumen.silent', true);
50 50
         $sslBundlePath = $this->app['config']->get('understand_lumen.ssl_bundle_path', false);
51 51
         $metaFields = $this->app['config']->get('understand_lumen.meta', []);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
         if ($handlerType == 'async')
54 54
         {
55 55
             $handler = new UnderstandAsyncHandler($inputToken, $apiUrl, $silent, $sslBundlePath);
56
-        }
57
-        else
56
+        } else
58 57
         {
59 58
             $handler = new UnderstandSyncHandler($inputToken, $apiUrl, $silent, $sslBundlePath);
60 59
         }
Please login to merge, or discard this patch.