Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
7 | public function draw() |
||
8 | { |
||
9 | $this->terminal |
||
10 | ->comment('Random seed usage') |
||
11 | ->write('Type a seed and press Enter to run tests in random order but with a specific seed.') |
||
12 | ->write('Press Enter with an empty pattern to execute all tests in random order.') |
||
13 | ->emptyLine() |
||
14 | ->comment('Start typing to add a random seed') |
||
15 | ->prompt('seed > '); |
||
16 | |||
17 | return $this; |
||
18 | } |
||
19 | |||
40 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.