Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 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) {
@@ 2522-2546 (lines=25) @@
2519
                $is_array_tmp = \is_array($search_values);
2520
2521
                foreach ($this->getGenerator() as $key => $value) {
2522
                    if (
2523
                        (
2524
                            $is_array_tmp === false
2525
                            &&
2526
                            $strict === true
2527
                            &&
2528
                            $search_values === $value
2529
                        )
2530
                        ||
2531
                        (
2532
                            $is_array_tmp === false
2533
                            &&
2534
                            $strict === false
2535
                            &&
2536
                            $search_values == $value
2537
                        )
2538
                        ||
2539
                        (
2540
                            $is_array_tmp === true
2541
                            &&
2542
                            \in_array($value, $search_values, $strict)
2543
                        )
2544
                    ) {
2545
                        yield $key;
2546
                    }
2547
                }
2548
            };
2549
        }