| Conditions | 4 |
| Paths | 5 |
| Total Lines | 22 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Lanin\Laravel\SetupWizard\Commands\Steps; |
||
| 35 | 10 | public function run($pretend = false) |
|
| 36 | { |
||
| 37 | 10 | $results = $this->prepare(); |
|
| 38 | |||
| 39 | 10 | $this->preview($results); |
|
| 40 | |||
| 41 | 10 | if ($this->command->confirm('Everything is right?')) |
|
| 42 | 10 | { |
|
| 43 | 8 | $return = $pretend ? true : $this->finish($results); |
|
| 44 | |||
| 45 | 8 | if ($return === false) |
|
| 46 | 8 | { |
|
| 47 | 2 | $return = $this->repeat(); |
|
| 48 | 2 | } |
|
| 49 | 8 | } |
|
| 50 | else |
||
| 51 | { |
||
| 52 | 2 | $return = $this->repeat(); |
|
| 53 | } |
||
| 54 | |||
| 55 | 10 | return $return; |
|
| 56 | } |
||
| 57 | |||
| 123 |