@@ -46,5 +46,5 @@ |
||
46 | 46 | /** |
47 | 47 | * Returns the given option, if it exists. |
48 | 48 | */ |
49 | - public function getOption(string $option): null|bool|string; |
|
49 | + public function getOption(string $option): null | bool | string; |
|
50 | 50 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * Returns the given option, if it exists. |
36 | 36 | */ |
37 | - public static function getOption(string $option): null|bool|string; |
|
37 | + public static function getOption(string $option): null | bool | string; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Takes an array of options to be used in the chosen Storage implementation. |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Returns the given option, if it exists. |
65 | 65 | */ |
66 | - public function getOption(string $option): null|bool|string |
|
66 | + public function getOption(string $option): null | bool | string |
|
67 | 67 | { |
68 | 68 | return $this->storage->getOption($option); |
69 | 69 | } |
@@ -32,7 +32,9 @@ |
||
32 | 32 | * $storage should be one of the available Storage implementations that has already |
33 | 33 | * been instantiated with their relevant Configuration. |
34 | 34 | */ |
35 | - public function __construct(private StorageInterface $storage) {} |
|
35 | + public function __construct(private StorageInterface $storage) |
|
36 | + { |
|
37 | +} |
|
36 | 38 | |
37 | 39 | /** |
38 | 40 | * Updates count and formats for display, for the given Storage implementation. |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return array_values(array_filter($currentIpData->ipList, static fn (string $value): bool => (trim($value) !== ''))); |
93 | 93 | } |
94 | 94 | |
95 | - public function getOption(string $option): null|bool|string |
|
95 | + public function getOption(string $option): null | bool | string |
|
96 | 96 | { |
97 | 97 | return $this->configuration::getOption($option); |
98 | 98 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @throws RuntimeException If the file cannot be opened or if a lock is unable to be acquired. |
104 | 104 | */ |
105 | - private function readWrite(string $file, ?string $data = null): false|int|string |
|
105 | + private function readWrite(string $file, ?string $data = null): false | int | string |
|
106 | 106 | { |
107 | 107 | /** @var string $logDir */ |
108 | 108 | $logDir = $this->configuration::getOption('logDir'); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ->setAllowedValues('visitorTextString', static fn (string $value): bool => Strings::doesContain($value, '%s')) |
88 | 88 | ->setNormalizer('logDir', static fn (Options $options, string $value): string => rtrim($value, '/\\')) |
89 | 89 | ->setNormalizer('imageDir', static fn (Options $options, string $value): string => rtrim($value, '/\\')) |
90 | - ->setNormalizer('imageExt', static function (Options $options, string $value): string { |
|
90 | + ->setNormalizer('imageExt', static function(Options $options, string $value): string { |
|
91 | 91 | if (!Strings::beginsWith($value, '.')) { |
92 | 92 | $value = '.' . $value; |
93 | 93 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | }); |
97 | 97 | } |
98 | 98 | |
99 | - public static function getOption(string $option): null|bool|string |
|
99 | + public static function getOption(string $option): null | bool | string |
|
100 | 100 | { |
101 | 101 | return self::$options[$option] ?? null; |
102 | 102 | } |