Completed
Branch feature/phpstanLevel2 (435bc7)
by Schlaefer
02:41
created
src/Lib/Saito/Test/SecurityMockTrait.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Saito\Test;
4 4
 
5
-use Cake\Event\Event;
6
-use Cake\Event\EventManager;
7
-
8 5
 trait SecurityMockTrait
9 6
 {
10 7
 
Please login to merge, or discard this patch.
src/Lib/Saito/User/Upload/AvatarFilenameListener.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,9 @@
 block discarded – undo
3 3
 namespace Saito\User\Upload;
4 4
 
5 5
 use App\Model\Entity\User;
6
-use Cake\Core\Configure;
7 6
 use Cake\Event\Event;
8 7
 use Cake\Event\EventListenerInterface;
9 8
 use Cake\Filesystem\Folder;
10
-use Cake\ORM\Entity;
11 9
 use Cake\Utility\Text;
12 10
 use Proffer\Lib\ProfferPath;
13 11
 
Please login to merge, or discard this patch.
src/Model/Table/SettingsTable.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      * Fast version of Set::combine($results, '{n}.Setting.name',
119 119
      * '{n}.Setting.value');
120 120
      *
121
-     * @param array $results results
121
+     * @param Query $results results
122 122
      * @return array
123 123
      */
124 124
     protected function _compactKeyValue($results)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 use App\Lib\Model\Table\AppSettingTable;
16 16
 use Cake\Cache\Cache;
17 17
 use Cake\Core\Configure;
18
-use Cake\ORM\Query;
19
-use Saito\App\Registry;
20 18
 use \Stopwatch\Lib\Stopwatch;
21 19
 
22 20
 class SettingsTable extends AppSettingTable
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/Model/Table/UserIgnoresTable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      *
132 132
      * @param int $userId user-ID
133 133
      * @param int $blockedId user-ID
134
-     * @return mixed
134
+     * @return \Cake\Datasource\EntityInterface
135 135
      */
136 136
     protected function _get($userId, $blockedId)
137 137
     {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * counts how many users ignore the user with ID $id
190 190
      *
191 191
      * @param int $id user-ID
192
-     * @return array
192
+     * @return integer
193 193
      */
194 194
     public function countIgnored($id)
195 195
     {
Please login to merge, or discard this patch.
src/Model/Table/UserOnlineTable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      * Removes user with uuid `$id` from UserOnline
122 122
      *
123 123
      * @param string $id id
124
-     * @return bool
124
+     * @return integer
125 125
      */
126 126
     public function setOffline($id)
127 127
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -9,9 +9,6 @@
 block discarded – undo
9 9
 
10 10
 namespace App\Model\Table;
11 11
 
12
-use ArrayObject;
13
-use Cake\Event\Event;
14
-use Cake\ORM\Entity;
15 12
 use Cake\ORM\Query;
16 13
 use Cake\ORM\Table;
17 14
 use Cake\Validation\Validator;
Please login to merge, or discard this patch.
src/View/Helper/UserHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * Translates user types
80 80
      *
81 81
      * @param string $type type
82
-     * @return mixed
82
+     * @return string|null
83 83
      */
84 84
     public function type($type)
85 85
     {
Please login to merge, or discard this patch.
config/Seeds/SmiliesSeed.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function run()
20 20
     {
21 21
         $data =
22
-          [
22
+            [
23 23
             [
24 24
                 'id' => 1,
25 25
                 'sort' => 1,
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 'sort' => 17,
106 106
                 'icon' => 'angry',
107 107
             ]
108
-          ];
108
+            ];
109 109
 
110 110
         $table = $this->table('smilies');
111 111
         $table->insert($data)->save();
Please login to merge, or discard this patch.
plugins/Api/src/Plugin.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.
plugins/SaitoSearch/tests/TestCase/Controller/SearchesControllerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 use Saito\Exception\SaitoForbiddenException;
16 16
 use Saito\Test\IntegrationTestCase;
17 17
 
18
- /*
18
+    /*
19 19
 class SearchesMockController extends SearchesController
20 20
 {
21 21
 
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.