| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 | return; | 
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | -        if (! empty($input->getArgument('module'))) { | |
| 53 | +        if (!empty($input->getArgument('module'))) { | |
| 54 | 54 | return; | 
| 55 | 55 | } | 
| 56 | 56 | |
| @@ -77,15 +77,15 @@ discard block | ||
| 77 | 77 | */ | 
| 78 | 78 | protected function models(): Collection | 
| 79 | 79 |      { | 
| 80 | -        if (! empty($models = $this->option('model'))) { | |
| 81 | -            return collect($models)->filter(function ($model) { | |
| 80 | +        if (!empty($models = $this->option('model'))) { | |
| 81 | +            return collect($models)->filter(function($model) { | |
| 82 | 82 | return class_exists($model); | 
| 83 | 83 | })->values(); | 
| 84 | 84 | } | 
| 85 | 85 | |
| 86 | 86 |          $except = $this->option('except'); | 
| 87 | 87 | |
| 88 | -        if (! empty($models) && ! empty($except)) { | |
| 88 | +        if (!empty($models) && !empty($except)) { | |
| 89 | 89 |              throw new InvalidArgumentException('The --models and --except options cannot be combined.'); | 
| 90 | 90 | } | 
| 91 | 91 | |
| @@ -109,7 +109,7 @@ discard block | ||
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | 111 |          return collect(Finder::create()->in($path)->files()->name('*.php')) | 
| 112 | -            ->map(function ($model) { | |
| 112 | +            ->map(function($model) { | |
| 113 | 113 | |
| 114 | 114 |                  $namespace = config('modules.namespace'); | 
| 115 | 115 | |
| @@ -120,13 +120,13 @@ discard block | ||
| 120 | 120 | ); | 
| 121 | 121 | }) | 
| 122 | 122 | ->values() | 
| 123 | -            ->when(! empty($except), function ($models) use ($except) { | |
| 124 | -                return $models->reject(function ($model) use ($except) { | |
| 123 | +            ->when(!empty($except), function($models) use ($except) { | |
| 124 | +                return $models->reject(function($model) use ($except) { | |
| 125 | 125 | return in_array($model, $except); | 
| 126 | 126 | }); | 
| 127 | -            })->filter(function ($model) { | |
| 127 | +            })->filter(function($model) { | |
| 128 | 128 | return class_exists($model); | 
| 129 | -            })->filter(function ($model) { | |
| 129 | +            })->filter(function($model) { | |
| 130 | 130 | return $this->isPrunable($model); | 
| 131 | 131 | })->values(); | 
| 132 | 132 | } |