Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3176-3200 (lines=25) @@
3173
                $is_array_tmp = \is_array($search_values);
3174
3175
                foreach ($this->getGenerator() as $key => $value) {
3176
                    if (
3177
                        (
3178
                            $is_array_tmp === false
3179
                            &&
3180
                            $strict === true
3181
                            &&
3182
                            $search_values === $value
3183
                        )
3184
                        ||
3185
                        (
3186
                            $is_array_tmp === false
3187
                            &&
3188
                            $strict === false
3189
                            &&
3190
                            $search_values == $value
3191
                        )
3192
                        ||
3193
                        (
3194
                            $is_array_tmp === true
3195
                            &&
3196
                            \in_array($value, $search_values, $strict)
3197
                        )
3198
                    ) {
3199
                        yield $key;
3200
                    }
3201
                }
3202
            };
3203
        }
@@ 5889-5913 (lines=25) @@
5886
            $is_array_tmp = \is_array($search_values);
5887
5888
            foreach ($input as $key => $value) {
5889
                if (
5890
                    (
5891
                        $is_array_tmp === false
5892
                        &&
5893
                        $strict === true
5894
                        &&
5895
                        $search_values === $value
5896
                    )
5897
                    ||
5898
                    (
5899
                        $is_array_tmp === false
5900
                        &&
5901
                        $strict === false
5902
                        &&
5903
                        $search_values == $value
5904
                    )
5905
                    ||
5906
                    (
5907
                        $is_array_tmp === true
5908
                        &&
5909
                        \in_array($value, $search_values, $strict)
5910
                    )
5911
                ) {
5912
                    $keys[] = $key;
5913
                }
5914
5915
                // check if recursive is needed
5916
                if (\is_array($value) === true) {