Passed
Pull Request — master (#85)
by Ron
13:02 queued 05:17
created
app/Providers/FormGroupServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
     public function boot()
26 26
     {
27 27
         //  Service provider to customize form inputs
28
-        Form::component('bsText',     'components.form.text',     ['name', 'label', 'value' => null, 'attributes' => []]);
28
+        Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]);
29 29
         Form::component('bsPassword', 'components.form.password', ['name', 'label', 'value' => null, 'attributes' => []]);
30
-        Form::component('bsNumber',   'components.form.number',   ['name', 'label', 'value' => null, 'attributes' => []]);
31
-        Form::component('bsEmail',    'components.form.email',    ['name', 'label', 'value' => null, 'attributes' => []]);
32
-        Form::component('bsDate',     'components.form.date',     ['name', 'label', 'value' => null, 'attributes' => []]);
30
+        Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]);
31
+        Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]);
32
+        Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]);
33 33
         Form::component('bsTextarea', 'components.form.textarea', ['name', 'label', 'value' => null, 'attributes' => []]);
34 34
         Form::component('bsCheckbox', 'components.form.checkbox', ['name', 'label', 'value' => 'on', 'checked' => false, 'attributes' => []]);
35
-        Form::component('bsSelect',   'components.form.select',   ['name', 'label', 'list', 'selected' => null, 'attributes' => []]);
35
+        Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]);
36 36
         //  Custom Submit button
37 37
         Form::component('bsSubmit', 'components.form.submit', ['name']);
38 38
         //  List of all states in a dropdown box
Please login to merge, or discard this patch.
app/Domains/Users/GetUserStats.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function getUserCustomerFavs()
24 24
     {
25
-        $custFavs    = CustomerFavs::where('user_id', $this->userID)
26
-            ->with(array('Customers' => function($query){
25
+        $custFavs = CustomerFavs::where('user_id', $this->userID)
26
+            ->with(array('Customers' => function($query) {
27 27
                 $query->select('cust_id', 'name');
28 28
             }))
29 29
             ->get();
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function getUserTechTipFavs()
43 43
     {
44
-        $tipFavs     = TechTipFavs::where('user_id', $this->userID)
45
-            ->with(array('TechTips' => function($query){
44
+        $tipFavs = TechTipFavs::where('user_id', $this->userID)
45
+            ->with(array('TechTips' => function($query) {
46 46
                 $query->select('tip_id', 'subject');
47 47
             }))
48 48
             ->get();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function getUserTotalLinks()
70 70
     {
71
-        $totalLinks  = FileLinks::where('user_id', $this->userID)->count();
71
+        $totalLinks = FileLinks::where('user_id', $this->userID)->count();
72 72
 
73 73
         Log::debug('Retrieved count of total File Links for User ID'.$this->userID.'. Data - './** @scrutinizer ignore-type */$totalLinks.' found');
74 74
         return $totalLinks;
Please login to merge, or discard this patch.
app/Console/Commands/updateRun.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -157,17 +157,17 @@
 block discarded – undo
157 157
             DIRECTORY_SEPARATOR.$folder.DIRECTORY_SEPARATOR;
158 158
 
159 159
         // Copy files
160
-        File::copyDirectory($updateFile.'app',       base_path().DIRECTORY_SEPARATOR.'app');
160
+        File::copyDirectory($updateFile.'app', base_path().DIRECTORY_SEPARATOR.'app');
161 161
         File::copyDirectory($updateFile.'bootstrap', base_path().DIRECTORY_SEPARATOR.'bootstrap');
162
-        File::copyDirectory($updateFile.'config',    base_path().DIRECTORY_SEPARATOR.'config');
163
-        File::copyDirectory($updateFile.'database',  base_path().DIRECTORY_SEPARATOR.'database');
164
-        File::copyDirectory($updateFile.'public',    base_path().DIRECTORY_SEPARATOR.'public');
162
+        File::copyDirectory($updateFile.'config', base_path().DIRECTORY_SEPARATOR.'config');
163
+        File::copyDirectory($updateFile.'database', base_path().DIRECTORY_SEPARATOR.'database');
164
+        File::copyDirectory($updateFile.'public', base_path().DIRECTORY_SEPARATOR.'public');
165 165
         File::copyDirectory($updateFile.'resources', base_path().DIRECTORY_SEPARATOR.'resources');
166
-        File::copyDirectory($updateFile.'routes',    base_path().DIRECTORY_SEPARATOR.'routes');
167
-        File::copy($updateFile.'composer.json',      base_path().DIRECTORY_SEPARATOR.'composer.json');
168
-        File::copy($updateFile.'composer.lock',      base_path().DIRECTORY_SEPARATOR.'composer.lock');
169
-        File::copy($updateFile.'package.json',       base_path().DIRECTORY_SEPARATOR.'package.json');
170
-        File::copy($updateFile.'package-lock.json',  base_path().DIRECTORY_SEPARATOR.'package-lock.json');
166
+        File::copyDirectory($updateFile.'routes', base_path().DIRECTORY_SEPARATOR.'routes');
167
+        File::copy($updateFile.'composer.json', base_path().DIRECTORY_SEPARATOR.'composer.json');
168
+        File::copy($updateFile.'composer.lock', base_path().DIRECTORY_SEPARATOR.'composer.lock');
169
+        File::copy($updateFile.'package.json', base_path().DIRECTORY_SEPARATOR.'package.json');
170
+        File::copy($updateFile.'package-lock.json', base_path().DIRECTORY_SEPARATOR.'package-lock.json');
171 171
 
172 172
         //  Run Composer Updates
173 173
         exec('cd '.base_path().' && composer install --no-dev --no-interaction --optimize-autoloader --no-ansi > /dev/null 2>&1');
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,8 @@
 block discarded – undo
76 76
             $this->line('');
77 77
 
78 78
             $anticipate = [];
79
-            foreach($updateList as $key => $up) {
79
+            foreach($updateList as $key => $up)
80
+            {
80 81
                 $opt = $key + 1;
81 82
                 $anticipate[$opt] = $up;
82 83
                 $this->line('['.$opt.'] '.$up);
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/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
@@ -128,7 +128,8 @@
 block discarded – undo
128 128
     {
129 129
         $data = Files::find($fileID);
130 130
         //  Move the file to the proper folder
131
-        try {
131
+        try
132
+        {
132 133
             Log::debug('Attempting to moving file '.$fileID.' to '.$newPath);
133 134
             Storage::move($data->file_link.$data->file_name, $newPath.DIRECTORY_SEPARATOR.$data->file_name);
134 135
         }
Please login to merge, or discard this patch.