Code Duplication    Length = 9-9 lines in 4 locations

lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 4 locations

@@ 216-224 (lines=9) @@
213
    /**
214
     * {@inheritDoc}
215
     */
216
    public function getBigIntTypeDeclarationSQL(array $field)
217
    {
218
        //  SQLite autoincrement is implicit for INTEGER PKs, but not for BIGINT fields.
219
        if ( ! empty($field['autoincrement'])) {
220
            return $this->getIntegerTypeDeclarationSQL($field);
221
        }
222
223
        return 'BIGINT' . $this->_getCommonIntegerTypeDeclarationSQL($field);
224
    }
225
226
    /**
227
     * {@inheritDoc}
@@ 229-237 (lines=9) @@
226
    /**
227
     * {@inheritDoc}
228
     */
229
    public function getTinyIntTypeDeclarationSql(array $field)
230
    {
231
        //  SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields.
232
        if ( ! empty($field['autoincrement'])) {
233
            return $this->getIntegerTypeDeclarationSQL($field);
234
        }
235
236
        return 'TINYINT' . $this->_getCommonIntegerTypeDeclarationSQL($field);
237
    }
238
239
    /**
240
     * {@inheritDoc}
@@ 242-250 (lines=9) @@
239
    /**
240
     * {@inheritDoc}
241
     */
242
    public function getSmallIntTypeDeclarationSQL(array $field)
243
    {
244
        //  SQLite autoincrement is implicit for INTEGER PKs, but not for SMALLINT fields.
245
        if ( ! empty($field['autoincrement'])) {
246
            return $this->getIntegerTypeDeclarationSQL($field);
247
        }
248
249
        return 'SMALLINT' . $this->_getCommonIntegerTypeDeclarationSQL($field);
250
    }
251
252
    /**
253
     * {@inheritDoc}
@@ 255-263 (lines=9) @@
252
    /**
253
     * {@inheritDoc}
254
     */
255
    public function getMediumIntTypeDeclarationSql(array $field)
256
    {
257
        //  SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields.
258
        if ( ! empty($field['autoincrement'])) {
259
            return $this->getIntegerTypeDeclarationSQL($field);
260
        }
261
262
        return 'MEDIUMINT' . $this->_getCommonIntegerTypeDeclarationSQL($field);
263
    }
264
265
    /**
266
     * {@inheritDoc}