Completed
Push — master ( 1466a5...68742c )
by Lars
02:12
created
src/Collection/CollectionInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -50,6 +50,7 @@
 block discarded – undo
50 50
      * Merge current items and items of given collections into a new one.
51 51
      *
52 52
      * @param CollectionInterface ...$collections The collections to merge.
53
+     * @param CollectionInterface[] $collections
53 54
      *
54 55
      * @throws \InvalidArgumentException if any of the given collections are not of the same type
55 56
      *
Please login to merge, or discard this patch.
src/Create.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             /**
30 30
              * @param array<mixed> $array
31 31
              *
32
-             * @return int|string|null
32
+             * @return integer|null
33 33
              */
34 34
             function array_key_first(array $array)
35 35
             {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             /**
46 46
              * @param array<mixed> $array
47 47
              *
48
-             * @return int|string|null
48
+             * @return null|integer
49 49
              */
50 50
             function array_key_last(array $array)
51 51
             {
Please login to merge, or discard this patch.
src/Arrayy.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1565,7 +1565,7 @@  discard block
 block discarded – undo
1565 1565
      *
1566 1566
      * @param float|int|string $low  <p>First value of the sequence.</p>
1567 1567
      * @param float|int|string $high <p>The sequence is ended upon reaching the end value.</p>
1568
-     * @param float|int        $step <p>Used as the increment between elements in the sequence.</p>
1568
+     * @param integer        $step <p>Used as the increment between elements in the sequence.</p>
1569 1569
      *
1570 1570
      * @return static
1571 1571
      *                <p>(Immutable) Returns an new instance of the Arrayy object.</p>
@@ -2162,7 +2162,7 @@  discard block
 block discarded – undo
2162 2162
     /**
2163 2163
      * Get the first key from the current array.
2164 2164
      *
2165
-     * @return mixed
2165
+     * @return integer|null
2166 2166
      *               <p>Return null if there wasn't a element.</p>
2167 2167
      * @psalm-mutation-free
2168 2168
      */
@@ -3230,7 +3230,7 @@  discard block
 block discarded – undo
3230 3230
     /**
3231 3231
      * Get the last key from the current array.
3232 3232
      *
3233
-     * @return mixed|null
3233
+     * @return null|integer
3234 3234
      *                    <p>Return null if there wasn't a element.</p>
3235 3235
      * @psalm-mutation-free
3236 3236
      */
@@ -3622,7 +3622,7 @@  discard block
 block discarded – undo
3622 3622
     /**
3623 3623
      * Get the most used value from the array.
3624 3624
      *
3625
-     * @return mixed|null
3625
+     * @return integer|null
3626 3626
      *                    <p>(Immutable) Return null if there wasn't a element.</p>
3627 3627
      * @psalm-mutation-free
3628 3628
      */
@@ -5874,7 +5874,7 @@  discard block
 block discarded – undo
5874 5874
     }
5875 5875
 
5876 5876
     /**
5877
-     * @param mixed      $path
5877
+     * @param string      $path
5878 5878
      * @param callable   $callable
5879 5879
      * @param array|null $currentOffset
5880 5880
      *
@@ -6065,7 +6065,7 @@  discard block
 block discarded – undo
6065 6065
     }
6066 6066
 
6067 6067
     /**
6068
-     * @param mixed $glue
6068
+     * @param string $glue
6069 6069
      * @param mixed $pieces
6070 6070
      * @param bool  $useKeys
6071 6071
      *
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1267,11 +1267,11 @@  discard block
 block discarded – undo
1267 1267
             \array_intersect($needles, $this->keys()->toArray()),
1268 1268
             \COUNT_NORMAL
1269 1269
         )
1270
-               ===
1271
-               \count(
1272
-                   $needles,
1273
-                   \COUNT_NORMAL
1274
-               );
1270
+                ===
1271
+                \count(
1272
+                    $needles,
1273
+                    \COUNT_NORMAL
1274
+                );
1275 1275
     }
1276 1276
 
1277 1277
     /**
@@ -1334,8 +1334,8 @@  discard block
 block discarded – undo
1334 1334
     public function containsValues(array $needles): bool
1335 1335
     {
1336 1336
         return \count(\array_intersect($needles, $this->toArray()), \COUNT_NORMAL)
1337
-               ===
1338
-               \count($needles, \COUNT_NORMAL);
1337
+                ===
1338
+                \count($needles, \COUNT_NORMAL);
1339 1339
     }
1340 1340
 
1341 1341
     /**
@@ -3024,15 +3024,15 @@  discard block
 block discarded – undo
3024 3024
 
3025 3025
         if ($recursive === true) {
3026 3026
             return $this->array_keys_recursive($this->toArray())
3027
-                   ===
3028
-                   \range(0, \count($this->toArray(), \COUNT_RECURSIVE) - 1);
3027
+                    ===
3028
+                    \range(0, \count($this->toArray(), \COUNT_RECURSIVE) - 1);
3029 3029
         }
3030 3030
 
3031 3031
         // non recursive
3032 3032
 
3033 3033
         return \array_keys($this->toArray())
3034
-               ===
3035
-               \range(0, \count($this->toArray(), \COUNT_NORMAL) - 1);
3034
+                ===
3035
+                \range(0, \count($this->toArray(), \COUNT_NORMAL) - 1);
3036 3036
     }
3037 3037
 
3038 3038
     /**
Please login to merge, or discard this patch.
src/TypeCheck/AbstractTypeCheck.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -82,32 +82,32 @@
 block discarded – undo
82 82
                \gettype($value) === (self::$typeMapping[$type] ?? $type)
83 83
                ||
84 84
                (
85
-                   $type === 'scalar'
85
+                    $type === 'scalar'
86 86
                     &&
87 87
                     \is_scalar($value)
88
-               )
88
+                )
89 89
                ||
90 90
                (
91
-                   $type === 'callable'
91
+                    $type === 'callable'
92 92
                    &&
93 93
                    \is_callable($value)
94
-               )
94
+                )
95 95
                ||
96 96
                (
97
-                   $type === 'numeric'
97
+                    $type === 'numeric'
98 98
                    &&
99 99
                    (
100
-                       \is_float($value)
100
+                        \is_float($value)
101 101
                        ||
102 102
                        \is_int($value)
103
-                   )
104
-               )
103
+                    )
104
+                )
105 105
                ||
106 106
                (
107
-                   $type === 'resource'
107
+                    $type === 'resource'
108 108
                    &&
109 109
                    \is_resource($value)
110
-               );
110
+                );
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.