@@ -27,11 +27,11 @@ |
||
27 | 27 | parent::__construct($pdo, $debug); |
28 | 28 | } |
29 | 29 | |
30 | - /** |
|
31 | - * Create SQL tables that Shieldon needs. |
|
32 | - * |
|
33 | - * @return bool |
|
34 | - */ |
|
30 | + /** |
|
31 | + * Create SQL tables that Shieldon needs. |
|
32 | + * |
|
33 | + * @return bool |
|
34 | + */ |
|
35 | 35 | protected function installSql(): bool |
36 | 36 | { |
37 | 37 | try { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $ip = $ipData[0]; |
258 | 258 | $cidr = (int) $ipData[1] ?? 32; |
259 | 259 | |
260 | - $result[0] = long2ip((ip2long($ip)) & ((-1 << (32 - $cidr)))); |
|
260 | + $result[0] = long2ip((ip2long($ip)) & ((-1 << (32 - $cidr)))); |
|
261 | 261 | $result[1] = long2ip((ip2long($ip)) + pow(2, (32 - $cidr)) - 1); |
262 | 262 | |
263 | 263 | if ($isDecimal) { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | $result[1] = ip2long($result[1]); |
266 | 266 | } |
267 | 267 | |
268 | - return $result; |
|
268 | + return $result; |
|
269 | 269 | } |
270 | 270 | |
271 | 271 | /** |
@@ -96,7 +96,7 @@ |
||
96 | 96 | return $this->{$method}($ip); |
97 | 97 | } |
98 | 98 | |
99 | - /** |
|
99 | + /** |
|
100 | 100 | * {@inheritDoc} |
101 | 101 | */ |
102 | 102 | protected function doFetchAll(string $type = 'filter'): array |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | trait SessionTrait |
24 | 24 | { |
25 | - /** |
|
25 | + /** |
|
26 | 26 | * Are you willing to limit the online session amount? |
27 | 27 | * |
28 | 28 | * @var array |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | // If the class doesn't exist. |
52 | 52 | if (!file_exists(__DIR__ . '/' . self::getCamelCase($type) . '.php')) { |
53 | - // return false; |
|
53 | + // return false; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | return true; |