@@ -37,6 +37,9 @@ |
||
37 | 37 | return $this; |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param Space $space |
|
42 | + */ |
|
40 | 43 | public function initializeSequence($space) : Entity |
41 | 44 | { |
42 | 45 | $this->initSchema(); |
@@ -250,6 +250,9 @@ discard block |
||
250 | 250 | return $this->getData($entity, $id, $date, '_temporal_override_aggregate'); |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param string $space |
|
255 | + */ |
|
253 | 256 | private function getData($entity, $id, $date, $space) |
254 | 257 | { |
255 | 258 | $entity = $this->entityNameToId($entity); |
@@ -468,6 +471,9 @@ discard block |
||
468 | 471 | return $this; |
469 | 472 | } |
470 | 473 | |
474 | + /** |
|
475 | + * @return string |
|
476 | + */ |
|
471 | 477 | private function getTimestamp($string) |
472 | 478 | { |
473 | 479 | if (Carbon::hasTestNow() || !array_key_exists($string, $this->timestamps)) { |
@@ -33,6 +33,9 @@ |
||
33 | 33 | return null; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $space |
|
38 | + */ |
|
36 | 39 | public function mapEntity($space, $class) : self |
37 | 40 | { |
38 | 41 | $this->validateSpace($space); |
@@ -325,6 +325,9 @@ |
||
325 | 325 | return $this->formatNamesHash[$name]; |
326 | 326 | } |
327 | 327 | |
328 | + /** |
|
329 | + * @return string |
|
330 | + */ |
|
328 | 331 | public function getReference(string $name) : ?string |
329 | 332 | { |
330 | 333 | return $this->isReference($name) ? $this->formatReferences[$name] : null; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | if (!$this->getPropertyType($property)) { |
167 | 167 | throw new Exception("Unknown property $property", 1); |
168 | 168 | } |
169 | - $options['parts'][] = $this->getPropertyIndex($property)+1; |
|
169 | + $options['parts'][] = $this->getPropertyIndex($property) + 1; |
|
170 | 170 | $options['parts'][] = $this->getPropertyType($property); |
171 | 171 | $this->setPropertyNullable($property, false); |
172 | 172 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | public function isSpecial() : bool |
201 | 201 | { |
202 | - return in_array($this->id, [ ClientSpace::VSPACE_ID, ClientSpace::VINDEX_ID ]); |
|
202 | + return in_array($this->id, [ClientSpace::VSPACE_ID, ClientSpace::VINDEX_ID]); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | public function isSystem() : bool |
@@ -158,7 +158,7 @@ |
||
158 | 158 | |
159 | 159 | public function once(string $name, Closure $callback) |
160 | 160 | { |
161 | - $key = 'mapper-once' . $name; |
|
161 | + $key = 'mapper-once'.$name; |
|
162 | 162 | |
163 | 163 | $rows = $this->mapper->find('_schema', ['key' => $key]); |
164 | 164 | if (!count($rows)) { |