Completed
Push — master ( 30f7bc...d1fc9d )
by Timo
09:09
created
Classes/HtmlContentExtractor.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -143,6 +143,7 @@
 block discarded – undo
143 143
      * characters.
144 144
      *
145 145
      * @param string String to clean
146
+     * @param string $content
146 147
      * @return string String cleaned from tags and special whitespace characters
147 148
      */
148 149
     public static function cleanContent($content)
Please login to merge, or discard this patch.
Classes/IndexQueue/Indexer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      * Indexes an item from the indexing queue.
100 100
      *
101 101
      * @param Item $item An index queue item
102
-     * @return Apache_Solr_Response The Apache Solr response
102
+     * @return boolean The Apache Solr response
103 103
      */
104 104
     public function index(Item $item)
105 105
     {
Please login to merge, or discard this patch.
Classes/IndexQueue/Item.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -350,6 +350,9 @@
 block discarded – undo
350 350
         }
351 351
     }
352 352
 
353
+    /**
354
+     * @param string $key
355
+     */
353 356
     public function hasIndexingProperty($key)
354 357
     {
355 358
         $this->loadIndexingProperties();
Please login to merge, or discard this patch.
Classes/IndexQueue/PageIndexerResponse.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     /**
53 53
      * Turns a JSON encoded result string back into its PHP representation.
54 54
      *
55
-     * @param string $jsonEncodedResults JSON encoded result string
55
+     * @param string $jsonEncodedResponse JSON encoded result string
56 56
      * @return array|boolean An array of action => result pairs or FALSE if the response could not be decoded
57 57
      */
58 58
     public static function getResultsFromJson($jsonEncodedResponse)
Please login to merge, or discard this patch.
Classes/IndexQueue/Queue.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -856,7 +856,7 @@
 block discarded – undo
856 856
      * Marks an item as failed and causes the indexer to skip the item in the
857 857
      * next run.
858 858
      *
859
-     * @param int|Item $item Either the item's Index Queue
859
+     * @param Item $item Either the item's Index Queue
860 860
      *      uid or the complete item
861 861
      * @param string $errorMessage Error message
862 862
      */
Please login to merge, or discard this patch.
Classes/Plugin/PluginBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -438,7 +438,7 @@
 block discarded – undo
438 438
      * This method executes the requested commands and applies the changes to
439 439
      * the template.
440 440
      *
441
-     * @param $actionResult
441
+     * @param string $actionResult
442 442
      * @return string Rendered plugin content
443 443
      */
444 444
     abstract protected function render($actionResult);
Please login to merge, or discard this patch.
Classes/Plugin/Results/NoResultsCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * Constructs label markers.
82 82
      *
83
-     * @return array Array of label markers.
83
+     * @return string Array of label markers.
84 84
      */
85 85
     protected function getLabelMarkers()
86 86
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $markers = $this->getLabelMarkers();
65 65
 
66 66
         if ($this->parentPlugin->typoScriptConfiguration->getSearchSpellcheckingSearchUsingSpellCheckerSuggestion()) {
67
-            $suggestionResults =  $this->getSuggestionResults();
67
+            $suggestionResults = $this->getSuggestionResults();
68 68
             $markers['suggestion_results'] = $suggestionResults;
69 69
             $markers['has_suggestion_results'] = trim($suggestionResults) !== '';
70 70
         }
Please login to merge, or discard this patch.
Classes/Plugin/Results/Results.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -26,17 +26,11 @@
 block discarded – undo
26 26
 
27 27
 use ApacheSolrForTypo3\Solr\CommandResolver;
28 28
 use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
29
-use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSetService;
30 29
 use ApacheSolrForTypo3\Solr\Domain\Search\SearchRequest;
31 30
 use ApacheSolrForTypo3\Solr\Plugin\CommandPluginBase;
32
-use ApacheSolrForTypo3\Solr\Plugin\PluginAware;
33 31
 use ApacheSolrForTypo3\Solr\Plugin\PluginCommand;
34
-use ApacheSolrForTypo3\Solr\Query;
35
-use ApacheSolrForTypo3\Solr\Response\Processor\ResponseProcessor;
36
-use ApacheSolrForTypo3\Solr\Search\QueryAware;
37 32
 use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration;
38 33
 use ApacheSolrForTypo3\Solr\Template;
39
-use ApacheSolrForTypo3\Solr\Util;
40 34
 use TYPO3\CMS\Core\Utility\GeneralUtility;
41 35
 
42 36
 /**
Please login to merge, or discard this patch.
Classes/Query.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -941,7 +941,7 @@
 block discarded – undo
941 941
     /**
942 942
      * Sets the fields to return by a query.
943 943
      *
944
-     * @param array|string $fieldList an array or comma-separated list of field names
944
+     * @param string $fieldList an array or comma-separated list of field names
945 945
      * @throws \UnexpectedValueException on parameters other than comma-separated lists and arrays
946 946
      */
947 947
     public function setFieldList($fieldList = array('*', 'score'))
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
      */
158 158
     public function __construct($keywords, $solrConfiguration = null)
159 159
     {
160
-        $keywords = (string) $keywords;
160
+        $keywords = (string)$keywords;
161 161
         if ($solrConfiguration == null) {
162 162
             $this->solrConfiguration = Util::getSolrConfiguration();
163 163
         } else {
Please login to merge, or discard this patch.