@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Cake\Event\Event; |
| 18 | 18 | use Cake\Http\Response; |
| 19 | 19 | use Cake\I18n\I18n; |
| 20 | -use Saito\App\Registry; |
|
| 21 | 20 | use Saito\App\SettingsImmutable; |
| 22 | 21 | use Saito\Event\SaitoEventManager; |
| 23 | 22 | use Saito\User\CurrentUser\CurrentUser; |
@@ -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\CurrentUser\CurrentUserInterface; |
| 29 | 26 | use Saito\User\ForumsUserInterface; |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Saito\User\CurrentUser; |
| 14 | 14 | |
| 15 | -use App\Model\Table\UserReadsTable; |
|
| 16 | -use App\Model\Table\UsersTable; |
|
| 17 | 15 | use Cake\Controller\Controller; |
| 18 | 16 | use Cake\ORM\TableRegistry; |
| 19 | 17 | use Saito\User\Cookie\Storage; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | //= set persistent Cookie |
| 139 | - $setCookie = (bool)$this->request->getData('remember_me'); |
|
| 139 | + $setCookie = (bool) $this->request->getData('remember_me'); |
|
| 140 | 140 | if ($setCookie) { |
| 141 | 141 | (new CurrentUserCookie($this->getController()))->write($this->CurrentUser->getId()); |
| 142 | 142 | }; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | if (empty($this->_timestamp)) { |
| 49 | 49 | $this->_timestamp = false; |
| 50 | 50 | } else { |
| 51 | - $this->_timestamp = (int)$this->_timestamp; |
|
| 51 | + $this->_timestamp = (int) $this->_timestamp; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |