Code Duplication    Length = 5-5 lines in 2 locations

src/Command/Compare.php 1 location

@@ 57-61 (lines=5) @@
54
            return Command::FAILURE;
55
        }
56
57
        if ($size ** 2 > PHP_INT_SIZE * 8 && ! function_exists('gmp_init')) {
58
            $output->writeln("<error>Sampling size too large: reduce it or install PHP-GMP extension</error>");
59
60
            return Command::FAILURE;
61
        }
62
63
        if (! in_array($input->getOption('format'), ['percent', 'ratio', 'float', 'integer', 'int'])) {
64
            $output->writeln("<error>Invalid format</error>");

src/Command/Generate.php 1 location

@@ 49-53 (lines=5) @@
46
            return Command::FAILURE;
47
        }
48
49
        if ($size ** 2 > PHP_INT_SIZE * 8 && ! function_exists('gmp_init')) {
50
            $output->writeln("<error>Sampling size too large: reduce it or install PHP-GMP extension</error>");
51
52
            return Command::FAILURE;
53
        }
54
55
        if (! in_array($input->getOption('format'), ['hex', 'bin', 'ascii'])) {
56
            $output->writeln("<error>Invalid format</error>");