@@ 200-216 (lines=17) @@ | ||
197 | * @param string[] $statuses |
|
198 | * @return bool |
|
199 | */ |
|
200 | private function canUseStoredResults( |
|
201 | array $entityIds, |
|
202 | array $claimIds, |
|
203 | array $constraintIds = null, |
|
204 | array $statuses |
|
205 | ) { |
|
206 | if ( $claimIds !== [] ) { |
|
207 | return false; |
|
208 | } |
|
209 | if ( $constraintIds !== null ) { |
|
210 | return false; |
|
211 | } |
|
212 | if ( $statuses != $this->cachedStatuses ) { |
|
213 | return false; |
|
214 | } |
|
215 | return true; |
|
216 | } |
|
217 | ||
218 | /** |
|
219 | * @param EntityId[] $entityIds |
|
@@ 275-288 (lines=14) @@ | ||
272 | * @param string[] $statuses |
|
273 | * @return bool |
|
274 | */ |
|
275 | private function canStoreResults( |
|
276 | array $entityIds, |
|
277 | array $claimIds, |
|
278 | array $constraintIds = null, |
|
279 | array $statuses |
|
280 | ) { |
|
281 | if ( $constraintIds !== null ) { |
|
282 | return false; |
|
283 | } |
|
284 | if ( $statuses != $this->cachedStatuses ) { |
|
285 | return false; |
|
286 | } |
|
287 | return true; |
|
288 | } |
|
289 | ||
290 | /** |
|
291 | * @param EntityId $entityId |