Completed
Push — master ( a76481...6d4316 )
by Dmitry
03:05
created
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.
src/Repository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @return Entity
94
+     * @return boolean
95 95
      */
96 96
     public function knows(Contracts\Entity $entity)
97 97
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
         }
118 118
 
119 119
         $index = $this->type->findIndex(array_keys($query));
120
-        if(!is_numeric($index)) {
121
-            throw new \Exception("No index found for " . json_encode(array_keys($query)));
120
+        if (!is_numeric($index)) {
121
+            throw new \Exception("No index found for ".json_encode(array_keys($query)));
122 122
         }
123 123
         $values = count($query) ? $this->type->getIndexTuple($index, $query) : [];
124 124
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 }
182 182
                 try {
183 183
                     $this->type->getSpace()->update($entity->getId(), $operations);
184
-                } catch(\Exception $e) {
184
+                } catch (\Exception $e) {
185 185
                     $this->type->getSpace()->delete([$entity->getId()]);
186 186
                     $tuple = $this->type->getCompleteTuple($entity->toArray());
187 187
                     $this->type->getSpace()->insert($tuple);
Please login to merge, or discard this patch.
src/Schema/Type.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@
 block discarded – undo
139 139
         return $this;
140 140
     }
141 141
 
142
+    /**
143
+     * @param string $property
144
+     */
142 145
     public function reference(Contracts\Type $foreign, $property = null)
143 146
     {
144 147
         if (!$property) {
Please login to merge, or discard this patch.