2
2
3
3
namespace Adldap \Laravel \Commands \Console ;
4
4
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 ;
10
5
use Exception ;
6
+ use RuntimeException ;
7
+ use Adldap \Models \User ;
8
+ use UnexpectedValueException ;
11
9
use Illuminate \Console \Command ;
12
- use Illuminate \ Database \ Eloquent \ Model ;
10
+ use Adldap \ Laravel \ Events \ Imported ;
13
11
use Illuminate \Support \Facades \Bus ;
14
- use Illuminate \ Support \Facades \Config ;
12
+ use Adldap \ Laravel \Facades \Resolver ;
15
13
use 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 ;
18
18
19
19
class Import extends Command
20
20
{
@@ -74,7 +74,7 @@ public function handle()
74
74
}
75
75
76
76
if (
77
- !$ this ->input ->isInteractive () ||
77
+ ! $ this ->input ->isInteractive () ||
78
78
$ this ->confirm ('Would you like these users to be imported / synchronized? ' , $ default = true )
79
79
) {
80
80
$ imported = $ this ->import ($ users );
@@ -167,7 +167,7 @@ public function display(array $users = [])
167
167
*/
168
168
public function isLogging () : bool
169
169
{
170
- return !$ this ->option ('no-log ' );
170
+ return ! $ this ->option ('no-log ' );
171
171
}
172
172
173
173
/**
@@ -293,7 +293,7 @@ protected function delete(User $user, Model $model)
293
293
{
294
294
if (
295
295
$ this ->isUsingSoftDeletes ($ model ) &&
296
- !$ model ->trashed () &&
296
+ ! $ model ->trashed () &&
297
297
$ user ->isDisabled ()
298
298
) {
299
299
// If deleting is enabled, the model supports soft deletes, the model
@@ -316,7 +316,7 @@ protected function delete(User $user, Model $model)
316
316
*/
317
317
protected function model () : Model
318
318
{
319
- if (!$ this ->model ) {
319
+ if (! $ this ->model ) {
320
320
$ this ->model = $ this ->option ('model ' ) ?? Config::get ('ldap_auth.model ' ) ?: $ this ->determineModel ();
321
321
}
322
322
0 commit comments