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

Migrate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 6 1
A handle() 0 4 1
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