| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | protected function setUp() |
||
| 12 | { |
||
| 13 | $this->command = $this->getMockBuilder(GenerateCommand::class) |
||
| 14 | ->disableOriginalConstructor() |
||
| 15 | ->setMethods(['null']) |
||
| 16 | ->getMock(); |
||
| 17 | $moduleConfig = (new ModuleConfig())->__invoke(); |
||
| 18 | $migrateParams = $moduleConfig['console_routes']['mogrations:generate']; |
||
| 19 | $this->route = new Route($migrateParams['name'], $migrateParams['route']); |
||
| 20 | } |
||
| 21 | |||
| 32 | } |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.