Completed
Branch master (1e9224)
by Dmitry
02:53
created
src/Schema/Schema.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Tarantool\Mapper\Contracts;
7 7
 use Tarantool\Schema\Space;
8 8
 use Tarantool\Schema\Index;
9
-use LogicException;
10 9
 
11 10
 class Schema implements Contracts\Schema
12 11
 {
Please login to merge, or discard this patch.
src/Schema/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $properties = (array) $properties;
51 51
         foreach ($properties as $property) {
52 52
             if (!in_array($property, $this->properties)) {
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
 
Please login to merge, or discard this patch.
src/Integration/Laravel/MapperServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Integration/Laravel/MakeMigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $name = $this->argument('name');
42 42
         $class = studly_case($name);
43 43
 
44
-        if(class_exists($class)) {
44
+        if (class_exists($class)) {
45 45
             throw new \Exception("Class $class exists");
46 46
         }
47 47
 
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __call($method, $arguments)
32 32
     {
33
-        foreach($this->magicMethodRules as $prefix => $oneItem) {
34
-            if(substr($method, 0, strlen($prefix)) == $prefix) {
33
+        foreach ($this->magicMethodRules as $prefix => $oneItem) {
34
+            if (substr($method, 0, strlen($prefix)) == $prefix) {
35 35
                 $tail = substr($method, strlen($prefix));
36 36
                 $fields = array_map('strtolower', explode('And', $tail));
37 37
                 return $this->find(array_combine($fields, $arguments), $oneItem);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             if (count($changes)) {
98 98
                 $operations = [];
99 99
                 foreach ($this->type->encode($changes) as $key => $value) {
100
-                    $operations[] = ['=', $key+1, $value];
100
+                    $operations[] = ['=', $key + 1, $value];
101 101
                 }
102 102
                 $this->type->getSpace()->update($entity->getId(), $operations);
103 103
             }
Please login to merge, or discard this patch.
resources/views/migration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.