Passed
Branch master (3c4c67)
by Rafael
02:34
created
src/PHP53/Emulate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 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
 
Please login to merge, or discard this patch.