| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Lanin\Laravel\SetupWizard\Commands\Steps; |
||
| 20 | 3 | public function prepare() |
|
| 21 | { |
||
| 22 | 3 | $result = []; |
|
| 23 | 3 | foreach (config('setup.create_user.fields') as $column => $title) |
|
| 24 | { |
||
| 25 | 3 | $result[$column] = $this->command->ask($title); |
|
| 26 | |||
| 27 | 3 | if ($column == config('setup.create_user.password_field')) |
|
| 28 | 3 | { |
|
| 29 | 3 | $result[$column] = bcrypt($result[$column]); |
|
| 30 | 3 | } |
|
| 31 | 3 | } |
|
| 32 | |||
| 33 | 3 | $result['__table'] = $this->getTable(config('setup.create_user.table')); |
|
| 34 | |||
| 35 | 3 | return $result; |
|
| 36 | } |
||
| 37 | |||
| 102 | } |