Completed
Push — master ( b43b7f...a1d1ce )
by Dmitry
17:55 queued 07:54
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 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
         $reject = [];
126 126
         if (is_array($params)) {
127 127
 
128
-            foreach($params as $key => $value) {
129
-                if(is_string($value)) {
130
-                    if(substr($value, 0, 1) == '!') {
128
+            foreach ($params as $key => $value) {
129
+                if (is_string($value)) {
130
+                    if (substr($value, 0, 1) == '!') {
131 131
                         $reject[$key] = substr($value, 1);
132 132
                     }
133 133
                 }
134 134
             }
135
-            foreach(array_keys($reject) as $key) {
135
+            foreach (array_keys($reject) as $key) {
136 136
                 unset($params[$key]);
137 137
             }
138 138
 
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
             $properties = $this->type->getProperties();
168 168
             foreach ($reject as $key => $value) {
169 169
                 $num = array_search($key, $properties) + 1;
170
-                if(!$num) {
170
+                if (!$num) {
171 171
                     throw new Exception("Unknown property $key");
172 172
                 }
173
-                $if[] = "tuple[".$num.'] ~= '.(is_numeric($value) ? intval($value):"'$value'");
173
+                $if[] = "tuple[".$num.'] ~= '.(is_numeric($value) ? intval($value) : "'$value'");
174 174
             }
175 175
 
176 176
             return $this->evaluate("
Please login to merge, or discard this patch.
src/Entities/Entity.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,13 +74,13 @@
 block discarded – undo
74 74
 
75 75
     public function __call($name, $params)
76 76
     {
77
-        if(strlen($name) > 3) {
77
+        if (strlen($name) > 3) {
78 78
             $property = substr($name, 3);
79 79
             $property[0] = strtolower($property[0]);
80
-            if(strpos($name, 'get') === 0) {
80
+            if (strpos($name, 'get') === 0) {
81 81
                 return $this->__get($property);
82 82
             }
83
-            if(strpos($name, 'set') === 0) {
83
+            if (strpos($name, 'set') === 0) {
84 84
                 return $this->__set($property, $params[0]);
85 85
             }
86 86
         }
Please login to merge, or discard this patch.