|
@@ 231-236 (lines=6) @@
|
| 228 |
|
$service = $this->getInstance( $prefix ); |
| 229 |
|
foreach ( $service->onRequests( $servReqs, $idFunc ) as $index => $req ) { |
| 230 |
|
// Services use unique IDs for replacement requests |
| 231 |
|
if ( isset( $servReqs[$index] ) || isset( $origPending[$index] ) ) { |
| 232 |
|
// A current or original request which was not modified |
| 233 |
|
} else { |
| 234 |
|
// Replacement request that will convert to original requests |
| 235 |
|
$newReplaceReqsByService[$prefix][$index] = $req; |
| 236 |
|
} |
| 237 |
|
if ( isset( $req['response'] ) ) { |
| 238 |
|
// Replacement requests with pre-set responses should not execute |
| 239 |
|
unset( $executeReqs[$index] ); |
|
@@ 267-272 (lines=6) @@
|
| 264 |
|
$servReqs = array_intersect_key( $doneReqs, $servReqIndexes ); |
| 265 |
|
foreach ( $service->onResponses( $servReqs, $idFunc ) as $index => $req ) { |
| 266 |
|
// Services use unique IDs for replacement requests |
| 267 |
|
if ( isset( $servReqs[$index] ) || isset( $origPending[$index] ) ) { |
| 268 |
|
// A current or original request which was not modified |
| 269 |
|
} else { |
| 270 |
|
// Replacement requests with pre-set responses should not execute |
| 271 |
|
$newReplaceReqsByService[$prefix][$index] = $req; |
| 272 |
|
} |
| 273 |
|
if ( isset( $req['response'] ) ) { |
| 274 |
|
// Replacement requests with pre-set responses should not execute |
| 275 |
|
unset( $origPending[$index] ); |