@@ -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)) { |