Completed
Push — master ( efc4e5...07e194 )
by Dmitry
01:53
created
src/Plugin/Sequence.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $this->mapper
47 47
                 ->getPlugin(Procedure::class)
48 48
                 ->get(CreateSequence::class)
49
-                ->execute($name, $primaryIndex['name'], $primaryIndex['parts'][0][0]+1);
49
+                ->execute($name, $primaryIndex['name'], $primaryIndex['parts'][0][0] + 1);
50 50
 
51 51
             $this->mapper->getRepository('_vsequence')->flushCache();
52 52
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Tarantool\Mapper\Plugin;
6 6
 
7 7
 use Exception;
8
-use Tarantool\Client\Schema\Operations;
9 8
 use Tarantool\Mapper\Entity;
10 9
 use Tarantool\Mapper\Plugin;
11 10
 use Tarantool\Mapper\Procedure\CreateSequence;
Please login to merge, or discard this patch.
src/Procedure/FindOrCreate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $pkIndex = null;
45 45
         if ($key) {
46 46
             // convert php to lua index
47
-            $pkIndex = $space->getPrimaryField()+1;
47
+            $pkIndex = $space->getPrimaryField() + 1;
48 48
             if (!array_key_exists($key, $params) || !$params[$key]) {
49 49
                 $sequence = 1;
50 50
                 $space->getMapper()
Please login to merge, or discard this patch.
src/Schema.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Closure;
8 8
 use Exception;
9 9
 use Tarantool\Client\Schema\Criteria;
10
-use Tarantool\Client\Schema\Space as ClientSpace;
11 10
 
12 11
 class Schema
13 12
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         }
42 42
 
43 43
         if (!in_array($options['engine'], ['memtx', 'vinyl'])) {
44
-            throw new Exception("Invalid engine ". $options['engine']);
44
+            throw new Exception("Invalid engine ".$options['engine']);
45 45
         }
46 46
 
47 47
         [$id] = $this->mapper->getClient()->evaluate("
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
     public function once(string $name, Closure $callback)
163 163
     {
164
-        $key = 'mapper-once' . $name;
164
+        $key = 'mapper-once'.$name;
165 165
         $row = $this->mapper->findOne('_schema', ['key' => $key]);
166 166
         if (!$row) {
167 167
             $this->mapper->create('_schema', ['key' => $key]);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function forgetOnce(string $name)
173 173
     {
174
-        $key = 'mapper-once' . $name;
174
+        $key = 'mapper-once'.$name;
175 175
         $row = $this->mapper->findOne('_schema', ['key' => $key]);
176 176
         if ($row) {
177 177
             $this->mapper->remove($row);
Please login to merge, or discard this patch.