Passed
Push — master ( 182321...cca21a )
by Eric
07:14 queued 06:25
created
src/Interface/StorageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,5 +46,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Interface/ConfigurationInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Counter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Storage/FlatfileStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Configuration/FlatfileConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.