Completed
Push — master ( a2f733...ac0d68 )
by Oliver
12:22
created
src/Console/ShareCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Random/PhpGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function __construct($max = PHP_INT_MAX, $min = 1)
35 35
     {
36
-        if((int)$min < 1) {
36
+        if ((int)$min < 1) {
37 37
             throw new \OutOfRangeException('The min number must be a positive integer.');
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Random/OpenSslGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function __construct($bytes = PHP_INT_SIZE, $forceStrong = true)
37 37
     {
38
-        if((int)$bytes < 1) {
38
+        if ((int)$bytes < 1) {
39 39
             throw new \OutOfRangeException('The length of the desired string of bytes. Must be a positive integer.');
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Algorithm/Shamir.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * Calculate modulo of any given number using prime
194 194
      *
195 195
      * @param  int     Number
196
-     * @return int     Module of number
196
+     * @return string     Module of number
197 197
      */
198 198
     protected function modulo($number)
199 199
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      * Calculates the inverse modulo
227 227
      *
228 228
      * @param  int  $number
229
-     * @return int
229
+     * @return string
230 230
      */
231 231
     protected function inverseModulo($number)
232 232
     {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      *
243 243
      * @param  array  $keyX
244 244
      * @param  int    $threshold
245
-     * @return array
245
+     * @return string
246 246
      * @throws RuntimeException
247 247
      */
248 248
     protected function reverseCoefficients(array $keyX, $threshold): array
Please login to merge, or discard this patch.