Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2552-2576 (lines=25) @@
2549
                $is_array_tmp = \is_array($search_values);
2550
2551
                foreach ($this->getGenerator() as $key => $value) {
2552
                    if (
2553
                        (
2554
                            $is_array_tmp === false
2555
                            &&
2556
                            $strict === true
2557
                            &&
2558
                            $search_values === $value
2559
                        )
2560
                        ||
2561
                        (
2562
                            $is_array_tmp === false
2563
                            &&
2564
                            $strict === false
2565
                            &&
2566
                            $search_values == $value
2567
                        )
2568
                        ||
2569
                        (
2570
                            $is_array_tmp === true
2571
                            &&
2572
                            \in_array($value, $search_values, $strict)
2573
                        )
2574
                    ) {
2575
                        yield $key;
2576
                    }
2577
                }
2578
            };
2579
        }
@@ 4725-4749 (lines=25) @@
4722
            $is_array_tmp = \is_array($search_values);
4723
4724
            foreach ($input as $key => $value) {
4725
                if (
4726
                    (
4727
                        $is_array_tmp === false
4728
                        &&
4729
                        $strict === true
4730
                        &&
4731
                        $search_values === $value
4732
                    )
4733
                    ||
4734
                    (
4735
                        $is_array_tmp === false
4736
                        &&
4737
                        $strict === false
4738
                        &&
4739
                        $search_values == $value
4740
                    )
4741
                    ||
4742
                    (
4743
                        $is_array_tmp === true
4744
                        &&
4745
                        \in_array($value, $search_values, $strict)
4746
                    )
4747
                ) {
4748
                    $keys[] = $key;
4749
                }
4750
4751
                // check if recursive is needed
4752
                if (\is_array($value) === true) {