Completed
Push — master ( b2fd5a...6e38be )
by Freek
21:32 queued 12:34
created

Sqlite   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A dropAllTables() 0 10 2
1
<?php
2
3
namespace Spatie\MigrateFresh\TableDroppers;
4
5
use Illuminate\Support\Facades\DB;
6
7
class Sqlite implements TableDropper
8
{
9
    public function dropAllTables()
10
    {
11
        $dbPath = DB::getConfig('database');
12
13
        if (file_exists($dbPath)) {
14
            unlink($dbPath);
15
        }
16
17
        touch($dbPath);
18
    }
19
}
20