@@ -2,9 +2,6 @@ |
||
| 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 | |
@@ -3,11 +3,9 @@ |
||
| 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 | |
@@ -118,7 +118,7 @@ |
||
| 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) |
@@ -15,8 +15,6 @@ |
||
| 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 |
@@ -1,6 +1,6 @@ |
||
| 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 |
@@ -131,7 +131,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -121,7 +121,7 @@ |
||
| 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 | { |
@@ -9,9 +9,6 @@ |
||
| 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; |
@@ -79,7 +79,7 @@ |
||
| 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 | { |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -1,6 +1,6 @@ |
||
| 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 |
@@ -15,7 +15,7 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 |