Code Duplication    Length = 9-9 lines in 4 locations

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

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