@@ -105,10 +105,10 @@ discard block |
||
105 | 105 | do { |
106 | 106 | $num = hexdec( |
107 | 107 | bin2hex(openssl_random_pseudo_bytes($bytes, $secure)) |
108 | - ) % $bits_max; |
|
108 | + ) % $bits_max; |
|
109 | 109 | if ($secure === false) { |
110 | 110 | throw new TwLibException( |
111 | - 'Non secure value generated. This is a system issue' |
|
111 | + 'Non secure value generated. This is a system issue' |
|
112 | 112 | ); |
113 | 113 | } |
114 | 114 | if ($num >= $range) { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $string = bin2hex(openssl_random_pseudo_bytes($length, $secure)); |
149 | 149 | if ($secure === false) { |
150 | 150 | throw new TwLibException( |
151 | - 'Non secure string generated. This is a system issue' |
|
151 | + 'Non secure string generated. This is a system issue' |
|
152 | 152 | ); |
153 | 153 | } |
154 | 154 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | public function offsetSet($offset, $value) |
75 | 75 | { |
76 | 76 | throw new TwLibException( |
77 | - 'Do not set stack references with the array operator' |
|
77 | + 'Do not set stack references with the array operator' |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -54,12 +54,12 @@ discard block |
||
54 | 54 | if (is_array($needles)) { |
55 | 55 | foreach ((array)$needles as $needle) { |
56 | 56 | if (($temp = strlen($haystack) - strlen( |
57 | - $needle |
|
57 | + $needle |
|
58 | 58 | )) >= 0 && strpos( |
59 | 59 | $haystack, |
60 | 60 | $needle, |
61 | 61 | $temp |
62 | - ) !== false |
|
62 | + ) !== false |
|
63 | 63 | ) { |
64 | 64 | return $needle; |
65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $haystack, |
70 | 70 | $needles, |
71 | 71 | $temp |
72 | - ) !== false |
|
72 | + ) !== false |
|
73 | 73 | ) { |
74 | 74 | return true; |
75 | 75 | } |