Passed
Push — main ( ddf3a0...f0c061 )
by Eric
08:10
created
src/ConsistentHash.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      * @param null|HasherInterface $hasher
78 78
      * @param null|int             $replicas Amount of positions to hash each target to.
79 79
      */
80
-    public function __construct(null|HasherInterface $hasher = null, null|int $replicas = null)
80
+    public function __construct(null | HasherInterface $hasher = null, null | int $replicas = null)
81 81
     {
82 82
         $this->hasher = $hasher ?? new Crc32Hasher();
83 83
 
Please login to merge, or discard this patch.
tests/Hasher/MockHasher.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@
 block discarded – undo
23 23
  */
24 24
 class MockHasher implements HasherInterface
25 25
 {
26
-    public function __construct(private int $hashValue) {}
26
+    public function __construct(private int $hashValue)
27
+    {
28
+}
27 29
 
28 30
     public function hash(string $string): int
29 31
     {
Please login to merge, or discard this patch.
tests/BenchmarkTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@
 block discarded – undo
279 279
     /**
280 280
      * @param array<int> $values list of numeric values
281 281
      */
282
-    private function median(array $values): float|int
282
+    private function median(array $values): float | int
283 283
     {
284 284
         $values = array_values($values);
285 285
         sort($values);
Please login to merge, or discard this patch.