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

Migrate_5_1_0::run()   A

Complexity

Conditions 4
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

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