|
@@ 367-371 (lines=5) @@
|
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
$requiredKeyErrorMessage = 'The "%s" key is missing from the Xref definition with the key "%s".'; |
| 367 |
|
if (!isset($xrefInfo[$this->includeXrefTypeKey])) { |
| 368 |
|
throw new TreeCompilerFormatException( |
| 369 |
|
sprintf($requiredKeyErrorMessage, $this->includeXrefTypeKey, $xrefKey) |
| 370 |
|
); |
| 371 |
|
} |
| 372 |
|
$xrefType = $xrefInfo[$this->includeXrefTypeKey]; |
| 373 |
|
if ($xrefType == InlineXrefResolver::getType()) { |
| 374 |
|
if (!isset($xrefInfo[$this->includeXrefDataKey])) { |
|
@@ 374-378 (lines=5) @@
|
| 371 |
|
} |
| 372 |
|
$xrefType = $xrefInfo[$this->includeXrefTypeKey]; |
| 373 |
|
if ($xrefType == InlineXrefResolver::getType()) { |
| 374 |
|
if (!isset($xrefInfo[$this->includeXrefDataKey])) { |
| 375 |
|
throw new TreeCompilerFormatException( |
| 376 |
|
sprintf($requiredKeyErrorMessage, $this->includeXrefDataKey, $xrefKey) |
| 377 |
|
); |
| 378 |
|
} |
| 379 |
|
$xrefData = $xrefInfo[$this->includeXrefDataKey]; |
| 380 |
|
$xrefLocation = Xref::computeId($xrefType, serialize($xrefData)); |
| 381 |
|
} else { |
|
@@ 382-386 (lines=5) @@
|
| 379 |
|
$xrefData = $xrefInfo[$this->includeXrefDataKey]; |
| 380 |
|
$xrefLocation = Xref::computeId($xrefType, serialize($xrefData)); |
| 381 |
|
} else { |
| 382 |
|
if (!isset($xrefInfo[$this->includeXrefLocationKey])) { |
| 383 |
|
throw new TreeCompilerFormatException( |
| 384 |
|
sprintf($requiredKeyErrorMessage, $this->includeXrefLocationKey, $xrefKey) |
| 385 |
|
); |
| 386 |
|
} |
| 387 |
|
$xrefLocation = $xrefInfo[$this->includeXrefLocationKey]; |
| 388 |
|
} |
| 389 |
|
} |