Passed
Push — master ( ceff3e...1dcf9b )
by y
02:14
created
src/DB/Record.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
             foreach ($rClass->getProperties() as $rProp) {
76 76
                 if (preg_match('/@col(umn)?[\s$]/', $rProp->getDocComment())) {
77 77
                     $columns[] = $rProp->getName();
78
-                }
79
-                elseif (preg_match('/@eav\s+(?<table>\S+)/', $rProp->getDocComment(), $attr)) {
78
+                } elseif (preg_match('/@eav\s+(?<table>\S+)/', $rProp->getDocComment(), $attr)) {
80 79
                     $eav[$rProp->getName()] = EAV::factory($db, $attr['table']);
81 80
                 }
82 81
             }
@@ -254,8 +253,7 @@  discard block
 block discarded – undo
254 253
     public function save (EntityInterface $entity): int {
255 254
         if (!$entity->getId()) {
256 255
             $this->saveInsert($entity);
257
-        }
258
-        else {
256
+        } else {
259 257
             $this->saveUpdate($entity);
260 258
         }
261 259
         $this->saveEav($entity);
@@ -341,8 +339,7 @@  discard block
 block discarded – undo
341 339
             if (isset($this->properties[$name])) {
342 340
                 settype($value, $this->types[$name]);
343 341
                 $this->properties[$name]->setValue($entity, $value);
344
-            }
345
-            else {
342
+            } else {
346 343
                 $entity->{$name} = $value;
347 344
             }
348 345
         }
Please login to merge, or discard this patch.