Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

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