Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2670-2694 (lines=25) @@
2667
                $is_array_tmp = \is_array($search_values);
2668
2669
                foreach ($this->getGenerator() as $key => $value) {
2670
                    if (
2671
                        (
2672
                            $is_array_tmp === false
2673
                            &&
2674
                            $strict === true
2675
                            &&
2676
                            $search_values === $value
2677
                        )
2678
                        ||
2679
                        (
2680
                            $is_array_tmp === false
2681
                            &&
2682
                            $strict === false
2683
                            &&
2684
                            $search_values == $value
2685
                        )
2686
                        ||
2687
                        (
2688
                            $is_array_tmp === true
2689
                            &&
2690
                            \in_array($value, $search_values, $strict)
2691
                        )
2692
                    ) {
2693
                        yield $key;
2694
                    }
2695
                }
2696
            };
2697
        }
@@ 4848-4872 (lines=25) @@
4845
            $is_array_tmp = \is_array($search_values);
4846
4847
            foreach ($input as $key => $value) {
4848
                if (
4849
                    (
4850
                        $is_array_tmp === false
4851
                        &&
4852
                        $strict === true
4853
                        &&
4854
                        $search_values === $value
4855
                    )
4856
                    ||
4857
                    (
4858
                        $is_array_tmp === false
4859
                        &&
4860
                        $strict === false
4861
                        &&
4862
                        $search_values == $value
4863
                    )
4864
                    ||
4865
                    (
4866
                        $is_array_tmp === true
4867
                        &&
4868
                        \in_array($value, $search_values, $strict)
4869
                    )
4870
                ) {
4871
                    $keys[] = $key;
4872
                }
4873
4874
                // check if recursive is needed
4875
                if (\is_array($value) === true) {