Completed
Push — master ( 175726...a1f655 )
by Jacob
02:42 queued 42s
created
controller/waterfalls/MapController.class.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         parent::__construct();
25 25
 
26
-        $this->add_js('https://maps.googleapis.com/maps/api/js?key=' . self::$API_KEY . '&sensor=false');
26
+        $this->add_js('https://maps.googleapis.com/maps/api/js?key='.self::$API_KEY.'&sensor=false');
27 27
         $this->add_waterfall_js();
28 28
     }
29 29
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         parent::set_head_data();
33 33
         
34
-        $this->set_title(self::$TITLE . ' | ' . self::$WEBSITE_TITLE);
34
+        $this->set_title(self::$TITLE.' | '.self::$WEBSITE_TITLE);
35 35
         $this->set_description(self::$DESCRIPTION);
36 36
         $this->set_keywords(self::$KEYWORD_ARRAY);
37 37
     }
Please login to merge, or discard this patch.
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 Loader::load('controller', 'waterfalls/DefaultPageController');
4 4
 Loader::load('collector', 'waterfall/WaterfallCollector');
5 5
 
6
-final class MapController extends DefaultPageController
7
-{
6
+final class MapController extends DefaultPageController
7
+{
8 8
 
9 9
     private static $TITLE = 'Map of Upper Peninsula Waterfalls';
10 10
     private static $DESCRIPTION = '';
@@ -19,16 +19,16 @@  discard block
 block discarded – undo
19 19
         'Upper Tahquamenon Falls',
20 20
     );
21 21
 
22
-    public function __construct()
23
-    {
22
+    public function __construct()
23
+    {
24 24
         parent::__construct();
25 25
 
26 26
         $this->add_js('https://maps.googleapis.com/maps/api/js?key=' . self::$API_KEY . '&sensor=false');
27 27
         $this->add_waterfall_js();
28 28
     }
29 29
 
30
-    protected function set_head_data()
31
-    {
30
+    protected function set_head_data()
31
+    {
32 32
         parent::set_head_data();
33 33
         
34 34
         $this->set_title(self::$TITLE . ' | ' . self::$WEBSITE_TITLE);
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         $this->set_keywords(self::$KEYWORD_ARRAY);
37 37
     }
38 38
 
39
-    protected function set_body_data($page_type = 'wide')
40
-    {
39
+    protected function set_body_data($page_type = 'wide')
40
+    {
41 41
         parent::set_body_data($page_type);
42 42
         
43 43
         $this->set_head('full_page_map', true);
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
         $this->set_body('view', 'Map');
46 46
     }
47 47
 
48
-    private function fetch_waterfall_list()
49
-    {
48
+    private function fetch_waterfall_list()
49
+    {
50 50
         $list = WaterfallCollector::getMapList();
51 51
         array_walk($list, array($this, 'parse_waterfall'));
52 52
         return $list;
53 53
     }
54 54
 
55
-    private function parse_waterfall(&$waterfall)
56
-    {
55
+    private function parse_waterfall(&$waterfall)
56
+    {
57 57
         $waterfall = (object) array(
58 58
             'name'  => $waterfall->name,
59 59
             'latitude' => $waterfall->latitude,
Please login to merge, or discard this patch.