[FeedExpander] Align logical operators in next line
This is a cosmetic change to apply the same standard as in HTMLUtils
This commit is contained in:
parent
2331c4fbab
commit
351eb00400
1 changed files with 3 additions and 5 deletions
|
@ -152,11 +152,9 @@ abstract class FeedExpander extends BridgeAbstract {
|
||||||
if(isset($namespaces['dc'])) $dc = $feedItem->children($namespaces['dc']);
|
if(isset($namespaces['dc'])) $dc = $feedItem->children($namespaces['dc']);
|
||||||
|
|
||||||
if(isset($feedItem->guid)){
|
if(isset($feedItem->guid)){
|
||||||
foreach($feedItem->guid->attributes() as $attribute=>$value){
|
foreach($feedItem->guid->attributes() as $attribute => $value){
|
||||||
if($attribute === 'isPermaLink' && (
|
if($attribute === 'isPermaLink'
|
||||||
$value === 'true' ||
|
&& ($value === 'true' || filter_var($feedItem->guid,FILTER_VALIDATE_URL))){
|
||||||
filter_var($feedItem->guid,FILTER_VALIDATE_URL)
|
|
||||||
)){
|
|
||||||
$item['uri'] = $feedItem->guid;
|
$item['uri'] = $feedItem->guid;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue