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:
parent
9dd85c1e5b
commit
9de66c3b40
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user