@@ -2893,7 +2893,7 @@ discard block |
||
2893 | 2893 | /** |
2894 | 2894 | * Reduce the current array via callable e.g. anonymous-function. |
2895 | 2895 | * |
2896 | - * @param \callable $callable |
|
2896 | + * @param \Closure $callable |
|
2897 | 2897 | * @param array $init |
2898 | 2898 | * |
2899 | 2899 | * @return static |
@@ -3777,7 +3777,7 @@ discard block |
||
3777 | 3777 | /** |
3778 | 3778 | * Apply the given function to every element in the array, discarding the results. |
3779 | 3779 | * |
3780 | - * @param \callable $callable |
|
3780 | + * @param \Closure $callable |
|
3781 | 3781 | * @param bool $recursive <p>Whether array will be walked recursively or no</p> |
3782 | 3782 | * |
3783 | 3783 | * @return static |
@@ -3875,8 +3875,8 @@ discard block |
||
3875 | 3875 | } |
3876 | 3876 | |
3877 | 3877 | /** |
3878 | - * @param mixed $path |
|
3879 | - * @param \callable $callable |
|
3878 | + * @param string $path |
|
3879 | + * @param \Closure $callable |
|
3880 | 3880 | * @param array|null $currentOffset |
3881 | 3881 | */ |
3882 | 3882 | protected function callAtPath($path, $callable, &$currentOffset = null) |
@@ -4026,7 +4026,7 @@ discard block |
||
4026 | 4026 | } |
4027 | 4027 | |
4028 | 4028 | /** |
4029 | - * @param mixed $glue |
|
4029 | + * @param string $glue |
|
4030 | 4030 | * @param array|static|string $pieces |
4031 | 4031 | * @param bool $useKeys |
4032 | 4032 | * |
@@ -955,25 +955,25 @@ discard block |
||
955 | 955 | { |
956 | 956 | if ($recursive === true) { |
957 | 957 | return \count( |
958 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
959 | - \COUNT_RECURSIVE |
|
960 | - ) |
|
961 | - === |
|
962 | - \count( |
|
963 | - $needles, |
|
964 | - \COUNT_RECURSIVE |
|
965 | - ); |
|
958 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
959 | + \COUNT_RECURSIVE |
|
960 | + ) |
|
961 | + === |
|
962 | + \count( |
|
963 | + $needles, |
|
964 | + \COUNT_RECURSIVE |
|
965 | + ); |
|
966 | 966 | } |
967 | 967 | |
968 | 968 | return \count( |
969 | - \array_intersect($needles, $this->keys()->getArray()), |
|
970 | - \COUNT_NORMAL |
|
971 | - ) |
|
972 | - === |
|
973 | - \count( |
|
974 | - $needles, |
|
975 | - \COUNT_NORMAL |
|
976 | - ); |
|
969 | + \array_intersect($needles, $this->keys()->getArray()), |
|
970 | + \COUNT_NORMAL |
|
971 | + ) |
|
972 | + === |
|
973 | + \count( |
|
974 | + $needles, |
|
975 | + \COUNT_NORMAL |
|
976 | + ); |
|
977 | 977 | } |
978 | 978 | |
979 | 979 | /** |
@@ -1028,8 +1028,8 @@ discard block |
||
1028 | 1028 | public function containsValues(array $needles): bool |
1029 | 1029 | { |
1030 | 1030 | return \count(\array_intersect($needles, $this->getArray()), \COUNT_NORMAL) |
1031 | - === |
|
1032 | - \count($needles, \COUNT_NORMAL); |
|
1031 | + === |
|
1032 | + \count($needles, \COUNT_NORMAL); |
|
1033 | 1033 | } |
1034 | 1034 | |
1035 | 1035 | /** |
@@ -2170,15 +2170,15 @@ discard block |
||
2170 | 2170 | |
2171 | 2171 | if ($recursive === true) { |
2172 | 2172 | return $this->array_keys_recursive($this->getArray()) |
2173 | - === |
|
2174 | - \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
2173 | + === |
|
2174 | + \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
2175 | 2175 | } |
2176 | 2176 | |
2177 | 2177 | // non recursive |
2178 | 2178 | |
2179 | 2179 | return \array_keys($this->getArray()) |
2180 | - === |
|
2181 | - \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
2180 | + === |
|
2181 | + \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
2182 | 2182 | } |
2183 | 2183 | |
2184 | 2184 | /** |