Completed
Push — master ( 349d35...b91904 )
by Aivis
02:55 queued 11s
created
src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Detect Laravel version
217 217
      * 
218
-     * @param array $versions
219
-     * @return type
218
+     * @param string[] $versions
219
+     * @return boolean
220 220
      */
221 221
     protected function detectLaravelVersion(array $versions)
222 222
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     }
318 318
 
319 319
     /**
320
-     * @param $level
320
+     * @param string $level
321 321
      * @param $message
322 322
      * @param $context
323 323
      * @return bool
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
     /**
338 338
      * Get the services provided by the provider.
339 339
      *
340
-     * @return array
340
+     * @return string[]
341 341
      */
342 342
     public function provides()
343 343
     {
Please login to merge, or discard this 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.