Added no break comments

This is for both PSR-2 and avoiding pitfalls(that is why it is in PSR-2).
This commit is contained in:
Yusuf Kandemir 2018-11-11 22:59:59 +03:00
parent 9dd85c1e5b
commit 9de66c3b40
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}