@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | const PER_PAGE = [10 => '10', 20 => '20', 50 => '50', 100 => '100']; |
32 | 32 | const PER_PAGE_DEFAULT = 10; |
33 | 33 | |
34 | - const TEMPLATE_PATH = __DIR__. '/BaseListComponent.latte'; |
|
34 | + const TEMPLATE_PATH = __DIR__.'/BaseListComponent.latte'; |
|
35 | 35 | |
36 | 36 | /** @var array */ |
37 | 37 | protected $activeArray = []; |
@@ -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 |