@@ -305,18 +305,18 @@ |
||
305 | 305 | * @throws MembershipNotFoundException |
306 | 306 | */ |
307 | 307 | public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow { |
308 | - if ($this->get($prefix . 'single_id', $data) === '') { |
|
308 | + if ($this->get($prefix.'single_id', $data) === '') { |
|
309 | 309 | throw new MembershipNotFoundException(); |
310 | 310 | } |
311 | 311 | |
312 | - $this->setSingleId($this->get($prefix . 'single_id', $data)); |
|
313 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
314 | - $this->setLevel($this->getInt($prefix . 'level', $data)); |
|
315 | - $this->setCircleConfig($this->getInt($prefix . 'circle_config', $data)); |
|
316 | - $this->setInheritanceFirst($this->get($prefix . 'inheritance_first', $data)); |
|
317 | - $this->setInheritanceLast($this->get($prefix . 'inheritance_last', $data)); |
|
318 | - $this->setInheritancePath($this->getArray($prefix . 'inheritance_path', $data)); |
|
319 | - $this->setInheritanceDepth($this->getInt($prefix . 'inheritance_depth', $data)); |
|
312 | + $this->setSingleId($this->get($prefix.'single_id', $data)); |
|
313 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
314 | + $this->setLevel($this->getInt($prefix.'level', $data)); |
|
315 | + $this->setCircleConfig($this->getInt($prefix.'circle_config', $data)); |
|
316 | + $this->setInheritanceFirst($this->get($prefix.'inheritance_first', $data)); |
|
317 | + $this->setInheritanceLast($this->get($prefix.'inheritance_last', $data)); |
|
318 | + $this->setInheritancePath($this->getArray($prefix.'inheritance_path', $data)); |
|
319 | + $this->setInheritanceDepth($this->getInt($prefix.'inheritance_depth', $data)); |
|
320 | 320 | |
321 | 321 | return $this; |
322 | 322 | } |