Completed
Branch feature/phpstanLevel2 (e9b6b0)
by Schlaefer
02:36
created
config/saito_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     ->addType('audio/mp4')
109 109
     ->addType('audio/webm')
110 110
     ->addType('image/jpeg', '19MB')
111
-    ->addType('image/png',  '19MB')
111
+    ->addType('image/png', '19MB')
112 112
     ->addType('image/svg+xml')
113 113
     ->addType('text/plain')
114 114
     ->addType('video/mp4')
Please login to merge, or discard this patch.
src/Controller/AppController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Cake\Event\Event;
18 18
 use Cake\Http\Response;
19 19
 use Cake\I18n\I18n;
20
-use Saito\App\Registry;
21 20
 use Saito\App\SettingsImmutable;
22 21
 use Saito\Event\SaitoEventManager;
23 22
 use Saito\User\CurrentUser\CurrentUser;
Please login to merge, or discard this patch.
src/Lib/Saito/User/Cookie/CurrentUserCookie.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * {@inheritDoc}
34
+     * @param integer $id
34 35
      */
35 36
     public function write($id)
36 37
     {
Please login to merge, or discard this patch.
src/Lib/Saito/User/CurrentUser/CurrentUserFactory.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace Saito\User\CurrentUser;
14 14
 
15
-use App\Model\Table\UserReadsTable;
16
-use App\Model\Table\UsersTable;
17 15
 use Cake\Controller\Controller;
18 16
 use Cake\ORM\TableRegistry;
19 17
 use Saito\User\Cookie\Storage;
Please login to merge, or discard this 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/LastRefreshAbstract.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * tested if new for user.
55 55
      *
56 56
      * @param string|\DateTimeInterface $timestamp int unix-timestamp or date as string
57
-     * @return mixed bool or null if not determinable
57
+     * @return null|boolean bool or null if not determinable
58 58
      */
59 59
     public function isNewerThan($timestamp)
60 60
     {
Please login to merge, or discard this 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/Controller/Component/AuthUserComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         }
137 137
 
138 138
         //= set persistent Cookie
139
-        $setCookie = (bool)$this->request->getData('remember_me');
139
+        $setCookie = (bool) $this->request->getData('remember_me');
140 140
         if ($setCookie) {
141 141
             (new CurrentUserCookie($this->getController()))->write($this->CurrentUser->getId());
142 142
         };
Please login to merge, or discard this patch.
src/Lib/Saito/User/LastRefresh/LastRefreshCookie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             if (empty($this->_timestamp)) {
49 49
                 $this->_timestamp = false;
50 50
             } else {
51
-                $this->_timestamp = (int)$this->_timestamp;
51
+                $this->_timestamp = (int) $this->_timestamp;
52 52
             }
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Lib/Saito/User/LastRefresh/LastRefreshDatabase.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/LastRefreshDummy.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.