Completed
Branch feature/phpstanLevel2 (435bc7)
by Schlaefer
02:41
created
src/View/Helper/PostingHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/View/Helper/JsDataHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lib/Saito/User/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lib/Saito/User/Categories.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Lib/Saito/Thread/Renderer/HtmlRendererAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Lib/Saito/Validation/SaitoValidationProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Lib/Saito/Test/AssertTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lib/Saito/Cache/ItemCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Lib/Model/Table/FieldFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.