Completed
Pull Request — master (#14)
by
unknown
05:38
created
src/Dispatcher/AlertDispatcher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function __construct(
29 29
         $exception,
30
-        array $dontAlertExceptions = [],
31
-        array $notificationLevelsMapping = [],
32
-        array $exceptionContext = []
30
+        array $dontAlertExceptions = [ ],
31
+        array $notificationLevelsMapping = [ ],
32
+        array $exceptionContext = [ ]
33 33
     ) {
34 34
         $this->exception           = $exception;
35 35
         $this->exceptionContext    = $exceptionContext;
36 36
         $this->dontAlertExceptions = $dontAlertExceptions;
37
-        $this->notificationLevel   = $notificationLevelsMapping[get_class($exception)]
37
+        $this->notificationLevel   = $notificationLevelsMapping[ get_class($exception) ]
38 38
             ?? config('laravel_alert_notifications.default_notification_level');
39 39
     }
40 40
 
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function shouldAlert()
51 51
     {
52
-        $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? [];
52
+        $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? [ ];
53 53
         if ($this->isDonotAlertException() || in_array($this->notificationLevel, $levelsNotToNotify)) {
54 54
             return false;
55 55
         }
56 56
 
57
-        if (! config('laravel_alert_notifications.throttle_enabled')) {
57
+        if ( ! config('laravel_alert_notifications.throttle_enabled')) {
58 58
             return true;
59 59
         }
60 60
 
Please login to merge, or discard this patch.