Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2669-2693 (lines=25) @@
2666
                $is_array_tmp = \is_array($search_values);
2667
2668
                foreach ($this->getGenerator() as $key => $value) {
2669
                    if (
2670
                        (
2671
                            $is_array_tmp === false
2672
                            &&
2673
                            $strict === true
2674
                            &&
2675
                            $search_values === $value
2676
                        )
2677
                        ||
2678
                        (
2679
                            $is_array_tmp === false
2680
                            &&
2681
                            $strict === false
2682
                            &&
2683
                            $search_values == $value
2684
                        )
2685
                        ||
2686
                        (
2687
                            $is_array_tmp === true
2688
                            &&
2689
                            \in_array($value, $search_values, $strict)
2690
                        )
2691
                    ) {
2692
                        yield $key;
2693
                    }
2694
                }
2695
            };
2696
        }
@@ 4873-4897 (lines=25) @@
4870
            $is_array_tmp = \is_array($search_values);
4871
4872
            foreach ($input as $key => $value) {
4873
                if (
4874
                    (
4875
                        $is_array_tmp === false
4876
                        &&
4877
                        $strict === true
4878
                        &&
4879
                        $search_values === $value
4880
                    )
4881
                    ||
4882
                    (
4883
                        $is_array_tmp === false
4884
                        &&
4885
                        $strict === false
4886
                        &&
4887
                        $search_values == $value
4888
                    )
4889
                    ||
4890
                    (
4891
                        $is_array_tmp === true
4892
                        &&
4893
                        \in_array($value, $search_values, $strict)
4894
                    )
4895
                ) {
4896
                    $keys[] = $key;
4897
                }
4898
4899
                // check if recursive is needed
4900
                if (\is_array($value) === true) {