Passed
Push — master ( 9428db...e92e1f )
by y
02:17
created
src/DB/Record.php 1 patch
Braces   +2 added lines, -4 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
             }
@@ -243,8 +242,7 @@  discard block
 block discarded – undo
243 242
     public function save (EntityInterface $entity): int {
244 243
         if (!$entity->getId()) {
245 244
             $this->saveInsert($entity);
246
-        }
247
-        else {
245
+        } else {
248 246
             $this->saveUpdate($entity);
249 247
         }
250 248
         $this->saveEav($entity);
Please login to merge, or discard this patch.