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"
|
// @todo check against protocol relative urls like "//example.com/test.jpg"
|
||||||
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
||||||
}
|
}
|
||||||
|
// No break
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'area':
|
case 'area':
|
||||||
case 'link':
|
case 'link':
|
||||||
@ -96,21 +97,25 @@ class MicrodataDOMElement extends \DOMElement
|
|||||||
|
|
||||||
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
||||||
}
|
}
|
||||||
|
// No break
|
||||||
case 'object':
|
case 'object':
|
||||||
if ($this->hasAttribute('data')) {
|
if ($this->hasAttribute('data')) {
|
||||||
$result = $this->getAttribute('data');
|
$result = $this->getAttribute('data');
|
||||||
|
|
||||||
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
return $this->isAbsoluteUri($result) ? $result : $base.$result;
|
||||||
}
|
}
|
||||||
|
// No break
|
||||||
case 'data':
|
case 'data':
|
||||||
case 'meter':
|
case 'meter':
|
||||||
if ($this->hasAttribute('value')) {
|
if ($this->hasAttribute('value')) {
|
||||||
return $this->getAttribute('value');
|
return $this->getAttribute('value');
|
||||||
}
|
}
|
||||||
|
// No break
|
||||||
case 'time':
|
case 'time':
|
||||||
if ($this->hasAttribute('datetime')) {
|
if ($this->hasAttribute('datetime')) {
|
||||||
return $this->getAttribute('datetime');
|
return $this->getAttribute('datetime');
|
||||||
}
|
}
|
||||||
|
// No break
|
||||||
default:
|
default:
|
||||||
return $this->textContent;
|
return $this->textContent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user