Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2602-2626 (lines=25) @@
2599
                $is_array_tmp = \is_array($search_values);
2600
2601
                foreach ($this->getGenerator() as $key => $value) {
2602
                    if (
2603
                        (
2604
                            $is_array_tmp === false
2605
                            &&
2606
                            $strict === true
2607
                            &&
2608
                            $search_values === $value
2609
                        )
2610
                        ||
2611
                        (
2612
                            $is_array_tmp === false
2613
                            &&
2614
                            $strict === false
2615
                            &&
2616
                            $search_values == $value
2617
                        )
2618
                        ||
2619
                        (
2620
                            $is_array_tmp === true
2621
                            &&
2622
                            \in_array($value, $search_values, $strict)
2623
                        )
2624
                    ) {
2625
                        yield $key;
2626
                    }
2627
                }
2628
            };
2629
        }
@@ 4613-4637 (lines=25) @@
4610
            $is_array_tmp = \is_array($search_values);
4611
4612
            foreach ($input as $key => $value) {
4613
                if (
4614
                    (
4615
                        $is_array_tmp === false
4616
                        &&
4617
                        $strict === true
4618
                        &&
4619
                        $search_values === $value
4620
                    )
4621
                    ||
4622
                    (
4623
                        $is_array_tmp === false
4624
                        &&
4625
                        $strict === false
4626
                        &&
4627
                        $search_values == $value
4628
                    )
4629
                    ||
4630
                    (
4631
                        $is_array_tmp === true
4632
                        &&
4633
                        \in_array($value, $search_values, $strict)
4634
                    )
4635
                ) {
4636
                    $keys[] = $key;
4637
                }
4638
4639
                // check if recursive is needed
4640
                if (\is_array($value) === true) {