Completed
Push — master ( 349d35...b91904 )
by Aivis
02:55 queued 11s
created
src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	 */
25 25
 	public function boot()
26 26
 	{
27
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
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');
30 30
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     protected function registerConfig()
64 64
     {
65
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
65
+        $configPath = __DIR__.'/../../config/understand-laravel.php';
66 66
         $this->mergeConfigFrom($configPath, 'understand-laravel');
67 67
     }
68 68
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             return new Handlers\SyncHandler($inputToken, $apiUrl, $sslBundlePath);
210 210
         }
211 211
 
212
-        throw new \ErrorException('understand-laravel handler misconfiguration:' . $handlerType);
212
+        throw new \ErrorException('understand-laravel handler misconfiguration:'.$handlerType);
213 213
     }
214 214
     
215 215
     /**
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         }
299 299
 
300 300
         // `\Log::info`, `\Log::debug` and NOT `\Exception` or `\Throwable`
301
-        if (in_array($level, ['info', 'debug']) && ! ($message instanceof Exception || $message instanceof Throwable))
301
+        if (in_array($level, ['info', 'debug']) && !($message instanceof Exception || $message instanceof Throwable))
302 302
         {
303 303
             $this->app['understand.eventLogger']->logEvent($level, $message, $context);
304 304
         }
@@ -324,9 +324,9 @@  discard block
 block discarded – undo
324 324
      */
325 325
     protected function shouldIgnoreEvent($level, $message, $context)
326 326
     {
327
-        $ignoredEventTypes = (array)$this->app['config']->get('understand-laravel.ignored_logs');
327
+        $ignoredEventTypes = (array) $this->app['config']->get('understand-laravel.ignored_logs');
328 328
 
329
-        if ( ! $ignoredEventTypes)
329
+        if (!$ignoredEventTypes)
330 330
         {
331 331
             return false;
332 332
         }
Please login to merge, or discard this patch.