@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | return $this->removeVars($_ENV, $key); |
235 | 235 | } |
236 | 236 | |
237 | - /** |
|
238 | - * Get the value from $GLOBALS for given key. if the key is empty will return all values |
|
239 | - * @see GlobalVar::getVars |
|
240 | - */ |
|
237 | + /** |
|
238 | + * Get the value from $GLOBALS for given key. if the key is empty will return all values |
|
239 | + * @see GlobalVar::getVars |
|
240 | + */ |
|
241 | 241 | public function globals($key = null, $xss = true) { |
242 | 242 | return $this->getVars($GLOBALS, $key, $xss); |
243 | 243 | } |
@@ -259,16 +259,16 @@ discard block |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | |
262 | - /** |
|
263 | - * Set the value for $_GET, $_POST, $_SERVER etc. if the key is an array will |
|
264 | - * set the current super variable value by this. |
|
265 | - * @param array $var the super global variable to use, can be "$_POST", "$_GET", etc. |
|
266 | - * @param string|array $key the item key to be set or array if need set the current global variable |
|
267 | - * by this value |
|
268 | - * @param mixed $value the value to set if $key is not an array |
|
269 | - * |
|
270 | - * @return object the current instance |
|
271 | - */ |
|
262 | + /** |
|
263 | + * Set the value for $_GET, $_POST, $_SERVER etc. if the key is an array will |
|
264 | + * set the current super variable value by this. |
|
265 | + * @param array $var the super global variable to use, can be "$_POST", "$_GET", etc. |
|
266 | + * @param string|array $key the item key to be set or array if need set the current global variable |
|
267 | + * by this value |
|
268 | + * @param mixed $value the value to set if $key is not an array |
|
269 | + * |
|
270 | + * @return object the current instance |
|
271 | + */ |
|
272 | 272 | protected function setVars(&$var, $key, $value = null) { |
273 | 273 | if (is_array($key)) { |
274 | 274 | //set all |
@@ -207,10 +207,10 @@ |
||
207 | 207 | return $this; |
208 | 208 | } |
209 | 209 | |
210 | - /** |
|
211 | - * Return the instance of session. |
|
212 | - * @return object the session instance |
|
213 | - */ |
|
210 | + /** |
|
211 | + * Return the instance of session. |
|
212 | + * @return object the session instance |
|
213 | + */ |
|
214 | 214 | public function getSession() { |
215 | 215 | return $this->session; |
216 | 216 | } |
@@ -311,7 +311,7 @@ |
||
311 | 311 | protected function getDefaultFilePathForFunctionLanguage($file, $type, $appLang = null){ |
312 | 312 | $searchDir = null; |
313 | 313 | if ($type == 'function') { |
314 | - $searchDir = array(FUNCTIONS_PATH, CORE_FUNCTIONS_PATH); |
|
314 | + $searchDir = array(FUNCTIONS_PATH, CORE_FUNCTIONS_PATH); |
|
315 | 315 | } |
316 | 316 | else if ($type == 'language') { |
317 | 317 | $searchDir = array(APP_LANG_PATH, CORE_LANG_PATH); |
@@ -163,17 +163,17 @@ |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | - * Return the server port using variable |
|
167 | - * |
|
168 | - * @codeCoverageIgnore |
|
169 | - * @return string |
|
170 | - */ |
|
166 | + * Return the server port using variable |
|
167 | + * |
|
168 | + * @codeCoverageIgnore |
|
169 | + * @return string |
|
170 | + */ |
|
171 | 171 | protected function getServerPort() { |
172 | 172 | $globals = & class_loader('GlobalVar', 'classes'); |
173 | 173 | $serverPortValue = $globals->server('SERVER_PORT'); |
174 | 174 | $serverPort = 80; |
175 | 175 | if ($serverPortValue) { |
176 | - $serverPort = $serverPortValue; |
|
176 | + $serverPort = $serverPortValue; |
|
177 | 177 | } |
178 | 178 | $port = ''; |
179 | 179 | if ((is_https() && $serverPort != 443) || (!is_https() && $serverPort != 80)) { |