Passed
Push — dev5 ( 1f3b64...3a6272 )
by Ron
06:33
created
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
      */
18 18
     public function handle($request, Closure $next, $guard = null)
19 19
     {
20
-        if(Auth::guard($guard)->check()) {
20
+        if(Auth::guard($guard)->check())
21
+        {
21 22
             return redirect('/dashboard');
22 23
         }
23 24
 
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     //  Database primary key
31 31
     protected $primaryKey = 'user_id';
32 32
 
33
-    protected $appends = [ 'full_name' ];
33
+    protected $appends = ['full_name'];
34 34
 
35 35
     public function getFullNameAttribute()
36 36
     {
Please login to merge, or discard this patch.
app/Console/Commands/CleanLogs.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,8 @@  discard block
 block discarded – undo
42 42
         $this->line('');
43 43
 
44 44
         //  Determine if the daily or single log channel is being used
45
-        switch($channel) {
45
+        switch($channel)
46
+        {
46 47
             case 'daily':
47 48
                 $this->dailyLog();
48 49
                 break;
@@ -84,10 +85,13 @@  discard block
 block discarded – undo
84 85
     private function cleanLogFile($logFile)
85 86
     {
86 87
         //  Verify the file exists before trying to clear it
87
-        if(file_exists($logFile)) {
88
+        if(file_exists($logFile))
89
+        {
88 90
             file_put_contents($logFile, '');
89 91
             $this->line('Log File Emptied');
90
-        } else {
92
+        }
93
+        else
94
+        {
91 95
             $this->line('Well, this is embarrassing...');
92 96
             $this->line('It seems I cannot find your log file');
93 97
             $this->line('');
Please login to merge, or discard this patch.
database/seeds/UserTableSeeder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
     public function run()
15 15
     {
16 16
         //  Create the test users
17
-        factory(App\User::class, 15)->create()->each(function($user)
18
-        {
17
+        factory(App\User::class, 15)->create()->each(function($user) {
19 18
             $user->UserPermissions()->save(factory(App\UserPermissions::class)->make());
20 19
         });
21 20
     }
Please login to merge, or discard this patch.
app/TechTips.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 class TechTips extends Model
8 8
 {
9 9
     protected $primaryKey = 'tip_id';
10
-    protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at'];  // ToDo:  Remove Created_at - future build
10
+    protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at']; // ToDo:  Remove Created_at - future build
11 11
 
12 12
 //     public function user()
13 13
 //     {
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/LinkFilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         //  Verify that the upload is valid and being processed
49 49
         if($receiver->isUploaded() === false)
50 50
         {
51
-            Log::error('Upload File Missing - ' .
51
+            Log::error('Upload File Missing - '.
52 52
             /** @scrutinizer ignore-type */
53 53
             $request->toArray());
54 54
             throw new UploadMissingFileException();
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/GuestLinksController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         if($files == 0 && $details->allow_upload === 'No')
57 57
         {
58
-            Log::warning('Visitor ' . \Request::ip() . ' visited a link that they cannot do anything with.  Hash - ' . $id);
58
+            Log::warning('Visitor '.\Request::ip().' visited a link that they cannot do anything with.  Hash - '.$id);
59 59
             return view('links.guestDeadLink');
60 60
         }
61 61
 
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/FileLinksController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $id = Auth::user()->user_id;
56 56
         }
57 57
         //  If the user is trying to pull someone elses links, they must be able to manage users
58
-        else if ($id != Auth::user()->user_id && !$this->authorize('hasAccess', 'manage_users'))
58
+        else if($id != Auth::user()->user_id && !$this->authorize('hasAccess', 'manage_users'))
59 59
         {
60 60
             return abort(403);
61 61
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             //  Verify that the upload is valid and being processed
94 94
             if($receiver->isUploaded() === false)
95 95
             {
96
-                Log::error('Upload File Missing - ' .
96
+                Log::error('Upload File Missing - '.
97 97
                 /** @scrutinizer ignore-type */
98 98
                 $request->toArray());
99 99
                 throw new UploadMissingFileException();
Please login to merge, or discard this patch.
database/migrations/2019_10_19_175205_updates_for_version_5_0.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
                     'note' => $ins->instruction
84 84
                 ]);
85 85
             }
86
-            Schema::table('file_link_instructions', function (Blueprint $table) {
86
+            Schema::table('file_link_instructions', function(Blueprint $table) {
87 87
                 $table->dropForeign(['link_id']);
88 88
             });
89 89
             Schema::dropIfExists('file_link_instructions');
90 90
         }
91 91
         //  Add "notes" column to the file link files table
92
-        if (!Schema::hasColumn('file_link_files', 'note')) {
93
-            Schema::table('file_link_files', function (Blueprint $table) {
92
+        if(!Schema::hasColumn('file_link_files', 'note')) {
93
+            Schema::table('file_link_files', function(Blueprint $table) {
94 94
                 $table->longText('note')
95 95
                     ->nullable()
96 96
                     ->after('upload');
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                     'note' => $note->note
103 103
                 ]);
104 104
             }
105
-            Schema::table('file_link_notes', function (Blueprint $table) {
105
+            Schema::table('file_link_notes', function(Blueprint $table) {
106 106
                 $table->dropForeign(['link_id']);
107 107
                 $table->dropForeign(['file_id']);
108 108
             });
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,8 @@
 block discarded – undo
89 89
             Schema::dropIfExists('file_link_instructions');
90 90
         }
91 91
         //  Add "notes" column to the file link files table
92
-        if (!Schema::hasColumn('file_link_files', 'note')) {
92
+        if (!Schema::hasColumn('file_link_files', 'note'))
93
+        {
93 94
             Schema::table('file_link_files', function (Blueprint $table) {
94 95
                 $table->longText('note')
95 96
                     ->nullable()
Please login to merge, or discard this patch.