@@ 2829-2853 (lines=25) @@ | ||
2826 | $is_array_tmp = \is_array($search_values); |
|
2827 | ||
2828 | foreach ($this->getGenerator() as $key => $value) { |
|
2829 | if ( |
|
2830 | ( |
|
2831 | $is_array_tmp === false |
|
2832 | && |
|
2833 | $strict === true |
|
2834 | && |
|
2835 | $search_values === $value |
|
2836 | ) |
|
2837 | || |
|
2838 | ( |
|
2839 | $is_array_tmp === false |
|
2840 | && |
|
2841 | $strict === false |
|
2842 | && |
|
2843 | $search_values == $value |
|
2844 | ) |
|
2845 | || |
|
2846 | ( |
|
2847 | $is_array_tmp === true |
|
2848 | && |
|
2849 | \in_array($value, $search_values, $strict) |
|
2850 | ) |
|
2851 | ) { |
|
2852 | yield $key; |
|
2853 | } |
|
2854 | } |
|
2855 | }; |
|
2856 | } |
|
@@ 5308-5332 (lines=25) @@ | ||
5305 | $is_array_tmp = \is_array($search_values); |
|
5306 | ||
5307 | foreach ($input as $key => $value) { |
|
5308 | if ( |
|
5309 | ( |
|
5310 | $is_array_tmp === false |
|
5311 | && |
|
5312 | $strict === true |
|
5313 | && |
|
5314 | $search_values === $value |
|
5315 | ) |
|
5316 | || |
|
5317 | ( |
|
5318 | $is_array_tmp === false |
|
5319 | && |
|
5320 | $strict === false |
|
5321 | && |
|
5322 | $search_values == $value |
|
5323 | ) |
|
5324 | || |
|
5325 | ( |
|
5326 | $is_array_tmp === true |
|
5327 | && |
|
5328 | \in_array($value, $search_values, $strict) |
|
5329 | ) |
|
5330 | ) { |
|
5331 | $keys[] = $key; |
|
5332 | } |
|
5333 | ||
5334 | // check if recursive is needed |
|
5335 | if (\is_array($value) === true) { |