@@ -978,25 +978,25 @@ discard block |
||
978 | 978 | { |
979 | 979 | if ($recursive === true) { |
980 | 980 | return \count( |
981 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
982 | - \COUNT_RECURSIVE |
|
983 | - ) |
|
984 | - === |
|
985 | - \count( |
|
986 | - $needles, |
|
987 | - \COUNT_RECURSIVE |
|
988 | - ); |
|
981 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
982 | + \COUNT_RECURSIVE |
|
983 | + ) |
|
984 | + === |
|
985 | + \count( |
|
986 | + $needles, |
|
987 | + \COUNT_RECURSIVE |
|
988 | + ); |
|
989 | 989 | } |
990 | 990 | |
991 | 991 | return \count( |
992 | - \array_intersect($needles, $this->keys()->getArray()), |
|
993 | - \COUNT_NORMAL |
|
994 | - ) |
|
995 | - === |
|
996 | - \count( |
|
997 | - $needles, |
|
998 | - \COUNT_NORMAL |
|
999 | - ); |
|
992 | + \array_intersect($needles, $this->keys()->getArray()), |
|
993 | + \COUNT_NORMAL |
|
994 | + ) |
|
995 | + === |
|
996 | + \count( |
|
997 | + $needles, |
|
998 | + \COUNT_NORMAL |
|
999 | + ); |
|
1000 | 1000 | } |
1001 | 1001 | |
1002 | 1002 | /** |
@@ -1049,8 +1049,8 @@ discard block |
||
1049 | 1049 | public function containsValues(array $needles): bool |
1050 | 1050 | { |
1051 | 1051 | return \count(\array_intersect($needles, $this->array), \COUNT_NORMAL) |
1052 | - === |
|
1053 | - \count($needles, \COUNT_NORMAL); |
|
1052 | + === |
|
1053 | + \count($needles, \COUNT_NORMAL); |
|
1054 | 1054 | } |
1055 | 1055 | |
1056 | 1056 | /** |
@@ -2400,15 +2400,15 @@ discard block |
||
2400 | 2400 | |
2401 | 2401 | if ($recursive === true) { |
2402 | 2402 | return $this->array_keys_recursive($this->array) |
2403 | - === |
|
2404 | - \range(0, \count($this->array, \COUNT_RECURSIVE) - 1); |
|
2403 | + === |
|
2404 | + \range(0, \count($this->array, \COUNT_RECURSIVE) - 1); |
|
2405 | 2405 | } |
2406 | 2406 | |
2407 | 2407 | // non recursive |
2408 | 2408 | |
2409 | 2409 | return \array_keys($this->array) |
2410 | - === |
|
2411 | - \range(0, \count($this->array, \COUNT_NORMAL) - 1); |
|
2410 | + === |
|
2411 | + \range(0, \count($this->array, \COUNT_NORMAL) - 1); |
|
2412 | 2412 | } |
2413 | 2413 | |
2414 | 2414 | /** |
@@ -3641,7 +3641,7 @@ discard block |
||
3641 | 3641 | /** |
3642 | 3642 | * Apply the given function to every element in the array, discarding the results. |
3643 | 3643 | * |
3644 | - * @param \callable $callable |
|
3644 | + * @param \Closure $callable |
|
3645 | 3645 | * @param bool $recursive <p>Whether array will be walked recursively or no</p> |
3646 | 3646 | * |
3647 | 3647 | * @return static |
@@ -3733,8 +3733,8 @@ discard block |
||
3733 | 3733 | } |
3734 | 3734 | |
3735 | 3735 | /** |
3736 | - * @param mixed $path |
|
3737 | - * @param \callable $callable |
|
3736 | + * @param string $path |
|
3737 | + * @param \Closure $callable |
|
3738 | 3738 | * @param array|null $currentOffset |
3739 | 3739 | */ |
3740 | 3740 | protected function callAtPath($path, $callable, &$currentOffset = null) |
@@ -3878,7 +3878,7 @@ discard block |
||
3878 | 3878 | } |
3879 | 3879 | |
3880 | 3880 | /** |
3881 | - * @param mixed $glue |
|
3881 | + * @param string $glue |
|
3882 | 3882 | * @param array|static|string $pieces |
3883 | 3883 | * @param bool $useKeys |
3884 | 3884 | * |