Completed
Pull Request — master (#1198)
by Martin Poirier
11:27
created
src/Exclusion/GroupsExclusionStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         foreach ($groups as $key => $value) {
34 34
             if (is_string($key) && is_array($value)) {
35 35
                 $this->nestedGroups = true;
36
-                $this->prepare($value, $path . '.' . $key);
36
+                $this->prepare($value, $path.'.'.$key);
37 37
                 continue;
38 38
             }
39 39
 
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $groups = $property->groups ?: [self::DEFAULT_GROUP];
64 64
 
65
-        if (!$this->nestedGroups) {
65
+        if ( ! $this->nestedGroups) {
66 66
             // Group are not nested so we
67 67
             $path = 'root';
68 68
         } else {
69 69
             $path = $this->buildPathFromContext($navigatorContext);
70 70
         }
71 71
 
72
-        if(!isset($this->parsedGroups[$path])) {
72
+        if ( ! isset($this->parsedGroups[$path])) {
73 73
             // If we reach that path it's because we were allowed so we fallback on default group
74 74
             $this->parsedGroups[$path] = [self::DEFAULT_GROUP => true];
75 75
         }
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function getGroupsFor(Context $navigatorContext): array
96 96
     {
97
-        if (!$this->nestedGroups) {
97
+        if ( ! $this->nestedGroups) {
98 98
             return array_keys($this->parsedGroups['root']);
99 99
         }
100 100
 
101 101
         $path = $this->buildPathFromContext($navigatorContext);
102 102
 
103
-        if (!isset($this->parsedGroups[$path])) {
103
+        if ( ! isset($this->parsedGroups[$path])) {
104 104
             return [self::DEFAULT_GROUP];
105 105
         }
106 106
 
Please login to merge, or discard this patch.