Completed
Push — master ( d9eba8...4988a4 )
by Jacob
03:52
created
controller/Error301Controller.class.inc.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 class Error301Controller extends PageController
6 6
 {
7 7
 
8
-	public function __construct($uri)
9
-	{
10
-		Header::redirect($uri);
11
-		exit;
12
-	}
8
+    public function __construct($uri)
9
+    {
10
+        Header::redirect($uri);
11
+        exit;
12
+    }
13 13
 
14
-	protected function set_head_data() {}
15
-	protected function set_body_data() {}
14
+    protected function set_head_data() {}
15
+    protected function set_body_data() {}
16 16
 
17 17
 }
Please login to merge, or discard this patch.
Braces   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,16 +2,20 @@
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-class Error301Controller extends PageController
6
-{
5
+class Error301Controller extends PageController
6
+{
7 7
 
8
-	public function __construct($uri)
9
-	{
8
+	public function __construct($uri)
9
+	{
10 10
 		Header::redirect($uri);
11 11
 		exit;
12 12
 	}
13 13
 
14
-	protected function set_head_data() {}
15
-	protected function set_body_data() {}
14
+	protected function set_head_data()
15
+	{
16
+}
17
+	protected function set_body_data()
18
+	{
19
+}
16 20
 
17 21
 }
Please login to merge, or discard this patch.
controller/home/DefaultPageController.class.inc.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 abstract class DefaultPageController extends PageController
6 6
 {
7 7
 
8
-	protected function set_head_data()
9
-	{
10
-		$this->add_css('normalize');
11
-		$this->add_css('home');
12
-	}
8
+    protected function set_head_data()
9
+    {
10
+        $this->add_css('normalize');
11
+        $this->add_css('home');
12
+    }
13 13
 
14
-	protected function set_body_data()
15
-	{
16
-		$this->set_body('activity_array', $this->get_recent_activity());
17
-	}
14
+    protected function set_body_data()
15
+    {
16
+        $this->set_body('activity_array', $this->get_recent_activity());
17
+    }
18 18
 
19 19
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-abstract class DefaultPageController extends PageController
6
-{
5
+abstract class DefaultPageController extends PageController
6
+{
7 7
 
8
-	protected function set_head_data()
9
-	{
8
+	protected function set_head_data()
9
+	{
10 10
 		$this->add_css('normalize');
11 11
 		$this->add_css('home');
12 12
 	}
13 13
 
14
-	protected function set_body_data()
15
-	{
14
+	protected function set_body_data()
15
+	{
16 16
 		$this->set_body('activity_array', $this->get_recent_activity());
17 17
 	}
18 18
 
Please login to merge, or discard this patch.
controller/home/AboutController.class.inc.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -5,32 +5,32 @@
 block discarded – undo
5 5
 final class AboutController extends DefaultPageController
6 6
 {
7 7
 
8
-	private static $TITLE = 'About | Jacob Emerick';
9
-	private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures';
8
+    private static $TITLE = 'About | Jacob Emerick';
9
+    private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures';
10 10
 
11
-	private static $KEYWORD_ARRAY = array(
12
-		'Jacob Emerick',
13
-		'jacobemerick',
14
-		'jpemeric',
15
-		'about',
16
-		'bio',
17
-		'web developer',
18
-		'hiker');
11
+    private static $KEYWORD_ARRAY = array(
12
+        'Jacob Emerick',
13
+        'jacobemerick',
14
+        'jpemeric',
15
+        'about',
16
+        'bio',
17
+        'web developer',
18
+        'hiker');
19 19
 
20
-	protected function set_head_data()
21
-	{
22
-		$this->set_title(self::$TITLE);
23
-		$this->set_description(self::$DESCRIPTION);
24
-		$this->set_keywords(self::$KEYWORD_ARRAY);
20
+    protected function set_head_data()
21
+    {
22
+        $this->set_title(self::$TITLE);
23
+        $this->set_description(self::$DESCRIPTION);
24
+        $this->set_keywords(self::$KEYWORD_ARRAY);
25 25
 		
26
-		parent::set_head_data();
27
-	}
26
+        parent::set_head_data();
27
+    }
28 28
 
29
-	protected function set_body_data()
30
-	{
31
-		$this->set_body_view('About');
29
+    protected function set_body_data()
30
+    {
31
+        $this->set_body_view('About');
32 32
 		
33
-		parent::set_body_data();
34
-	}
33
+        parent::set_body_data();
34
+    }
35 35
 
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'home/DefaultPageController');
4 4
 
5
-final class AboutController extends DefaultPageController
6
-{
5
+final class AboutController extends DefaultPageController
6
+{
7 7
 
8 8
 	private static $TITLE = 'About | Jacob Emerick';
9 9
 	private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures';
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 		'web developer',
18 18
 		'hiker');
19 19
 
20
-	protected function set_head_data()
21
-	{
20
+	protected function set_head_data()
21
+	{
22 22
 		$this->set_title(self::$TITLE);
23 23
 		$this->set_description(self::$DESCRIPTION);
24 24
 		$this->set_keywords(self::$KEYWORD_ARRAY);
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		parent::set_head_data();
27 27
 	}
28 28
 
29
-	protected function set_body_data()
30
-	{
29
+	protected function set_body_data()
30
+	{
31 31
 		$this->set_body_view('About');
32 32
 		
33 33
 		parent::set_body_data();
Please login to merge, or discard this patch.
controller/site/TermsController.class.inc.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,22 +5,22 @@
 block discarded – undo
5 5
 final class TermsController extends DefaultPageController
6 6
 {
7 7
 
8
-	protected function set_head_data()
9
-	{
10
-		$this->set_title("Terms of Use for Jacob Emerick's Sites");
11
-		$this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes.");
12
-		$this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick'));
8
+    protected function set_head_data()
9
+    {
10
+        $this->set_title("Terms of Use for Jacob Emerick's Sites");
11
+        $this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes.");
12
+        $this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick'));
13 13
 		
14
-		parent::set_head_data();
15
-	}
14
+        parent::set_head_data();
15
+    }
16 16
 
17
-	protected function set_body_data()
18
-	{
19
-		$this->set_body('top_data', array('title' => 'Terms of Use'));
17
+    protected function set_body_data()
18
+    {
19
+        $this->set_body('top_data', array('title' => 'Terms of Use'));
20 20
 		
21
-		$this->set_body('body_view', 'Terms');
21
+        $this->set_body('body_view', 'Terms');
22 22
 		
23
-		parent::set_body_data();
24
-	}
23
+        parent::set_body_data();
24
+    }
25 25
 
26 26
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'site/DefaultPageController');
4 4
 
5
-final class TermsController extends DefaultPageController
6
-{
5
+final class TermsController extends DefaultPageController
6
+{
7 7
 
8
-	protected function set_head_data()
9
-	{
8
+	protected function set_head_data()
9
+	{
10 10
 		$this->set_title("Terms of Use for Jacob Emerick's Sites");
11 11
 		$this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes.");
12 12
 		$this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick'));
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 		parent::set_head_data();
15 15
 	}
16 16
 
17
-	protected function set_body_data()
18
-	{
17
+	protected function set_body_data()
18
+	{
19 19
 		$this->set_body('top_data', array('title' => 'Terms of Use'));
20 20
 		
21 21
 		$this->set_body('body_view', 'Terms');
Please login to merge, or discard this patch.
controller/site/HomeController.class.inc.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@
 block discarded – undo
5 5
 final class HomeController extends DefaultPageController
6 6
 {
7 7
 
8
-	protected function set_head_data()
9
-	{
10
-		$this->set_title("Jacob Emerick's Site Information | General and Technical Information");
11
-		$this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework.");
12
-		$this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick'));
8
+    protected function set_head_data()
9
+    {
10
+        $this->set_title("Jacob Emerick's Site Information | General and Technical Information");
11
+        $this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework.");
12
+        $this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick'));
13 13
 		
14
-		parent::set_head_data();
15
-	}
14
+        parent::set_head_data();
15
+    }
16 16
 
17
-	protected function set_body_data()
18
-	{
19
-		$this->set_body('body_view', 'Home');
17
+    protected function set_body_data()
18
+    {
19
+        $this->set_body('body_view', 'Home');
20 20
 		
21
-		parent::set_body_data();
22
-	}
21
+        parent::set_body_data();
22
+    }
23 23
 
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'site/DefaultPageController');
4 4
 
5
-final class HomeController extends DefaultPageController
6
-{
5
+final class HomeController extends DefaultPageController
6
+{
7 7
 
8
-	protected function set_head_data()
9
-	{
8
+	protected function set_head_data()
9
+	{
10 10
 		$this->set_title("Jacob Emerick's Site Information | General and Technical Information");
11 11
 		$this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework.");
12 12
 		$this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick'));
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 		parent::set_head_data();
15 15
 	}
16 16
 
17
-	protected function set_body_data()
18
-	{
17
+	protected function set_body_data()
18
+	{
19 19
 		$this->set_body('body_view', 'Home');
20 20
 		
21 21
 		parent::set_body_data();
Please login to merge, or discard this patch.
controller/Error303Controller.class.inc.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 class Error303Controller extends PageController
6 6
 {
7 7
 
8
-	public function __construct($uri)
9
-	{
10
-		Header::redirect($uri, 303);
11
-		exit;
12
-	}
8
+    public function __construct($uri)
9
+    {
10
+        Header::redirect($uri, 303);
11
+        exit;
12
+    }
13 13
 
14
-	protected function set_head_data() {}
15
-	protected function set_body_data() {}
14
+    protected function set_head_data() {}
15
+    protected function set_body_data() {}
16 16
 
17 17
 }
Please login to merge, or discard this patch.
Braces   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,16 +2,20 @@
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-class Error303Controller extends PageController
6
-{
5
+class Error303Controller extends PageController
6
+{
7 7
 
8
-	public function __construct($uri)
9
-	{
8
+	public function __construct($uri)
9
+	{
10 10
 		Header::redirect($uri, 303);
11 11
 		exit;
12 12
 	}
13 13
 
14
-	protected function set_head_data() {}
15
-	protected function set_body_data() {}
14
+	protected function set_head_data()
15
+	{
16
+}
17
+	protected function set_body_data()
18
+	{
19
+}
16 20
 
17 21
 }
Please login to merge, or discard this patch.
controller/Error404Controller.class.inc.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -5,58 +5,58 @@
 block discarded – undo
5 5
 class Error404Controller extends PageController
6 6
 {
7 7
 
8
-	protected function set_head_data()
9
-	{
10
-		$this->set_header_method('send404');
11
-		$this->add_css('normalize');
12
-		$this->add_css('404');
8
+    protected function set_head_data()
9
+    {
10
+        $this->set_header_method('send404');
11
+        $this->add_css('normalize');
12
+        $this->add_css('404');
13 13
 		
14
-		$this->set_title("Jacob Emerick's 404 Page");
15
-		$this->set_head('description', 'Global 404 page for sites under jacobemerick.com. Page not found!');
16
-		$this->set_head('keywords', '');
17
-	}
14
+        $this->set_title("Jacob Emerick's 404 Page");
15
+        $this->set_head('description', 'Global 404 page for sites under jacobemerick.com. Page not found!');
16
+        $this->set_head('keywords', '');
17
+    }
18 18
 
19
-	protected function set_body_data()
20
-	{
21
-		$this->set_body('site_list', $this->get_sites());
19
+    protected function set_body_data()
20
+    {
21
+        $this->set_body('site_list', $this->get_sites());
22 22
 		
23
-		$this->set_body_view('/404');
24
-	}
23
+        $this->set_body_view('/404');
24
+    }
25 25
 
26
-	private function get_sites()
27
-	{
26
+    private function get_sites()
27
+    {
28 28
     return [
29
-      [
29
+        [
30 30
         'url' => 'https://home.jacobemerick.com/',
31 31
         'title' => "Jacob Emerick's Home",
32 32
         'name' => 'Home'
33
-      ],
34
-      [
33
+        ],
34
+        [
35 35
         'url' => 'https://blog.jacobemerick.com/',
36 36
         'title' => "Jacob Emerick's Blog",
37 37
         'name' => 'Blog'
38
-      ],
39
-      [
38
+        ],
39
+        [
40 40
         'url' => 'https://lifestream.jacobemerick.com/',
41 41
         'title' => "Jacob Emerick's Lifestream",
42 42
         'name' => 'Lifestream'
43
-      ],
44
-      [
43
+        ],
44
+        [
45 45
         'url' => 'https://map.jacobemerick.com/',
46 46
         'title' => "Jacob Emerick's Hiking Map",
47 47
         'name' => 'Map'
48
-      ],
49
-      [
48
+        ],
49
+        [
50 50
         'url' => 'https://portfolio.jacobemerick.com/',
51 51
         'title' => "Jacob Emerick's Portfolio",
52 52
         'name' => 'Portfolio',
53
-      ],
54
-      [
53
+        ],
54
+        [
55 55
         'url' => 'https://www.waterfallsofthekeweenaw.com/',
56 56
         'title' => 'Waterfalls of the Keweenaw',
57 57
         'name' => 'Waterfalls'
58
-      ]
59
-  ];
60
-	}
58
+        ]
59
+    ];
60
+    }
61 61
 
62 62
 }
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-class Error404Controller extends PageController
6
-{
5
+class Error404Controller extends PageController
6
+{
7 7
 
8
-	protected function set_head_data()
9
-	{
8
+	protected function set_head_data()
9
+	{
10 10
 		$this->set_header_method('send404');
11 11
 		$this->add_css('normalize');
12 12
 		$this->add_css('404');
@@ -16,15 +16,15 @@  discard block
 block discarded – undo
16 16
 		$this->set_head('keywords', '');
17 17
 	}
18 18
 
19
-	protected function set_body_data()
20
-	{
19
+	protected function set_body_data()
20
+	{
21 21
 		$this->set_body('site_list', $this->get_sites());
22 22
 		
23 23
 		$this->set_body_view('/404');
24 24
 	}
25 25
 
26
-	private function get_sites()
27
-	{
26
+	private function get_sites()
27
+	{
28 28
     return [
29 29
       [
30 30
         'url' => 'https://home.jacobemerick.com/',
Please login to merge, or discard this patch.
utility/content/URLSafeContent.class.inc.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 class URLSafeContent extends Content
6 6
 {
7 7
 
8
-	protected function execute()
9
-	{
10
-		$this->content = strtolower(str_replace(' ', '-', $this->content));
11
-	}
8
+    protected function execute()
9
+    {
10
+        $this->content = strtolower(str_replace(' ', '-', $this->content));
11
+    }
12 12
 
13 13
 }
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 Loader::load('utility', 'Content');
4 4
 
5
-class URLSafeContent extends Content
6
-{
5
+class URLSafeContent extends Content
6
+{
7 7
 
8
-	protected function execute()
9
-	{
8
+	protected function execute()
9
+	{
10 10
 		$this->content = strtolower(str_replace(' ', '-', $this->content));
11 11
 	}
12 12
 
Please login to merge, or discard this patch.
utility/Content.class.inc.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -3,43 +3,43 @@
 block discarded – undo
3 3
 abstract class Content
4 4
 {
5 5
 
6
-	protected $original_content;
7
-	protected $content;
8
-
9
-	function __construct($content)
10
-	{
11
-		$this->original_content = $content;
12
-		$this->content = $content;
13
-	}
14
-
15
-	public function getOriginal()
16
-	{
17
-		return $this->original_content;
18
-	}
19
-
20
-	abstract protected function execute();
21
-
22
-	public function activate()
23
-	{
24
-		$args = func_get_args();
25
-		call_user_func_array(array($this, 'execute'), $args);
6
+    protected $original_content;
7
+    protected $content;
8
+
9
+    function __construct($content)
10
+    {
11
+        $this->original_content = $content;
12
+        $this->content = $content;
13
+    }
14
+
15
+    public function getOriginal()
16
+    {
17
+        return $this->original_content;
18
+    }
19
+
20
+    abstract protected function execute();
21
+
22
+    public function activate()
23
+    {
24
+        $args = func_get_args();
25
+        call_user_func_array(array($this, 'execute'), $args);
26 26
 		
27
-		return $this->content;
28
-	}
27
+        return $this->content;
28
+    }
29 29
 
30
-	public function check()
31
-	{
32
-		$args = func_get_args();
33
-		$return = call_user_func_array(array($this, 'execute'), $args);
30
+    public function check()
31
+    {
32
+        $args = func_get_args();
33
+        $return = call_user_func_array(array($this, 'execute'), $args);
34 34
 		
35
-		return $return;
36
-	}
37
-
38
-	public static function instance($class, $content)
39
-	{
40
-		$class_name = "{$class}Content";
41
-		Loader::load('utility', "content/{$class_name}");
42
-		return new $class_name($content);
43
-	}
35
+        return $return;
36
+    }
37
+
38
+    public static function instance($class, $content)
39
+    {
40
+        $class_name = "{$class}Content";
41
+        Loader::load('utility', "content/{$class_name}");
42
+        return new $class_name($content);
43
+    }
44 44
 
45 45
 }
Please login to merge, or discard this patch.
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,42 +1,42 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-abstract class Content
4
-{
3
+abstract class Content
4
+{
5 5
 
6 6
 	protected $original_content;
7 7
 	protected $content;
8 8
 
9
-	function __construct($content)
10
-	{
9
+	function __construct($content)
10
+	{
11 11
 		$this->original_content = $content;
12 12
 		$this->content = $content;
13 13
 	}
14 14
 
15
-	public function getOriginal()
16
-	{
15
+	public function getOriginal()
16
+	{
17 17
 		return $this->original_content;
18 18
 	}
19 19
 
20 20
 	abstract protected function execute();
21 21
 
22
-	public function activate()
23
-	{
22
+	public function activate()
23
+	{
24 24
 		$args = func_get_args();
25 25
 		call_user_func_array(array($this, 'execute'), $args);
26 26
 		
27 27
 		return $this->content;
28 28
 	}
29 29
 
30
-	public function check()
31
-	{
30
+	public function check()
31
+	{
32 32
 		$args = func_get_args();
33 33
 		$return = call_user_func_array(array($this, 'execute'), $args);
34 34
 		
35 35
 		return $return;
36 36
 	}
37 37
 
38
-	public static function instance($class, $content)
39
-	{
38
+	public static function instance($class, $content)
39
+	{
40 40
 		$class_name = "{$class}Content";
41 41
 		Loader::load('utility', "content/{$class_name}");
42 42
 		return new $class_name($content);
Please login to merge, or discard this patch.