Code Duplication    Length = 8-8 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 539-546 (lines=8) @@
536
        }
537
    }
538
539
    public function columnExists()
540
    {
541
        foreach ($this->columns as $column) {
542
            list($tableName, $columnName) = explode('.', $column);
543
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
544
            $this->I->assertTrue($exists, 'カラムがあるはず '.$column);
545
        }
546
    }
547
548
    public function columnNotExists()
549
    {
@@ 548-555 (lines=8) @@
545
        }
546
    }
547
548
    public function columnNotExists()
549
    {
550
        foreach ($this->columns as $column) {
551
            list($tableName, $columnName) = explode('.', $column);
552
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
553
            $this->I->assertFalse($exists, 'カラムがないはず '.$column);
554
        }
555
    }
556
557
    public function traitExists()
558
    {