Passed
Pull Request — master (#11)
by Michael
23:53 queued 11:52
created
preloads/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * @see https://www.php-fig.org/psr/psr-4/examples/
5 5
  */
6 6
 spl_autoload_register(
7
-    static function ($class): void {
7
+    static function($class): void {
8 8
         // project-specific namespace prefix
9 9
         $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__)));
10 10
 
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
         foreach ($objects['list'] as $object) {
133 133
             // only list categories and/or FAQs if user has rights
134 134
             if (false !== $permHelper->checkPermission('viewcat', $object->getVar('category_id'))) {
135
-                $category    = [
135
+                $category = [
136 136
                     'id'   => $object->getVar('category_id'),
137 137
                     'name' => $object->getVar('category_title'),
138 138
                 ];
139
-                $bodyWords   .= ' ' . $object->getVar('category_title');
139
+                $bodyWords .= ' ' . $object->getVar('category_title');
140 140
                 $contentsObj = $contentsHandler->getPublished((string)$object->getVar('category_id'));
141 141
                 if ($contentsObj['count']) {
142 142
                     $category['questions'] = [];
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                             'link'  => $content->getVar('contents_id'),
147 147
                             'title' => $content->getVar('contents_title'),
148 148
                         ];
149
-                        $bodyWords               .= ' ' . $content->getVar('contents_title');
149
+                        $bodyWords .= ' ' . $content->getVar('contents_title');
150 150
                     }
151 151
                 }
152 152
                 $GLOBALS['xoopsTpl']->appendByRef('categories', $category);
Please login to merge, or discard this patch.