Blueprint   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A enablePostgis() 0 3 1
A disablePostgis() 0 3 1
1
<?php
2
3
namespace LaravelSpatial\Schema;
4
5
use Illuminate\Database\Schema\Blueprint as BaseBlueprint;
6
7
/**
8
 * Class Blueprint
9
 * @package LaravelSpatial\Schema
10
 */
11
class Blueprint extends BaseBlueprint
12
{
13
    /**
14
     * Enable postgis on this database.
15
     * Will create the extension in the database.
16
     *
17
     * @return \Illuminate\Support\Fluent
18
     */
19 2
    public function enablePostgis()
20
    {
21 2
        return $this->addCommand('enablePostgis');
22
    }
23
24
    /**
25
     * Disable postgis on this database.
26
     * WIll drop the extension in the database.
27
     *
28
     * @return \Illuminate\Support\Fluent
29
     */
30 2
    public function disablePostgis()
31
    {
32 2
        return $this->addCommand('disablePostgis');
33
    }
34
}
35