Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

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