Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Command/PluginCommand/EntityFromDbGenerator.php 2 locations

@@ 404-407 (lines=4) @@
401
                        'default' => $defaultValue
402
                    );
403
                }
404
                if ($type == 'decimal') {
405
                    $tmp['precision'] = $column->getPrecision();
406
                    $tmp['scale'] = $column->getScale();
407
                }
408
                $fields[$colName] = $tmp;
409
            }
410
        }
@@ 546-549 (lines=4) @@
543
                    $param['length'] = '\'' . $column->getLength() . '\'';
544
                }
545
546
                if ($typeName == 'decimal') {
547
                    $param['precision'] = $column->getPrecision();
548
                    $param['scale'] = $column->getScale();
549
                }
550
                foreach ($param as $parKey => $parVal) {
551
                    $tmp[] = '            \'' . $parKey . '\' => ' . $parVal . ',';
552
                }