@@ -34,7 +34,6 @@ discard block |
||
34 | 34 | use Cake\Core\App; |
35 | 35 | use Cake\Core\Configure; |
36 | 36 | use Cake\Core\Configure\Engine\PhpConfig; |
37 | -use Cake\Core\Plugin; |
|
38 | 37 | use Cake\Database\Type; |
39 | 38 | use Cake\Datasource\ConnectionManager; |
40 | 39 | use Cake\Error\ErrorHandler; |
@@ -42,7 +41,6 @@ discard block |
||
42 | 41 | use Cake\Log\Log; |
43 | 42 | use Cake\Mailer\Email; |
44 | 43 | use Cake\Mailer\TransportFactory; |
45 | -use Cake\Routing\DispatcherFactory; |
|
46 | 44 | use Cake\Utility\Inflector; |
47 | 45 | use Cake\Utility\Security; |
48 | 46 |
@@ -12,11 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace Api\Error; |
14 | 14 | |
15 | -use Api\Error\Exception\GenericApiException; |
|
16 | 15 | use Cake\Core\Configure; |
17 | -use Cake\Core\Exception\Exception; |
|
18 | 16 | use Cake\Error\ExceptionRenderer; |
19 | -use Cake\View\View; |
|
20 | 17 | |
21 | 18 | class JsonApiExceptionRenderer extends ExceptionRenderer |
22 | 19 | { |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use Cake\Core\Configure; |
6 | 6 | use Cake\Event\EventManager; |
7 | 7 | use Cake\Filesystem\File; |
8 | -use Cake\Mailer\Email; |
|
9 | 8 | use Cake\Mailer\TransportFactory; |
10 | 9 | use Cake\Utility\Inflector; |
11 | -use claviska\SimpleImage; |
|
12 | 10 | use Cron\Lib\Cron; |
13 | 11 | use Plugin\BbcodeParser\src\Lib\Markup; |
14 | 12 | use Saito\App\Registry; |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace App\Model\Table; |
11 | 11 | |
12 | 12 | use App\Lib\Model\Table\AppSettingTable; |
13 | -use Cake\Core\Configure; |
|
14 | 13 | use Cake\Validation\Validator; |
15 | 14 | use \Stopwatch\Lib\Stopwatch; |
16 | 15 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | 'app.User', |
29 | 29 | 'app.UserOnline', |
30 | 30 | 'plugin.Bookmarks.Bookmark' |
31 | - ]; |
|
31 | + ]; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Test Bookmark table validation. |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use App\Controller\ErrorController; |
16 | 16 | use Cake\Controller\Component; |
17 | 17 | use Cake\Core\Configure; |
18 | -use Cake\ORM\TableRegistry; |
|
19 | 18 | use Cake\Routing\Router; |
20 | 19 | use Saito\App\Registry; |
21 | 20 | use Saito\Smiley\SmileyLoader; |
@@ -226,6 +226,7 @@ |
||
226 | 226 | |
227 | 227 | /** |
228 | 228 | * {@inheritdoc} |
229 | + * @param string $msg |
|
229 | 230 | */ |
230 | 231 | public function log($msg, $level = LogLevel::INFO, $context = ['saito.install']) |
231 | 232 | { |
@@ -15,9 +15,6 @@ |
||
15 | 15 | use Cake\Core\Configure; |
16 | 16 | use Cake\Event\Event; |
17 | 17 | use Cake\Filesystem\File; |
18 | -use Cake\I18n\I18n; |
|
19 | -use Cake\ORM\Table; |
|
20 | -use Cake\ORM\TableRegistry; |
|
21 | 18 | use Installer\Form\UpdaterStartForm; |
22 | 19 | use Installer\Lib\DbVersion; |
23 | 20 | use Psr\Log\LogLevel; |
@@ -108,7 +108,7 @@ |
||
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') |