Completed
Push — master ( ca0d27...0f1f60 )
by P.I.E. Security
01:25
created
other/ide_stubs/libsodium.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
          * Generate a 16-bit integer
27 27
          * /dev/urandom
28 28
          *
29
-         * @return int
29
+         * @return string
30 30
          */
31 31
         function randombytes_random16()
32 32
         {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
          * Generate a 16-bit integer
69 69
          * /dev/urandom
70 70
          *
71
-         * @return int
71
+         * @return string
72 72
          */
73 73
         public static function randombytes_random16()
74 74
         {
Please login to merge, or discard this patch.
lib/random.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
          * We don't have any more options, so let's throw an exception right now
203 203
          * and hope the developer won't let it fail silently.
204 204
          *
205
-         * @param mixed $length
205
+         * @param integer $length
206 206
          * @psalm-suppress InvalidReturnType
207 207
          * @throws Exception
208 208
          * @return string
Please login to merge, or discard this patch.
lib/byte_safe_strings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
                 }
181 181
 
182 182
                 return (string) substr(
183
-                    (string )$binary_string,
183
+                    (string) $binary_string,
184 184
                     (int) $start,
185 185
                     (int) $length
186 186
                 );
Please login to merge, or discard this patch.
lib/random_bytes_dev_urandom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             if (DIRECTORY_SEPARATOR === '/') {
68 68
                 if (!is_readable('/dev/urandom')) {
69 69
                     throw new Exception(
70
-                        'Environment misconfiguration: ' .
70
+                        'Environment misconfiguration: '.
71 71
                         '/dev/urandom cannot be read.'
72 72
                     );
73 73
                 }
Please login to merge, or discard this patch.
psalm-autoload.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/lib/byte_safe_strings.php';
4
-require_once __DIR__ . '/lib/cast_to_int.php';
5
-require_once __DIR__ . '/lib/error_polyfill.php';
6
-require_once __DIR__ . '/other/ide_stubs/libsodium.php';
7
-require_once __DIR__ . '/lib/random.php';
3
+require_once __DIR__.'/lib/byte_safe_strings.php';
4
+require_once __DIR__.'/lib/cast_to_int.php';
5
+require_once __DIR__.'/lib/error_polyfill.php';
6
+require_once __DIR__.'/other/ide_stubs/libsodium.php';
7
+require_once __DIR__.'/lib/random.php';
8 8
 
9 9
 $int = random_int(0, 65536);
Please login to merge, or discard this patch.
phpunit-autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/psalm-autoload.php';
3
+require_once __DIR__.'/psalm-autoload.php';
4 4
 
5 5
 /**
6 6
  * This is necessary for PHPUnit on PHP >= 5.3
@@ -9,6 +9,6 @@  discard block
 block discarded – undo
9 9
  */
10 10
 if (PHP_VERSION_ID >= 50300) {
11 11
     if (!class_exists('PHPUnit_Framework_TestCase')) {
12
-        require_once __DIR__ . '/other/phpunit-shim.php';
12
+        require_once __DIR__.'/other/phpunit-shim.php';
13 13
     }
14 14
 }
Please login to merge, or discard this patch.