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 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) use ($channel)
52
-        {
51
+        return Arr::first($this->logChannels, function($value) use ($channel) {
53 52
             return $value['name'] == $channel;
54 53
         });
55 54
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.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
     {
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)
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerFileTypesController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/TechTips/SearchTipsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
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.'%')
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,10 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
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
     }
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 2 patches
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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,8 @@
 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 245
                 DB::connection(DB::getDefaultConnection())
245 246
                 ->getSchemaBuilder()
Please login to merge, or discard this patch.