@@ -139,7 +139,7 @@ |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @param null $variantParent |
|
142 | + * @param SearchResult $variantParent |
|
143 | 143 | */ |
144 | 144 | public function setVariantParent($variantParent) |
145 | 145 | { |
@@ -165,10 +165,10 @@ |
||
165 | 165 | // direct access for small paths |
166 | 166 | case 1: |
167 | 167 | $this->data[$pathArray[0]] = $value; |
168 | - return; |
|
168 | + return; |
|
169 | 169 | case 2: |
170 | 170 | $this->data[$pathArray[0]][$pathArray[1]] = $value; |
171 | - return; |
|
171 | + return; |
|
172 | 172 | default: |
173 | 173 | $this->setDeepElementWithLoop($pathArray, $value); |
174 | 174 | } |
@@ -247,12 +247,12 @@ |
||
247 | 247 | protected function getPathAsArray($path) |
248 | 248 | { |
249 | 249 | if (!$this->includePathSeparatorInKeys) { |
250 | - $pathArray = explode($this->pathSeparator, $path); |
|
250 | + $pathArray = explode($this->pathSeparator, $path); |
|
251 | 251 | return $pathArray; |
252 | 252 | } |
253 | 253 | |
254 | 254 | $substitutedPath = str_replace($this->pathSeparator, $this->pathSeparator . '@@@', trim($path)); |
255 | - $pathArray = array_filter(explode('@@@', $substitutedPath)); |
|
255 | + $pathArray = array_filter(explode('@@@', $substitutedPath)); |
|
256 | 256 | return $pathArray; |
257 | 257 | } |
258 | 258 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $activeFacets = $this->getActiveFacets(); |
155 | 155 | $facetNames = []; |
156 | 156 | |
157 | - array_map(function ($activeFacet) use (&$facetNames) { |
|
157 | + array_map(function($activeFacet) use (&$facetNames) { |
|
158 | 158 | $facetNames[] = substr($activeFacet, 0, strpos($activeFacet, ':')); |
159 | 159 | }, $activeFacets); |
160 | 160 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $values = []; |
172 | 172 | $activeFacets = $this->getActiveFacets(); |
173 | 173 | |
174 | - array_map(function ($activeFacet) use (&$values, $facetName) { |
|
174 | + array_map(function($activeFacet) use (&$values, $facetName) { |
|
175 | 175 | $parts = explode(':', $activeFacet, 2); |
176 | 176 | if ($parts[0] === $facetName) { |
177 | 177 | $values[] = $parts[1]; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | public function removeAllFacetValuesByName($facetName) |
274 | 274 | { |
275 | 275 | $facetValues = $this->getActiveFacets(); |
276 | - $facetValues = array_filter($facetValues, function ($facetValue) use ($facetName) { |
|
276 | + $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) { |
|
277 | 277 | $parts = explode(':', $facetValue, 2); |
278 | 278 | return $parts[0] !== $facetName; |
279 | 279 | }); |
@@ -1152,7 +1152,7 @@ |
||
1152 | 1152 | } |
1153 | 1153 | |
1154 | 1154 | /** |
1155 | - * @param $templateContent |
|
1155 | + * @param string $templateContent |
|
1156 | 1156 | * @return mixed |
1157 | 1157 | */ |
1158 | 1158 | public function setTemplateContent($templateContent) |
@@ -324,7 +324,7 @@ |
||
324 | 324 | * Sets a request's parameter and its value. |
325 | 325 | * |
326 | 326 | * @param string $parameter Parameter name |
327 | - * @param mixed $value Parameter value. |
|
327 | + * @param string $value Parameter value. |
|
328 | 328 | */ |
329 | 329 | public function setParameter($parameter, $value) |
330 | 330 | { |
@@ -353,7 +353,7 @@ |
||
353 | 353 | $value = array_pop($relatedItemsFromForeignTable); |
354 | 354 | |
355 | 355 | // restore |
356 | - $this->configuration= $backupConfiguration; |
|
356 | + $this->configuration = $backupConfiguration; |
|
357 | 357 | $parentContentObject->data = $backupRecord; |
358 | 358 | } |
359 | 359 |
@@ -248,7 +248,7 @@ |
||
248 | 248 | |
249 | 249 | // find the currently used option for this facet |
250 | 250 | foreach ($filterParameters as $key => $filter) { |
251 | - list($filterName, ) = explode(':', $filter); |
|
251 | + list($filterName,) = explode(':', $filter); |
|
252 | 252 | |
253 | 253 | if ($filterName == $this->facetName) { |
254 | 254 | $indexToReplace = $key; |
@@ -1041,7 +1041,7 @@ discard block |
||
1041 | 1041 | /** |
1042 | 1042 | * Sets the fields to return by a query. |
1043 | 1043 | * |
1044 | - * @param array|string $fieldList an array or comma-separated list of field names |
|
1044 | + * @param string $fieldList an array or comma-separated list of field names |
|
1045 | 1045 | * @throws \UnexpectedValueException on parameters other than comma-separated lists and arrays |
1046 | 1046 | */ |
1047 | 1047 | public function setFieldList($fieldList = ['*', 'score']) |
@@ -1117,7 +1117,7 @@ discard block |
||
1117 | 1117 | * |
1118 | 1118 | * This query supports the complete Lucene Query Language. |
1119 | 1119 | * |
1120 | - * @param mixed $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
1120 | + * @param string $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
1121 | 1121 | * @see http://wiki.apache.org/solr/DisMaxQParserPlugin#q.alt |
1122 | 1122 | */ |
1123 | 1123 | public function setAlternativeQuery($alternativeQuery) |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | * different value for non-database-record types. |
386 | 386 | * @param string $additionalRecordFields for sql-query |
387 | 387 | * |
388 | - * @return array|NULL |
|
388 | + * @return string |
|
389 | 389 | */ |
390 | 390 | protected function getRecordCached($itemType, $itemUid, $additionalRecordFields) |
391 | 391 | { |
@@ -937,7 +937,7 @@ discard block |
||
937 | 937 | * Marks an item as failed and causes the indexer to skip the item in the |
938 | 938 | * next run. |
939 | 939 | * |
940 | - * @param int|Item $item Either the item's Index Queue uid or the complete item |
|
940 | + * @param Item $item Either the item's Index Queue uid or the complete item |
|
941 | 941 | * @param string $errorMessage Error message |
942 | 942 | */ |
943 | 943 | public function markItemAsFailed($item, $errorMessage = '') |