@@ -54,14 +54,14 @@ discard block |
||
| 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 |
||
| 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 | } |