Code Duplication    Length = 14-16 lines in 2 locations

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

@@ 1102-1117 (lines=16) @@
1099
     * @param string $tableName Table name
1100
     * @return array
1101
     */
1102
    public function describeTable($tableName)
1103
    {
1104
        $options = $this->getOptions();
1105
1106
        // mysql specific
1107
        $sql = sprintf(
1108
            "SELECT *
1109
             FROM information_schema.tables
1110
             WHERE table_schema = '%s'
1111
             AND table_name = '%s'",
1112
            $options['name'],
1113
            $tableName
1114
        );
1115
1116
        return $this->fetchRow($sql);
1117
    }
1118
1119
    /**
1120
     * 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}