Explorar o código

[FeedExpander] Align logical operators in next line

This is a cosmetic change to apply the same standard as
in HTMLUtils
logmanoriginal %!s(int64=7) %!d(string=hai) anos
pai
achega
351eb00400
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      lib/FeedExpander.php

+ 3 - 5
lib/FeedExpander.php

@@ -152,11 +152,9 @@ abstract class FeedExpander extends BridgeAbstract {
 		if(isset($namespaces['dc'])) $dc = $feedItem->children($namespaces['dc']);
 
 		if(isset($feedItem->guid)){
-			foreach($feedItem->guid->attributes() as $attribute=>$value){
-				if($attribute === 'isPermaLink' && (
-					$value === 'true' ||
-					filter_var($feedItem->guid,FILTER_VALIDATE_URL)
-				)){
+			foreach($feedItem->guid->attributes() as $attribute => $value){
+				if($attribute === 'isPermaLink'
+				&& ($value === 'true' || filter_var($feedItem->guid,FILTER_VALIDATE_URL))){
 					$item['uri'] = $feedItem->guid;
 					break;
 				}