@@ -4,7 +4,7 @@ |
||
| 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 | |
@@ -132,11 +132,11 @@ discard block |
||
| 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 |
||
| 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);
|