@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function register() |
| 11 | 11 | { |
| 12 | - $this->app->singleton('dyrynda.artisan.make.user', function ($app) { |
|
| 12 | + $this->app->singleton('dyrynda.artisan.make.user', function($app) { |
|
| 13 | 13 | return $app->make(MakeUser::class); |
| 14 | 14 | }); |
| 15 | 15 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $name = $this->option('name') ?: ''; |
| 42 | 42 | $password = bcrypt($this->option('password') ?: str_random(32)); |
| 43 | 43 | $modelCommand = $this->option('force') ? 'forceCreate' : 'create'; |
| 44 | - $sendReset = ! $this->option('password') || $this->option('send-reset'); |
|
| 44 | + $sendReset = !$this->option('password') || $this->option('send-reset'); |
|
| 45 | 45 | |
| 46 | 46 | try { |
| 47 | 47 | app('db')->beginTransaction(); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | private function validateEmail($email) |
| 83 | 83 | { |
| 84 | - if (! filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
| 84 | + if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
| 85 | 85 | throw MakeUserException::invalidEmail($email); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -97,11 +97,11 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | private function additionalFields() |
| 99 | 99 | { |
| 100 | - if (! $this->option('fields')) { |
|
| 100 | + if (!$this->option('fields')) { |
|
| 101 | 101 | return []; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - return collect(explode(',', $this->option('fields')))->mapWithKeys(function ($field) { |
|
| 104 | + return collect(explode(',', $this->option('fields')))->mapWithKeys(function($field) { |
|
| 105 | 105 | list($column, $value) = explode(':', $field); |
| 106 | 106 | |
| 107 | 107 | return [trim($column) => $this->normaliseValue($value)]; |