Completed
Push — master ( 72ee7f...4775c0 )
by Jacob
03:43
created
collector/Collector.class.inc.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,29 +5,29 @@
 block discarded – undo
5 5
 abstract class Collector
6 6
 {
7 7
 
8
-	protected static function run_query($query)
9
-	{
10
-		return Database::select($query);
11
-	}
12
-
13
-	protected static function run_row_query($query)
14
-	{
15
-		return Database::selectRow($query);
16
-	}
17
-
18
-	protected static function get_count($query)
19
-	{
20
-		return Database::selectRow($query)->count;
21
-	}
22
-
23
-	protected static function check_exists($query)
24
-	{
25
-		return Database::selectRow($query) !== null;
26
-	}
27
-
28
-	protected static function escape($string)
29
-	{
30
-		return Database::escape($string);
31
-	}
8
+    protected static function run_query($query)
9
+    {
10
+        return Database::select($query);
11
+    }
12
+
13
+    protected static function run_row_query($query)
14
+    {
15
+        return Database::selectRow($query);
16
+    }
17
+
18
+    protected static function get_count($query)
19
+    {
20
+        return Database::selectRow($query)->count;
21
+    }
22
+
23
+    protected static function check_exists($query)
24
+    {
25
+        return Database::selectRow($query) !== null;
26
+    }
27
+
28
+    protected static function escape($string)
29
+    {
30
+        return Database::escape($string);
31
+    }
32 32
 
33 33
 }
Please login to merge, or discard this patch.
Braces   +7 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,31 +2,26 @@
 block discarded – undo
2 2
 
3 3
 Loader::loadInstance('utility', 'Database');
4 4
 
5
-abstract class Collector
6
-{
5
+abstract class Collector
6
+{
7 7
 
8
-	protected static function run_query($query)
9
-	{
8
+	protected static function run_query($query) {
10 9
 		return Database::select($query);
11 10
 	}
12 11
 
13
-	protected static function run_row_query($query)
14
-	{
12
+	protected static function run_row_query($query) {
15 13
 		return Database::selectRow($query);
16 14
 	}
17 15
 
18
-	protected static function get_count($query)
19
-	{
16
+	protected static function get_count($query) {
20 17
 		return Database::selectRow($query)->count;
21 18
 	}
22 19
 
23
-	protected static function check_exists($query)
24
-	{
20
+	protected static function check_exists($query) {
25 21
 		return Database::selectRow($query) !== null;
26 22
 	}
27 23
 
28
-	protected static function escape($string)
29
-	{
24
+	protected static function escape($string) {
30 25
 		return Database::escape($string);
31 26
 	}
32 27
 
Please login to merge, or discard this patch.
controller/waterfalls/DefaultPageController.class.inc.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@  discard block
 block discarded – undo
5 5
 abstract class DefaultPageController extends PageController
6 6
 {
7 7
 
8
-	protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9
-	protected static $PAGE_DESCRIPTION_LIMIT = 250;
8
+    protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9
+    protected static $PAGE_DESCRIPTION_LIMIT = 250;
10 10
 
11
-	protected static $WATERFALL_SITE_ID = 5;
11
+    protected static $WATERFALL_SITE_ID = 5;
12 12
 
13 13
     protected $parent_navigation_item = '';
14 14
 
15
-	protected function set_head_data()
16
-	{
17
-		$this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18
-		$this->add_css('normalize');
19
-		$this->add_css('waterfalls');
20
-	}
15
+    protected function set_head_data()
16
+    {
17
+        $this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18
+        $this->add_css('normalize');
19
+        $this->add_css('waterfalls');
20
+    }
21 21
 
22 22
     protected function add_waterfall_js()
23 23
     {
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
         $this->add_js('waterfalls');
27 27
     }
28 28
 
29
-	protected function set_body_data($page_type = 'normal')
30
-	{
31
-		$this->set_body('activity_array', $this->get_recent_activity());
29
+    protected function set_body_data($page_type = 'normal')
30
+    {
31
+        $this->set_body('activity_array', $this->get_recent_activity());
32 32
 
33 33
         $this->set_body('main_navigation', array(
34 34
                 (object) array(
Please login to merge, or discard this patch.
Braces   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 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 8
 	protected static $WEBSITE_TITLE = 'Waterfalls of the Keweenaw';
9 9
 	protected static $PAGE_DESCRIPTION_LIMIT = 250;
@@ -12,22 +12,19 @@  discard block
 block discarded – undo
12 12
 
13 13
     protected $parent_navigation_item = '';
14 14
 
15
-	protected function set_head_data()
16
-	{
15
+	protected function set_head_data() {
17 16
 		$this->set_head('google_verification', 'm9ua4n8lp4FUYYa2UOh51UyZYfdivl-kRTtXKwaH0-s');
18 17
 		$this->add_css('normalize');
19 18
 		$this->add_css('waterfalls');
20 19
 	}
21 20
 
22
-    protected function add_waterfall_js()
23
-    {
21
+    protected function add_waterfall_js() {
24 22
         $this->add_js('jquery');
25 23
         $this->add_js('imagelightbox');
26 24
         $this->add_js('waterfalls');
27 25
     }
28 26
 
29
-	protected function set_body_data($page_type = 'normal')
30
-	{
27
+	protected function set_body_data($page_type = 'normal') {
31 28
 		$this->set_body('activity_array', $this->get_recent_activity());
32 29
 
33 30
         $this->set_body('main_navigation', array(
Please login to merge, or discard this patch.
controller/waterfalls/AboutController.class.inc.php 1 patch
Braces   +4 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', 'waterfalls/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 the Website | Waterfalls of the Keweenaw';
9 9
     private static $DESCRIPTION = 'A little bit about the website, the area, and the reason why someone would hunt down a hundred and fifty waterfalls in the Upper Peninsula.';
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
         'Jacob Emerick',
15 15
     );
16 16
 
17
-    protected function set_head_data()
18
-    {
17
+    protected function set_head_data() {
19 18
         parent::set_head_data();
20 19
         
21 20
         $this->set_title(self::$TITLE);
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
         $this->set_keywords(self::$KEYWORD_ARRAY);
24 23
     }
25 24
 
26
-    protected function set_body_data($page_type = 'normal')
27
-    {
25
+    protected function set_body_data($page_type = 'normal') {
28 26
         parent::set_body_data($page_type);
29 27
         
30 28
         $this->set_body('view', 'About');
Please login to merge, or discard this patch.
controller/lifestream/DefaultPageController.class.inc.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 abstract class DefaultPageController extends PageController
7 7
 {
8 8
 
9
-  protected $activityRepository;
9
+    protected $activityRepository;
10 10
 
11
-  public function __construct()
12
-  {
11
+    public function __construct()
12
+    {
13 13
     parent::__construct();
14 14
 
15 15
     global $container;
16 16
     $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
17
-  }
18
-
19
-	protected function set_head_data()
20
-	{
21
-		$this->add_css('normalize');
22
-		$this->add_css('lifestream', 2);
23
-	}
24
-
25
-	protected function set_body_data()
26
-	{
27
-		$this->set_body_view('Page');
28
-	}
17
+    }
18
+
19
+    protected function set_head_data()
20
+    {
21
+        $this->add_css('normalize');
22
+        $this->add_css('lifestream', 2);
23
+    }
24
+
25
+    protected function set_body_data()
26
+    {
27
+        $this->set_body_view('Page');
28
+    }
29 29
 
30 30
 }
Please login to merge, or discard this patch.
Braces   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,27 +3,24 @@
 block discarded – undo
3 3
 Loader::load('controller', '/PageController');
4 4
 Loader::load('utility', 'Content');
5 5
 
6
-abstract class DefaultPageController extends PageController
7
-{
6
+abstract class DefaultPageController extends PageController
7
+{
8 8
 
9 9
   protected $activityRepository;
10 10
 
11
-  public function __construct()
12
-  {
11
+  public function __construct() {
13 12
     parent::__construct();
14 13
 
15 14
     global $container;
16 15
     $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
17 16
   }
18 17
 
19
-	protected function set_head_data()
20
-	{
18
+	protected function set_head_data() {
21 19
 		$this->add_css('normalize');
22 20
 		$this->add_css('lifestream', 2);
23 21
 	}
24 22
 
25
-	protected function set_body_data()
26
-	{
23
+	protected function set_body_data() {
27 24
 		$this->set_body_view('Page');
28 25
 	}
29 26
 
Please login to merge, or discard this patch.
controller/lifestream/AboutController.class.inc.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -5,33 +5,33 @@
 block discarded – undo
5 5
 final class AboutController extends DefaultPageController
6 6
 {
7 7
 
8
-	private static $TITLE = "About | What's a Lifestream?";
9
-	private static $DESCRIPTION = 'A breakdown of what a lifestream is, why Jacob Emerick made one, and how he made it.';
8
+    private static $TITLE = "About | What's a Lifestream?";
9
+    private static $DESCRIPTION = 'A breakdown of what a lifestream is, why Jacob Emerick made one, and how he made it.';
10 10
 
11
-	private static $KEYWORD_ARRAY = array(
12
-		'about',
13
-		'lifestream',
14
-		'feed',
15
-		'activity stream',
16
-		'Jacob Emerick',
17
-		'jpemeric');
11
+    private static $KEYWORD_ARRAY = array(
12
+        'about',
13
+        'lifestream',
14
+        'feed',
15
+        'activity stream',
16
+        'Jacob Emerick',
17
+        'jpemeric');
18 18
 
19
-	protected function set_head_data()
20
-	{
21
-		$this->set_title(self::$TITLE);
22
-		$this->set_description(self::$DESCRIPTION);
23
-		$this->set_keywords(self::$KEYWORD_ARRAY);
19
+    protected function set_head_data()
20
+    {
21
+        $this->set_title(self::$TITLE);
22
+        $this->set_description(self::$DESCRIPTION);
23
+        $this->set_keywords(self::$KEYWORD_ARRAY);
24 24
 		
25
-		parent::set_head_data();
26
-	}
25
+        parent::set_head_data();
26
+    }
27 27
 
28
-	protected function set_body_data()
29
-	{
30
-		$this->set_body('title', "WHAT'S A LIFESTREAM?");
31
-		$this->set_body('type', 'about');
32
-		$this->set_body('view', 'About');
28
+    protected function set_body_data()
29
+    {
30
+        $this->set_body('title', "WHAT'S A LIFESTREAM?");
31
+        $this->set_body('type', 'about');
32
+        $this->set_body('view', 'About');
33 33
 		
34
-		parent::set_body_data();
35
-	}
34
+        parent::set_body_data();
35
+    }
36 36
 
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +4 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,7 @@  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() {
22 21
 		$this->set_title(self::$TITLE);
23 22
 		$this->set_description(self::$DESCRIPTION);
24 23
 		$this->set_keywords(self::$KEYWORD_ARRAY);
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
 		parent::set_head_data();
27 26
 	}
28 27
 
29
-	protected function set_body_data()
30
-	{
28
+	protected function set_body_data() {
31 29
 		$this->set_body_view('About');
32 30
 		
33 31
 		parent::set_body_data();
Please login to merge, or discard this patch.
controller/Error503Controller.class.inc.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@
 block discarded – undo
5 5
 class Error503Controller extends PageController
6 6
 {
7 7
 
8
-	protected function set_head_data()
9
-	{
10
-		$this->set_header_method('send503');
11
-		$this->add_css('normalize');
12
-		$this->add_css('503');
8
+    protected function set_head_data()
9
+    {
10
+        $this->set_header_method('send503');
11
+        $this->add_css('normalize');
12
+        $this->add_css('503');
13 13
 		
14
-		$this->set_title("Jacob Emerick's 503 Page");
15
-		$this->set_description('Global 503 page for sites under jacobemerick.com. Page not found!');
16
-		$this->set_keywords(array());
17
-	}
14
+        $this->set_title("Jacob Emerick's 503 Page");
15
+        $this->set_description('Global 503 page for sites under jacobemerick.com. Page not found!');
16
+        $this->set_keywords(array());
17
+    }
18 18
 
19
-	protected function set_body_data()
20
-	{
21
-		$this->set_body_view('/503');
22
-	}
19
+    protected function set_body_data()
20
+    {
21
+        $this->set_body_view('/503');
22
+    }
23 23
 
24 24
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', '/PageController');
4 4
 
5
-class Error503Controller extends PageController
6
-{
5
+class Error503Controller extends PageController
6
+{
7 7
 
8
-	protected function set_head_data()
9
-	{
8
+	protected function set_head_data() {
10 9
 		$this->set_header_method('send503');
11 10
 		$this->add_css('normalize');
12 11
 		$this->add_css('503');
@@ -16,8 +15,7 @@  discard block
 block discarded – undo
16 15
 		$this->set_keywords(array());
17 16
 	}
18 17
 
19
-	protected function set_body_data()
20
-	{
18
+	protected function set_body_data() {
21 19
 		$this->set_body_view('/503');
22 20
 	}
23 21
 
Please login to merge, or discard this patch.
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   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@
 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) {
10 9
 		Header::redirect($uri);
11 10
 		exit;
12 11
 	}
Please login to merge, or discard this patch.
controller/portfolio/ProjectsController.class.inc.php 1 patch
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'portfolio/DefaultPageController');
4 4
 
5
-class ProjectsController extends DefaultPageController
6
-{
5
+class ProjectsController extends DefaultPageController
6
+{
7 7
 
8
-    protected function set_head_data()
9
-    {
8
+    protected function set_head_data() {
10 9
         $this->set_title("Projects Page | Jacob Emerick's Portfolio");
11 10
         $this->set_description("Collection of key open-source projects that Jacob has developed and maintained over the years.");
12 11
         $this->set_keywords([
@@ -19,8 +18,7 @@  discard block
 block discarded – undo
19 18
         ]);
20 19
     }
21 20
 
22
-    protected function set_body_data()
23
-    {
21
+    protected function set_body_data() {
24 22
         $this->set_body('body_view', 'Projects');
25 23
         $this->set_body('body_data', []);
26 24
 
Please login to merge, or discard this patch.
controller/portfolio/AboutController.class.inc.php 1 patch
Braces   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 Loader::load('controller', 'portfolio/DefaultPageController');
4 4
 
5
-class AboutController extends DefaultPageController
6
-{
5
+class AboutController extends DefaultPageController
6
+{
7 7
 
8
-    protected function set_head_data()
9
-    {
8
+    protected function set_head_data() {
10 9
         $this->set_title("Jacob Emerick's Portfolio");
11 10
         $this->set_description("Jacob Emerick's Portfolio - collection of programming projects and resume");
12 11
         $this->set_keywords([
@@ -20,8 +19,7 @@  discard block
 block discarded – undo
20 19
         ]);
21 20
     }
22 21
 
23
-    protected function set_body_data()
24
-    {
22
+    protected function set_body_data() {
25 23
         $this->set_body('body_view', 'About');
26 24
         $this->set_body('body_data', []);
27 25
 
Please login to merge, or discard this patch.