@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | public static function registerLongArrays() { |
| 30 | 30 | |
| 31 | 31 | foreach (self::$egpcs as $name) { |
| 32 | - $GLOBALS["HTTP_{$name}_VARS"] =& $GLOBALS["_$name"]; |
|
| 32 | + $GLOBALS["HTTP_{$name}_VARS"] = & $GLOBALS["_$name"]; |
|
| 33 | 33 | } |
| 34 | 34 | return true; |
| 35 | 35 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | continue; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - foreach($GLOBALS['_'.$name] as $key => & $value) { |
|
| 50 | + foreach ($GLOBALS['_'.$name] as $key => & $value) { |
|
| 51 | 51 | $GLOBALS[$key] = $value; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $active = true; |
| 68 | 68 | |
| 69 | - if (strtolower($directive) == 'off' || (is_bool($directive) && $directive === false)) { |
|
| 69 | + if (strtolower($directive) == 'off' || (is_bool($directive) && $directive === false)) { |
|
| 70 | 70 | $active = false; |
| 71 | 71 | } |
| 72 | 72 | |
@@ -90,12 +90,12 @@ discard block |
||
| 90 | 90 | * @static |
| 91 | 91 | * @link http://php.net/manual/pt_BR/function.session-register.php |
| 92 | 92 | */ |
| 93 | - public static function sessionRegister(){ |
|
| 93 | + public static function sessionRegister() { |
|
| 94 | 94 | |
| 95 | 95 | $args = func_get_args(); |
| 96 | - foreach ($args as $key){ |
|
| 96 | + foreach ($args as $key) { |
|
| 97 | 97 | |
| 98 | - $_SESSION[$key]= isset($GLOBALS[$key]) ? $GLOBALS[$key] : null; |
|
| 98 | + $_SESSION[$key] = isset($GLOBALS[$key]) ? $GLOBALS[$key] : null; |
|
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * @static |
| 107 | 107 | * @param mixed $key |
| 108 | 108 | */ |
| 109 | - public static function sessionIsRegistered($key){ |
|
| 109 | + public static function sessionIsRegistered($key) { |
|
| 110 | 110 | return isset($_SESSION[$key]); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * @static |
| 118 | 118 | * @param mixed $key |
| 119 | 119 | */ |
| 120 | - public static function sessionUnregister($key){ |
|
| 120 | + public static function sessionUnregister($key) { |
|
| 121 | 121 | unset($_SESSION[$key]); |
| 122 | 122 | } |
| 123 | 123 | } |