@@ -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 |
@@ -35,14 +35,14 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | trait ConfigMethodsTrait |
| 37 | 37 | { |
| 38 | - /** |
|
| 39 | - * Parse the POST fields and set them into configuration data structure. |
|
| 40 | - * Used for saveConfig method only. |
|
| 41 | - * |
|
| 42 | - * @param array $postParams |
|
| 43 | - * |
|
| 44 | - * @return void |
|
| 45 | - */ |
|
| 38 | + /** |
|
| 39 | + * Parse the POST fields and set them into configuration data structure. |
|
| 40 | + * Used for saveConfig method only. |
|
| 41 | + * |
|
| 42 | + * @param array $postParams |
|
| 43 | + * |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 46 | 46 | protected function saveConfigPrepareSettings(array $postParams): void |
| 47 | 47 | { |
| 48 | 48 | foreach ($postParams as $postKey => $postData) { |
@@ -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 |
@@ -224,13 +224,13 @@ |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * Get data from log file. |
|
| 228 | - * |
|
| 229 | - * @param string $fromYmd The string in Ymd Date format. |
|
| 230 | - * @param string $toYmd The end date. |
|
| 231 | - * |
|
| 232 | - * @return array |
|
| 233 | - */ |
|
| 227 | + * Get data from log file. |
|
| 228 | + * |
|
| 229 | + * @param string $fromYmd The string in Ymd Date format. |
|
| 230 | + * @param string $toYmd The end date. |
|
| 231 | + * |
|
| 232 | + * @return array |
|
| 233 | + */ |
|
| 234 | 234 | private function getDataFromSingleDate(string $fromYmd = '', string $toYmd = ''): array |
| 235 | 235 | { |
| 236 | 236 | $results = []; |
@@ -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; |