@@ -147,7 +147,7 @@ |
||
147 | 147 | { |
148 | 148 | $options += [ |
149 | 149 | 'lineCache' => $this->_View->get('LineCache'), |
150 | - 'maxThreadDepthIndent' => (int)Configure::read( |
|
150 | + 'maxThreadDepthIndent' => (int) Configure::read( |
|
151 | 151 | 'Saito.Settings.thread_depth_indent' |
152 | 152 | ), |
153 | 153 | 'renderer' => 'thread', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'version' => Configure::read('Saito.v'), |
64 | 64 | 'settings' => [ |
65 | 65 | 'autoPageReload' => (isset($View->viewVars['autoPageReload']) ? $View->viewVars['autoPageReload'] : 0), |
66 | - 'editPeriod' => (int)Configure::read( |
|
66 | + 'editPeriod' => (int) Configure::read( |
|
67 | 67 | 'Saito.Settings.edit_period' |
68 | 68 | ), |
69 | 69 | 'language' => Configure::read('Saito.language'), |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'csrf' => $this->_getCsrf($View) |
90 | 90 | ], |
91 | 91 | 'currentUser' => [ |
92 | - 'id' => (int)$CurrentUser->get('id'), |
|
92 | + 'id' => (int) $CurrentUser->get('id'), |
|
93 | 93 | 'username' => $CurrentUser->get('username'), |
94 | 94 | 'user_show_inline' => $CurrentUser->get('inline_view_on_click') || false, |
95 | 95 | 'user_show_thread_collapsed' => $CurrentUser->get('user_show_thread_collapsed') || false |
@@ -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 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | case 'custom': |
91 | 91 | return $this->getCustom($action); |
92 | 92 | case 'single': |
93 | - $category = (int)$this->_User->get('user_category_active'); |
|
93 | + $category = (int) $this->_User->get('user_category_active'); |
|
94 | 94 | $categories = [$category => $category]; |
95 | 95 | |
96 | 96 | return $this->_filterAllowed($action, $categories); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function getType() |
144 | 144 | { |
145 | - $active = (int)$this->_User->get('user_category_active'); |
|
145 | + $active = (int) $this->_User->get('user_category_active'); |
|
146 | 146 | if ($active > 0) { |
147 | 147 | return 'single'; |
148 | 148 | } |
@@ -138,7 +138,7 @@ |
||
138 | 138 | { |
139 | 139 | $entryType = ($node->isRoot()) ? 'et-root' : 'et-reply'; |
140 | 140 | $entryType .= ($node->isUnread()) ? ' et-new' : ' et-old'; |
141 | - if ($node->get('id') === (int)$this->_settings['currentEntry']) { |
|
141 | + if ($node->get('id') === (int) $this->_settings['currentEntry']) { |
|
142 | 142 | $entryType .= ' et-current'; |
143 | 143 | } |
144 | 144 | $css = $entryType; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | if (!is_numeric($value)) { |
23 | 23 | return false; |
24 | 24 | } |
25 | - $value = (int)$value; |
|
25 | + $value = (int) $value; |
|
26 | 26 | |
27 | 27 | $key = $table . $value; |
28 | 28 |
@@ -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 |
@@ -60,8 +60,8 @@ |
||
60 | 60 | |
61 | 61 | if ($this->_settings['maxItems']) { |
62 | 62 | $this->_gcFuzzy = $this->_settings['maxItemsFuzzy']; |
63 | - $this->_gcMax = (int)($this->_settings['maxItems'] * (1 + $this->_gcFuzzy)); |
|
64 | - $this->_gcMin = (int)($this->_gcMax * (1 - $this->_gcFuzzy)); |
|
63 | + $this->_gcMax = (int) ($this->_settings['maxItems'] * (1 + $this->_gcFuzzy)); |
|
64 | + $this->_gcMin = (int) ($this->_gcMax * (1 - $this->_gcFuzzy)); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 |
@@ -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 |