Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2719-2743 (lines=25) @@
2716
                $is_array_tmp = \is_array($search_values);
2717
2718
                foreach ($this->getGenerator() as $key => $value) {
2719
                    if (
2720
                        (
2721
                            $is_array_tmp === false
2722
                            &&
2723
                            $strict === true
2724
                            &&
2725
                            $search_values === $value
2726
                        )
2727
                        ||
2728
                        (
2729
                            $is_array_tmp === false
2730
                            &&
2731
                            $strict === false
2732
                            &&
2733
                            $search_values == $value
2734
                        )
2735
                        ||
2736
                        (
2737
                            $is_array_tmp === true
2738
                            &&
2739
                            \in_array($value, $search_values, $strict)
2740
                        )
2741
                    ) {
2742
                        yield $key;
2743
                    }
2744
                }
2745
            };
2746
        }
@@ 5073-5097 (lines=25) @@
5070
            $is_array_tmp = \is_array($search_values);
5071
5072
            foreach ($input as $key => $value) {
5073
                if (
5074
                    (
5075
                        $is_array_tmp === false
5076
                        &&
5077
                        $strict === true
5078
                        &&
5079
                        $search_values === $value
5080
                    )
5081
                    ||
5082
                    (
5083
                        $is_array_tmp === false
5084
                        &&
5085
                        $strict === false
5086
                        &&
5087
                        $search_values == $value
5088
                    )
5089
                    ||
5090
                    (
5091
                        $is_array_tmp === true
5092
                        &&
5093
                        \in_array($value, $search_values, $strict)
5094
                    )
5095
                ) {
5096
                    $keys[] = $key;
5097
                }
5098
5099
                // check if recursive is needed
5100
                if (\is_array($value) === true) {