@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if (!is_subclass_of($class, Entity::class)) { |
| 39 | - throw new Exception("Entity should extend " . Entity::class . " class"); |
|
| 39 | + throw new Exception("Entity should extend ".Entity::class." class"); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->entityMapping[$space] = $class; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | if (!is_subclass_of($class, Repository::class)) { |
| 54 | - throw new Exception("Repository should extend " . Repository::class . " class"); |
|
| 54 | + throw new Exception("Repository should extend ".Repository::class." class"); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $this->repositoryMapping[$space] = $class; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | foreach ($schema->getSpaces() as $space) { |
| 147 | 147 | if (!count($space->getIndexes())) { |
| 148 | 148 | if (!$space->hasProperty('id')) { |
| 149 | - throw new Exception("No primary index on ". $space->getName()); |
|
| 149 | + throw new Exception("No primary index on ".$space->getName()); |
|
| 150 | 150 | } |
| 151 | 151 | $space->addIndex(['id']); |
| 152 | 152 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | private function pluralize($word) |
| 197 | 197 | { |
| 198 | - switch (strtolower($word[strlen($word)-1])) { |
|
| 198 | + switch (strtolower($word[strlen($word) - 1])) { |
|
| 199 | 199 | case 'y': |
| 200 | 200 | return substr($word, 0, -1).'ies'; |
| 201 | 201 | case 's': |