@@ -1,4 +1,4 @@ |
||
| 1 | -<?php echo '<?php' , PHP_EOL; ?> |
|
| 1 | +<?php echo '<?php', PHP_EOL; ?> |
|
| 2 | 2 | |
| 3 | 3 | use Tarantool\Mapper\Contracts\Manager; |
| 4 | 4 | use Tarantool\Mapper\Contracts\Migration; |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | public function find($params = [], $oneItem = false) |
| 80 | 80 | { |
| 81 | 81 | $findKey = md5(json_encode(func_get_args())); |
| 82 | - if(array_key_exists($findKey, $this->findCache)) { |
|
| 82 | + if (array_key_exists($findKey, $this->findCache)) { |
|
| 83 | 83 | return $this->findCache[$findKey]; |
| 84 | 84 | } |
| 85 | 85 | if (is_string($params)) { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function getSpace() |
| 31 | 31 | { |
| 32 | - if(!$this->space) { |
|
| 32 | + if (!$this->space) { |
|
| 33 | 33 | $this->space = $this->getManager()->getClient()->getSpace($this->name); |
| 34 | 34 | } |
| 35 | 35 | return $this->space; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | if (!array_key_exists('parts', $arguments) || !count($arguments['parts'])) { |
| 75 | 75 | $arguments['parts'] = []; |
| 76 | - foreach($properties as $name) { |
|
| 76 | + foreach ($properties as $name) { |
|
| 77 | 77 | $index = array_search($name, $this->properties); |
| 78 | 78 | $arguments['parts'][] = $index + 1; |
| 79 | 79 | $arguments['parts'][] = $this->convention->getTarantoolType($this->types[$name]); |