@@ 3346-3370 (lines=25) @@ | ||
3343 | $is_array_tmp = \is_array($search_values); |
|
3344 | ||
3345 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
3346 | if ( |
|
3347 | ( |
|
3348 | $is_array_tmp === false |
|
3349 | && |
|
3350 | $strict === true |
|
3351 | && |
|
3352 | $search_values === $value |
|
3353 | ) |
|
3354 | || |
|
3355 | ( |
|
3356 | $is_array_tmp === false |
|
3357 | && |
|
3358 | $strict === false |
|
3359 | && |
|
3360 | $search_values == $value |
|
3361 | ) |
|
3362 | || |
|
3363 | ( |
|
3364 | $is_array_tmp === true |
|
3365 | && |
|
3366 | \in_array($value, $search_values, $strict) |
|
3367 | ) |
|
3368 | ) { |
|
3369 | yield $key; |
|
3370 | } |
|
3371 | } |
|
3372 | }; |
|
3373 | } |
|
@@ 6070-6094 (lines=25) @@ | ||
6067 | $is_array_tmp = \is_array($search_values); |
|
6068 | ||
6069 | foreach ($input as $key => $value) { |
|
6070 | if ( |
|
6071 | ( |
|
6072 | $is_array_tmp === false |
|
6073 | && |
|
6074 | $strict === true |
|
6075 | && |
|
6076 | $search_values === $value |
|
6077 | ) |
|
6078 | || |
|
6079 | ( |
|
6080 | $is_array_tmp === false |
|
6081 | && |
|
6082 | $strict === false |
|
6083 | && |
|
6084 | $search_values == $value |
|
6085 | ) |
|
6086 | || |
|
6087 | ( |
|
6088 | $is_array_tmp === true |
|
6089 | && |
|
6090 | \in_array($value, $search_values, $strict) |
|
6091 | ) |
|
6092 | ) { |
|
6093 | $keys[] = $key; |
|
6094 | } |
|
6095 | ||
6096 | // check if recursive is needed |
|
6097 | if (\is_array($value) === true) { |