1 | <?php |
||
22 | class UserCreateCommand extends Command |
||
23 | { |
||
24 | /** |
||
25 | * The name and signature of the console command. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $signature = 'fort:user:create |
||
30 | {email? : The email address of the user} |
||
31 | {username? : The username of the user} |
||
32 | {password? : The password of the user} |
||
33 | {firstName? : The first name of the user} |
||
34 | {middleName? : The middle name of the user} |
||
35 | {lastName? : The last name of the user} |
||
36 | {--I|inactive : Set the user as inactive} |
||
37 | {--U|unverified : Set the user as unverified}'; |
||
38 | |||
39 | /** |
||
40 | * The console command description. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $description = 'Create a new user.'; |
||
45 | |||
46 | /** |
||
47 | * Execute the console command. |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | public function handle() |
||
91 | |||
92 | /** |
||
93 | * Filter null and empty values. |
||
94 | * |
||
95 | * @param $value |
||
96 | * |
||
97 | * @return bool |
||
98 | */ |
||
99 | protected function filter($value) |
||
103 | } |
||
104 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.