Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3387-3411 (lines=25) @@
3384
                $is_array_tmp = \is_array($search_values);
3385
3386
                foreach ($this->getGeneratorByReference() as $key => &$value) {
3387
                    if (
3388
                        (
3389
                            $is_array_tmp === false
3390
                            &&
3391
                            $strict === true
3392
                            &&
3393
                            $search_values === $value
3394
                        )
3395
                        ||
3396
                        (
3397
                            $is_array_tmp === false
3398
                            &&
3399
                            $strict === false
3400
                            &&
3401
                            $search_values == $value
3402
                        )
3403
                        ||
3404
                        (
3405
                            $is_array_tmp === true
3406
                            &&
3407
                            \in_array($value, $search_values, $strict)
3408
                        )
3409
                    ) {
3410
                        yield $key;
3411
                    }
3412
                }
3413
            };
3414
        }
@@ 6107-6131 (lines=25) @@
6104
            $is_array_tmp = \is_array($search_values);
6105
6106
            foreach ($input as $key => $value) {
6107
                if (
6108
                    (
6109
                        $is_array_tmp === false
6110
                        &&
6111
                        $strict === true
6112
                        &&
6113
                        $search_values === $value
6114
                    )
6115
                    ||
6116
                    (
6117
                        $is_array_tmp === false
6118
                        &&
6119
                        $strict === false
6120
                        &&
6121
                        $search_values == $value
6122
                    )
6123
                    ||
6124
                    (
6125
                        $is_array_tmp === true
6126
                        &&
6127
                        \in_array($value, $search_values, $strict)
6128
                    )
6129
                ) {
6130
                    $keys[] = $key;
6131
                }
6132
6133
                // check if recursive is needed
6134
                if (\is_array($value) === true) {