Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

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