@@ 3564-3588 (lines=25) @@ | ||
3561 | ||
3562 | /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */ |
|
3563 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
3564 | if ( |
|
3565 | ( |
|
3566 | $is_array_tmp === false |
|
3567 | && |
|
3568 | $strict === true |
|
3569 | && |
|
3570 | $search_values === $value |
|
3571 | ) |
|
3572 | || |
|
3573 | ( |
|
3574 | $is_array_tmp === false |
|
3575 | && |
|
3576 | $strict === false |
|
3577 | && |
|
3578 | $search_values == $value |
|
3579 | ) |
|
3580 | || |
|
3581 | ( |
|
3582 | $is_array_tmp === true |
|
3583 | && |
|
3584 | \in_array($value, $search_values, $strict) |
|
3585 | ) |
|
3586 | ) { |
|
3587 | yield $key; |
|
3588 | } |
|
3589 | } |
|
3590 | }; |
|
3591 | } |
|
@@ 6356-6380 (lines=25) @@ | ||
6353 | $is_array_tmp = \is_array($search_values); |
|
6354 | ||
6355 | foreach ($input as $key => $value) { |
|
6356 | if ( |
|
6357 | ( |
|
6358 | $is_array_tmp === false |
|
6359 | && |
|
6360 | $strict === true |
|
6361 | && |
|
6362 | $search_values === $value |
|
6363 | ) |
|
6364 | || |
|
6365 | ( |
|
6366 | $is_array_tmp === false |
|
6367 | && |
|
6368 | $strict === false |
|
6369 | && |
|
6370 | $search_values == $value |
|
6371 | ) |
|
6372 | || |
|
6373 | ( |
|
6374 | $is_array_tmp === true |
|
6375 | && |
|
6376 | \in_array($value, $search_values, $strict) |
|
6377 | ) |
|
6378 | ) { |
|
6379 | $keys[] = $key; |
|
6380 | } |
|
6381 | ||
6382 | // check if recursive is needed |
|
6383 | if (\is_array($value) === true) { |