src/NotificationType.php 1 location
|
@@ 40-42 (lines=3) @@
|
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
$parts = explode(':', $searchTarget, 5); |
| 40 |
|
if (5 !== count($parts) || 'urn' !== array_shift($parts)) { |
| 41 |
|
throw new \InvalidArgumentException('Invalid string.'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
$instance->setDomainName(array_shift($parts)); |
| 45 |
|
|
src/UniqueServiceName.php 1 location
|
@@ 46-48 (lines=3) @@
|
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$parts = explode(':', $parts[1], 5); |
| 46 |
|
if (5 !== count($parts) || 'urn' !== array_shift($parts)) { |
| 47 |
|
throw new \InvalidArgumentException('Invalid string.'); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
$instance->setDomainName(array_shift($parts)); |
| 51 |
|
|