Code Duplication    Length = 25-25 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3849-3873 (lines=25) @@
3846
3847
                /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */
3848
                foreach ($this->getGeneratorByReference() as $key => &$value) {
3849
                    if (
3850
                        (
3851
                            $is_array_tmp === false
3852
                            &&
3853
                            $strict === true
3854
                            &&
3855
                            $search_values === $value
3856
                        )
3857
                        ||
3858
                        (
3859
                            $is_array_tmp === false
3860
                            &&
3861
                            $strict === false
3862
                            &&
3863
                            $search_values == $value
3864
                        )
3865
                        ||
3866
                        (
3867
                            $is_array_tmp === true
3868
                            &&
3869
                            \in_array($value, $search_values, $strict)
3870
                        )
3871
                    ) {
3872
                        yield $key;
3873
                    }
3874
                }
3875
            };
3876
        }
@@ 6931-6955 (lines=25) @@
6928
            $is_array_tmp = \is_array($search_values);
6929
6930
            foreach ($input as $key => $value) {
6931
                if (
6932
                    (
6933
                        $is_array_tmp === false
6934
                        &&
6935
                        $strict === true
6936
                        &&
6937
                        $search_values === $value
6938
                    )
6939
                    ||
6940
                    (
6941
                        $is_array_tmp === false
6942
                        &&
6943
                        $strict === false
6944
                        &&
6945
                        $search_values == $value
6946
                    )
6947
                    ||
6948
                    (
6949
                        $is_array_tmp === true
6950
                        &&
6951
                        \in_array($value, $search_values, $strict)
6952
                    )
6953
                ) {
6954
                    $keys[] = $key;
6955
                }
6956
6957
                // check if recursive is needed
6958
                if (\is_array($value)) {