Code Duplication    Length = 8-8 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 322-329 (lines=8) @@
319
        }
320
    }
321
322
    protected function columnExists()
323
    {
324
        if ($this->column) {
325
            list($tableName, $columnName) = explode('.', $this->column);
326
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
327
            $this->I->assertTrue($exists, 'カラムがあるはず');
328
        }
329
    }
330
331
    protected function columnNotExists()
332
    {
@@ 331-338 (lines=8) @@
328
        }
329
    }
330
331
    protected function columnNotExists()
332
    {
333
        if ($this->column) {
334
            list($tableName, $columnName) = explode('.', $this->column);
335
            $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1;
336
            $this->I->assertFalse($exists, 'カラムがないはず');
337
        }
338
    }
339
340
    public function 新しいタブで開く()
341
    {