@@ -27,7 +27,7 @@ |
||
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 |
@@ -21,26 +21,26 @@ discard block |
||
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 |
||
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) |
@@ -48,8 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | protected function getChannelDetails($channel) |
50 | 50 | { |
51 | - return Arr::first($this->logChannels, function($value) use ($channel) |
|
52 | - { |
|
51 | + return Arr::first($this->logChannels, function($value) use ($channel) { |
|
53 | 52 | return $value['name'] == $channel; |
54 | 53 | }); |
55 | 54 | } |
@@ -19,8 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | $this->configureRateLimiting(); |
21 | 21 | |
22 | - $this->routes(function() |
|
23 | - { |
|
22 | + $this->routes(function() { |
|
24 | 23 | // Basic Login and Logout Routes |
25 | 24 | Route::middleware('web') |
26 | 25 | ->namespace($this->namespace) |
@@ -65,7 +65,8 @@ |
||
65 | 65 | $fileType = CustomerFileType::find($id); |
66 | 66 | $this->authorize('delete', $fileType); |
67 | 67 | |
68 | - try { |
|
68 | + try |
|
69 | + { |
|
69 | 70 | $fileType->delete(); |
70 | 71 | } |
71 | 72 | // The deletion may fail if the file type is currently in use |
@@ -36,8 +36,7 @@ |
||
36 | 36 | ->orderBy('sticky', 'DESC') |
37 | 37 | ->orderBy('created_at', 'DESC') |
38 | 38 | // Search text fields |
39 | - ->when($searchText, function($q) use($searchText) |
|
40 | - { |
|
39 | + ->when($searchText, function($q) use($searchText) { |
|
41 | 40 | foreach($searchText as $text) |
42 | 41 | { |
43 | 42 | $q->orWhere('subject', 'like', '%'.$text.'%') |
@@ -18,8 +18,10 @@ |
||
18 | 18 | { |
19 | 19 | $guards = empty($guards) ? [null] : $guards; |
20 | 20 | |
21 | - foreach($guards as $guard) { |
|
22 | - if(Auth::guard($guard)->check()) { |
|
21 | + foreach($guards as $guard) |
|
22 | + { |
|
23 | + if(Auth::guard($guard)->check()) |
|
24 | + { |
|
23 | 25 | return redirect(RouteServiceProvider::HOME); |
24 | 26 | } |
25 | 27 | } |
@@ -11,7 +11,8 @@ |
||
11 | 11 | */ |
12 | 12 | protected function redirectTo($request) |
13 | 13 | { |
14 | - if(!$request->expectsJson()) { |
|
14 | + if(!$request->expectsJson()) |
|
15 | + { |
|
15 | 16 | return route('login.index'); |
16 | 17 | } |
17 | 18 | } |
@@ -62,7 +62,7 @@ |
||
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', |
@@ -239,7 +239,7 @@ discard block |
||
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 |
||
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); |
@@ -239,7 +239,8 @@ |
||
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 | 245 | DB::connection(DB::getDefaultConnection()) |
245 | 246 | ->getSchemaBuilder() |