@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * @var string|bool |
143 | 143 | */ |
144 | - $buf = $buf . $read; |
|
144 | + $buf = $buf.$read; |
|
145 | 145 | } while ($remaining > 0); |
146 | 146 | |
147 | 147 | /** |
@@ -184,6 +184,6 @@ |
||
184 | 184 | */ |
185 | 185 | } while (!is_int($val) || $val > $max || $val < $min); |
186 | 186 | |
187 | - return (int)$val; |
|
187 | + return (int) $val; |
|
188 | 188 | } |
189 | 189 | } |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | |
55 | 55 | $RandomCompatDIR = dirname(__FILE__); |
56 | 56 | |
57 | -require_once $RandomCompatDIR . '/byte_safe_strings.php'; |
|
58 | -require_once $RandomCompatDIR . '/cast_to_int.php'; |
|
59 | -require_once $RandomCompatDIR . '/error_polyfill.php'; |
|
57 | +require_once $RandomCompatDIR.'/byte_safe_strings.php'; |
|
58 | +require_once $RandomCompatDIR.'/cast_to_int.php'; |
|
59 | +require_once $RandomCompatDIR.'/error_polyfill.php'; |
|
60 | 60 | |
61 | 61 | if (!is_callable('random_bytes')) { |
62 | 62 | /** |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | if (extension_loaded('libsodium')) { |
77 | 77 | // See random_bytes_libsodium.php |
78 | 78 | if (PHP_VERSION_ID >= 50300 && is_callable('\\Sodium\\randombytes_buf')) { |
79 | - require_once $RandomCompatDIR . '/random_bytes_libsodium.php'; |
|
79 | + require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; |
|
80 | 80 | } elseif (method_exists('Sodium', 'randombytes_buf')) { |
81 | - require_once $RandomCompatDIR . '/random_bytes_libsodium_legacy.php'; |
|
81 | + require_once $RandomCompatDIR.'/random_bytes_libsodium_legacy.php'; |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | // place, that is not helpful to us here. |
118 | 118 | |
119 | 119 | // See random_bytes_dev_urandom.php |
120 | - require_once $RandomCompatDIR . '/random_bytes_dev_urandom.php'; |
|
120 | + require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php'; |
|
121 | 121 | } |
122 | 122 | // Unset variables after use |
123 | 123 | $RandomCompat_basedir = null; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | extension_loaded('mcrypt') |
160 | 160 | ) { |
161 | 161 | // See random_bytes_mcrypt.php |
162 | - require_once $RandomCompatDIR . '/random_bytes_mcrypt.php'; |
|
162 | + require_once $RandomCompatDIR.'/random_bytes_mcrypt.php'; |
|
163 | 163 | } |
164 | 164 | $RandomCompatUrandom = null; |
165 | 165 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); |
185 | 185 | if (method_exists($RandomCompatCOMtest, 'GetRandom')) { |
186 | 186 | // See random_bytes_com_dotnet.php |
187 | - require_once $RandomCompatDIR . '/random_bytes_com_dotnet.php'; |
|
187 | + require_once $RandomCompatDIR.'/random_bytes_com_dotnet.php'; |
|
188 | 188 | } |
189 | 189 | } catch (com_exception $e) { |
190 | 190 | // Don't try to use it. |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | } |
218 | 218 | |
219 | 219 | if (!is_callable('random_int')) { |
220 | - require_once $RandomCompatDIR . '/random_int.php'; |
|
220 | + require_once $RandomCompatDIR.'/random_int.php'; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | $RandomCompatDIR = null; |