Passed
Pull Request — master (#1474)
by
unknown
03:25
created
src/Exclusion/GroupsExclusionStrategy.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
         if ($this->nestedGroups) {
64 64
             $groups = $this->getGroupsFor($navigatorContext);
65 65
 
66
-            if (!$property->groups) {
67
-                return !in_array(self::DEFAULT_GROUP, $groups);
66
+            if ( ! $property->groups) {
67
+                return ! in_array(self::DEFAULT_GROUP, $groups);
68 68
             }
69 69
 
70 70
             return $this->shouldSkipUsingGroups($property, $groups);
71 71
         } else {
72
-            if (!$property->groups) {
73
-                return !isset($this->groups[self::DEFAULT_GROUP]);
72
+            if ( ! $property->groups) {
73
+                return ! isset($this->groups[self::DEFAULT_GROUP]);
74 74
             }
75 75
 
76 76
             foreach ($property->groups as $group) {
@@ -96,14 +96,14 @@  discard block
 block discarded – undo
96 96
 
97 97
     public function getGroupsFor(Context $navigatorContext): array
98 98
     {
99
-        if (!$this->nestedGroups) {
99
+        if ( ! $this->nestedGroups) {
100 100
             return array_keys($this->groups);
101 101
         }
102 102
 
103 103
         $paths = $navigatorContext->getCurrentPath();
104 104
         $groups = $this->groups;
105 105
         foreach ($paths as $index => $path) {
106
-            if (!array_key_exists($path, $groups)) {
106
+            if ( ! array_key_exists($path, $groups)) {
107 107
                 if ($index > 0) {
108 108
                     $groups = $this->inheritedGroups ? $groups : [self::DEFAULT_GROUP];
109 109
                 } else {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             }
115 115
 
116 116
             $groups = $groups[$path];
117
-            if (!array_filter($groups, 'is_string')) {
117
+            if ( ! array_filter($groups, 'is_string')) {
118 118
                 $groups += [self::DEFAULT_GROUP];
119 119
             }
120 120
         }
Please login to merge, or discard this patch.