@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | private function initSchema() |
56 | 56 | { |
57 | - $this->mapper->getSchema()->once(__CLASS__, function ($mapper) { |
|
57 | + $this->mapper->getSchema()->once(__CLASS__, function($mapper) { |
|
58 | 58 | $mapper->getSchema() |
59 | 59 | ->createSpace('_procedure') |
60 | 60 | ->addProperties([ |
@@ -145,7 +145,7 @@ |
||
145 | 145 | if (!$this->getPropertyType($property)) { |
146 | 146 | throw new Exception("Unknown property $property", 1); |
147 | 147 | } |
148 | - $options['parts'][] = $this->getPropertyIndex($property)+1; |
|
148 | + $options['parts'][] = $this->getPropertyIndex($property) + 1; |
|
149 | 149 | $options['parts'][] = $this->getPropertyType($property); |
150 | 150 | $this->setPropertyNullable($property, false); |
151 | 151 | } |
@@ -275,6 +275,11 @@ |
||
275 | 275 | return $this->formatNamesHash[$name]; |
276 | 276 | } |
277 | 277 | |
278 | + /** |
|
279 | + * @param string $name |
|
280 | + * |
|
281 | + * @return string |
|
282 | + */ |
|
278 | 283 | public function getReference($name) |
279 | 284 | { |
280 | 285 | return $this->isReference($name) ? $this->formatReferences[$name] : null; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function getPlugin($mixed) |
21 | 21 | { |
22 | 22 | if (!is_subclass_of($mixed, Plugin::class)) { |
23 | - throw new Exception("Plugin should extend " . Plugin::class . " class"); |
|
23 | + throw new Exception("Plugin should extend ".Plugin::class." class"); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | $plugin = is_object($mixed) ? $mixed : new $mixed($this); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'id' => $this->$property, |
37 | 37 | ]); |
38 | 38 | } |
39 | - } else if(strpos($property, 'Collection') !== false) { |
|
39 | + } else if (strpos($property, 'Collection') !== false) { |
|
40 | 40 | $property = substr($property, 0, -10); |
41 | 41 | $targetSpace = $mapper->getSchema()->toUnderscore($property); |
42 | 42 | if ($mapper->getSchema()->hasSpace($targetSpace)) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | } |
60 | 60 | } |
61 | - throw new BadMethodCallException("Call to undefined method ". get_class($this).'::'.$name); |
|
61 | + throw new BadMethodCallException("Call to undefined method ".get_class($this).'::'.$name); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function __debugInfo() |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use BadMethodCallException; |
6 | 6 | use Exception; |
7 | -use Tarantool\Mapper\Plugin\Annotation; |
|
8 | 7 | |
9 | 8 | class Entity |
10 | 9 | { |