Code Duplication    Length = 14-16 lines in 2 locations

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

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