Code Duplication    Length = 14-16 lines in 2 locations

src/Phinx/Db/Adapter/MysqlAdapter.php 2 locations

@@ 1097-1112 (lines=16) @@
1094
     * @param string $tableName Table name
1095
     * @return array
1096
     */
1097
    public function describeTable($tableName)
1098
    {
1099
        $options = $this->getOptions();
1100
1101
        // mysql specific
1102
        $sql = sprintf(
1103
            "SELECT *
1104
             FROM information_schema.tables
1105
             WHERE table_schema = '%s'
1106
             AND table_name = '%s'",
1107
            $options['name'],
1108
            $tableName
1109
        );
1110
1111
        return $this->fetchRow($sql);
1112
    }
1113
1114
    /**
1115
     * Returns MySQL column types (inherited and MySQL specified).
@@ 190-203 (lines=14) @@
187
    /**
188
     * {@inheritdoc}
189
     */
190
    public function hasTable($tableName)
191
    {
192
        $options = $this->getOptions();
193
194
        $exists = $this->fetchRow(sprintf(
195
            "SELECT TABLE_NAME
196
            FROM INFORMATION_SCHEMA.TABLES
197
            WHERE TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s'",
198
            $options['name'],
199
            $tableName
200
        ));
201
202
        return !empty($exists);
203
    }
204
205
    /**
206
     * {@inheritdoc}