Completed
Branch master (eb6d5f)
by Dmitry
02:18
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
             $data = $newData;
48 48
         }
49 49
 
50
-        foreach($data as $k => $v) {
51
-            if(!$this->type->hasProperty($k)) {
50
+        foreach ($data as $k => $v) {
51
+            if (!$this->type->hasProperty($k)) {
52 52
                 throw new \Exception("Unknown property $k");
53 53
             }
54 54
         }
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
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.
src/Schema/Meta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         if ($fields) {
70 70
             foreach ($fields as $index => $field) {
71 71
                 if ($field instanceof Contracts\Type) {
72
-                    if(!is_numeric($index)) {
72
+                    if (!is_numeric($index)) {
73 73
                         $instance->reference($field, $index);
74 74
                     } else {
75 75
                         $instance->reference($field);
Please login to merge, or discard this patch.