@@ 3491-3515 (lines=25) @@ | ||
3488 | ||
3489 | /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */ |
|
3490 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
3491 | if ( |
|
3492 | ( |
|
3493 | $is_array_tmp === false |
|
3494 | && |
|
3495 | $strict === true |
|
3496 | && |
|
3497 | $search_values === $value |
|
3498 | ) |
|
3499 | || |
|
3500 | ( |
|
3501 | $is_array_tmp === false |
|
3502 | && |
|
3503 | $strict === false |
|
3504 | && |
|
3505 | $search_values == $value |
|
3506 | ) |
|
3507 | || |
|
3508 | ( |
|
3509 | $is_array_tmp === true |
|
3510 | && |
|
3511 | \in_array($value, $search_values, $strict) |
|
3512 | ) |
|
3513 | ) { |
|
3514 | yield $key; |
|
3515 | } |
|
3516 | } |
|
3517 | }; |
|
3518 | } |
|
@@ 6228-6252 (lines=25) @@ | ||
6225 | $is_array_tmp = \is_array($search_values); |
|
6226 | ||
6227 | foreach ($input as $key => $value) { |
|
6228 | if ( |
|
6229 | ( |
|
6230 | $is_array_tmp === false |
|
6231 | && |
|
6232 | $strict === true |
|
6233 | && |
|
6234 | $search_values === $value |
|
6235 | ) |
|
6236 | || |
|
6237 | ( |
|
6238 | $is_array_tmp === false |
|
6239 | && |
|
6240 | $strict === false |
|
6241 | && |
|
6242 | $search_values == $value |
|
6243 | ) |
|
6244 | || |
|
6245 | ( |
|
6246 | $is_array_tmp === true |
|
6247 | && |
|
6248 | \in_array($value, $search_values, $strict) |
|
6249 | ) |
|
6250 | ) { |
|
6251 | $keys[] = $key; |
|
6252 | } |
|
6253 | ||
6254 | // check if recursive is needed |
|
6255 | if (\is_array($value) === true) { |