| Total Complexity | 4 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 18.75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ChangePassword extends Command |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The name and signature of the console command. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'user:change-password {login} {password}'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Change user password'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new command instance. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | 3 | public function __construct() |
|
| 32 | { |
||
| 33 | 3 | parent::__construct(); |
|
| 34 | 3 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get the console command arguments. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | protected function getArguments() |
||
| 42 | { |
||
| 43 | return [ |
||
| 44 | ['name', InputArgument::REQUIRED, 'The name of the job.'], |
||
| 45 | ['module', InputArgument::OPTIONAL, 'The name of module will be used.'], |
||
| 46 | ]; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Execute the console command. |
||
| 51 | * |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | public function handle() |
||
| 70 | } |
||
| 71 | } |
||
| 72 |