@@ 3304-3328 (lines=25) @@ | ||
3301 | $is_array_tmp = \is_array($search_values); |
|
3302 | ||
3303 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
3304 | if ( |
|
3305 | ( |
|
3306 | $is_array_tmp === false |
|
3307 | && |
|
3308 | $strict === true |
|
3309 | && |
|
3310 | $search_values === $value |
|
3311 | ) |
|
3312 | || |
|
3313 | ( |
|
3314 | $is_array_tmp === false |
|
3315 | && |
|
3316 | $strict === false |
|
3317 | && |
|
3318 | $search_values == $value |
|
3319 | ) |
|
3320 | || |
|
3321 | ( |
|
3322 | $is_array_tmp === true |
|
3323 | && |
|
3324 | \in_array($value, $search_values, $strict) |
|
3325 | ) |
|
3326 | ) { |
|
3327 | yield $key; |
|
3328 | } |
|
3329 | } |
|
3330 | }; |
|
3331 | } |
|
@@ 6024-6048 (lines=25) @@ | ||
6021 | $is_array_tmp = \is_array($search_values); |
|
6022 | ||
6023 | foreach ($input as $key => $value) { |
|
6024 | if ( |
|
6025 | ( |
|
6026 | $is_array_tmp === false |
|
6027 | && |
|
6028 | $strict === true |
|
6029 | && |
|
6030 | $search_values === $value |
|
6031 | ) |
|
6032 | || |
|
6033 | ( |
|
6034 | $is_array_tmp === false |
|
6035 | && |
|
6036 | $strict === false |
|
6037 | && |
|
6038 | $search_values == $value |
|
6039 | ) |
|
6040 | || |
|
6041 | ( |
|
6042 | $is_array_tmp === true |
|
6043 | && |
|
6044 | \in_array($value, $search_values, $strict) |
|
6045 | ) |
|
6046 | ) { |
|
6047 | $keys[] = $key; |
|
6048 | } |
|
6049 | ||
6050 | // check if recursive is needed |
|
6051 | if (\is_array($value) === true) { |