@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (!$this->mapper->getSchema()->hasSpace($override['entity'])) { |
| 52 | - throw new Exception("invalid entity " . $override['entity']); |
|
| 52 | + throw new Exception("invalid entity ".$override['entity']); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $space = $this->mapper->getSchema()->getSpace($override['entity']); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | public function getState($entity, $id, $date) |
| 75 | 75 | { |
| 76 | 76 | if (!$this->mapper->getSchema()->hasSpace($entity)) { |
| 77 | - throw new Exception("invalid entity: " . $entity); |
|
| 77 | + throw new Exception("invalid entity: ".$entity); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | $entity = $this->mapper->getSchema()->getSpace($entity)->getId(); |
@@ -168,11 +168,11 @@ discard block |
||
| 168 | 168 | while (!$clean) { |
| 169 | 169 | $clean = true; |
| 170 | 170 | foreach ($states as $i => $state) { |
| 171 | - if (array_key_exists($i+1, $states)) { |
|
| 172 | - $next = $states[$i+1]; |
|
| 171 | + if (array_key_exists($i + 1, $states)) { |
|
| 172 | + $next = $states[$i + 1]; |
|
| 173 | 173 | if (!count(array_diff_assoc($state['data'], $next['data']))) { |
| 174 | 174 | $states[$i]['end'] = $next['end']; |
| 175 | - unset($states[$i+1]); |
|
| 175 | + unset($states[$i + 1]); |
|
| 176 | 176 | $states = array_values($states); |
| 177 | 177 | $clean = false; |
| 178 | 178 | break; |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | { |
| 191 | 191 | switch ($name) { |
| 192 | 192 | case 'override': |
| 193 | - return $this->mapper->getSchema()->once(__CLASS__.'_states', function (Mapper $mapper) { |
|
| 193 | + return $this->mapper->getSchema()->once(__CLASS__.'_states', function(Mapper $mapper) { |
|
| 194 | 194 | $mapper->getSchema() |
| 195 | 195 | ->createSpace('_override', [ |
| 196 | 196 | 'entity' => 'unsigned', |