@@ 3261-3285 (lines=25) @@ | ||
3258 | $is_array_tmp = \is_array($search_values); |
|
3259 | ||
3260 | foreach ($this->getGenerator() as $key => $value) { |
|
3261 | if ( |
|
3262 | ( |
|
3263 | $is_array_tmp === false |
|
3264 | && |
|
3265 | $strict === true |
|
3266 | && |
|
3267 | $search_values === $value |
|
3268 | ) |
|
3269 | || |
|
3270 | ( |
|
3271 | $is_array_tmp === false |
|
3272 | && |
|
3273 | $strict === false |
|
3274 | && |
|
3275 | $search_values == $value |
|
3276 | ) |
|
3277 | || |
|
3278 | ( |
|
3279 | $is_array_tmp === true |
|
3280 | && |
|
3281 | \in_array($value, $search_values, $strict) |
|
3282 | ) |
|
3283 | ) { |
|
3284 | yield $key; |
|
3285 | } |
|
3286 | } |
|
3287 | }; |
|
3288 | } |
|
@@ 5980-6004 (lines=25) @@ | ||
5977 | $is_array_tmp = \is_array($search_values); |
|
5978 | ||
5979 | foreach ($input as $key => $value) { |
|
5980 | if ( |
|
5981 | ( |
|
5982 | $is_array_tmp === false |
|
5983 | && |
|
5984 | $strict === true |
|
5985 | && |
|
5986 | $search_values === $value |
|
5987 | ) |
|
5988 | || |
|
5989 | ( |
|
5990 | $is_array_tmp === false |
|
5991 | && |
|
5992 | $strict === false |
|
5993 | && |
|
5994 | $search_values == $value |
|
5995 | ) |
|
5996 | || |
|
5997 | ( |
|
5998 | $is_array_tmp === true |
|
5999 | && |
|
6000 | \in_array($value, $search_values, $strict) |
|
6001 | ) |
|
6002 | ) { |
|
6003 | $keys[] = $key; |
|
6004 | } |
|
6005 | ||
6006 | // check if recursive is needed |
|
6007 | if (\is_array($value) === true) { |