@@ -58,6 +58,10 @@ discard block |
||
| 58 | 58 | $cmsComponent->setParameter(CmsComponent::PARAMETER_MAIN_NAV_CLASS, CmsComponent::PARAMETER_SEARCH); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param \library\cc\Request $request |
|
| 63 | + * @param CmsComponent $cmsComponent |
|
| 64 | + */ |
|
| 61 | 65 | private function ajaxUpdateIndexRoute($request, $cmsComponent) |
| 62 | 66 | { |
| 63 | 67 | $cmsComponent->subTemplate = 'cms/search/update-index'; |
@@ -93,6 +97,9 @@ discard block |
||
| 93 | 97 | } |
| 94 | 98 | } |
| 95 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $obj |
|
| 102 | + */ |
|
| 96 | 103 | private function showJson($obj, $httpHeader = 'HTTP/1.0 200 OK') { |
| 97 | 104 | header($_SERVER['SERVER_PROTOCOL'] . $httpHeader, true); |
| 98 | 105 | header('Content-type: application/json'); |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Filter out all special characters, like punctuation and characters with accents |
| 40 | 40 | * |
| 41 | - * @param $string |
|
| 41 | + * @param string $string |
|
| 42 | 42 | * |
| 43 | - * @return mixed|string |
|
| 43 | + * @return string |
|
| 44 | 44 | */ |
| 45 | 45 | private function filterSpecialCharacters($string) |
| 46 | 46 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed|string |
|
| 76 | + * @return string |
|
| 77 | 77 | */ |
| 78 | 78 | public function getFilteredString() |
| 79 | 79 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @return int|mixed |
|
| 127 | + * @return integer |
|
| 128 | 128 | */ |
| 129 | 129 | private function getTotalDocumentCount() |
| 130 | 130 | { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | 156 | * Adds a logline with the time since last log |
| 157 | - * @param $string |
|
| 157 | + * @param string $string |
|
| 158 | 158 | */ |
| 159 | 159 | private function addLog($string) |
| 160 | 160 | { |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * @param $values |
| 88 | - * @param $sql |
|
| 89 | - * @param $db |
|
| 88 | + * @param string $sql |
|
| 89 | + * @param resource $db |
|
| 90 | 90 | * |
| 91 | 91 | * @throws \Exception |
| 92 | 92 | */ |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * Queries the search index for a given token |
| 130 | 130 | * and the query norm. |
| 131 | 131 | * @param $token |
| 132 | - * @param $queryNorm |
|
| 132 | + * @param integer $queryNorm |
|
| 133 | 133 | * |
| 134 | 134 | * @return array |
| 135 | 135 | * @throws \Exception |