Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Lanin\Laravel\SetupWizard\Commands\Steps; |
||
63 | 9 | public function repeat() |
|
64 | { |
||
65 | 9 | if ($this->repeats > self::REPEATS) |
|
66 | 9 | { |
|
67 | 3 | return false; |
|
68 | } |
||
69 | |||
70 | 9 | if ($this->command->confirm('Do you want to repeat step?')) |
|
71 | 9 | { |
|
72 | 3 | $this->repeats++; |
|
73 | |||
74 | 3 | return $this->run(); |
|
75 | } |
||
76 | |||
77 | 6 | return false; |
|
78 | } |
||
79 | |||
123 |