Passed
Push — master ( 3df3e6...fadf4c )
by Hennik
07:00
created

Blueprint::disablePostgis()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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