Passed
Pull Request — master (#1638)
by Timo
04:44
created
Classes/Domain/Search/Suggest/SuggestService.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * @param SearchRequest $searchRequest
76
-     * @param $additionalFilters
77
-     * @return array
76
+     * @param string $additionalFilters
77
+     * @return string
78 78
      */
79 79
     public function getSuggestions(SearchRequest $searchRequest, $additionalFilters) {
80 80
         $solrSuggestions = $this->getSolrSuggestions($searchRequest, $additionalFilters);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * Adds documents from a collection to the result collection as soon as the limit is not reached.
204 204
      *
205 205
      * @param array $documents
206
-     * @param array $documentsToAdd
206
+     * @param \Apache_Solr_Document[] $documentsToAdd
207 207
      * @param integer $maxDocuments
208 208
      * @return array
209 209
      */
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * Runs a search and returns the results.
242 242
      *
243
-     * @param $bestSuggestionRequest
243
+     * @param SearchRequest $bestSuggestionRequest
244 244
      * @return \ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet
245 245
      */
246 246
     protected function doASearch($bestSuggestionRequest)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
         $suggestions = $this->getSuggestionArray($solrSuggestions, $maxSuggestions);
91 91
 
92
-        if(!$buildTopResults) {
92
+        if (!$buildTopResults) {
93 93
             return $this->getResultArray($searchRequest, $suggestions, [], false);
94 94
         }
95 95
 
Please login to merge, or discard this patch.