Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
17 | public function init() |
||
18 | { |
||
19 | $this->setSummary('Runs the migrations.'); |
||
20 | $this->setUsage([ |
||
21 | ' Migrate up to the current version.', |
||
22 | '<version> Migrate up to the version.', |
||
23 | 'status List all migration files and versions.', |
||
24 | 'version Show migration versions.' |
||
25 | ]); |
||
26 | $this->setDescr( |
||
27 | '<<bold>>migrate<<reset>> command runs the migrations and shows its status.' . PHP_EOL |
||
28 | ); |
||
29 | } |
||
30 | } |
||
31 |
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.