@@ -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 |
@@ -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; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * |
67 | 67 | * @param string $text text |
68 | 68 | * @param null $type type |
69 | - * @return mixed |
|
69 | + * @return string|null |
|
70 | 70 | */ |
71 | 71 | public function badge($text, $type = null) |
72 | 72 | { |
@@ -20,8 +20,6 @@ |
||
20 | 20 | use Cake\Http\Exception\MethodNotAllowedException; |
21 | 21 | use Cake\Http\Exception\NotFoundException; |
22 | 22 | use Cake\ORM\Entity; |
23 | -use Cake\ORM\Query; |
|
24 | -use Saito\App\Registry; |
|
25 | 23 | use Saito\Exception\SaitoForbiddenException; |
26 | 24 | |
27 | 25 | /** |
@@ -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; |
@@ -9,7 +9,6 @@ discard block |
||
9 | 9 | |
10 | 10 | namespace App\Controller; |
11 | 11 | |
12 | -use App\Controller\Component\CurrentUserComponent; |
|
13 | 12 | use App\Controller\Component\MarkAsReadComponent; |
14 | 13 | use App\Controller\Component\ThreadsComponent; |
15 | 14 | use App\Model\Entity\Entry; |
@@ -21,9 +20,7 @@ discard block |
||
21 | 20 | use Cake\Http\Exception\ForbiddenException; |
22 | 21 | use Cake\Http\Exception\MethodNotAllowedException; |
23 | 22 | use Cake\Http\Exception\NotFoundException; |
24 | -use Cake\I18n\Time; |
|
25 | 23 | use Cake\Routing\RequestActionTrait; |
26 | -use Saito\App\Registry; |
|
27 | 24 | use Saito\Posting\Posting; |
28 | 25 | use Saito\User\ForumsUserInterface; |
29 | 26 | use Stopwatch\Lib\Stopwatch; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Cake\Event\Event; |
10 | 10 | use Cake\Http\Response; |
11 | 11 | use Cake\I18n\I18n; |
12 | -use Cake\Routing\Router; |
|
13 | 12 | use Saito\App\SettingsImmutable; |
14 | 13 | use Saito\Event\SaitoEventManager; |
15 | 14 | use Saito\User\CurrentUser\CurrentUser; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | namespace App\View\Helper; |
11 | 11 | |
12 | -use Cake\Core\Configure; |
|
13 | 12 | use Cake\View\Helper; |
14 | 13 | use Cake\View\StringTemplateTrait; |
15 | 14 |
@@ -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 | { |