@@ -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 | { |
@@ -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') |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $this->addBehavior( |
78 | 78 | 'Proffer.Proffer', |
79 | 79 | [ |
80 | - 'avatar' => [ // The name of your upload field (filename) |
|
80 | + 'avatar' => [// The name of your upload field (filename) |
|
81 | 81 | 'root' => $avatarRootDir, |
82 | 82 | 'dir' => 'avatar_dir', // field for upload directory |
83 | 83 | 'thumbnailSizes' => [ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * help |
39 | 39 | * |
40 | 40 | * @param string $id id |
41 | - * @return mixed |
|
41 | + * @return string|null |
|
42 | 42 | */ |
43 | 43 | public function help($id) |
44 | 44 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param string $text text |
78 | 78 | * @param null $type type |
79 | - * @return mixed |
|
79 | + * @return string|null |
|
80 | 80 | */ |
81 | 81 | public function badge($text, $type = null) |
82 | 82 | { |