Completed
Branch master (de1ee7)
by Jacob
05:01
created
controller/site/DefaultPageController.class.inc.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		$active_page = $this->get_active_page();
42 42
 		
43 43
 		$menu = array();
44
-		foreach(self::$MENU as $item)
44
+		foreach (self::$MENU as $item)
45 45
 		{
46 46
 			$menu[] = (object) array(
47 47
 				'name' => $item['name'],
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
 	{
57 57
 		$current_uri = URLDecode::getPiece(1);
58 58
 		
59
-		if(!isset($current_uri))
59
+		if (!isset($current_uri))
60 60
 			return 'About';
61 61
 		
62 62
 		$menu = self::$MENU;
63
-		foreach($menu as $link)
63
+		foreach ($menu as $link)
64 64
 		{
65
-			if($link['uri'] == $current_uri)
65
+			if ($link['uri'] == $current_uri)
66 66
 				return $link['name'];
67 67
 		}
68 68
 		
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,16 @@
 block discarded – undo
56 56
 	{
57 57
 		$current_uri = URLDecode::getPiece(1);
58 58
 		
59
-		if(!isset($current_uri))
60
-			return 'About';
59
+		if(!isset($current_uri)) {
60
+					return 'About';
61
+		}
61 62
 		
62 63
 		$menu = self::$MENU;
63 64
 		foreach($menu as $link)
64 65
 		{
65
-			if($link['uri'] == $current_uri)
66
-				return $link['name'];
66
+			if($link['uri'] == $current_uri) {
67
+							return $link['name'];
68
+			}
67 69
 		}
68 70
 		
69 71
 		return 'About';
Please login to merge, or discard this patch.
controller/sitemap/PortfolioSitemapController.class.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 		
17 17
 		$pieces = PortfolioCollector::getAllPieces();
18 18
 		
19
-		foreach($pieces as $piece)
19
+		foreach ($pieces as $piece)
20 20
 		{
21
-			if($piece->category == 1)
21
+			if ($piece->category == 1)
22 22
 				$this->addURL("web/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
23 23
 			else
24 24
 				$this->addURL("print/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,11 @@
 block discarded – undo
18 18
 		
19 19
 		foreach($pieces as $piece)
20 20
 		{
21
-			if($piece->category == 1)
22
-				$this->addURL("web/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
23
-			else
24
-				$this->addURL("print/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
21
+			if($piece->category == 1) {
22
+							$this->addURL("web/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
23
+			} else {
24
+							$this->addURL("print/{$piece->title_url}/", date('Y-01-01'), 'yearly', .7);
25
+			}
25 26
 		}
26 27
 	}
27 28
 
Please login to merge, or discard this patch.
controller/waterfalls/AboutController.class.inc.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,29 +5,29 @@
 block discarded – undo
5 5
 final class AboutController extends DefaultPageController
6 6
 {
7 7
 
8
-    private static $TITLE = 'About the Website | Waterfalls of the Keweenaw';
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.';
10
-    private static $KEYWORD_ARRAY = array(
11
-        'about',
12
-        'waterfalls',
13
-        'birthday trip',
14
-        'Jacob Emerick',
15
-    );
8
+	private static $TITLE = 'About the Website | Waterfalls of the Keweenaw';
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.';
10
+	private static $KEYWORD_ARRAY = array(
11
+		'about',
12
+		'waterfalls',
13
+		'birthday trip',
14
+		'Jacob Emerick',
15
+	);
16 16
 
17
-    protected function set_head_data()
18
-    {
19
-        parent::set_head_data();
17
+	protected function set_head_data()
18
+	{
19
+		parent::set_head_data();
20 20
         
21
-        $this->set_title(self::$TITLE);
22
-        $this->set_description(self::$DESCRIPTION);
23
-        $this->set_keywords(self::$KEYWORD_ARRAY);
24
-    }
21
+		$this->set_title(self::$TITLE);
22
+		$this->set_description(self::$DESCRIPTION);
23
+		$this->set_keywords(self::$KEYWORD_ARRAY);
24
+	}
25 25
 
26
-    protected function set_body_data($page_type = 'normal')
27
-    {
28
-        parent::set_body_data($page_type);
26
+	protected function set_body_data($page_type = 'normal')
27
+	{
28
+		parent::set_body_data($page_type);
29 29
         
30
-        $this->set_body('view', 'About');
31
-    }
30
+		$this->set_body('view', 'About');
31
+	}
32 32
 
33 33
 }
Please login to merge, or discard this patch.
controller/waterfalls/CompanionListController.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 		$alias = URLDecode::getPiece(2);
28 28
 		$this->companion = CompanionCollector::getByAlias($alias);
29 29
 		
30
-		if(!$this->companion)
30
+		if (!$this->companion)
31 31
 			$this->eject();
32 32
 		
33 33
 		parent::__construct();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
 		$alias = URLDecode::getPiece(2);
28 28
 		$this->companion = CompanionCollector::getByAlias($alias);
29 29
 		
30
-		if(!$this->companion)
31
-			$this->eject();
30
+		if(!$this->companion) {
31
+					$this->eject();
32
+		}
32 33
 		
33 34
 		parent::__construct();
34 35
 	}
Please login to merge, or discard this patch.
controller/waterfalls/ContactController.class.inc.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 				'values' => $values);
59 59
 		}
60 60
 		
61
-        global $config;
61
+		global $config;
62 62
 		$mail = Loader::loadNew('utility', 'Mail');
63 63
 		$mail->setToAddress($config->admin_email, 'Jacob Emerick');
64 64
 		$mail->setSubject('Waterfall Site Contact');
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
 
34 34
 	private function process_form()
35 35
 	{
36
-		if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
36
+		if (!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
37 37
 			return (object) array('display' => 'normal');
38 38
 		
39 39
 		Loader::load('utility', 'Validate');
40 40
 		$error_result = array();
41
-		if(!Validate::checkRequest('post', 'name', 'string'))
41
+		if (!Validate::checkRequest('post', 'name', 'string'))
42 42
 			$error_result['name'] = 'please enter your name';
43
-		if(!Validate::checkRequest('post', 'email', 'string'))
43
+		if (!Validate::checkRequest('post', 'email', 'string'))
44 44
 			$error_result['email'] = 'please enter a valid email';
45
-		if(!Validate::checkRequest('post', 'message', 'string'))
45
+		if (!Validate::checkRequest('post', 'message', 'string'))
46 46
 			$error_result['message'] = 'please write a message';
47 47
 		
48 48
 		$values = (object) array(
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			'email' => Request::getPost('email'),
51 51
 			'message' => Request::getPost('message'));
52 52
 		
53
-		if(count($error_result) > 0)
53
+		if (count($error_result) > 0)
54 54
 		{
55 55
 			return (object) array(
56 56
 				'display' => 'error',
Please login to merge, or discard this patch.
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,17 +33,21 @@
 block discarded – undo
33 33
 
34 34
 	private function process_form()
35 35
 	{
36
-		if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
37
-			return (object) array('display' => 'normal');
36
+		if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!') {
37
+					return (object) array('display' => 'normal');
38
+		}
38 39
 		
39 40
 		Loader::load('utility', 'Validate');
40 41
 		$error_result = array();
41
-		if(!Validate::checkRequest('post', 'name', 'string'))
42
-			$error_result['name'] = 'please enter your name';
43
-		if(!Validate::checkRequest('post', 'email', 'string'))
44
-			$error_result['email'] = 'please enter a valid email';
45
-		if(!Validate::checkRequest('post', 'message', 'string'))
46
-			$error_result['message'] = 'please write a message';
42
+		if(!Validate::checkRequest('post', 'name', 'string')) {
43
+					$error_result['name'] = 'please enter your name';
44
+		}
45
+		if(!Validate::checkRequest('post', 'email', 'string')) {
46
+					$error_result['email'] = 'please enter a valid email';
47
+		}
48
+		if(!Validate::checkRequest('post', 'message', 'string')) {
49
+					$error_result['message'] = 'please write a message';
50
+		}
47 51
 		
48 52
 		$values = (object) array(
49 53
 			'name' => Request::getPost('name'),
Please login to merge, or discard this patch.
controller/waterfalls/CountyListController.class.inc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 		$path = URLDecode::getPiece(1);
29 29
 		$this->county = CountyCollector::getByAlias($path);
30 30
 		
31
-		if(!$this->county)
31
+		if (!$this->county)
32 32
 			$this->eject();
33 33
 		
34 34
 		parent::__construct();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
 		$path = URLDecode::getPiece(1);
29 29
 		$this->county = CountyCollector::getByAlias($path);
30 30
 		
31
-		if(!$this->county)
32
-			$this->eject();
31
+		if(!$this->county) {
32
+					$this->eject();
33
+		}
33 34
 		
34 35
 		parent::__construct();
35 36
 	}
Please login to merge, or discard this patch.
controller/waterfalls/DefaultListController.class.inc.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
 	abstract protected function get_initial_meta();
96 96
 	abstract protected function get_subsequent_meta();
97 97
 
98
-    final protected function set_body_data($page_type = 'normal')
99
-    {
100
-        parent::set_body_data($page_type);
98
+	final protected function set_body_data($page_type = 'normal')
99
+	{
100
+		parent::set_body_data($page_type);
101 101
 		
102 102
 		$this->set_body('view', $this->get_list_view());
103 103
 		$this->set_body('data', $this->get_list_body_data());
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	{
108 108
 		$body_data_array = array();
109 109
 		
110
-        $body_data_array['introduction'] = $this->get_introduction();
110
+		$body_data_array['introduction'] = $this->get_introduction();
111 111
 		$body_data_array['items'] = array_map(array($this, 'format_item'), $this->get_items());
112 112
 		$body_data_array['navigation'] = array(
113 113
 				'description' => $this->get_list_description(),
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 		$this->offset = ($this->page - 1) * $this->get_item_count_per_page();
21 21
 		
22 22
 		$items = $this->get_items();
23
-		if(count($items) < 1)
23
+		if (count($items) < 1)
24 24
 			$this->eject();
25 25
 	}
26 26
 
27 27
 	final protected function get_page_number()
28 28
 	{
29 29
 		$page = $this->get_page_number_piece();
30
-		if(isset($page) && is_numeric($page))
30
+		if (isset($page) && is_numeric($page))
31 31
 			return $page;
32 32
 		return 1;
33 33
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 	final private function get_introduction()
43 43
 	{
44
-		if($this->page == 1)
44
+		if ($this->page == 1)
45 45
 			return $this->get_initial_introduction();
46 46
 		
47 47
 		return $this->get_subsequent_introduction();
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	private $items;
54 54
 	protected function get_items()
55 55
 	{
56
-		if(!isset($this->items))
56
+		if (!isset($this->items))
57 57
 		{
58 58
 			$total = $this->get_item_count_per_page();
59 59
 			$offset = ($this->page - 1) * $this->get_item_count_per_page();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	private $item_count;
69 69
 	final private function get_item_count()
70 70
 	{
71
-		if(!isset($this->item_count))
71
+		if (!isset($this->item_count))
72 72
 			$this->item_count = $this->get_item_count_result();
73 73
 		return $this->item_count;
74 74
 	}
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		$this->set_head('next_link', $this->get_list_next_link());
83 83
 		$this->set_head('previous_link', $this->get_list_prev_link());
84 84
 		
85
-		if($this->page == 1)
85
+		if ($this->page == 1)
86 86
 			$meta_array = $this->get_initial_meta();
87 87
 		else
88 88
 			$meta_array = $this->get_subsequent_meta();
@@ -119,16 +119,16 @@  discard block
 block discarded – undo
119 119
 
120 120
 	final private function get_list_prev_link()
121 121
 	{
122
-		if($this->page == 1)
122
+		if ($this->page == 1)
123 123
 			return;
124
-		if($this->page == 2)
124
+		if ($this->page == 2)
125 125
 			return $this->get_list_link_root();
126 126
 		return $this->get_list_link_root() . ($this->page - 1) . '/';
127 127
 	}
128 128
 
129 129
 	final private function get_list_next_link()
130 130
 	{
131
-		if(($this->page * $this->get_item_count_per_page()) >= $this->get_item_count())
131
+		if (($this->page * $this->get_item_count_per_page()) >= $this->get_item_count())
132 132
 			return;
133 133
 		return $this->get_list_link_root() . ($this->page + 1) . '/';
134 134
 	}
@@ -139,27 +139,27 @@  discard block
 block discarded – undo
139 139
 	{
140 140
 		$link_array = array();
141 141
 		
142
-		if($this->get_item_count_per_page() >= $this->get_item_count())
142
+		if ($this->get_item_count_per_page() >= $this->get_item_count())
143 143
 			return $link_array;
144 144
 		
145 145
 		$link = new stdclass();
146 146
 		$link->anchor = '&laquo; previous';
147
-		if($this->get_list_prev_link() !== null)
147
+		if ($this->get_list_prev_link() !== null)
148 148
 			$link->uri = $this->get_list_prev_link();
149 149
 		else
150 150
 			$link->class = 'inactive';
151 151
 		$link_array[] = $link;
152 152
 		
153
-		for($i = 1; $i <= ceil($this->get_item_count() / $this->get_item_count_per_page()); $i++)
153
+		for ($i = 1; $i <= ceil($this->get_item_count() / $this->get_item_count_per_page()); $i++)
154 154
 		{
155 155
 			$link = new stdclass();
156 156
 			$link->anchor = $i;
157 157
 			
158
-			if($i == $this->page)
158
+			if ($i == $this->page)
159 159
 				$link->class = 'current';
160 160
 			else
161 161
 			{
162
-				if($i == 1)
162
+				if ($i == 1)
163 163
 					$link->uri = $this->get_list_link_root();
164 164
 				else
165 165
 					$link->uri = $this->get_list_link_root() . $i . '/';
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 		
171 171
 		$link = new stdclass();
172 172
 		$link->anchor = 'next &raquo;';
173
-		if($this->get_list_next_link() !== null)
173
+		if ($this->get_list_next_link() !== null)
174 174
 			$link->uri = $this->get_list_next_link();
175 175
 		else
176 176
 			$link->class = 'inactive';
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
 	final protected function get_image_element($category, $path, $description, $size = 'small')
194 194
 	{
195
-		switch($size)
195
+		switch ($size)
196 196
 		{
197 197
 			case 'medium' :
198 198
 				$height = 375;
Please login to merge, or discard this patch.
Braces   +47 added lines, -35 removed lines patch added patch discarded remove patch
@@ -20,15 +20,17 @@  discard block
 block discarded – undo
20 20
 		$this->offset = ($this->page - 1) * $this->get_item_count_per_page();
21 21
 		
22 22
 		$items = $this->get_items();
23
-		if(count($items) < 1)
24
-			$this->eject();
23
+		if(count($items) < 1) {
24
+					$this->eject();
25
+		}
25 26
 	}
26 27
 
27 28
 	final protected function get_page_number()
28 29
 	{
29 30
 		$page = $this->get_page_number_piece();
30
-		if(isset($page) && is_numeric($page))
31
-			return $page;
31
+		if(isset($page) && is_numeric($page)) {
32
+					return $page;
33
+		}
32 34
 		return 1;
33 35
 	}
34 36
 
@@ -41,8 +43,9 @@  discard block
 block discarded – undo
41 43
 
42 44
 	final private function get_introduction()
43 45
 	{
44
-		if($this->page == 1)
45
-			return $this->get_initial_introduction();
46
+		if($this->page == 1) {
47
+					return $this->get_initial_introduction();
48
+		}
46 49
 		
47 50
 		return $this->get_subsequent_introduction();
48 51
 	}
@@ -68,8 +71,9 @@  discard block
 block discarded – undo
68 71
 	private $item_count;
69 72
 	final private function get_item_count()
70 73
 	{
71
-		if(!isset($this->item_count))
72
-			$this->item_count = $this->get_item_count_result();
74
+		if(!isset($this->item_count)) {
75
+					$this->item_count = $this->get_item_count_result();
76
+		}
73 77
 		return $this->item_count;
74 78
 	}
75 79
 
@@ -82,10 +86,11 @@  discard block
 block discarded – undo
82 86
 		$this->set_head('next_link', $this->get_list_next_link());
83 87
 		$this->set_head('previous_link', $this->get_list_prev_link());
84 88
 		
85
-		if($this->page == 1)
86
-			$meta_array = $this->get_initial_meta();
87
-		else
88
-			$meta_array = $this->get_subsequent_meta();
89
+		if($this->page == 1) {
90
+					$meta_array = $this->get_initial_meta();
91
+		} else {
92
+					$meta_array = $this->get_subsequent_meta();
93
+		}
89 94
 		
90 95
 		$this->set_title($meta_array['title']);
91 96
 		$this->set_description($meta_array['description']);
@@ -119,17 +124,20 @@  discard block
 block discarded – undo
119 124
 
120 125
 	final private function get_list_prev_link()
121 126
 	{
122
-		if($this->page == 1)
123
-			return;
124
-		if($this->page == 2)
125
-			return $this->get_list_link_root();
127
+		if($this->page == 1) {
128
+					return;
129
+		}
130
+		if($this->page == 2) {
131
+					return $this->get_list_link_root();
132
+		}
126 133
 		return $this->get_list_link_root() . ($this->page - 1) . '/';
127 134
 	}
128 135
 
129 136
 	final private function get_list_next_link()
130 137
 	{
131
-		if(($this->page * $this->get_item_count_per_page()) >= $this->get_item_count())
132
-			return;
138
+		if(($this->page * $this->get_item_count_per_page()) >= $this->get_item_count()) {
139
+					return;
140
+		}
133 141
 		return $this->get_list_link_root() . ($this->page + 1) . '/';
134 142
 	}
135 143
 
@@ -139,15 +147,17 @@  discard block
 block discarded – undo
139 147
 	{
140 148
 		$link_array = array();
141 149
 		
142
-		if($this->get_item_count_per_page() >= $this->get_item_count())
143
-			return $link_array;
150
+		if($this->get_item_count_per_page() >= $this->get_item_count()) {
151
+					return $link_array;
152
+		}
144 153
 		
145 154
 		$link = new stdclass();
146 155
 		$link->anchor = '&laquo; previous';
147
-		if($this->get_list_prev_link() !== null)
148
-			$link->uri = $this->get_list_prev_link();
149
-		else
150
-			$link->class = 'inactive';
156
+		if($this->get_list_prev_link() !== null) {
157
+					$link->uri = $this->get_list_prev_link();
158
+		} else {
159
+					$link->class = 'inactive';
160
+		}
151 161
 		$link_array[] = $link;
152 162
 		
153 163
 		for($i = 1; $i <= ceil($this->get_item_count() / $this->get_item_count_per_page()); $i++)
@@ -155,14 +165,15 @@  discard block
 block discarded – undo
155 165
 			$link = new stdclass();
156 166
 			$link->anchor = $i;
157 167
 			
158
-			if($i == $this->page)
159
-				$link->class = 'current';
160
-			else
168
+			if($i == $this->page) {
169
+							$link->class = 'current';
170
+			} else
161 171
 			{
162
-				if($i == 1)
163
-					$link->uri = $this->get_list_link_root();
164
-				else
165
-					$link->uri = $this->get_list_link_root() . $i . '/';
172
+				if($i == 1) {
173
+									$link->uri = $this->get_list_link_root();
174
+				} else {
175
+									$link->uri = $this->get_list_link_root() . $i . '/';
176
+				}
166 177
 			}
167 178
 			
168 179
 			$link_array[] = $link;
@@ -170,10 +181,11 @@  discard block
 block discarded – undo
170 181
 		
171 182
 		$link = new stdclass();
172 183
 		$link->anchor = 'next &raquo;';
173
-		if($this->get_list_next_link() !== null)
174
-			$link->uri = $this->get_list_next_link();
175
-		else
176
-			$link->class = 'inactive';
184
+		if($this->get_list_next_link() !== null) {
185
+					$link->uri = $this->get_list_next_link();
186
+		} else {
187
+					$link->class = 'inactive';
188
+		}
177 189
 		$link_array[] = $link;
178 190
 		
179 191
 		return $link_array;
Please login to merge, or discard this patch.
controller/waterfalls/DefaultLogListController.class.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 		$companion_result = CompanionCollector::getCompanionList();
43 43
 		$companion_list = array();
44 44
 		
45
-		foreach($companion_result as $companion_row)
45
+		foreach ($companion_result as $companion_row)
46 46
 		{
47 47
 			$companion = new stdclass();
48 48
 			$companion->name = $companion_row->name;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$period_result = PeriodCollector::getPeriodList();
56 56
 		$period_list = array();
57 57
 		
58
-		foreach($period_result as $period_row)
58
+		foreach ($period_result as $period_row)
59 59
 		{
60 60
 			$period = new stdclass();
61 61
 			$period->name = $period_row->name;
Please login to merge, or discard this patch.
controller/waterfalls/DefaultPageController.class.inc.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	protected static $WATERFALL_SITE_ID = 5;
12 12
 
13
-    protected $parent_navigation_item = '';
13
+	protected $parent_navigation_item = '';
14 14
 
15 15
 	protected function set_head_data()
16 16
 	{
@@ -19,46 +19,46 @@  discard block
 block discarded – undo
19 19
 		$this->add_css('waterfall');
20 20
 	}
21 21
 
22
-    protected function add_waterfall_js()
23
-    {
24
-        $this->add_js('jquery-1.10.2.min');
25
-        $this->add_js('imagelightbox.min');
26
-        $this->add_js('waterfall-overlay');
27
-        $this->add_js('waterfall-map');
28
-    }
22
+	protected function add_waterfall_js()
23
+	{
24
+		$this->add_js('jquery-1.10.2.min');
25
+		$this->add_js('imagelightbox.min');
26
+		$this->add_js('waterfall-overlay');
27
+		$this->add_js('waterfall-map');
28
+	}
29 29
 
30 30
 	protected function set_body_data($page_type = 'normal')
31 31
 	{
32 32
 		$this->set_body('activity_array', $this->get_recent_activity());
33 33
 
34
-        $this->set_body('main_navigation', array(
35
-                (object) array(
36
-                    'uri' => '/falls/',
37
-                    'anchor' => 'Falls',
38
-                    'is_active' => $this->parent_navigation_item === 'falls',
39
-                ),
40
-                (object) array(
41
-                    'uri' => '/map/',
42
-                    'anchor' => 'Map',
43
-                    'is_active' => $this->parent_navigation_item === 'map',
44
-                ),
45
-                (object) array(
46
-                    'uri' => '/journal/',
47
-                    'anchor' => 'Journal',
48
-                    'is_active' => $this->parent_navigation_item === 'journal',
49
-                ),
50
-                (object) array(
51
-                    'uri' => '/about/',
52
-                    'anchor' => 'About',
53
-                    'is_active' => $this->parent_navigation_item === 'about',
54
-                )
55
-        ));
34
+		$this->set_body('main_navigation', array(
35
+				(object) array(
36
+					'uri' => '/falls/',
37
+					'anchor' => 'Falls',
38
+					'is_active' => $this->parent_navigation_item === 'falls',
39
+				),
40
+				(object) array(
41
+					'uri' => '/map/',
42
+					'anchor' => 'Map',
43
+					'is_active' => $this->parent_navigation_item === 'map',
44
+				),
45
+				(object) array(
46
+					'uri' => '/journal/',
47
+					'anchor' => 'Journal',
48
+					'is_active' => $this->parent_navigation_item === 'journal',
49
+				),
50
+				(object) array(
51
+					'uri' => '/about/',
52
+					'anchor' => 'About',
53
+					'is_active' => $this->parent_navigation_item === 'about',
54
+				)
55
+		));
56 56
 
57
-        if ($page_type == 'wide') {
58
-            $this->set_body_view('WidePage');
59
-        } else {
60
-            $this->set_body_view('Page');
61
-        }
62
-    }
57
+		if ($page_type == 'wide') {
58
+			$this->set_body_view('WidePage');
59
+		} else {
60
+			$this->set_body_view('Page');
61
+		}
62
+	}
63 63
 
64 64
 }
Please login to merge, or discard this patch.