Completed
Push — dev ( 6d8737...fe3822 )
by Zach
02:19
created

Migrate::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Yarak\Commands;
4
5
class Migrate extends YarakCommand
6
{
7
    /**
8
     * Configure the command.
9
     */
10
    protected function configure()
11
    {
12
        $this->setName('migrate')
13
            ->setDescription('Run the database migrations.')
14
            ->setHelp('This command allows you to run migrations.');
15
    }
16
17
    /**
18
     * Handle the command.
19
     */
20
    protected function handle()
21
    {
22
        $this->getMigrator($this->getOutput())->run();
23
    }
24
}
25