Passed
Push — dev6 ( 794b39...988b8a )
by Ron
17:48
created
app/Http/Requests/Admin/LogSettingsRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function authorize()
15 15
     {
16
-        return $this->user()->can('viewAny', AppSettings::class);;
16
+        return $this->user()->can('viewAny', AppSettings::class); ;
17 17
     }
18 18
 
19 19
     /**
Please login to merge, or discard this patch.
app/Traits/LogUtilitiesTrait.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,26 +21,26 @@  discard block
 block discarded – undo
21 21
      * Log Levels
22 22
      */
23 23
     protected $logLevels = [
24
-        ['name' => 'Emergency', 'icon' => 'fas fa-ambulance',            'color' => ''],
25
-        ['name' => 'Alert',     'icon' => 'fas fa-bullhorn',             'color' => ''],
26
-        ['name' => 'Critical',  'icon' => 'fas fa-heartbeat',            'color' => ''],
27
-        ['name' => 'Error',     'icon' => 'fas fa-times-circle',         'color' => ''],
28
-        ['name' => 'Warning',   'icon' => 'fas fa-exclamation-triangle', 'color' => ''],
29
-        ['name' => 'Notice',    'icon' => 'fas fa-exclamation-circle',   'color' => ''],
30
-        ['name' => 'Info',      'icon' => 'fas fa-info',                 'color' => ''],
31
-        ['name' => 'Debug',     'icon' => 'fas fa-bug',                  'color' => ''],
24
+        ['name' => 'Emergency', 'icon' => 'fas fa-ambulance', 'color' => ''],
25
+        ['name' => 'Alert', 'icon' => 'fas fa-bullhorn', 'color' => ''],
26
+        ['name' => 'Critical', 'icon' => 'fas fa-heartbeat', 'color' => ''],
27
+        ['name' => 'Error', 'icon' => 'fas fa-times-circle', 'color' => ''],
28
+        ['name' => 'Warning', 'icon' => 'fas fa-exclamation-triangle', 'color' => ''],
29
+        ['name' => 'Notice', 'icon' => 'fas fa-exclamation-circle', 'color' => ''],
30
+        ['name' => 'Info', 'icon' => 'fas fa-info', 'color' => ''],
31
+        ['name' => 'Debug', 'icon' => 'fas fa-bug', 'color' => ''],
32 32
     ];
33 33
 
34 34
     /**
35 35
      * Log Channels
36 36
      */
37 37
     protected $logChannels = [
38
-        ['name' => 'Emergency',      'folder' => 'Emergency'],
39
-        ['name' => 'Application',    'folder' => 'Application'],
40
-        ['name' => 'User',           'folder' => 'Users'],
38
+        ['name' => 'Emergency', 'folder' => 'Emergency'],
39
+        ['name' => 'Application', 'folder' => 'Application'],
40
+        ['name' => 'User', 'folder' => 'Users'],
41 41
         ['name' => 'Authentication', 'folder' => 'Auth'],
42
-        ['name' => 'Customer',       'folder' => 'Cust'],
43
-        ['name' => 'Tech Tip',       'folder' => 'TechTip'],
42
+        ['name' => 'Customer', 'folder' => 'Cust'],
43
+        ['name' => 'Tech Tip', 'folder' => 'TechTip'],
44 44
     ];
45 45
 
46 46
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getFileStats($fileArr, $filename)
100 100
     {
101
-        $stats   = $this->resetStats($filename);
101
+        $stats = $this->resetStats($filename);
102 102
 
103 103
         //  Cycle through each line of the file
104 104
         foreach($fileArr as $line)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     protected function getChannelDetails($channel)
50 50
     {
51
-        return Arr::first($this->logChannels, function($value, $key) use ($channel)
52
-        {
51
+        return Arr::first($this->logChannels, function($value, $key) use ($channel) {
53 52
             return $value['name'] == $channel;
54 53
         });
55 54
     }
Please login to merge, or discard this patch.
app/Traits/Notifiable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
      */
15 15
     public function notifications()
16 16
     {
17
-        return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc');;
17
+        return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc'); ;
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
app/Listeners/Notify/NotifyUpdatedTechTip.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
         if($event->notify)
20 20
         {
21 21
             $notificationType = UserSettingType::where('name', 'Receive Email Notifications')->first();
22
-            $userList = User::whereHas('UserSetting', function($q) use ($notificationType)
23
-            {
22
+            $userList = User::whereHas('UserSetting', function($q) use ($notificationType) {
24 23
                 $q->where('setting_type_id', $notificationType->setting_type_id)->where('value', true);
25 24
             })->get();
26 25
 
Please login to merge, or discard this patch.