Migrate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A migrate() 0 5 1
1
<?php
2
3
namespace Acacha\Llum\Traits;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
/**
8
 * Class Migrate.
9
 *
10
 * @property OutputInterface $output
11
 */
12
trait Migrate
13
{
14
    /**
15
     * Migrate database with php artisan migrate.
16
     */
17
    protected function migrate()
18
    {
19
        $this->output->writeln('<info>Running php artisan migrate...</info>');
20
        passthru('php artisan migrate');
21
    }
22
}
23