Passed
Push — dev6 ( a8a5e7...b2a437 )
by Ron
29:29 queued 09:00
created
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.
app/Console/Commands/DisableModuleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class DisableModuleCommand extends Command
10 10
 {
11
-    protected $signature  = 'tb_module:disable {module}';
11
+    protected $signature = 'tb_module:disable {module}';
12 12
     protected $description = 'Disable, but do not remove a Tech Bench Add On Module';
13 13
 
14 14
     /**
Please login to merge, or discard this patch.
app/Actions/BuildNavbar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $admin   = $this->getAdminNavbar();
21 21
         $navBar  = $this->getPrimaryNavbar();
22 22
         $modules = $this->getModules();
23
-        array_splice($navBar, 1, 0, $admin);    //  Move the Admin link just under the Dashboard link
23
+        array_splice($navBar, 1, 0, $admin); //  Move the Admin link just under the Dashboard link
24 24
 
25 25
         return array_merge($navBar, $modules);
26 26
     }
Please login to merge, or discard this patch.
app/Actions/BuildAdminMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
             if(count($modNav) > 0)
212 212
             {
213 213
                 //  Split Camel Case name into normal name
214
-                $nav[implode(' ',preg_split('/(?=[A-Z])/', $module->getName()))] = $modNav;
214
+                $nav[implode(' ', preg_split('/(?=[A-Z])/', $module->getName()))] = $modNav;
215 215
             }
216 216
         }
217 217
 
Please login to merge, or discard this patch.