]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_comics_gocomics: fix indenting
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 8 Aug 2014 07:10:52 +0000 (11:10 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 8 Aug 2014 07:10:52 +0000 (11:10 +0400)
plugins/af_comics/filters/af_comics_gocomics.php

index 19ffe33f99ab293904fc2affa2fc8391a75f323a..d950dbe6b60d8eb1bae0147980b629c652a4b12b 100644 (file)
@@ -29,18 +29,16 @@ class Af_Comics_GoComics extends Af_ComicFilter {
                                                }
                                        }
 
-                    if (!$basenode) {
-                        // fallback on the smaller version
-                        foreach ($entries as $entry) {
-
-                            if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
-
-                                $entry->setAttribute("src", $matches[0]);
-                                $basenode = $entry;
-                                break;
-                            }
-                        }
-                    }
+                                       if (!$basenode) {
+                                               // fallback on the smaller version
+                                               foreach ($entries as $entry) {
+                                                       if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
+                                                               $entry->setAttribute("src", $matches[0]);
+                                                               $basenode = $entry;
+                                                               break;
+                                                       }
+                                               }
+                                       }
 
                                        if ($basenode) {
                                                $article["content"] = $doc->saveXML($basenode);