Completed
Push — master ( 40b8dd...0c2ef0 )
by Patrick
08:55
created
Http/class.FlipAdminPage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         $this->setTemplateName('admin.html');
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $adminGroup
16
+     */
14 17
     protected function userIsAdmin($adminGroup)
15 18
     {
16 19
         if($this->user === false || $this->user === null)
Please login to merge, or discard this patch.
Http/class.WebPage.php 4 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
         $this->loader->addPath($dir, $namespace);
79 79
     }
80 80
 
81
+    /**
82
+     * @param string $name
83
+     */
81 84
     public function setTemplateName($name)
82 85
     {
83 86
         $this->templateName = $name;
@@ -112,7 +115,6 @@  discard block
 block discarded – undo
112 115
      * Add a JavaScript file from a set of files known to the framework
113 116
      *
114 117
      * @param string $jsFileID the ID of the JS file
115
-     * @param boolean $async Can the JS file be loaded asynchronously?
116 118
      */
117 119
     public function addWellKnownJS($jsFileID)
118 120
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 
35 35
         $aboutUrl = $this->settings->getGlobalSetting('about_url', $wwwUri.'/about');
36 36
         $this->content['header']['right']['About'] = array(
37
-          'url' => $aboutUrl,
38
-          'menu' => $this->settings->getGlobalSetting('about_menu', array(
37
+            'url' => $aboutUrl,
38
+            'menu' => $this->settings->getGlobalSetting('about_menu', array(
39 39
             'Burning Flipside' => $wwwUri.'/about/event',
40 40
             'AAR, LLC' => $wwwUri.'/organization/aar',
41 41
             'Privacy Policy' => $wwwUri.'/about/privacy'
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $this->resetUrl = $this->settings->getGlobalSetting('reset_url', $this->profilesUrl.'/reset.php');
47 47
         $this->loginUrl = $this->settings->getGlobalSetting('login_url', $this->profilesUrl.'/login.php');
48 48
 
49
-	if($this->user === false || $this->user === null)
49
+    if($this->user === false || $this->user === null)
50 50
         {
51 51
             if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false)
52 52
             {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         if(!isset($this->content['body']))
160 160
         {
161
-          $this->content['body'] = $this->body;
161
+            $this->content['body'] = $this->body;
162 162
         }
163 163
         return $this->twig->render($this->templateName, $this->content);
164 164
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             $this->content['css'] = array($uri);
91 91
             return;
92 92
         }
93
-        array_push($this->content['css'],$uri);
93
+        array_push($this->content['css'], $uri);
94 94
     }
95 95
 
96 96
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             $this->content['js'] = array($uri);
106 106
             return;
107 107
         }
108
-        array_push($this->content['js'],$uri);
108
+        array_push($this->content['js'], $uri);
109 109
     }
110 110
 
111 111
     /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         {
148 148
             $data['menu'] = $submenu;
149 149
         }
150
-        $this->content['header']['right'] = array($name => $data)+$this->content['header']['right'];
150
+        $this->content['header']['right'] = array($name => $data) + $this->content['header']['right'];
151 151
     }
152 152
 
153 153
     protected function addLinks()
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $this->loginUrl = $this->settings->getGlobalSetting('login_url', $this->profilesUrl.'/login.php');
48 48
 
49 49
 	if($this->user === false || $this->user === null)
50
-        {
50
+	{
51 51
             if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false)
52 52
             {
53 53
                 $this->addLink('Login', $this->loginUrl);
Please login to merge, or discard this patch.
Http/class.LoginRequiredPage.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         if($this->user === false || $this->user === null)
26 26
         {
27
-          $this->content['body'] = '
27
+            $this->content['body'] = '
28 28
             <div id="content">
29 29
               <div class="row">
30 30
                 <div class="col-lg-12">
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         }
37 37
         else if(!isset($this->content['body']))
38 38
         {
39
-          $this->content['body'] = $this->body;
39
+            $this->content['body'] = $this->body;
40 40
         }
41 41
         return $this->twig->render($this->templateName, $this->content);
42 42
     }
Please login to merge, or discard this patch.