Completed
Push — master ( e5f63b...349d35 )
by Aivis
10s
created
src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@  discard block
 block discarded – undo
10 10
 class UnderstandLaravel5ServiceProvider extends ServiceProvider
11 11
 {
12 12
 
13
-	/**
14
-	 * Indicates if loading of the provider is deferred.
15
-	 *
16
-	 * @var bool
17
-	 */
18
-	protected $defer = false;
19
-
20
-	/**
21
-	 * Bootstrap the application events.
22
-	 *
23
-	 * @return void
24
-	 */
25
-	public function boot()
26
-	{
13
+    /**
14
+     * Indicates if loading of the provider is deferred.
15
+     *
16
+     * @var bool
17
+     */
18
+    protected $defer = false;
19
+
20
+    /**
21
+     * Bootstrap the application events.
22
+     *
23
+     * @return void
24
+     */
25
+    public function boot()
26
+    {
27 27
         $configPath = __DIR__ . '/../../config/understand-laravel.php';
28 28
         $this->publishes([$configPath => config_path('understand-laravel.php')], 'config');
29 29
         $enabled = $this->app['config']->get('understand-laravel.enabled');
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
         {
38 38
             $this->listenQueryEvents();
39 39
         }
40
-	}
41
-
42
-	/**
43
-	 * Register the service provider.
44
-	 *
45
-	 * @return void
46
-	 */
47
-	public function register()
48
-	{
49
-		$this->registerConfig();
40
+    }
41
+
42
+    /**
43
+     * Register the service provider.
44
+     *
45
+     * @return void
46
+     */
47
+    public function register()
48
+    {
49
+        $this->registerConfig();
50 50
         $this->registerFieldProvider();
51 51
         $this->registerDataCollector();
52 52
         $this->registerTokenProvider();
53 53
         $this->registerLogger();
54 54
         $this->registerExceptionEncoder();
55 55
         $this->registerEventLoggers();
56
-	}
56
+    }
57 57
 
58 58
     /**
59 59
      * Register config
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -237,8 +237,7 @@  discard block
 block discarded – undo
237 237
             {
238 238
                 $this->handleEvent($level, $message, $context);
239 239
             });
240
-        }
241
-        else
240
+        } else
242 241
         {
243 242
             // starting from L5.4 MessageLogged event class was introduced
244 243
             // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072
@@ -268,8 +267,7 @@  discard block
 block discarded – undo
268 267
                     'time' => $time,
269 268
                 ]);
270 269
             });
271
-        }
272
-        else
270
+        } else
273 271
         {
274 272
             // https://laravel.com/api/5.3/Illuminate/Database/Events/QueryExecuted.html
275 273
             $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($event)
@@ -304,8 +302,7 @@  discard block
 block discarded – undo
304 302
             unset($context['exception']);
305 303
 
306 304
             $this->app['understand.exceptionLogger']->logError($level, $exception, $context);
307
-        }
308
-        else
305
+        } else
309 306
         {
310 307
             $this->app['understand.exceptionLogger']->logError($level, $message, $context);
311 308
         }
Please login to merge, or discard this patch.