Code Duplication    Length = 8-8 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 519-526 (lines=8) @@
516
        }
517
    }
518
519
    public function columnExists()
520
    {
521
        foreach ($this->columns as $column) {
522
            list($tableName, $columnName) = explode('.', $column);
523
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
524
            $this->I->assertTrue($exists, 'カラムがあるはず '.$column);
525
        }
526
    }
527
528
    public function columnNotExists()
529
    {
@@ 528-535 (lines=8) @@
525
        }
526
    }
527
528
    public function columnNotExists()
529
    {
530
        foreach ($this->columns as $column) {
531
            list($tableName, $columnName) = explode('.', $column);
532
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
533
            $this->I->assertFalse($exists, 'カラムがないはず '.$column);
534
        }
535
    }
536
537
    public function traitExists()
538
    {