Passed
Branch master (a3c0d0)
by Cody
02:54
created
plugins/toggle_sidebar/init.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 class Toggle_Sidebar extends Plugin {
3 3
 
4
-	private $host;
4
+    private $host;
5 5
 
6
-	public function about() {
7
-		return array(1.0,
8
-			"Adds a main toolbar button to toggle sidebar",
9
-			"fox");
10
-	}
6
+    public function about() {
7
+        return array(1.0,
8
+            "Adds a main toolbar button to toggle sidebar",
9
+            "fox");
10
+    }
11 11
 
12
-	public function init($host) {
13
-		$this->host = $host;
12
+    public function init($host) {
13
+        $this->host = $host;
14 14
 
15
-		$host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this);
16
-	}
15
+        $host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this);
16
+    }
17 17
 
18
-	public function get_js() {
19
-		return file_get_contents(__DIR__ . "/init.js");
20
-	}
18
+    public function get_js() {
19
+        return file_get_contents(__DIR__ . "/init.js");
20
+    }
21 21
 
22
-	public function hook_main_toolbar_button() {
23
-		?>
22
+    public function hook_main_toolbar_button() {
23
+        ?>
24 24
 
25 25
 		<button dojoType="dijit.form.Button" onclick="Plugins.Toggle_Sidebar.toggle(this)">
26 26
 			<i class="material-icons toggle-sidebar-label"
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
 		</button>
29 29
 
30 30
 		<?php
31
-	}
31
+    }
32 32
 
33
-	public function api_version() {
34
-		return 2;
35
-	}
33
+    public function api_version() {
34
+        return 2;
35
+    }
36 36
 
37 37
 }
38 38
 ?>
Please login to merge, or discard this patch.
plugins/googlereaderkeys/init.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@
 block discarded – undo
1 1
 <?php
2 2
 class GoogleReaderKeys extends Plugin {
3
-	private $host;
4
-
5
-	public function about() {
6
-		return array(1.0,
7
-			"Keyboard hotkeys emulate Google Reader",
8
-			"markwaters");
9
-	}
10
-
11
-	public function init($host) {
12
-		$this->host = $host;
13
-
14
-		$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
15
-	}
16
-
17
-	public function hook_hotkey_map($hotkeys) {
18
-
19
-		$hotkeys["j"]		= "next_article_noscroll";
20
-		$hotkeys["k"]		= "prev_article_noscroll";
21
-		$hotkeys["N"]		= "next_feed";
22
-		$hotkeys["P"]		= "prev_feed";
23
-		$hotkeys["v"]		= "open_in_new_window";
24
-		$hotkeys["r"]		= "feed_refresh";
25
-		$hotkeys["m"]		= "toggle_unread";
26
-		$hotkeys["o"]		= "toggle_expand";
27
-		$hotkeys["\r|Enter"]	= "toggle_expand";
28
-		$hotkeys["?"]		= "help_dialog";
29
-		$hotkeys[" |Space"]	= "next_article";
30
-		$hotkeys["(38)|Up"]	= "article_scroll_up";
31
-		$hotkeys["(40)|Down"]	= "article_scroll_down";
32
-
33
-		return $hotkeys;
34
-	}
35
-
36
-	public function api_version() {
37
-		return 2;
38
-	}
3
+    private $host;
4
+
5
+    public function about() {
6
+        return array(1.0,
7
+            "Keyboard hotkeys emulate Google Reader",
8
+            "markwaters");
9
+    }
10
+
11
+    public function init($host) {
12
+        $this->host = $host;
13
+
14
+        $host->add_hook($host::HOOK_HOTKEY_MAP, $this);
15
+    }
16
+
17
+    public function hook_hotkey_map($hotkeys) {
18
+
19
+        $hotkeys["j"]		= "next_article_noscroll";
20
+        $hotkeys["k"]		= "prev_article_noscroll";
21
+        $hotkeys["N"]		= "next_feed";
22
+        $hotkeys["P"]		= "prev_feed";
23
+        $hotkeys["v"]		= "open_in_new_window";
24
+        $hotkeys["r"]		= "feed_refresh";
25
+        $hotkeys["m"]		= "toggle_unread";
26
+        $hotkeys["o"]		= "toggle_expand";
27
+        $hotkeys["\r|Enter"]	= "toggle_expand";
28
+        $hotkeys["?"]		= "help_dialog";
29
+        $hotkeys[" |Space"]	= "next_article";
30
+        $hotkeys["(38)|Up"]	= "article_scroll_up";
31
+        $hotkeys["(40)|Down"]	= "article_scroll_down";
32
+
33
+        return $hotkeys;
34
+    }
35
+
36
+    public function api_version() {
37
+        return 2;
38
+    }
39 39
 
40 40
 }
Please login to merge, or discard this patch.
plugins/hotkeys_noscroll/init.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 Hotkeys_Noscroll extends Plugin {
3
-	private $host;
3
+    private $host;
4 4
 
5
-	public function about() {
6
-		return array(1.0,
7
-			"n/p hotkeys move between articles without scrolling",
8
-			"fox");
9
-	}
5
+    public function about() {
6
+        return array(1.0,
7
+            "n/p hotkeys move between articles without scrolling",
8
+            "fox");
9
+    }
10 10
 
11
-	public function init($host) {
12
-		$this->host = $host;
11
+    public function init($host) {
12
+        $this->host = $host;
13 13
 
14
-		$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
15
-	}
14
+        $host->add_hook($host::HOOK_HOTKEY_MAP, $this);
15
+    }
16 16
 
17
-	public function hook_hotkey_map($hotkeys) {
17
+    public function hook_hotkey_map($hotkeys) {
18 18
 
19
-		$hotkeys["(40)|Down"] = "next_article_noscroll";
20
-		$hotkeys["(38)|Up"] = "prev_article_noscroll";
21
-		$hotkeys["n"] = "next_article_noscroll";
22
-		$hotkeys["p"] = "prev_article_noscroll";
19
+        $hotkeys["(40)|Down"] = "next_article_noscroll";
20
+        $hotkeys["(38)|Up"] = "prev_article_noscroll";
21
+        $hotkeys["n"] = "next_article_noscroll";
22
+        $hotkeys["p"] = "prev_article_noscroll";
23 23
 
24
-		return $hotkeys;
25
-	}
24
+        return $hotkeys;
25
+    }
26 26
 
27
-	public function api_version() {
28
-		return 2;
29
-	}
27
+    public function api_version() {
28
+        return 2;
29
+    }
30 30
 
31 31
 }
Please login to merge, or discard this patch.
plugins/af_youtube_embed/init.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,47 +1,47 @@
 block discarded – undo
1 1
 <?php
2 2
 class Af_Youtube_Embed extends Plugin {
3
-	private $host;
3
+    private $host;
4 4
 
5
-	public function about() {
6
-		return array(1.0,
7
-			"Embed videos in Youtube RSS feeds (and whitelist Youtube iframes)",
8
-			"fox");
9
-	}
5
+    public function about() {
6
+        return array(1.0,
7
+            "Embed videos in Youtube RSS feeds (and whitelist Youtube iframes)",
8
+            "fox");
9
+    }
10 10
 
11
-	public function init($host) {
12
-		$this->host = $host;
11
+    public function init($host) {
12
+        $this->host = $host;
13 13
 
14
-		$host->add_hook($host::HOOK_RENDER_ENCLOSURE, $this);
15
-		$host->add_hook($host::HOOK_IFRAME_WHITELISTED, $this);
16
-	}
14
+        $host->add_hook($host::HOOK_RENDER_ENCLOSURE, $this);
15
+        $host->add_hook($host::HOOK_IFRAME_WHITELISTED, $this);
16
+    }
17 17
 
18
-	public function hook_iframe_whitelisted($src) {
19
-		return in_array($src, ["www.youtube.com", "youtube.com", "youtu.be"]);
20
-	}
18
+    public function hook_iframe_whitelisted($src) {
19
+        return in_array($src, ["www.youtube.com", "youtube.com", "youtu.be"]);
20
+    }
21 21
 
22
-	/**
23
-	 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
24
-	 */
25
-	public function hook_render_enclosure($entry, $hide_images) {
22
+    /**
23
+     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
24
+     */
25
+    public function hook_render_enclosure($entry, $hide_images) {
26 26
 
27
-		$matches = array();
27
+        $matches = array();
28 28
 
29
-		if (preg_match("/\/\/www\.youtube\.com\/v\/([\w-]+)/", $entry["url"], $matches) ||
30
-			preg_match("/\/\/www\.youtube\.com\/watch?v=([\w-]+)/", $entry["url"], $matches) ||
31
-			preg_match("/\/\/youtu.be\/([\w-]+)/", $entry["url"], $matches)) {
29
+        if (preg_match("/\/\/www\.youtube\.com\/v\/([\w-]+)/", $entry["url"], $matches) ||
30
+            preg_match("/\/\/www\.youtube\.com\/watch?v=([\w-]+)/", $entry["url"], $matches) ||
31
+            preg_match("/\/\/youtu.be\/([\w-]+)/", $entry["url"], $matches)) {
32 32
 
33
-			$vid_id = $matches[1];
33
+            $vid_id = $matches[1];
34 34
 
35
-			return "<iframe class=\"youtube-player\"
35
+            return "<iframe class=\"youtube-player\"
36 36
 				type=\"text/html\" width=\"640\" height=\"385\"
37 37
 				src=\"https://www.youtube.com/embed/$vid_id\"
38 38
 				allowfullscreen frameborder=\"0\"></iframe>";
39 39
 
40
-		}
41
-	}
40
+        }
41
+    }
42 42
 
43
-	public function api_version() {
44
-		return 2;
45
-	}
43
+    public function api_version() {
44
+        return 2;
45
+    }
46 46
 
47 47
 }
Please login to merge, or discard this patch.