Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3127-3151 (lines=25) @@
3124
                $is_array_tmp = \is_array($search_values);
3125
3126
                foreach ($this->getGenerator() as $key => $value) {
3127
                    if (
3128
                        (
3129
                            $is_array_tmp === false
3130
                            &&
3131
                            $strict === true
3132
                            &&
3133
                            $search_values === $value
3134
                        )
3135
                        ||
3136
                        (
3137
                            $is_array_tmp === false
3138
                            &&
3139
                            $strict === false
3140
                            &&
3141
                            $search_values == $value
3142
                        )
3143
                        ||
3144
                        (
3145
                            $is_array_tmp === true
3146
                            &&
3147
                            \in_array($value, $search_values, $strict)
3148
                        )
3149
                    ) {
3150
                        yield $key;
3151
                    }
3152
                }
3153
            };
3154
        }
@@ 5840-5864 (lines=25) @@
5837
            $is_array_tmp = \is_array($search_values);
5838
5839
            foreach ($input as $key => $value) {
5840
                if (
5841
                    (
5842
                        $is_array_tmp === false
5843
                        &&
5844
                        $strict === true
5845
                        &&
5846
                        $search_values === $value
5847
                    )
5848
                    ||
5849
                    (
5850
                        $is_array_tmp === false
5851
                        &&
5852
                        $strict === false
5853
                        &&
5854
                        $search_values == $value
5855
                    )
5856
                    ||
5857
                    (
5858
                        $is_array_tmp === true
5859
                        &&
5860
                        \in_array($value, $search_values, $strict)
5861
                    )
5862
                ) {
5863
                    $keys[] = $key;
5864
                }
5865
5866
                // check if recursive is needed
5867
                if (\is_array($value) === true) {