@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | ->newQuery() |
75 | 75 | ->get(); |
76 | 76 | |
77 | - if($users->isEmpty()) { |
|
77 | + if ($users->isEmpty()) { |
|
78 | 78 | $this->info('No users found.'); |
79 | 79 | return; |
80 | 80 | } |
81 | 81 | |
82 | - if(!$this->confirm('There are ' . $users->count() . ' users to sync. Continue?')) { |
|
82 | + if (!$this->confirm('There are ' . $users->count() . ' users to sync. Continue?')) { |
|
83 | 83 | return; |
84 | 84 | } |
85 | 85 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $this->writeStats('Remote affection', array_keys($remoteStats), array_values($remoteStats)); |
95 | 95 | |
96 | - if(!count($difference)) { |
|
96 | + if (!count($difference)) { |
|
97 | 97 | $this->info('There are no changes to apply locally.'); |
98 | 98 | } |
99 | 99 | else { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $email = $user->getEmail(); |
188 | 188 | |
189 | 189 | // If a user already exists, skip the process |
190 | - if(Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
190 | + if (Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
191 | 191 | $this->warn("User with email {$email} already exists, unable to create"); |
192 | 192 | |
193 | 193 | return; |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | $email = $user->getEmail(); |
209 | 209 | |
210 | 210 | // If a user doesn't exist, skip the process |
211 | - if(!$model = Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
211 | + if (!$model = Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
212 | 212 | $this->warn("User with email {$email} doesn't exist, unable to update"); |
213 | 213 | |
214 | 214 | return; |
215 | 215 | } |
216 | 216 | |
217 | - if(!$this->passwords) { |
|
217 | + if (!$this->passwords) { |
|
218 | 218 | $user->resetPassword(); |
219 | 219 | } |
220 | 220 | |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $email = $user->getEmail(); |
237 | 237 | |
238 | 238 | // If a user doesn't exist, skip the process |
239 | - if(!$model = Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
239 | + if (!$model = Auth::getProvider()->retrieveByCredentials(['email' => $email])) { |
|
240 | 240 | $this->warn("User with email {$email} doesn't exist, unable to delete"); |
241 | 241 | |
242 | 242 | return; |
@@ -95,8 +95,7 @@ |
||
95 | 95 | |
96 | 96 | if(!count($difference)) { |
97 | 97 | $this->info('There are no changes to apply locally.'); |
98 | - } |
|
99 | - else { |
|
98 | + } else { |
|
100 | 99 | $this->info('Remote changes detected, applying...'); |
101 | 100 | |
102 | 101 | $localStats = $this->applyDifference($difference); |