@@ -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; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Tarantool\Client; |
6 | 6 | use Tarantool\Mapper\Contracts; |
7 | -use Tarantool\Schema\Space; |
|
8 | 7 | use Tarantool\Schema\Index; |
9 | 8 | |
10 | 9 | class Schema implements Contracts\Schema |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | if (!array_key_exists('parts', $arguments) || !count($arguments['parts'])) { |
71 | 71 | $arguments['parts'] = []; |
72 | - foreach($properties as $name) { |
|
72 | + foreach ($properties as $name) { |
|
73 | 73 | $index = array_search($name, $this->properties); |
74 | 74 | $arguments['parts'][] = $index + 1; |
75 | 75 | $arguments['parts'][] = $this->convention->getTarantoolType($this->types[$name]); |
@@ -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)) { |