@@ -270,15 +270,15 @@ |
||
| 270 | 270 | die(); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | - /** |
|
| 274 | - * Function defined for handling PHP exception error message, |
|
| 275 | - * it displays an error message using the function "show_error" |
|
| 276 | - * |
|
| 277 | - * @param object $ex instance of the "Exception" class or a derived class |
|
| 278 | - * @codeCoverageIgnore |
|
| 279 | - * |
|
| 280 | - * @return boolean |
|
| 281 | - */ |
|
| 273 | + /** |
|
| 274 | + * Function defined for handling PHP exception error message, |
|
| 275 | + * it displays an error message using the function "show_error" |
|
| 276 | + * |
|
| 277 | + * @param object $ex instance of the "Exception" class or a derived class |
|
| 278 | + * @codeCoverageIgnore |
|
| 279 | + * |
|
| 280 | + * @return boolean |
|
| 281 | + */ |
|
| 282 | 282 | function fw_exception_handler($ex) { |
| 283 | 283 | if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors'))) { |
| 284 | 284 | show_error('An exception is occured in file ' . $ex->getFile() . ' at line ' . $ex->getLine() . ' raison : ' . $ex->getMessage(), 'PHP Exception #' . $ex->getCode()); |
@@ -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 |
@@ -165,17 +165,17 @@ |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
| 168 | - * Return the server port using variable |
|
| 169 | - * |
|
| 170 | - * @codeCoverageIgnore |
|
| 171 | - * @return string |
|
| 172 | - */ |
|
| 168 | + * Return the server port using variable |
|
| 169 | + * |
|
| 170 | + * @codeCoverageIgnore |
|
| 171 | + * @return string |
|
| 172 | + */ |
|
| 173 | 173 | protected static function getServerPort() { |
| 174 | 174 | $globals = & class_loader('GlobalVar', 'classes'); |
| 175 | 175 | $serverPortValue = $globals->server('SERVER_PORT'); |
| 176 | 176 | $serverPort = 80; |
| 177 | 177 | if ($serverPortValue) { |
| 178 | - $serverPort = $serverPortValue; |
|
| 178 | + $serverPort = $serverPortValue; |
|
| 179 | 179 | } |
| 180 | 180 | $port = ''; |
| 181 | 181 | if ((is_https() && $serverPort != 443) || (!is_https() && $serverPort != 80)) { |
@@ -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 | } |