Code Duplication    Length = 6-6 lines in 2 locations

source/FKchange.php 2 locations

@@ 286-291 (lines=6) @@
283
    private function setColumnDefinitionAditional($nullableYesNo, $defaultValue = '', $extra = '')
284
    {
285
        switch ($nullableYesNo) {
286
            case 'NO':
287
                $columnDefAdtnl = 'NOT NULL DEFAULT "' . $defaultValue . '"';
288
                if (is_null($defaultValue)) {
289
                    $columnDefAdtnl = 'NOT NULL';
290
                }
291
                break;
292
            case 'YES':
293
                $columnDefAdtnl = 'DEFAULT "' . $defaultValue . '"';
294
                if (is_null($defaultValue)) {
@@ 292-297 (lines=6) @@
289
                    $columnDefAdtnl = 'NOT NULL';
290
                }
291
                break;
292
            case 'YES':
293
                $columnDefAdtnl = 'DEFAULT "' . $defaultValue . '"';
294
                if (is_null($defaultValue)) {
295
                    $columnDefAdtnl = 'DEFAULT NULL';
296
                }
297
                break;
298
        }
299
        return $columnDefAdtnl
300
                . (($extra == 'auto_increment') ? ' AUTO_INCREMENT' : '');