Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
7 | public function draw() |
||
8 | { |
||
9 | $this->terminal |
||
10 | ->comment('Pattern mode usage') |
||
11 | ->write('Type a pattern and press Enter to only run tests from a specific PHPUnit group.') |
||
12 | ->write('Press Enter with an empty pattern to execute all tests in all files.') |
||
13 | ->emptyLine() |
||
14 | ->comment('Start typing to filter by a test name.') |
||
15 | ->prompt('pattern > '); |
||
16 | |||
17 | return $this; |
||
18 | } |
||
19 | |||
43 |
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.