PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.2.90
WindPress – Tailwind CSS integration for WordPress v3.2.90
3.2.90 3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 All 144 releases
← All changes | vendor/hidehalo/nanoid-php/src/Core.php +4 -4 3.0.163.2.90 View file →
@@ -9,11 +9,11 @@
9 9 * @see https://github.com/ai/nanoid/blob/master/async/index.browser.js#L4
10 10 */
11 11 public function random(GeneratorInterface $generator, $size, $alphabet = CoreInterface::SAFE_SYMBOLS)
12 12 {
13 - $len = \strlen($alphabet);
14 - $mask = (2 << (int) (\log($len - 1) / \M_LN2)) - 1;
15 - $step = (int) \ceil(1.6 * $mask * $size / $len);
13 + $len = strlen($alphabet);
14 + $mask = (2 << (int) (log($len - 1) / \M_LN2)) - 1;
15 + $step = (int) ceil(1.6 * $mask * $size / $len);
16 16 $id = '';
17 17 while (\true) {
18 18 $bytes = $generator->random($step);
19 19 // NOTE: `$bytes` maybe not a normal "Array"
@@ -21,9 +21,9 @@
21 21 foreach ($bytes as $byte) {
22 22 $byte &= $mask;
23 23 if (isset($alphabet[$byte])) {
24 24 $id .= $alphabet[$byte];
25 - if (\strlen($id) === $size) {
25 + if (strlen($id) === $size) {
26 26 return $id;
27 27 }
28 28 }
29 29 }