Skip to content

Commit 9e0174c

Browse files
committed
CS
1 parent e8088e8 commit 9e0174c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/selectors/XPathSelector.php

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function select(DOMNode $context): Selection {
6060
}
6161

6262
private function getXPath(DOMNode $node): DOMXPath {
63-
6463
$dom = $node instanceof DOMDocument ? $node : $node->ownerDocument;
6564
assert($dom instanceof DOMDocument);
6665

src/viewmodel/ViewModelRenderer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private function objectApply(DOMElement $context, object $model): void {
426426
str_replace(['-', ':'], '', ucwords($attribute->nodeName, '-:'))
427427
);
428428

429-
if (in_array($name, ['property','prefix','vocab','resource'])) {
429+
if (in_array($name, ['property', 'prefix', 'vocab', 'resource'], true)) {
430430
continue;
431431
}
432432

0 commit comments

Comments
 (0)