Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
17 | public function init() |
||
18 | { |
||
19 | $this->setSummary('Seed the database with records.'); |
||
20 | $this->setUsage([ |
||
21 | '', |
||
22 | '<class>' |
||
23 | ]); |
||
24 | $this->setOptions([ |
||
25 | 'l,list' => "List all seeder files only. With this option, seeding does not run.", |
||
26 | ]); |
||
27 | $this->setDescr( |
||
28 | 'Seed the database using Seeder class in "application/database/seeds" folder.' |
||
29 | ); |
||
30 | } |
||
31 | } |
||
32 |
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.