Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2658-2682 (lines=25) @@
2655
                $is_array_tmp = \is_array($search_values);
2656
2657
                foreach ($this->getGenerator() as $key => $value) {
2658
                    if (
2659
                        (
2660
                            $is_array_tmp === false
2661
                            &&
2662
                            $strict === true
2663
                            &&
2664
                            $search_values === $value
2665
                        )
2666
                        ||
2667
                        (
2668
                            $is_array_tmp === false
2669
                            &&
2670
                            $strict === false
2671
                            &&
2672
                            $search_values == $value
2673
                        )
2674
                        ||
2675
                        (
2676
                            $is_array_tmp === true
2677
                            &&
2678
                            \in_array($value, $search_values, $strict)
2679
                        )
2680
                    ) {
2681
                        yield $key;
2682
                    }
2683
                }
2684
            };
2685
        }
@@ 4981-5005 (lines=25) @@
4978
            $is_array_tmp = \is_array($search_values);
4979
4980
            foreach ($input as $key => $value) {
4981
                if (
4982
                    (
4983
                        $is_array_tmp === false
4984
                        &&
4985
                        $strict === true
4986
                        &&
4987
                        $search_values === $value
4988
                    )
4989
                    ||
4990
                    (
4991
                        $is_array_tmp === false
4992
                        &&
4993
                        $strict === false
4994
                        &&
4995
                        $search_values == $value
4996
                    )
4997
                    ||
4998
                    (
4999
                        $is_array_tmp === true
5000
                        &&
5001
                        \in_array($value, $search_values, $strict)
5002
                    )
5003
                ) {
5004
                    $keys[] = $key;
5005
                }
5006
5007
                // check if recursive is needed
5008
                if (\is_array($value) === true) {