@@ 3340-3364 (lines=25) @@ | ||
3337 | $is_array_tmp = \is_array($search_values); |
|
3338 | ||
3339 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
3340 | if ( |
|
3341 | ( |
|
3342 | $is_array_tmp === false |
|
3343 | && |
|
3344 | $strict === true |
|
3345 | && |
|
3346 | $search_values === $value |
|
3347 | ) |
|
3348 | || |
|
3349 | ( |
|
3350 | $is_array_tmp === false |
|
3351 | && |
|
3352 | $strict === false |
|
3353 | && |
|
3354 | $search_values == $value |
|
3355 | ) |
|
3356 | || |
|
3357 | ( |
|
3358 | $is_array_tmp === true |
|
3359 | && |
|
3360 | \in_array($value, $search_values, $strict) |
|
3361 | ) |
|
3362 | ) { |
|
3363 | yield $key; |
|
3364 | } |
|
3365 | } |
|
3366 | }; |
|
3367 | } |
|
@@ 6060-6084 (lines=25) @@ | ||
6057 | $is_array_tmp = \is_array($search_values); |
|
6058 | ||
6059 | foreach ($input as $key => $value) { |
|
6060 | if ( |
|
6061 | ( |
|
6062 | $is_array_tmp === false |
|
6063 | && |
|
6064 | $strict === true |
|
6065 | && |
|
6066 | $search_values === $value |
|
6067 | ) |
|
6068 | || |
|
6069 | ( |
|
6070 | $is_array_tmp === false |
|
6071 | && |
|
6072 | $strict === false |
|
6073 | && |
|
6074 | $search_values == $value |
|
6075 | ) |
|
6076 | || |
|
6077 | ( |
|
6078 | $is_array_tmp === true |
|
6079 | && |
|
6080 | \in_array($value, $search_values, $strict) |
|
6081 | ) |
|
6082 | ) { |
|
6083 | $keys[] = $key; |
|
6084 | } |
|
6085 | ||
6086 | // check if recursive is needed |
|
6087 | if (\is_array($value) === true) { |