@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | if ($file !== null) { |
| 73 | 73 | # check for secret in file |
| 74 | 74 | if (!is_readable($file)) { |
| 75 | - $output->writeln('<error>ERROR: file "' . $file . '" is not readable.'); |
|
| 75 | + $output->writeln('<error>ERROR: file "'.$file.'" is not readable.'); |
|
| 76 | 76 | exit(1); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | '<question>Number of shared secrets to create</question> <comment>[3]</comment>: ', 3 |
| 96 | 96 | ); |
| 97 | 97 | $question->setValidator( |
| 98 | - static function ($a) { |
|
| 98 | + static function($a) { |
|
| 99 | 99 | if (!is_int($a) && !ctype_digit($a)) { |
| 100 | 100 | throw new UnexpectedValueException('The number of shared secrets must be an integer'); |
| 101 | 101 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | '<question>Number of shared secrets required</question> <comment>[2]</comment>: ', 2 |
| 110 | 110 | ); |
| 111 | 111 | $question->setValidator( |
| 112 | - function ($a) { |
|
| 112 | + function($a) { |
|
| 113 | 113 | if (!is_int($a) && !ctype_digit($a)) { |
| 114 | 114 | throw new UnexpectedValueException('The number of shared secrets required must be an integer'); |
| 115 | 115 | } |
@@ -241,7 +241,7 @@ |
||
| 241 | 241 | * |
| 242 | 242 | * @param array $keyX |
| 243 | 243 | * @param int $threshold |
| 244 | - * @return array |
|
| 244 | + * @return string |
|
| 245 | 245 | * @throws RuntimeException |
| 246 | 246 | */ |
| 247 | 247 | protected function reverseCoefficients(array $keyX, int $threshold): array |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function __construct(int $bytes = PHP_INT_SIZE, bool $forceStrong = true) |
| 38 | 38 | { |
| 39 | - if($bytes < 1) { |
|
| 39 | + if ($bytes < 1) { |
|
| 40 | 40 | throw new OutOfRangeException('The length of the desired string of bytes. Must be a positive integer.'); |
| 41 | 41 | } |
| 42 | 42 | |