Passed
Branch master (a3c0d0)
by Cody
02:54
created
plugins/af_comics/af_comics_template.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Template extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Example");
6
-	}
4
+    public function supported() {
5
+        return array("Example");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		//$owner_uid = $article["owner_uid"];
8
+    public function process(&$article) {
9
+        //$owner_uid = $article["owner_uid"];
10 10
 
11
-		return false;
12
-	}
11
+        return false;
12
+    }
13 13
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_explosm.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Explosm extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Cyanide and Happiness");
6
-	}
4
+    public function supported() {
5
+        return array("Cyanide and Happiness");
6
+    }
7 7
 
8
-	public function process(&$article) {
8
+    public function process(&$article) {
9 9
 
10
-		if (strpos($article["link"], "explosm.net/comics") !== FALSE) {
10
+        if (strpos($article["link"], "explosm.net/comics") !== FALSE) {
11 11
 
12
-				$doc = new DOMDocument();
12
+                $doc = new DOMDocument();
13 13
 
14
-				if (@$doc->loadHTML(fetch_file_contents($article["link"]))) {
15
-					$xpath = new DOMXPath($doc);
16
-					$basenode = $xpath->query('(//img[@id="main-comic"])')->item(0);
14
+                if (@$doc->loadHTML(fetch_file_contents($article["link"]))) {
15
+                    $xpath = new DOMXPath($doc);
16
+                    $basenode = $xpath->query('(//img[@id="main-comic"])')->item(0);
17 17
 
18
-					if ($basenode) {
19
-						$article["content"] = $doc->saveHTML($basenode);
20
-					}
21
-				}
18
+                    if ($basenode) {
19
+                        $article["content"] = $doc->saveHTML($basenode);
20
+                    }
21
+                }
22 22
 
23
-			return true;
24
-		}
23
+            return true;
24
+        }
25 25
 
26
-		return false;
27
-	}
26
+        return false;
27
+    }
28 28
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_comicpress.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -1,64 +1,64 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_ComicPress extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Buni", "Buttersafe", "Happy Jar", "CSection",
6
-			"Extra Fabulous Comics", "Nedroid", "Stonetoss");
7
-	}
4
+    public function supported() {
5
+        return array("Buni", "Buttersafe", "Happy Jar", "CSection",
6
+            "Extra Fabulous Comics", "Nedroid", "Stonetoss");
7
+    }
8 8
 
9
-	public function process(&$article) {
10
-		if (strpos($article["guid"], "bunicomic.com") !== FALSE ||
11
-				strpos($article["guid"], "buttersafe.com") !== FALSE ||
12
-				strpos($article["guid"], "extrafabulouscomics.com") !== FALSE ||
13
-				strpos($article["guid"], "happyjar.com") !== FALSE ||
14
-				strpos($article["guid"], "nedroid.com") !== FALSE ||
15
-				strpos($article["guid"], "stonetoss.com") !== FALSE ||
16
-				strpos($article["guid"], "csectioncomics.com") !== FALSE) {
9
+    public function process(&$article) {
10
+        if (strpos($article["guid"], "bunicomic.com") !== FALSE ||
11
+                strpos($article["guid"], "buttersafe.com") !== FALSE ||
12
+                strpos($article["guid"], "extrafabulouscomics.com") !== FALSE ||
13
+                strpos($article["guid"], "happyjar.com") !== FALSE ||
14
+                strpos($article["guid"], "nedroid.com") !== FALSE ||
15
+                strpos($article["guid"], "stonetoss.com") !== FALSE ||
16
+                strpos($article["guid"], "csectioncomics.com") !== FALSE) {
17 17
 
18
-				// lol at people who block clients by user agent
19
-				// oh noes my ad revenue Q_Q
18
+                // lol at people who block clients by user agent
19
+                // oh noes my ad revenue Q_Q
20 20
 
21
-				$res = fetch_file_contents(["url" => $article["link"],
22
-					"useragent" => "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"]);
21
+                $res = fetch_file_contents(["url" => $article["link"],
22
+                    "useragent" => "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"]);
23 23
 
24
-				$doc = new DOMDocument();
24
+                $doc = new DOMDocument();
25 25
 
26
-				if (@$doc->loadHTML($res)) {
27
-					$xpath = new DOMXPath($doc);
28
-					$basenode = $xpath->query('//div[@id="comic"]')->item(0);
26
+                if (@$doc->loadHTML($res)) {
27
+                    $xpath = new DOMXPath($doc);
28
+                    $basenode = $xpath->query('//div[@id="comic"]')->item(0);
29 29
 
30
-					if ($basenode) {
31
-						$article["content"] = $doc->saveHTML($basenode);
32
-						return true;
33
-					}
30
+                    if ($basenode) {
31
+                        $article["content"] = $doc->saveHTML($basenode);
32
+                        return true;
33
+                    }
34 34
 
35
-					// buni-specific
36
-					$webtoon_link = $xpath->query("//a[contains(@href,'www.webtoons.com')]")->item(0);
35
+                    // buni-specific
36
+                    $webtoon_link = $xpath->query("//a[contains(@href,'www.webtoons.com')]")->item(0);
37 37
 
38
-					if ($webtoon_link) {
38
+                    if ($webtoon_link) {
39 39
 
40
-						$res = fetch_file_contents(["url" => $webtoon_link->getAttribute("href"),
41
-							"useragent" => "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"]);
40
+                        $res = fetch_file_contents(["url" => $webtoon_link->getAttribute("href"),
41
+                            "useragent" => "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"]);
42 42
 
43
-						if (@$doc->loadHTML($res)) {
44
-							$xpath = new DOMXPath($doc);
45
-							$basenode = $xpath->query('//div[@id="_viewerBox"]')->item(0);
43
+                        if (@$doc->loadHTML($res)) {
44
+                            $xpath = new DOMXPath($doc);
45
+                            $basenode = $xpath->query('//div[@id="_viewerBox"]')->item(0);
46 46
 
47
-							if ($basenode) {
48
-								$imgs = $xpath->query("//img[@data-url]", $basenode);
47
+                            if ($basenode) {
48
+                                $imgs = $xpath->query("//img[@data-url]", $basenode);
49 49
 
50
-								foreach ($imgs as $img) {
51
-									$img->setAttribute("src", $img->getAttribute("data-url"));
52
-								}
50
+                                foreach ($imgs as $img) {
51
+                                    $img->setAttribute("src", $img->getAttribute("data-url"));
52
+                                }
53 53
 
54
-								$article["content"] = $doc->saveHTML($basenode);
55
-								return true;
56
-							}
57
-						}
58
-					}
59
-				}
60
-		}
54
+                                $article["content"] = $doc->saveHTML($basenode);
55
+                                return true;
56
+                            }
57
+                        }
58
+                    }
59
+                }
60
+        }
61 61
 
62
-		return false;
63
-	}
62
+        return false;
63
+    }
64 64
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_darklegacy.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_DarkLegacy extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Dark Legacy Comics");
6
-	}
4
+    public function supported() {
5
+        return array("Dark Legacy Comics");
6
+    }
7 7
 
8
-	public function process(&$article) {
8
+    public function process(&$article) {
9 9
 
10
-		if (strpos($article["guid"], "darklegacycomics.com") !== FALSE) {
10
+        if (strpos($article["guid"], "darklegacycomics.com") !== FALSE) {
11 11
 
12
-				$res = fetch_file_contents($article["link"], false, false, false,
13
-					 false, false, 0,
14
-					 "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
12
+                $res = fetch_file_contents($article["link"], false, false, false,
13
+                        false, false, 0,
14
+                        "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
15 15
 
16
-				global $fetch_last_error_content;
16
+                global $fetch_last_error_content;
17 17
 
18
-				if (!$res && $fetch_last_error_content)
19
-					$res = $fetch_last_error_content;
18
+                if (!$res && $fetch_last_error_content)
19
+                    $res = $fetch_last_error_content;
20 20
 
21
-				$doc = new DOMDocument();
21
+                $doc = new DOMDocument();
22 22
 
23
-				if (@$doc->loadHTML($res)) {
24
-					$xpath = new DOMXPath($doc);
25
-					$basenode = $xpath->query('//div[@class="comic"]')->item(0);
23
+                if (@$doc->loadHTML($res)) {
24
+                    $xpath = new DOMXPath($doc);
25
+                    $basenode = $xpath->query('//div[@class="comic"]')->item(0);
26 26
 
27
-					if ($basenode) {
27
+                    if ($basenode) {
28 28
 
29
-						$article["content"] = $doc->saveHTML($basenode);
30
-					}
31
-				}
29
+                        $article["content"] = $doc->saveHTML($basenode);
30
+                    }
31
+                }
32 32
 
33
-			 return true;
34
-		}
33
+                return true;
34
+        }
35 35
 
36
-		return false;
37
-	}
36
+        return false;
37
+    }
38 38
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_tfd.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Tfd extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Toothpaste For Dinner", "Married to the Sea");
6
-	}
4
+    public function supported() {
5
+        return array("Toothpaste For Dinner", "Married to the Sea");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		if (strpos($article["link"], "toothpastefordinner.com") !== FALSE ||
10
-		    strpos($article["link"], "marriedtothesea.com") !== FALSE) {
11
-			$res = fetch_file_contents($article["link"], false, false, false,
12
-				false, false, 0,
13
-				"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
8
+    public function process(&$article) {
9
+        if (strpos($article["link"], "toothpastefordinner.com") !== FALSE ||
10
+            strpos($article["link"], "marriedtothesea.com") !== FALSE) {
11
+            $res = fetch_file_contents($article["link"], false, false, false,
12
+                false, false, 0,
13
+                "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
14 14
 
15
-			if (!$res) return $article;
15
+            if (!$res) return $article;
16 16
 
17
-			$doc = new DOMDocument();
17
+            $doc = new DOMDocument();
18 18
 
19
-			if (@$doc->loadHTML(fetch_file_contents($article["link"]))) {
20
-				$xpath = new DOMXPath($doc);
21
-				$basenode = $xpath->query('//img[contains(@src, ".gif")]')->item(0);
19
+            if (@$doc->loadHTML(fetch_file_contents($article["link"]))) {
20
+                $xpath = new DOMXPath($doc);
21
+                $basenode = $xpath->query('//img[contains(@src, ".gif")]')->item(0);
22 22
 
23
-				if ($basenode) {
24
-					$article["content"] = $doc->saveHTML($basenode);
25
-					return true;
26
-				}
27
-			}
28
-		}
23
+                if ($basenode) {
24
+                    $article["content"] = $doc->saveHTML($basenode);
25
+                    return true;
26
+                }
27
+            }
28
+        }
29 29
 
30
-		return false;
31
-	}
30
+        return false;
31
+    }
32 32
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_cad.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Cad extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Ctrl+Alt+Del");
6
-	}
4
+    public function supported() {
5
+        return array("Ctrl+Alt+Del");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		if (strpos($article["link"], "cad-comic.com") !== FALSE) {
10
-			if (strpos($article["title"], "News:") === FALSE) {
8
+    public function process(&$article) {
9
+        if (strpos($article["link"], "cad-comic.com") !== FALSE) {
10
+            if (strpos($article["title"], "News:") === FALSE) {
11 11
 
12
-				global $fetch_last_error_content;
12
+                global $fetch_last_error_content;
13 13
 
14
-				$doc = new DOMDocument();
14
+                $doc = new DOMDocument();
15 15
 
16
-				$res = fetch_file_contents($article["link"], false, false, false,
17
-					false, false, 0,
18
-					"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0");
16
+                $res = fetch_file_contents($article["link"], false, false, false,
17
+                    false, false, 0,
18
+                    "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0");
19 19
 
20
-				if (!$res && $fetch_last_error_content)
21
-					$res = $fetch_last_error_content;
20
+                if (!$res && $fetch_last_error_content)
21
+                    $res = $fetch_last_error_content;
22 22
 
23
-				if (@$doc->loadHTML($res)) {
24
-					$xpath = new DOMXPath($doc);
25
-					$basenode = $xpath->query('//div[@class="comicpage"]/a/img')->item(0);
23
+                if (@$doc->loadHTML($res)) {
24
+                    $xpath = new DOMXPath($doc);
25
+                    $basenode = $xpath->query('//div[@class="comicpage"]/a/img')->item(0);
26 26
 
27
-					if ($basenode) {
28
-						$article["content"] = $doc->saveHTML($basenode);
29
-					}
30
-				}
27
+                    if ($basenode) {
28
+                        $article["content"] = $doc->saveHTML($basenode);
29
+                    }
30
+                }
31 31
 
32
-			}
32
+            }
33 33
 
34
-			return true;
35
-		}
34
+            return true;
35
+        }
36 36
 
37
-		return false;
38
-	}
37
+        return false;
38
+    }
39 39
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_whomp.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,36 +1,36 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Whomp extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Whomp!");
6
-	}
4
+    public function supported() {
5
+        return array("Whomp!");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		if (strpos($article["guid"], "whompcomic.com") !== FALSE) {
8
+    public function process(&$article) {
9
+        if (strpos($article["guid"], "whompcomic.com") !== FALSE) {
10 10
 
11
-			$res = fetch_file_contents($article["link"], false, false, false,
12
-				 false, false, 0,
13
-				 "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
11
+            $res = fetch_file_contents($article["link"], false, false, false,
12
+                    false, false, 0,
13
+                    "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
14 14
 
15
-			global $fetch_last_error_content;
15
+            global $fetch_last_error_content;
16 16
 
17
-			if (!$res && $fetch_last_error_content)
18
-				$res = $fetch_last_error_content;
17
+            if (!$res && $fetch_last_error_content)
18
+                $res = $fetch_last_error_content;
19 19
 
20
-			$doc = new DOMDocument();
20
+            $doc = new DOMDocument();
21 21
 
22
-			if (@$doc->loadHTML($res)) {
23
-				$xpath = new DOMXPath($doc);
24
-				$basenode = $xpath->query('//img[@id="cc-comic"]')->item(0);
22
+            if (@$doc->loadHTML($res)) {
23
+                $xpath = new DOMXPath($doc);
24
+                $basenode = $xpath->query('//img[@id="cc-comic"]')->item(0);
25 25
 
26
-				if ($basenode) {
27
-					$article["content"] = $doc->saveHTML($basenode);
28
-				}
29
-			}
26
+                if ($basenode) {
27
+                    $article["content"] = $doc->saveHTML($basenode);
28
+                }
29
+            }
30 30
 
31
-			return true;
32
-		}
31
+            return true;
32
+        }
33 33
 
34
-		return false;
35
-	}
34
+        return false;
35
+    }
36 36
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_pa.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -1,67 +1,67 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Pa extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("Penny Arcade");
6
-	}
4
+    public function supported() {
5
+        return array("Penny Arcade");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
8
+    public function process(&$article) {
9
+        if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
10 10
 
11
-				$doc = new DOMDocument();
11
+                $doc = new DOMDocument();
12 12
 
13
-				if ($doc->loadHTML(fetch_file_contents($article["link"]))) {
14
-					$xpath = new DOMXPath($doc);
15
-					$basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0);
13
+                if ($doc->loadHTML(fetch_file_contents($article["link"]))) {
14
+                    $xpath = new DOMXPath($doc);
15
+                    $basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0);
16 16
 
17
-					if ($basenode) {
18
-						$article["content"] = $doc->saveHTML($basenode);
19
-					}
20
-				}
17
+                    if ($basenode) {
18
+                        $article["content"] = $doc->saveHTML($basenode);
19
+                    }
20
+                }
21 21
 
22
-			return true;
23
-		}
22
+            return true;
23
+        }
24 24
 
25
-		if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "News Post:") !== FALSE) {
26
-				$doc = new DOMDocument();
25
+        if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "News Post:") !== FALSE) {
26
+                $doc = new DOMDocument();
27 27
 
28
-				if ($doc->loadHTML(fetch_file_contents($article["link"]))) {
29
-					$xpath = new DOMXPath($doc);
30
-					$entries = $xpath->query('(//div[@class="post"])');
28
+                if ($doc->loadHTML(fetch_file_contents($article["link"]))) {
29
+                    $xpath = new DOMXPath($doc);
30
+                    $entries = $xpath->query('(//div[@class="post"])');
31 31
 
32
-					$basenode = false;
32
+                    $basenode = false;
33 33
 
34
-					foreach ($entries as $entry) {
35
-						$basenode = $entry;
36
-					}
34
+                    foreach ($entries as $entry) {
35
+                        $basenode = $entry;
36
+                    }
37 37
 
38
-					$meta = $xpath->query('(//div[@class="meta"])')->item(0);
39
-					if ($meta->parentNode) { $meta->parentNode->removeChild($meta); }
38
+                    $meta = $xpath->query('(//div[@class="meta"])')->item(0);
39
+                    if ($meta->parentNode) { $meta->parentNode->removeChild($meta); }
40 40
 
41
-					$header = $xpath->query('(//div[@class="postBody"]/h2)')->item(0);
42
-					if ($header->parentNode) { $header->parentNode->removeChild($header); }
41
+                    $header = $xpath->query('(//div[@class="postBody"]/h2)')->item(0);
42
+                    if ($header->parentNode) { $header->parentNode->removeChild($header); }
43 43
 
44
-					$header = $xpath->query('(//div[@class="postBody"]/div[@class="comicPost"])')->item(0);
45
-					if ($header->parentNode) { $header->parentNode->removeChild($header); }
44
+                    $header = $xpath->query('(//div[@class="postBody"]/div[@class="comicPost"])')->item(0);
45
+                    if ($header->parentNode) { $header->parentNode->removeChild($header); }
46 46
 
47
-					$avatar = $xpath->query('(//div[@class="avatar"]//img)')->item(0);
47
+                    $avatar = $xpath->query('(//div[@class="avatar"]//img)')->item(0);
48 48
 
49
-					if ($basenode)
50
-						$basenode->insertBefore($avatar, $basenode->firstChild);
49
+                    if ($basenode)
50
+                        $basenode->insertBefore($avatar, $basenode->firstChild);
51 51
 
52
-					$uninteresting = $xpath->query('(//div[@class="avatar"])');
53
-					foreach ($uninteresting as $i) {
54
-						$i->parentNode->removeChild($i);
55
-					}
52
+                    $uninteresting = $xpath->query('(//div[@class="avatar"])');
53
+                    foreach ($uninteresting as $i) {
54
+                        $i->parentNode->removeChild($i);
55
+                    }
56 56
 
57
-					if ($basenode){
58
-						$article["content"] = $doc->saveHTML($basenode);
59
-					}
60
-				}
57
+                    if ($basenode){
58
+                        $article["content"] = $doc->saveHTML($basenode);
59
+                    }
60
+                }
61 61
 
62
-			return true;
63
-		}
62
+            return true;
63
+        }
64 64
 
65
-		return false;
66
-	}
65
+        return false;
66
+    }
67 67
 }
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_pvp.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Comics_Pvp extends Af_ComicFilter {
3 3
 
4
-	public function supported() {
5
-		return array("PvP Online");
6
-	}
4
+    public function supported() {
5
+        return array("PvP Online");
6
+    }
7 7
 
8
-	public function process(&$article) {
9
-		if (strpos($article["guid"], "pvponline.com") !== FALSE) {
8
+    public function process(&$article) {
9
+        if (strpos($article["guid"], "pvponline.com") !== FALSE) {
10 10
 
11
-				$res = fetch_file_contents($article["link"], false, false, false,
12
-					 false, false, 0,
13
-					 "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
11
+                $res = fetch_file_contents($article["link"], false, false, false,
12
+                        false, false, 0,
13
+                        "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
14 14
 
15
-				$doc = new DOMDocument();
15
+                $doc = new DOMDocument();
16 16
 
17
-				if (@$doc->loadHTML($res)) {
18
-					$xpath = new DOMXPath($doc);
19
-					$basenode = $xpath->query('//section[@class="comic-art"]')->item(0);
17
+                if (@$doc->loadHTML($res)) {
18
+                    $xpath = new DOMXPath($doc);
19
+                    $basenode = $xpath->query('//section[@class="comic-art"]')->item(0);
20 20
 
21
-					if ($basenode) {
22
-						$article["content"] = $doc->saveHTML($basenode);
23
-					}
24
-				}
21
+                    if ($basenode) {
22
+                        $article["content"] = $doc->saveHTML($basenode);
23
+                    }
24
+                }
25 25
 
26
-			 return true;
27
-		}
26
+                return true;
27
+        }
28 28
 
29
-		return false;
30
-	}
29
+        return false;
30
+    }
31 31
 }
Please login to merge, or discard this patch.