diff --git a/bridges/LWNprevBridge.php b/bridges/LWNprevBridge.php index 44bc555..224a01b 100644 --- a/bridges/LWNprevBridge.php +++ b/bridges/LWNprevBridge.php @@ -1,9 +1,9 @@ jumpToNextTag($h2NextSibling); switch($h2NextSibling->getAttribute('class')){ - case 'FeatureByline': - $item->name=$h2NextSibling->getElementsByTagName('b')->item(0)->textContent; - break; - case 'GAByline': - $text=$h2NextSibling->textContent; - $item->name=substr($text,strpos($text,'by ')); - break; - default: - $item->name='LWN'; - break; + case 'FeatureByline': + $item->name=$h2NextSibling->getElementsByTagName('b')->item(0)->textContent; + break; + case 'GAByline': + $text=$h2NextSibling->textContent; + $item->name=substr($text,strpos($text,'by ')); + break; + default: + $item->name='LWN'; + break; }; $h2FirstChild=$h2->firstChild; @@ -137,7 +137,7 @@ class LWNprevBridge extends BridgeAbstract{ ) ) ){ - $contentEnd=true; + $contentEnd=true; }else{ $content.=$node->C14N(); }