@@ -38,7 +38,7 @@ |
||
38 | 38 | public function render() : void |
39 | 39 | { |
40 | 40 | $this->beforeRender(); |
41 | - $this->template->setFile(__DIR__. '/BaseListComponent.latte'); |
|
41 | + $this->template->setFile(__DIR__.'/BaseListComponent.latte'); |
|
42 | 42 | $this->template->render(); |
43 | 43 | } |
44 | 44 |
@@ -164,8 +164,7 @@ |
||
164 | 164 | if (static::ACTIVE) |
165 | 165 | { |
166 | 166 | $this->repository->findRow($id)->update(['active' => -1]); |
167 | - } |
|
168 | - else |
|
167 | + } else |
|
169 | 168 | { |
170 | 169 | $this->repository->findRow($id)->delete(); |
171 | 170 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | protected function getStructure() |
46 | 46 | { |
47 | - $cacheName = 'enumerator_' . $this->repository->getTableName(); |
|
47 | + $cacheName = 'enumerator_'.$this->repository->getTableName(); |
|
48 | 48 | $structure = $this->cache->load($cacheName); |
49 | 49 | |
50 | 50 | if ($structure) |