Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2871-2895 (lines=25) @@
2868
                $is_array_tmp = \is_array($search_values);
2869
2870
                foreach ($this->getGenerator() as $key => $value) {
2871
                    if (
2872
                        (
2873
                            $is_array_tmp === false
2874
                            &&
2875
                            $strict === true
2876
                            &&
2877
                            $search_values === $value
2878
                        )
2879
                        ||
2880
                        (
2881
                            $is_array_tmp === false
2882
                            &&
2883
                            $strict === false
2884
                            &&
2885
                            $search_values == $value
2886
                        )
2887
                        ||
2888
                        (
2889
                            $is_array_tmp === true
2890
                            &&
2891
                            \in_array($value, $search_values, $strict)
2892
                        )
2893
                    ) {
2894
                        yield $key;
2895
                    }
2896
                }
2897
            };
2898
        }
@@ 5392-5416 (lines=25) @@
5389
            $is_array_tmp = \is_array($search_values);
5390
5391
            foreach ($input as $key => $value) {
5392
                if (
5393
                    (
5394
                        $is_array_tmp === false
5395
                        &&
5396
                        $strict === true
5397
                        &&
5398
                        $search_values === $value
5399
                    )
5400
                    ||
5401
                    (
5402
                        $is_array_tmp === false
5403
                        &&
5404
                        $strict === false
5405
                        &&
5406
                        $search_values == $value
5407
                    )
5408
                    ||
5409
                    (
5410
                        $is_array_tmp === true
5411
                        &&
5412
                        \in_array($value, $search_values, $strict)
5413
                    )
5414
                ) {
5415
                    $keys[] = $key;
5416
                }
5417
5418
                // check if recursive is needed
5419
                if (\is_array($value) === true) {