@@ -609,8 +609,8 @@ discard block |
||
| 609 | 609 | } |
| 610 | 610 | |
| 611 | 611 | /** |
| 612 | - * @param mixed $path |
|
| 613 | - * @param \callable $callable |
|
| 612 | + * @param string $path |
|
| 613 | + * @param \Closure $callable |
|
| 614 | 614 | * @param null|array $currentOffset |
| 615 | 615 | */ |
| 616 | 616 | protected function callAtPath($path, $callable, &$currentOffset = null) |
@@ -1763,7 +1763,7 @@ discard block |
||
| 1763 | 1763 | } |
| 1764 | 1764 | |
| 1765 | 1765 | /** |
| 1766 | - * @param mixed $glue |
|
| 1766 | + * @param string $glue |
|
| 1767 | 1767 | * @param string|array|static $pieces |
| 1768 | 1768 | * @param bool $useKeys |
| 1769 | 1769 | * |
@@ -3639,7 +3639,7 @@ discard block |
||
| 3639 | 3639 | /** |
| 3640 | 3640 | * Apply the given function to every element in the array, discarding the results. |
| 3641 | 3641 | * |
| 3642 | - * @param \callable $callable |
|
| 3642 | + * @param \Closure $callable |
|
| 3643 | 3643 | * @param bool $recursive <p>Whether array will be walked recursively or no</p> |
| 3644 | 3644 | * |
| 3645 | 3645 | * @return static <p>(Mutable) Return this Arrayy object, with modified elements.</p> |
@@ -850,25 +850,25 @@ discard block |
||
| 850 | 850 | { |
| 851 | 851 | if ($recursive === true) { |
| 852 | 852 | return \count( |
| 853 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
| 854 | - COUNT_RECURSIVE |
|
| 855 | - ) |
|
| 856 | - === |
|
| 857 | - \count( |
|
| 858 | - $needles, |
|
| 859 | - COUNT_RECURSIVE |
|
| 860 | - ); |
|
| 853 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
| 854 | + COUNT_RECURSIVE |
|
| 855 | + ) |
|
| 856 | + === |
|
| 857 | + \count( |
|
| 858 | + $needles, |
|
| 859 | + COUNT_RECURSIVE |
|
| 860 | + ); |
|
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | return \count( |
| 864 | - \array_intersect($needles, $this->keys()->getArray()), |
|
| 865 | - COUNT_NORMAL |
|
| 866 | - ) |
|
| 867 | - === |
|
| 868 | - \count( |
|
| 869 | - $needles, |
|
| 870 | - COUNT_NORMAL |
|
| 871 | - ); |
|
| 864 | + \array_intersect($needles, $this->keys()->getArray()), |
|
| 865 | + COUNT_NORMAL |
|
| 866 | + ) |
|
| 867 | + === |
|
| 868 | + \count( |
|
| 869 | + $needles, |
|
| 870 | + COUNT_NORMAL |
|
| 871 | + ); |
|
| 872 | 872 | } |
| 873 | 873 | |
| 874 | 874 | /** |
@@ -921,8 +921,8 @@ discard block |
||
| 921 | 921 | public function containsValues(array $needles): bool |
| 922 | 922 | { |
| 923 | 923 | return \count(\array_intersect($needles, $this->array), COUNT_NORMAL) |
| 924 | - === |
|
| 925 | - \count($needles, COUNT_NORMAL); |
|
| 924 | + === |
|
| 925 | + \count($needles, COUNT_NORMAL); |
|
| 926 | 926 | } |
| 927 | 927 | |
| 928 | 928 | /** |
@@ -2179,15 +2179,15 @@ discard block |
||
| 2179 | 2179 | |
| 2180 | 2180 | if ($recursive === true) { |
| 2181 | 2181 | return $this->array_keys_recursive($this->array) |
| 2182 | - === |
|
| 2183 | - \range(0, \count($this->array, COUNT_RECURSIVE) - 1); |
|
| 2182 | + === |
|
| 2183 | + \range(0, \count($this->array, COUNT_RECURSIVE) - 1); |
|
| 2184 | 2184 | } |
| 2185 | 2185 | |
| 2186 | 2186 | // non recursive |
| 2187 | 2187 | |
| 2188 | 2188 | return \array_keys($this->array) |
| 2189 | - === |
|
| 2190 | - \range(0, \count($this->array, COUNT_NORMAL) - 1); |
|
| 2189 | + === |
|
| 2190 | + \range(0, \count($this->array, COUNT_NORMAL) - 1); |
|
| 2191 | 2191 | } |
| 2192 | 2192 | |
| 2193 | 2193 | /** |