@@ 2684-2708 (lines=25) @@ | ||
2681 | $is_array_tmp = \is_array($search_values); |
|
2682 | ||
2683 | foreach ($this->getGenerator() as $key => $value) { |
|
2684 | if ( |
|
2685 | ( |
|
2686 | $is_array_tmp === false |
|
2687 | && |
|
2688 | $strict === true |
|
2689 | && |
|
2690 | $search_values === $value |
|
2691 | ) |
|
2692 | || |
|
2693 | ( |
|
2694 | $is_array_tmp === false |
|
2695 | && |
|
2696 | $strict === false |
|
2697 | && |
|
2698 | $search_values == $value |
|
2699 | ) |
|
2700 | || |
|
2701 | ( |
|
2702 | $is_array_tmp === true |
|
2703 | && |
|
2704 | \in_array($value, $search_values, $strict) |
|
2705 | ) |
|
2706 | ) { |
|
2707 | yield $key; |
|
2708 | } |
|
2709 | } |
|
2710 | }; |
|
2711 | } |
|
@@ 4862-4886 (lines=25) @@ | ||
4859 | $is_array_tmp = \is_array($search_values); |
|
4860 | ||
4861 | foreach ($input as $key => $value) { |
|
4862 | if ( |
|
4863 | ( |
|
4864 | $is_array_tmp === false |
|
4865 | && |
|
4866 | $strict === true |
|
4867 | && |
|
4868 | $search_values === $value |
|
4869 | ) |
|
4870 | || |
|
4871 | ( |
|
4872 | $is_array_tmp === false |
|
4873 | && |
|
4874 | $strict === false |
|
4875 | && |
|
4876 | $search_values == $value |
|
4877 | ) |
|
4878 | || |
|
4879 | ( |
|
4880 | $is_array_tmp === true |
|
4881 | && |
|
4882 | \in_array($value, $search_values, $strict) |
|
4883 | ) |
|
4884 | ) { |
|
4885 | $keys[] = $key; |
|
4886 | } |
|
4887 | ||
4888 | // check if recursive is needed |
|
4889 | if (\is_array($value) === true) { |