@@ -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 | } |