@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | switch ($config['connection']) { |
| 33 | 33 | case 'pure': |
| 34 | - $this->app->singleton(Connection::class, function ($app) { |
|
| 34 | + $this->app->singleton(Connection::class, function($app) { |
|
| 35 | 35 | return new SocketConnection(config('tarantool.host'), config('tarantool.port')); |
| 36 | 36 | }); |
| 37 | 37 | break; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->app->singleton(Manager::class); |
| 51 | 51 | |
| 52 | 52 | if (is_dir($convention->migrationPath())) { |
| 53 | - $this->app->resolving(Migrator::class, function (Migrator $migrator) use ($convention) { |
|
| 53 | + $this->app->resolving(Migrator::class, function(Migrator $migrator) use ($convention) { |
|
| 54 | 54 | |
| 55 | 55 | $migrations = []; |
| 56 | 56 | foreach (with(new Finder())->files()->in($convention->migrationPath()) as $file) { |
@@ -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; |
@@ -47,13 +47,13 @@ |
||
| 47 | 47 | $values = []; |
| 48 | 48 | |
| 49 | 49 | sort($fields); |
| 50 | - foreach($fields as $field) { |
|
| 50 | + foreach ($fields as $field) { |
|
| 51 | 51 | $values[] = $params[$field]; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | $index = implode('_', $fields); |
| 55 | 55 | |
| 56 | - if(!$index) { |
|
| 56 | + if (!$index) { |
|
| 57 | 57 | $index = 'id'; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $properties = (array) $properties; |
| 51 | 51 | foreach ($properties as $property) { |
| 52 | 52 | if (!$this->hasProperty($property)) { |
| 53 | - throw new LogicException("Unknown property $property for " . $this->name); |
|
| 53 | + throw new LogicException("Unknown property $property for ".$this->name); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | if ($schema->hasIndex($this->getName(), $indexName)) { |
| 63 | 63 | throw new LogicException("Index $indexName already exists!"); |
| 64 | 64 | } |
| 65 | - if(!$arguments) { |
|
| 65 | + if (!$arguments) { |
|
| 66 | 66 | $arguments = []; |
| 67 | 67 | } |
| 68 | 68 | |