@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | if (!empty($settings['id'])) { |
59 | - $this->_id = (int)$settings['id']; |
|
59 | + $this->_id = (int) $settings['id']; |
|
60 | 60 | $this->_isLoggedIn = true; |
61 | 61 | } |
62 | 62 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | public function isUser($user) |
140 | 140 | { |
141 | 141 | if (is_numeric($user)) { |
142 | - $id = (int)$user; |
|
142 | + $id = (int) $user; |
|
143 | 143 | } elseif ($user instanceof ForumsUserInterface || $user instanceof User) { |
144 | 144 | $id = $user->get('id'); |
145 | 145 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function isLocked(): bool |
158 | 158 | { |
159 | - return (bool)$this->get('user_lock'); |
|
159 | + return (bool) $this->get('user_lock'); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |