@@ 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 | } |
|
@@ 6948-6972 (lines=25) @@ | ||
6945 | $is_array_tmp = \is_array($search_values); |
|
6946 | ||
6947 | foreach ($input as $key => $value) { |
|
6948 | if ( |
|
6949 | ( |
|
6950 | $is_array_tmp === false |
|
6951 | && |
|
6952 | $strict === true |
|
6953 | && |
|
6954 | $search_values === $value |
|
6955 | ) |
|
6956 | || |
|
6957 | ( |
|
6958 | $is_array_tmp === false |
|
6959 | && |
|
6960 | $strict === false |
|
6961 | && |
|
6962 | $search_values == $value |
|
6963 | ) |
|
6964 | || |
|
6965 | ( |
|
6966 | $is_array_tmp === true |
|
6967 | && |
|
6968 | \in_array($value, $search_values, $strict) |
|
6969 | ) |
|
6970 | ) { |
|
6971 | $keys[] = $key; |
|
6972 | } |
|
6973 | ||
6974 | // check if recursive is needed |
|
6975 | if (\is_array($value)) { |