22
33namespace Adldap \Laravel \Commands \Console ;
44
5- use Adldap \Laravel \Commands \Import as ImportUser ;
6- use Adldap \Laravel \Commands \SyncPassword ;
7- use Adldap \Laravel \Events \Imported ;
8- use Adldap \Laravel \Facades \Resolver ;
9- use Adldap \Models \User ;
105use Exception ;
6+ use RuntimeException ;
7+ use Adldap \Models \User ;
8+ use UnexpectedValueException ;
119use Illuminate \Console \Command ;
12- use Illuminate \ Database \ Eloquent \ Model ;
10+ use Adldap \ Laravel \ Events \ Imported ;
1311use Illuminate \Support \Facades \Bus ;
14- use Illuminate \ Support \Facades \Config ;
12+ use Adldap \ Laravel \Facades \Resolver ;
1513use Illuminate \Support \Facades \Event ;
16- use RuntimeException ;
17- use UnexpectedValueException ;
14+ use Illuminate \Support \Facades \Config ;
15+ use Illuminate \Database \Eloquent \Model ;
16+ use Adldap \Laravel \Commands \SyncPassword ;
17+ use Adldap \Laravel \Commands \Import as ImportUser ;
1818
1919class Import extends Command
2020{
@@ -74,7 +74,7 @@ public function handle()
7474 }
7575
7676 if (
77- !$ this ->input ->isInteractive () ||
77+ ! $ this ->input ->isInteractive () ||
7878 $ this ->confirm ('Would you like these users to be imported / synchronized? ' , $ default = true )
7979 ) {
8080 $ imported = $ this ->import ($ users );
@@ -167,7 +167,7 @@ public function display(array $users = [])
167167 */
168168 public function isLogging () : bool
169169 {
170- return !$ this ->option ('no-log ' );
170+ return ! $ this ->option ('no-log ' );
171171 }
172172
173173 /**
@@ -293,7 +293,7 @@ protected function delete(User $user, Model $model)
293293 {
294294 if (
295295 $ this ->isUsingSoftDeletes ($ model ) &&
296- !$ model ->trashed () &&
296+ ! $ model ->trashed () &&
297297 $ user ->isDisabled ()
298298 ) {
299299 // If deleting is enabled, the model supports soft deletes, the model
@@ -316,7 +316,7 @@ protected function delete(User $user, Model $model)
316316 */
317317 protected function model () : Model
318318 {
319- if (!$ this ->model ) {
319+ if (! $ this ->model ) {
320320 $ this ->model = $ this ->option ('model ' ) ?? Config::get ('ldap_auth.model ' ) ?: $ this ->determineModel ();
321321 }
322322
0 commit comments