Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3274-3298 (lines=25) @@
3271
                $is_array_tmp = \is_array($search_values);
3272
3273
                foreach ($this->getGenerator() as $key => $value) {
3274
                    if (
3275
                        (
3276
                            $is_array_tmp === false
3277
                            &&
3278
                            $strict === true
3279
                            &&
3280
                            $search_values === $value
3281
                        )
3282
                        ||
3283
                        (
3284
                            $is_array_tmp === false
3285
                            &&
3286
                            $strict === false
3287
                            &&
3288
                            $search_values == $value
3289
                        )
3290
                        ||
3291
                        (
3292
                            $is_array_tmp === true
3293
                            &&
3294
                            \in_array($value, $search_values, $strict)
3295
                        )
3296
                    ) {
3297
                        yield $key;
3298
                    }
3299
                }
3300
            };
3301
        }
@@ 5993-6017 (lines=25) @@
5990
            $is_array_tmp = \is_array($search_values);
5991
5992
            foreach ($input as $key => $value) {
5993
                if (
5994
                    (
5995
                        $is_array_tmp === false
5996
                        &&
5997
                        $strict === true
5998
                        &&
5999
                        $search_values === $value
6000
                    )
6001
                    ||
6002
                    (
6003
                        $is_array_tmp === false
6004
                        &&
6005
                        $strict === false
6006
                        &&
6007
                        $search_values == $value
6008
                    )
6009
                    ||
6010
                    (
6011
                        $is_array_tmp === true
6012
                        &&
6013
                        \in_array($value, $search_values, $strict)
6014
                    )
6015
                ) {
6016
                    $keys[] = $key;
6017
                }
6018
6019
                // check if recursive is needed
6020
                if (\is_array($value) === true) {