@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | '<question>Number of shared secrets to create</question> <comment>[3]</comment>: ', 3 |
| 63 | 63 | ); |
| 64 | 64 | $question->setValidator( |
| 65 | - static function ($a) { |
|
| 65 | + static function($a) { |
|
| 66 | 66 | if (!is_int($a) && !ctype_digit($a)) { |
| 67 | 67 | throw new UnexpectedValueException('The number of shared secrets must be an integer'); |
| 68 | 68 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | '<question>Number of shared secrets required</question> <comment>[2]</comment>: ', 2 |
| 77 | 77 | ); |
| 78 | 78 | $question->setValidator( |
| 79 | - function ($a) { |
|
| 79 | + function($a) { |
|
| 80 | 80 | if (!is_int($a) && !ctype_digit($a)) { |
| 81 | 81 | throw new UnexpectedValueException('The number of shared secrets required must be an integer'); |
| 82 | 82 | } |
@@ -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 | |