@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @param CriteriaElement|string sort order ('id', 'cid', 'title', 'publish', or 'weight') default: 'id' |
242 | 242 | * |
243 | - * @return mixed XoopsfaqContents object | false on failure |
|
243 | + * @return boolean XoopsfaqContents object | false on failure |
|
244 | 244 | */ |
245 | 245 | public function getObj($sort = 'id') |
246 | 246 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * XoopsfaqContentsHandler::getPublished() |
266 | 266 | * |
267 | 267 | * @param string $id |
268 | - * @return mixed array of XoopsfaqContent objects | false on failure |
|
268 | + * @return boolean array of XoopsfaqContent objects | false on failure |
|
269 | 269 | */ |
270 | 270 | public function getPublished($id = '') |
271 | 271 | { |
@@ -268,8 +268,8 @@ |
||
268 | 268 | /** |
269 | 269 | * Render the icon links |
270 | 270 | * |
271 | - * @param array $icon_array contains operation=>icon_name as key=>value |
|
272 | - * @param mixed $param HTML parameter |
|
271 | + * @param string[] $icon_array contains operation=>icon_name as key=>value |
|
272 | + * @param string $param HTML parameter |
|
273 | 273 | * @param mixed $value HTML parameter value to set |
274 | 274 | * @param mixed $extra are any additional HTML attributes desired for the <a> tag |
275 | 275 | * @return string |
@@ -25,13 +25,13 @@ |
||
25 | 25 | |
26 | 26 | $myts = MyTextSanitizer::getInstance(); |
27 | 27 | |
28 | - $moduleDirName = basename(dirname(__DIR__)) ; |
|
28 | + $moduleDirName = basename(dirname(__DIR__)); |
|
29 | 29 | $xfHelper = Xmf\Module\Helper::getHelper($moduleDirName); |
30 | 30 | $xfCatHandler = $xfHelper->getHandler('category'); |
31 | 31 | $catList = $xfCatHandler->getList(); |
32 | 32 | |
33 | - $retVal = array() ; |
|
34 | - foreach ($catList as $id=>$title){ |
|
33 | + $retVal = array(); |
|
34 | + foreach ($catList as $id=>$title) { |
|
35 | 35 | $retVal['parent'][] = array('id' => $id, |
36 | 36 | 'title' => $myts->htmlSpecialChars($title), |
37 | 37 | 'url' => $xfHelper->url('index.php?cat_id=' . $id) |