@@ -956,25 +956,25 @@ discard block |
||
| 956 | 956 | { |
| 957 | 957 | if ($recursive === true) { |
| 958 | 958 | return \count( |
| 959 | - \array_intersect($needles, $this->keys(true)->getArray()), |
|
| 960 | - \COUNT_RECURSIVE |
|
| 961 | - ) |
|
| 962 | - === |
|
| 963 | - \count( |
|
| 964 | - $needles, |
|
| 965 | - \COUNT_RECURSIVE |
|
| 966 | - ); |
|
| 959 | + \array_intersect($needles, $this->keys(true)->getArray()), |
|
| 960 | + \COUNT_RECURSIVE |
|
| 961 | + ) |
|
| 962 | + === |
|
| 963 | + \count( |
|
| 964 | + $needles, |
|
| 965 | + \COUNT_RECURSIVE |
|
| 966 | + ); |
|
| 967 | 967 | } |
| 968 | 968 | |
| 969 | 969 | return \count( |
| 970 | - \array_intersect($needles, $this->keys()->getArray()), |
|
| 971 | - \COUNT_NORMAL |
|
| 972 | - ) |
|
| 973 | - === |
|
| 974 | - \count( |
|
| 975 | - $needles, |
|
| 976 | - \COUNT_NORMAL |
|
| 977 | - ); |
|
| 970 | + \array_intersect($needles, $this->keys()->getArray()), |
|
| 971 | + \COUNT_NORMAL |
|
| 972 | + ) |
|
| 973 | + === |
|
| 974 | + \count( |
|
| 975 | + $needles, |
|
| 976 | + \COUNT_NORMAL |
|
| 977 | + ); |
|
| 978 | 978 | } |
| 979 | 979 | |
| 980 | 980 | /** |
@@ -1029,8 +1029,8 @@ discard block |
||
| 1029 | 1029 | public function containsValues(array $needles): bool |
| 1030 | 1030 | { |
| 1031 | 1031 | return \count(\array_intersect($needles, $this->getArray()), \COUNT_NORMAL) |
| 1032 | - === |
|
| 1033 | - \count($needles, \COUNT_NORMAL); |
|
| 1032 | + === |
|
| 1033 | + \count($needles, \COUNT_NORMAL); |
|
| 1034 | 1034 | } |
| 1035 | 1035 | |
| 1036 | 1036 | /** |
@@ -2236,15 +2236,15 @@ discard block |
||
| 2236 | 2236 | |
| 2237 | 2237 | if ($recursive === true) { |
| 2238 | 2238 | return $this->array_keys_recursive($this->getArray()) |
| 2239 | - === |
|
| 2240 | - \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
| 2239 | + === |
|
| 2240 | + \range(0, \count($this->getArray(), \COUNT_RECURSIVE) - 1); |
|
| 2241 | 2241 | } |
| 2242 | 2242 | |
| 2243 | 2243 | // non recursive |
| 2244 | 2244 | |
| 2245 | 2245 | return \array_keys($this->getArray()) |
| 2246 | - === |
|
| 2247 | - \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
| 2246 | + === |
|
| 2247 | + \range(0, \count($this->getArray(), \COUNT_NORMAL) - 1); |
|
| 2248 | 2248 | } |
| 2249 | 2249 | |
| 2250 | 2250 | /** |
@@ -2777,7 +2777,7 @@ discard block |
||
| 2777 | 2777 | $this->iteratorClass, |
| 2778 | 2778 | false |
| 2779 | 2779 | )->prependToEachKey($suffix) |
| 2780 | - ->toArray(); |
|
| 2780 | + ->toArray(); |
|
| 2781 | 2781 | } else { |
| 2782 | 2782 | $result[$key . $suffix] = $item; |
| 2783 | 2783 | } |
@@ -2812,7 +2812,7 @@ discard block |
||
| 2812 | 2812 | $this->iteratorClass, |
| 2813 | 2813 | false |
| 2814 | 2814 | )->prependToEachValue($suffix) |
| 2815 | - ->toArray(); |
|
| 2815 | + ->toArray(); |
|
| 2816 | 2816 | } elseif (\is_object($item)) { |
| 2817 | 2817 | $result[$key] = $item; |
| 2818 | 2818 | } else { |