@@ -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 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * <https://www.peldax.com>. |
11 | 11 | */ |
12 | 12 | |
13 | -declare(strict_types = 1); |
|
13 | +declare(strict_types=1); |
|
14 | 14 | |
15 | 15 | namespace Nepttune\Component; |
16 | 16 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | const PER_PAGE = [10 => '10', 20 => '20', 50 => '50', 100 => '100']; |
27 | 27 | const PER_PAGE_DEFAULT = 10; |
28 | 28 | |
29 | - const TEMPLATE_PATH = __DIR__. '/BaseListComponent.latte'; |
|
29 | + const TEMPLATE_PATH = __DIR__.'/BaseListComponent.latte'; |
|
30 | 30 | |
31 | 31 | protected $add = false; |
32 | 32 | protected $edit = false; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | * <https://www.peldax.com>. |
11 | 11 | */ |
12 | 12 | |
13 | -declare(strict_types = 1); |
|
13 | +declare(strict_types=1); |
|
14 | 14 | |
15 | 15 | namespace Nepttune\Component; |
16 | 16 |