Completed
Push — master ( 4aff6e...f50da1 )
by Dmitry
02:26
created
src/Plugin/Annotation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function validateSpace($space)
56 56
     {
57
-        foreach($this->entityClasses as $class) {
58
-            if($this->getSpaceName($class) == $space) {
57
+        foreach ($this->entityClasses as $class) {
58
+            if ($this->getSpaceName($class) == $space) {
59 59
                 return true;
60 60
             }
61 61
         }
62 62
 
63
-        foreach($this->repositoryClasses as $class) {
64
-            if($this->getSpaceName($class) == $space) {
63
+        foreach ($this->repositoryClasses as $class) {
64
+            if ($this->getSpaceName($class) == $space) {
65 65
                 return true;
66 66
             }
67 67
         }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         foreach ($schema->getSpaces() as $space) {
137 137
             if (!count($space->getIndexes())) {
138 138
                 if (!$space->hasProperty('id')) {
139
-                    throw new Exception("No primary index on ". $space->getName());
139
+                    throw new Exception("No primary index on ".$space->getName());
140 140
                 }
141 141
                 $space->addIndex(['id']);
142 142
             }
Please login to merge, or discard this patch.