Skip to content

Commit 56c32b6

Browse files
committed
Use str_contains()
1 parent 18f2b6d commit 56c32b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reader/MicrodataReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function nodeToItem(DOMNode $node, DOMXPath $xpath, string $url) : Item
134134
* We therefore consider anything containing these characters as an absolute URL, and only prepend the
135135
* vocabulary identifier if none of these characters are found.
136136
*/
137-
if (strpos($name, '.') === false && strpos($name, ':') === false) {
137+
if (!str_contains($name, '.') && !str_contains($name, ':')) {
138138
$name = $vocabularyIdentifier . $name;
139139
}
140140

0 commit comments

Comments
 (0)