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 | 15 | public function run($pretend = false) |
|
36 | { |
||
37 | 15 | $results = $this->prepare(); |
|
38 | |||
39 | 15 | $this->preview($results); |
|
40 | |||
41 | 15 | if ($this->command->confirm('Everything is right?')) |
|
42 | 15 | { |
|
43 | 12 | $return = $pretend ? true : $this->finish($results); |
|
44 | |||
45 | 12 | if ($return === false) |
|
46 | 12 | { |
|
47 | 3 | $return = $this->repeat(); |
|
48 | 3 | } |
|
49 | 12 | } |
|
50 | else |
||
51 | { |
||
52 | 3 | $return = $this->repeat(); |
|
53 | } |
||
54 | |||
55 | 15 | return $return; |
|
56 | } |
||
57 | |||
123 |