Migration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Core\Database;
4
5
use Core\Application;
6
use Illuminate\Database\Migrations\Migration as MigrationDatabase;
7
8
class Migration extends MigrationDatabase
9
{
10
    public $schema , $application;
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

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.

Loading history...
11
12
    public function __construct()
13
    {
14
        $this->application = new Application();
15
        $this->schema = $this->application->db->getSchemaBuilder();
16
    }
17
}
18