From 9de66c3b4006c2005132f245dbd5214e26a4fb24 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Sun, 11 Nov 2018 22:59:59 +0300 Subject: [PATCH] Added no break comments This is for both PSR-2 and avoiding pitfalls(that is why it is in PSR-2). --- src/MicrodataDOMElement.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MicrodataDOMElement.php b/src/MicrodataDOMElement.php index c5ddff8..ef62b2c 100644 --- a/src/MicrodataDOMElement.php +++ b/src/MicrodataDOMElement.php @@ -88,6 +88,7 @@ class MicrodataDOMElement extends \DOMElement // @todo check against protocol relative urls like "//example.com/test.jpg" return $this->isAbsoluteUri($result) ? $result : $base.$result; } + // No break case 'a': case 'area': case 'link': @@ -96,21 +97,25 @@ class MicrodataDOMElement extends \DOMElement return $this->isAbsoluteUri($result) ? $result : $base.$result; } + // No break case 'object': if ($this->hasAttribute('data')) { $result = $this->getAttribute('data'); return $this->isAbsoluteUri($result) ? $result : $base.$result; } + // No break case 'data': case 'meter': if ($this->hasAttribute('value')) { return $this->getAttribute('value'); } + // No break case 'time': if ($this->hasAttribute('datetime')) { return $this->getAttribute('datetime'); } + // No break default: return $this->textContent; }