Passed
Pull Request — master (#777)
by Georges
02:21
created
lib/Phpfastcache/Util/ClassNamespaceResolverTrait.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,14 +99,14 @@
 block discarded – undo
99 99
                 case T_NAMESPACE:
100 100
                     $namespace = '';
101 101
                     // If there is a namespace, extract it (PHP 8 test)
102
-                    if(\defined('T_NAME_QUALIFIED')){
102
+                    if (\defined('T_NAME_QUALIFIED')) {
103 103
                         while (isset($tokens[++$i][1])) {
104 104
                             if ($tokens[$i][0] === T_NAME_QUALIFIED) {
105 105
                                 $namespace = $tokens[$i][1];
106 106
                                 break;
107 107
                             }
108 108
                         }
109
-                    }else{
109
+                    } else {
110 110
                         while (isset($tokens[++$i][1])) {
111 111
                             if (\in_array($tokens[$i][0], [T_STRING, T_NS_SEPARATOR], true)) {
112 112
                                 $namespace .= $tokens[$i][1];
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                                 break;
107 107
                             }
108 108
                         }
109
-                    }else{
109
+                    } else{
110 110
                         while (isset($tokens[++$i][1])) {
111 111
                             if (\in_array($tokens[$i][0], [T_STRING, T_NS_SEPARATOR], true)) {
112 112
                                 $namespace .= $tokens[$i][1];
Please login to merge, or discard this patch.