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
        }
@@ 6927-6951 (lines=25) @@
6924
            $is_array_tmp = \is_array($search_values);
6925
6926
            foreach ($input as $key => $value) {
6927
                if (
6928
                    (
6929
                        $is_array_tmp === false
6930
                        &&
6931
                        $strict === true
6932
                        &&
6933
                        $search_values === $value
6934
                    )
6935
                    ||
6936
                    (
6937
                        $is_array_tmp === false
6938
                        &&
6939
                        $strict === false
6940
                        &&
6941
                        $search_values == $value
6942
                    )
6943
                    ||
6944
                    (
6945
                        $is_array_tmp === true
6946
                        &&
6947
                        \in_array($value, $search_values, $strict)
6948
                    )
6949
                ) {
6950
                    $keys[] = $key;
6951
                }
6952
6953
                // check if recursive is needed
6954
                if (\is_array($value)) {