Passed
Pull Request — main (#102)
by mohsen
02:41
created
src/Notifications/LogReportNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function via($notifiable)
30 30
     {
31
-        return ['mail'];
31
+        return [ 'mail' ];
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Listeners/SendResourceLogNotification.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,8 @@
 block discarded – undo
9 9
 {
10 10
     public function handle($resourceLogs)
11 11
     {
12
-        if (!is_null(config('stethoscope.notifications.mail.to')))
13
-            Notification::send(config('stethoscope.notifications.mail.to'), new LogReportNotification($resourceLogs));
12
+        if (!is_null(config('stethoscope.notifications.mail.to'))) {
13
+                    Notification::send(config('stethoscope.notifications.mail.to'), new LogReportNotification($resourceLogs));
14
+        }
14 15
     }
15 16
 }
Please login to merge, or discard this patch.