Passed
Push — dev6 ( 126d7e...94112f )
by Ron
08:55
created
app/Http/Controllers/Home/UploadFileController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                 'disk'      => $status['disk'],
28 28
                 'folder'    => $status['folder'],
29 29
                 'file_name' => $status['filename'],
30
-                'public'    => filter_var($request->public, FILTER_VALIDATE_BOOL),  //  Force as boolean
30
+                'public'    => filter_var($request->public, FILTER_VALIDATE_BOOL), //  Force as boolean
31 31
             ]);
32 32
 
33 33
             //  Determine if other files have been uploaded by this request
Please login to merge, or discard this patch.
app/Traits/LogUtilitiesTrait.php 1 patch
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.
app/Http/Controllers/Admin/BackupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public function store(BackupRequest $request)
63 63
     {
64 64
         $this->saveSettings('app.backups.enabled', $request->enabled);
65
-        $this->saveSettings('app.backups.number',  $request->number);
65
+        $this->saveSettings('app.backups.number', $request->number);
66 66
 
67 67
         return back()->with([
68 68
             'message' => 'Automatic Backup Settings Updated',
Please login to merge, or discard this patch.
app/Console/Commands/TbBackupRestoreCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         if(Storage::disk('backups')->exists($this->basename.'backup.sql'))
240 240
         {
241 241
             $this->line('Restoring database');
242
-            try{
242
+            try {
243 243
 
244 244
                 DB::connection(DB::getDefaultConnection())
245 245
                 ->getSchemaBuilder()
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
         foreach($files as $file)
279 279
         {
280
-            $data    = Storage::disk('backups')->get($file);
280
+            $data = Storage::disk('backups')->get($file);
281 281
             //  Trim the file path to the correct new path
282 282
             //  If this is a Windows server, the directory separator will be incorrect
283 283
             $rename = str_replace(str_replace('\\', '/', $this->basename).$folder, '', $file);
Please login to merge, or discard this patch.
app/Console/Commands/MigrateDatabaseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         parent::__construct();
46 46
 
47
-        $this->database      = config('database.connections.mysql.database');
47
+        $this->database = config('database.connections.mysql.database');
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
app/Models/UserCustomerRecent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     protected $guarded = ['id', 'updated_at', 'created_at'];
13 13
     protected $hidden  = ['id', 'user_id', 'created_at', 'Customer'];
14
-    protected $appends      = ['name', 'slug'];
14
+    protected $appends = ['name', 'slug'];
15 15
 
16 16
     public function Customer()
17 17
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $newCust      = Customer::create($cust);
63 63
 
64 64
         event(new NewCustomerCreated($newCust));
65
-        return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
65
+        return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
66 66
     }
67 67
 
68 68
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         //  Determine if the customer is bookmarked by the user
104
-        $isFav    = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
104
+        $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
105 105
                         ->where('cust_id', $customer->cust_id)
106 106
                         ->count();
107 107
 
@@ -117,29 +117,29 @@  discard block
 block discarded – undo
117 117
             'file_types'     => CustomerFileType::all(),
118 118
             //  User Permissions for customers
119 119
             'user_data' => [
120
-                'fav'        => $isFav,                                                  //  Customer is bookmarked by the user
121
-                'edit'       => Auth::user()->can('update', $customer),                  //  User is allowed to edit the customers basic details
122
-                'manage'     => Auth::user()->can('manage', $customer),                  //  User can recover deleted items
123
-                'deactivate' => Auth::user()->can('delete', $customer),                  //  User can deactivate the customer profile
120
+                'fav'        => $isFav, //  Customer is bookmarked by the user
121
+                'edit'       => Auth::user()->can('update', $customer), //  User is allowed to edit the customers basic details
122
+                'manage'     => Auth::user()->can('manage', $customer), //  User can recover deleted items
123
+                'deactivate' => Auth::user()->can('delete', $customer), //  User can deactivate the customer profile
124 124
                 'equipment'  => [
125
-                    'create' => Auth::user()->can('create', CustomerEquipment::class),   //  If user can add equipment
126
-                    'update' => Auth::user()->can('update', CustomerEquipment::class),   //  If user can edit equipment
127
-                    'delete' => Auth::user()->can('delete', CustomerEquipment::class),   //  If user can delete equipment
125
+                    'create' => Auth::user()->can('create', CustomerEquipment::class), //  If user can add equipment
126
+                    'update' => Auth::user()->can('update', CustomerEquipment::class), //  If user can edit equipment
127
+                    'delete' => Auth::user()->can('delete', CustomerEquipment::class), //  If user can delete equipment
128 128
                 ],
129 129
                 'contacts'   => [
130
-                    'create' => Auth::user()->can('create', CustomerContact::class),     //  If user can add contact
131
-                    'update' => Auth::user()->can('update', CustomerContact::class),     //  If user can edit contact
132
-                    'delete' => Auth::user()->can('delete', CustomerContact::class),     //  If user can delete contact
130
+                    'create' => Auth::user()->can('create', CustomerContact::class), //  If user can add contact
131
+                    'update' => Auth::user()->can('update', CustomerContact::class), //  If user can edit contact
132
+                    'delete' => Auth::user()->can('delete', CustomerContact::class), //  If user can delete contact
133 133
                 ],
134 134
                 'notes'      => [
135
-                    'create' => Auth::user()->can('create', CustomerNote::class),        //  If user can add note
136
-                    'update' => Auth::user()->can('update', CustomerNote::class),        //  If user can edit note
137
-                    'delete' => Auth::user()->can('delete', CustomerNote::class),        //  If user can delete note
135
+                    'create' => Auth::user()->can('create', CustomerNote::class), //  If user can add note
136
+                    'update' => Auth::user()->can('update', CustomerNote::class), //  If user can edit note
137
+                    'delete' => Auth::user()->can('delete', CustomerNote::class), //  If user can delete note
138 138
                 ],
139 139
                 'files'     => [
140
-                    'create' => Auth::user()->can('create', CustomerFile::class),        //  If user can add file
141
-                    'update' => Auth::user()->can('update', CustomerFile::class),        //  If user can edit file
142
-                    'delete' => Auth::user()->can('delete', CustomerFile::class),        //  If user can delete file
140
+                    'create' => Auth::user()->can('create', CustomerFile::class), //  If user can add file
141
+                    'update' => Auth::user()->can('update', CustomerFile::class), //  If user can edit file
142
+                    'delete' => Auth::user()->can('delete', CustomerFile::class), //  If user can delete file
143 143
                 ],
144 144
             ],
145 145
         ]);
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 ->toResponse($request)
73 73
                 ->setStatusCode($response->status());
74 74
         }
75
-        else if ($response->status() === 419)
75
+        else if($response->status() === 419)
76 76
         {
77 77
             return back()->with([
78 78
                 'message' => 'The page expired, please try again.',
Please login to merge, or discard this patch.