Completed
Branch feature/phpstanLevel2 (435bc7)
by Schlaefer
02:41
created
src/Lib/Saito/User/CurrentUser/CurrentUserInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lib/Saito/User/LastRefresh/LastRefreshInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lib/Saito/User/SaitoUser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.