@@ 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>"); |
@@ 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>"); |