Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2530-2554 (lines=25) @@
2527
                $is_array_tmp = \is_array($search_values);
2528
2529
                foreach ($this->getGenerator() as $key => $value) {
2530
                    if (
2531
                        (
2532
                            $is_array_tmp === false
2533
                            &&
2534
                            $strict === true
2535
                            &&
2536
                            $search_values === $value
2537
                        )
2538
                        ||
2539
                        (
2540
                            $is_array_tmp === false
2541
                            &&
2542
                            $strict === false
2543
                            &&
2544
                            $search_values == $value
2545
                        )
2546
                        ||
2547
                        (
2548
                            $is_array_tmp === true
2549
                            &&
2550
                            \in_array($value, $search_values, $strict)
2551
                        )
2552
                    ) {
2553
                        yield $key;
2554
                    }
2555
                }
2556
            };
2557
        }
@@ 4621-4645 (lines=25) @@
4618
            $is_array_tmp = \is_array($search_values);
4619
4620
            foreach ($input as $key => $value) {
4621
                if (
4622
                    (
4623
                        $is_array_tmp === false
4624
                        &&
4625
                        $strict === true
4626
                        &&
4627
                        $search_values === $value
4628
                    )
4629
                    ||
4630
                    (
4631
                        $is_array_tmp === false
4632
                        &&
4633
                        $strict === false
4634
                        &&
4635
                        $search_values == $value
4636
                    )
4637
                    ||
4638
                    (
4639
                        $is_array_tmp === true
4640
                        &&
4641
                        \in_array($value, $search_values, $strict)
4642
                    )
4643
                ) {
4644
                    $keys[] = $key;
4645
                }
4646
4647
                // check if recursive is needed
4648
                if (\is_array($value) === true) {