From 7bba0cbaa6d243cf77517b501feb3b2635de8167 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Sun, 11 Nov 2018 22:54:43 +0300 Subject: [PATCH] Little formatting --- src/MicrodataDOMElement.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/MicrodataDOMElement.php b/src/MicrodataDOMElement.php index d6a24e2..f6e0b20 100644 --- a/src/MicrodataDOMElement.php +++ b/src/MicrodataDOMElement.php @@ -59,14 +59,11 @@ class MicrodataDOMElement extends \DOMElement $properties[] = $token; } - $properties = array_unique($properties); - - return $properties; + return array_unique($properties); } public function getPropertyValue() { - if ($this->hasAttribute('itemscope')) { return $this; }