Completed
Pull Request — master (#1096)
by Timo
31:31
created
Classes/Task/ReIndexTaskAdditionalFieldProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
     /**
213 213
      * Check that a task is an instance of ReIndexTask
214 214
      *
215
-     * @param $task
215
+     * @param AbstractTask $task
216 216
      * @throws \LogicException
217 217
      */
218 218
     protected function isTaskInstanceofReIndexTask($task)
Please login to merge, or discard this patch.
Classes/Task/IndexQueueWorkerTaskAdditionalFieldProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * Check that a task is an instance of IndexQueueWorkerTask
144 144
      *
145
-     * @param $task
145
+     * @param AbstractTask $task
146 146
      * @throws \LogicException
147 147
      */
148 148
     protected function isTaskInstanceofIndexQueueWorkerTask($task)
Please login to merge, or discard this patch.
Classes/Query.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1041,7 +1041,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function __construct($keywords, $solrConfiguration = null, SiteHashService $siteHashService = null)
173 173
     {
174
-        $keywords = (string) $keywords;
174
+        $keywords = (string)$keywords;
175 175
 
176 176
         $this->logger = GeneralUtility::makeInstance(SolrLogManager::class, __CLASS__);
177 177
         $this->solrConfiguration = is_null($solrConfiguration) ? Util::getSolrConfiguration() : $solrConfiguration;
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
      */
680 680
     public function getGroupFields()
681 681
     {
682
-        return (array) $this->getQueryParameter('group.field', []);
682
+        return (array)$this->getQueryParameter('group.field', []);
683 683
     }
684 684
 
685 685
     /**
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      */
703 703
     public function getGroupSortings()
704 704
     {
705
-        return (array) $this->getQueryParameter('group.sort', []);
705
+        return (array)$this->getQueryParameter('group.sort', []);
706 706
     }
707 707
 
708 708
     // faceting
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
      */
729 729
     public function getGroupQueries()
730 730
     {
731
-        return (array) $this->getQueryParameter('group.query', []);
731
+        return (array)$this->getQueryParameter('group.query', []);
732 732
     }
733 733
 
734 734
     /**
Please login to merge, or discard this patch.
Classes/Site.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     {
267 267
         /** @var $registry Registry */
268 268
         $registry = GeneralUtility::makeInstance(Registry::class);
269
-        $servers = (array) $registry->get('tx_solr', 'servers', []);
269
+        $servers = (array)$registry->get('tx_solr', 'servers', []);
270 270
         return $servers;
271 271
     }
272 272
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
         if ($rootPageId == 'SITE_ROOT') {
344 344
             $rootPageId = $this->rootPage['uid'];
345
-            $pageIds[] = (int) $this->rootPage['uid'];
345
+            $pageIds[] = (int)$this->rootPage['uid'];
346 346
         }
347 347
 
348 348
         $recursionRootPageId = intval($rootPageId);
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid = ' . $recursionRootPageId . ' ' . BackendUtility::deleteClause('pages') . $initialPagesAdditionalWhereClause);
392 392
 
393 393
         while ($page = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
394
-            $pageIds[] = (int) $page['uid'];
394
+            $pageIds[] = (int)$page['uid'];
395 395
 
396 396
             if ($maxDepth > 1) {
397 397
                 $pageIds = array_merge($pageIds, $this->getPages($page['uid'], $maxDepth - 1));
Please login to merge, or discard this patch.