Completed
Branch feature/phpstanLevel2 (435bc7)
by Schlaefer
02:41
created
plugins/Api/src/Controller/ApiAppController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use App\Controller\AppController;
16 16
 use Cake\Controller\Component\AuthComponent;
17 17
 use Cake\Core\Configure;
18
-use Cake\Event\Event;
19 18
 
20 19
 /**
21 20
  * Api App Controller
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.
plugins/Bookmarks/src/Lib/Bookmarks.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace Bookmarks\Lib;
14 14
 
15
-use App\Controller\Component\CurrentUserComponent;
16 15
 use Cake\ORM\TableRegistry;
17 16
 use Saito\User\CurrentUser\CurrentUserInterface;
18 17
 
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.
plugins/Feeds/src/Controller/PostingsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Controller\AppController;
6 6
 use App\Model\Table\EntriesTable;
7
-use Cake\Core\Configure;
8 7
 use Cake\Event\Event;
9 8
 use Cake\Http\Exception\BadRequestException;
10 9
 use Feeds\Model\Behavior\FeedsPostingBehavior;
Please login to merge, or discard this patch.
plugins/ImageUploader/tests/TestCase/Controller/UploadsControllerTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,11 @@
 block discarded – undo
13 13
 namespace ImageUploader\Test\TestCase\Controller;
14 14
 
15 15
 use Api\Error\Exception\GenericApiException;
16
-use Cake\Cache\Cache;
17 16
 use Cake\Core\Configure;
18 17
 use Cake\Core\Plugin;
19 18
 use Cake\Filesystem\File;
20 19
 use Cake\Http\Exception\UnauthorizedException;
21 20
 use Cake\ORM\TableRegistry;
22
-use claviska\SimpleImage;
23 21
 use Saito\Exception\SaitoForbiddenException;
24 22
 use Saito\Test\IntegrationTestCase;
25 23
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $this->loginJwt(1);
73 73
 
74 74
         $this->upload($this->file);
75
-        $response = json_decode((string)$this->_response->getBody(), true);
75
+        $response = json_decode((string) $this->_response->getBody(), true);
76 76
 
77 77
         $this->assertResponseCode(200);
78 78
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             <svg width="9" height="9" style="background:red;"></svg>');
120 120
         $this->upload($this->file);
121 121
 
122
-        $response = json_decode((string)$this->_response->getBody(), true);
122
+        $response = json_decode((string) $this->_response->getBody(), true);
123 123
 
124 124
         $this->assertResponseCode(200);
125 125
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
         $this->upload($this->file);
178 178
 
179
-        $response = json_decode((string)$this->_response->getBody(), true);
179
+        $response = json_decode((string) $this->_response->getBody(), true);
180 180
 
181 181
         $this->assertResponseCode(200);
182 182
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
         $this->get('api/v2/uploads');
238 238
 
239
-        $response = json_decode((string)$this->_response->getBody(), true);
239
+        $response = json_decode((string) $this->_response->getBody(), true);
240 240
 
241 241
         $this->assertResponseCode(200);
242 242
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
         $this->delete('api/v2/uploads/1');
285 285
 
286
-        $response = json_decode((string)$this->_response->getBody(), true);
286
+        $response = json_decode((string) $this->_response->getBody(), true);
287 287
 
288 288
         $this->assertResponseCode(204);
289 289
 
Please login to merge, or discard this patch.
plugins/Installer/tests/TestCase/Controller/UpdaterControllerTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace Installer\Test\TestCase\Controller;
14 14
 
15
-use App\Model\Table\SettingsTable;
16 15
 use Cake\Core\Configure;
17 16
 use Cake\Datasource\ConnectionManager;
18 17
 use Cake\Filesystem\File;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $this->assertResponseOk();
56 56
         $this->assertEquals('failure', $this->_controller->viewBuilder()->getTemplate());
57
-        $this->assertResponseContains((string)1529737182);
57
+        $this->assertResponseContains((string) 1529737182);
58 58
     }
59 59
 
60 60
     public function testUpdaterShowFailureNoDbVersionString()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $this->assertResponseOk();
66 66
         $this->assertEquals('failure', $this->_controller->viewBuilder()->getTemplate());
67
-        $this->assertResponseContains((string)1529737397);
67
+        $this->assertResponseContains((string) 1529737397);
68 68
     }
69 69
 
70 70
     public function testUpdaterShowFailureWrongDbVersionString()
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this->assertResponseOk();
76 76
         $this->assertEquals('failure', $this->_controller->viewBuilder()->getTemplate());
77
-        $this->assertResponseContains((string)1529737648);
77
+        $this->assertResponseContains((string) 1529737648);
78 78
     }
79 79
 
80 80
     public function testUpdaterInitMigrationsFormEmpty()
Please login to merge, or discard this patch.
src/Auth/CookieAuthenticate.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace App\Auth;
11 11
 
12 12
 use Cake\Auth\BaseAuthenticate;
13
-use Cake\Core\Configure;
14 13
 use Cake\Event\Event;
15 14
 use Cake\Http\Response;
16 15
 use Cake\Http\ServerRequest;
Please login to merge, or discard this patch.
src/Controller/Component/SlidetabsComponent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Controller\Component;
4 4
 
5 5
 use Cake\Controller\Component;
6
-use Cake\Core\Configure;
7 6
 use Saito\User\ForumsUserInterface;
8 7
 
9 8
 class SlidetabsComponent extends Component
Please login to merge, or discard this patch.
src/Controller/StatusController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Cake\Event\Event;
6 6
 use Cake\Http\Exception\BadRequestException;
7
-use Cake\ORM\TableRegistry;
8 7
 
9 8
 class StatusController extends AppController
10 9
 {
Please login to merge, or discard this patch.
src/Lib/Model/Table/AppTable.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Cake\Database\Expression\QueryExpression;
7 7
 use Cake\Event\Event;
8 8
 use Cake\Event\EventManager;
9
-use Cake\ORM\Entity;
10 9
 use Cake\ORM\Table;
11 10
 use Saito\Event\SaitoEventManager;
12 11
 
Please login to merge, or discard this patch.