@@ 4016-4040 (lines=25) @@ | ||
4013 | ||
4014 | /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */ |
|
4015 | foreach ($this->getGeneratorByReference() as $key => &$value) { |
|
4016 | if ( |
|
4017 | ( |
|
4018 | $is_array_tmp === false |
|
4019 | && |
|
4020 | $strict === true |
|
4021 | && |
|
4022 | $search_values === $value |
|
4023 | ) |
|
4024 | || |
|
4025 | ( |
|
4026 | $is_array_tmp === false |
|
4027 | && |
|
4028 | $strict === false |
|
4029 | && |
|
4030 | $search_values == $value |
|
4031 | ) |
|
4032 | || |
|
4033 | ( |
|
4034 | $is_array_tmp === true |
|
4035 | && |
|
4036 | \in_array($value, $search_values, $strict) |
|
4037 | ) |
|
4038 | ) { |
|
4039 | yield $key; |
|
4040 | } |
|
4041 | } |
|
4042 | }; |
|
4043 | } |
|
@@ 7172-7196 (lines=25) @@ | ||
7169 | $is_array_tmp = \is_array($search_values); |
|
7170 | ||
7171 | foreach ($input as $key => $value) { |
|
7172 | if ( |
|
7173 | ( |
|
7174 | $is_array_tmp === false |
|
7175 | && |
|
7176 | $strict === true |
|
7177 | && |
|
7178 | $search_values === $value |
|
7179 | ) |
|
7180 | || |
|
7181 | ( |
|
7182 | $is_array_tmp === false |
|
7183 | && |
|
7184 | $strict === false |
|
7185 | && |
|
7186 | $search_values == $value |
|
7187 | ) |
|
7188 | || |
|
7189 | ( |
|
7190 | $is_array_tmp === true |
|
7191 | && |
|
7192 | \in_array($value, $search_values, $strict) |
|
7193 | ) |
|
7194 | ) { |
|
7195 | $keys[] = $key; |
|
7196 | } |
|
7197 | ||
7198 | // check if recursive is needed |
|
7199 | if (\is_array($value)) { |