Passed
Push — master ( 7e7a3a...c54c1a )
by Paul
12:25 queued 05:17
created

Migrate_5_1_0   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
c 1
b 0
f 0
dl 0
loc 11
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 4
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Modules\Migrations;
4
5
use GeminiLabs\SiteReviews\Database\SqlSchema;
6
use GeminiLabs\SiteReviews\Modules\Console;
7
8
class Migrate_5_1_0
9
{
10
    /**
11
     * @return void
12
     */
13
    public function run()
14
    {
15
        if (!glsr(SqlSchema::class)->isInnodb('posts')
16
            || !glsr(SqlSchema::class)->isInnodb('terms')
17
            || !glsr(SqlSchema::class)->isInnodb('users')) {
18
            glsr(Console::class)->clear(); // clear all of the contraint errors
19
        }
20
    }
21
}
22