Passed
Push — dev5 ( c2dc0b...cbc2fc )
by Ron
08:19
created
app/Console/Commands/updateRun.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@  discard block
 block discarded – undo
22 22
         $this->line('');
23 23
         //  Select which update file to use
24 24
         $updateFile = $this->checkForUpdate();
25
-        if($updateFile) {
25
+        if($updateFile)
26
+        {
26 27
             //  Open up the file and verify it is at least the same version as the current setup
27 28
             $valid = $this->openUpdate($updateFile);
28 29
 
@@ -80,7 +81,8 @@  discard block
 block discarded – undo
80 81
             $this->line('');
81 82
 
82 83
             $anticipate = [];
83
-            foreach($updateList as $key => $up) {
84
+            foreach($updateList as $key => $up)
85
+            {
84 86
                 $opt = $key + 1;
85 87
                 $anticipate[$opt] = $up;
86 88
                 $this->line('['.$opt.'] '.$up);
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/InitializeUserController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@  discard block
 block discarded – undo
25 25
         //  Validate the hash token
26 26
         $user = UserInitialize::where('token', $hash)->get();
27 27
 
28
-        if($user->isEmpty()) {
28
+        if($user->isEmpty())
29
+        {
29 30
             Log::warning('Visitor at IP Address '.\Request::ip().' tried to access invalid initialize hash - '.$hash);
30 31
             return abort(404);
31 32
         }
@@ -43,7 +44,8 @@  discard block
 block discarded – undo
43 44
 
44 45
         //  Verify that the link matches the assigned email address
45 46
         $valid = UserInitialize::where('token', $hash)->first();
46
-        if(empty($valid)) {
47
+        if(empty($valid))
48
+        {
47 49
             Log::warning('Visitor at IP Address '.\Request::ip().' tried to submit an invalid User Initialization link - '.$hash);
48 50
             return abort(404);
49 51
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Installer/ModuleController.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@  discard block
 block discarded – undo
41 41
             ];
42 42
         }
43 43
         $mods = Module::allDisabled();
44
-        foreach($mods as $name => $mod) {
44
+        foreach($mods as $name => $mod)
45
+        {
45 46
             $moduleList[] = [
46 47
                 'name' => $name,
47 48
                 'status' => 'Disabled',
@@ -78,7 +79,8 @@  discard block
 block discarded – undo
78 79
         $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
79 80
 
80 81
         //  Verify that the upload is valid and being processed
81
-        if($receiver->isUploaded() === false) {
82
+        if($receiver->isUploaded() === false)
83
+        {
82 84
             Log::error('Upload File Missing - '.
83 85
                 /** @scrutinizer ignore-type */
84 86
                 $request->toArray());
@@ -89,7 +91,8 @@  discard block
 block discarded – undo
89 91
         $save = $receiver->receive();
90 92
 
91 93
         //  See if the uploade has finished
92
-        if($save->isFinished()) {
94
+        if($save->isFinished())
95
+        {
93 96
             $this->saveFile($save->getFile());
94 97
 
95 98
             return 'uploaded successfully';
Please login to merge, or discard this patch.
app/Http/Controllers/Installer/SystemsController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,8 @@
 block discarded – undo
211 211
     public function destroy($id)
212 212
     {
213 213
         //
214
-        try {
214
+        try
215
+        {
215 216
             SystemTypes::find($id)->delete();
216 217
             return response()->json(['success' => true, 'reason' => 'Equipment Successfully Deleted']);
217 218
         }
Please login to merge, or discard this patch.
app/Http/Controllers/DownloadController.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,9 +59,12 @@  discard block
 block discarded – undo
59 59
     public function archiveFiles(Request $request)
60 60
     {
61 61
         //  Debug Data
62
-        if(Auth::user()) {
62
+        if(Auth::user())
63
+        {
63 64
             $user = Auth::user()->full_name;
64
-        } else {
65
+        }
66
+        else
67
+        {
65 68
             $user = \Request::ip();
66 69
         }
67 70
         Log::debug('Route '.Route::currentRouteName().' visited by '.$user.'  Request Data:', $request->toArray());
@@ -107,9 +110,12 @@  discard block
 block discarded – undo
107 110
     public function downloadArchive($fileName)
108 111
     {
109 112
         //  Debug Data
110
-        if(Auth::user()) {
113
+        if(Auth::user())
114
+        {
111 115
             $user = Auth::user()->full_name;
112
-        } else {
116
+        }
117
+        else
118
+        {
113 119
             $user = \Request::ip();
114 120
         }
115 121
         Log::debug('Route '.Route::currentRouteName().' visited by '.$user);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/CustomerAdminController.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,13 @@
 block discarded – undo
103 103
     {
104 104
         Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
105 105
 
106
-        try {
106
+        try
107
+        {
107 108
             //  Try to delete file type from database - will throw error if foreign key is in use
108 109
             CustomerFileTypes::find($id)->delete();
109
-        } catch (\Illuminate\Database\QueryException $e) {
110
+        }
111
+        catch (\Illuminate\Database\QueryException $e)
112
+        {
110 113
             //  Unable to remove file type  from the database
111 114
             Log::warning('Attempt to delete file type ID '.$id.' by User '.Auth::user()->full_name.' failed.  Reason - ' . $e);
112 115
             return response()->json(['success' => false, 'reason' => 'In Use']);
Please login to merge, or discard this patch.
app/Domains/Users/GetUserStats.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function getUserCustomerFavs()
25 25
     {
26 26
         $custFavs    = CustomerFavs::where('user_id', $this->userID)
27
-            ->with(array('Customers' => function($query){
27
+            ->with(array('Customers' => function($query) {
28 28
                 $query->select('cust_id', 'name');
29 29
             }))
30 30
             ->get();
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function getUserTechTipFavs()
36 36
     {
37 37
         $tipFavs     = TechTipFavs::where('user_id', $this->userID)
38
-            ->with(array('TechTips' => function($query){
38
+            ->with(array('TechTips' => function($query) {
39 39
                 $query->select('tip_id', 'subject');
40 40
             }))
41 41
             ->get();
Please login to merge, or discard this patch.
app/Domains/FileLinks/GetFileLinks.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@
 block discarded – undo
26 26
                     ->orderBy('expire', 'desc')->get();
27 27
 
28 28
         Log::debug('Retrieved all File Links for User ID '.$this->id.'.  Data Gathered - ', array($links));
29
-        if ($this->collection) {
29
+        if ($this->collection)
30
+        {
30 31
             return new FileLinksCollection($links);
31 32
         }
32 33
 
Please login to merge, or discard this patch.
app/Domains/FilesDomain.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,8 @@
 block discarded – undo
108 108
     {
109 109
         $data = Files::find($fileID);
110 110
         //  Move the file to the proper folder
111
-        try{
111
+        try
112
+        {
112 113
             Log::debug('Attempting to moving file '.$fileID.' to '.$newPath);
113 114
             Storage::move($data->file_link.$data->file_name, $newPath.DIRECTORY_SEPARATOR.$data->file_name);
114 115
         }
Please login to merge, or discard this patch.