| @@ 56-62 (lines=7) @@ | ||
| 53 | ||
| 54 | $included_set = $calendar_response->getIncluded(); |
|
| 55 | ||
| 56 | foreach ($included_set as $unit_id => $set) { |
|
| 57 | if (isset($units[$unit_id]) || empty($units)) { |
|
| 58 | $calendar_response->removeFromMatched($included_set[$unit_id]['unit'], CalendarResponse::INVALID_STATE); |
|
| 59 | ||
| 60 | $this->affected_units[$unit_id] = $included_set[$unit_id]['unit']; |
|
| 61 | } |
|
| 62 | } |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| @@ 51-57 (lines=7) @@ | ||
| 48 | ||
| 49 | $included_set = $calendar_response->getIncluded(); |
|
| 50 | ||
| 51 | foreach ($included_set as $unit_id => $set) { |
|
| 52 | if (isset($units[$unit_id]) || empty($units)) { |
|
| 53 | $calendar_response->removeFromMatched($included_set[$unit_id]['unit'], CalendarResponse::INVALID_STATE); |
|
| 54 | ||
| 55 | $this->affected_units[$unit_id] = $included_set[$unit_id]['unit']; |
|
| 56 | } |
|
| 57 | } |
|
| 58 | } |
|
| 59 | } |
|
| 60 | ||