Code Duplication    Length = 6-6 lines in 2 locations

src/controllers/TypesController.php 2 locations

@@ 591-596 (lines=6) @@
588
589
                    return;
590
                }
591
                if ('' == $values || !is_numeric($values) || $values != (int) $values || $values < 1) {
592
                    $_REQUEST['stage'] = 1;
593
                    $this->doCreateEnum($this->lang['strtypeneedsvals']);
594
595
                    return;
596
                }
597
598
                $this->printTrail('schema');
599
                $this->printTitle($this->lang['strcreateenumtype'], 'pg.type.create');
@@ 639-644 (lines=6) @@
636
637
                    return;
638
                }
639
                if ('' == $values || !is_numeric($values) || $values != (int) $values || $values <= 0) {
640
                    $_REQUEST['stage'] = 1;
641
                    $this->doCreateEnum($this->lang['strtypeneedsvals']);
642
643
                    return;
644
                }
645
646
                $status = $data->createEnumType($_REQUEST['name'], $_REQUEST['value'], $_REQUEST['typcomment']);
647