@@ -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 |
@@ -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') |