| @@ 47-54 (lines=8) @@ | ||
| 44 | { |
|
| 45 | $this->validateConditions($conditions); |
|
| 46 | ||
| 47 | if (count($conditions) === 1) { |
|
| 48 | $condition = reset($conditions); |
|
| 49 | if (is_int($condition) || ctype_digit($condition)) { |
|
| 50 | return $this->repository->getContentService()->loadContent($condition); |
|
| 51 | } elseif (is_string($condition)) { |
|
| 52 | return $this->repository->getContentService()->loadContentByRemoteId($condition); |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| 56 | foreach ($conditions as $key => $values) { |
|
| 57 | ||
| @@ 49-56 (lines=8) @@ | ||
| 46 | { |
|
| 47 | $this->validateConditions($conditions); |
|
| 48 | ||
| 49 | if (count($conditions) === 1) { |
|
| 50 | $condition = reset($conditions); |
|
| 51 | if (is_int($condition) || ctype_digit($condition)) { |
|
| 52 | return $this->repository->getLocationService()->loadLocation($condition); |
|
| 53 | } elseif (is_string($condition)) { |
|
| 54 | return $this->repository->getLocationService()->loadLocationByRemoteId($condition); |
|
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| 58 | foreach ($conditions as $key => $values) { |
|
| 59 | ||