@@ -75,8 +75,7 @@ discard block |
||
| 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 |
||
| 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); |