@@ -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 | |
@@ -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 |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $this->addBehavior( |
| 82 | 82 | 'Proffer.Proffer', |
| 83 | 83 | [ |
| 84 | - 'avatar' => [ // The name of your upload field (filename) |
|
| 84 | + 'avatar' => [// The name of your upload field (filename) |
|
| 85 | 85 | 'root' => $avatarRootDir, |
| 86 | 86 | 'dir' => 'avatar_dir', // field for upload directory |
| 87 | 87 | 'thumbnailSizes' => [ |
@@ -797,8 +797,8 @@ discard block |
||
| 797 | 797 | $User->set('user_category_custom', $newCats); |
| 798 | 798 | } else { |
| 799 | 799 | //=if set a single category |
| 800 | - $category = (int)$category; |
|
| 801 | - if ($category > 0 && $this->Entries->Categories->exists((int)$category) |
|
| 800 | + $category = (int) $category; |
|
| 801 | + if ($category > 0 && $this->Entries->Categories->exists((int) $category) |
|
| 802 | 802 | ) { |
| 803 | 803 | $active = $category; |
| 804 | 804 | } else { |
@@ -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 |
@@ -131,13 +131,13 @@ discard block |
||
| 131 | 131 | $this->UsersTable->UserOnline->setOffline($originalSessionId); |
| 132 | 132 | |
| 133 | 133 | //= password update |
| 134 | - $password = (string)$this->request->getData('password'); |
|
| 134 | + $password = (string) $this->request->getData('password'); |
|
| 135 | 135 | if ($password) { |
| 136 | 136 | $this->UsersTable->autoUpdatePassword($this->CurrentUser->getId(), $password); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | //= set persistent Cookie |
| 140 | - $setCookie = (bool)$this->request->getData('remember_me'); |
|
| 140 | + $setCookie = (bool) $this->request->getData('remember_me'); |
|
| 141 | 141 | if ($setCookie) { |
| 142 | 142 | (new CurrentUserCookie($this->getController()))->write($this->CurrentUser->getId()); |
| 143 | 143 | }; |