Completed
Pull Request — master (#931)
by Timo
14:59
created
Classes/IndexQueue/Queue.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
 
768 768
     /**
769 769
      * @param string $where
770
-     * @return mixed
770
+     * @return integer
771 771
      */
772 772
     private function getItemCount($where = '1=1')
773 773
     {
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      * Marks an item as failed and causes the indexer to skip the item in the
889 889
      * next run.
890 890
      *
891
-     * @param int|Item $item Either the item's Index Queue
891
+     * @param Item $item Either the item's Index Queue
892 892
      *      uid or the complete item
893 893
      * @param string $errorMessage Error message
894 894
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
     {
737 737
         $indexingConfigurationConstraint = $this->buildIndexConfigurationConstraint($indexingConfigurationName);
738 738
         $where = 'root = ' . $site->getRootPageId() . $indexingConfigurationConstraint;
739
-        return (int) $this->getItemCount($where);
739
+        return (int)$this->getItemCount($where);
740 740
     }
741 741
 
742 742
     /**
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
     {
753 753
         $indexingConfigurationConstraint = $this->buildIndexConfigurationConstraint($indexingConfigurationName);
754 754
         $where = 'changed > indexed AND root = ' . $site->getRootPageId() . $indexingConfigurationConstraint;
755
-        return (int) $this->getItemCount($where);
755
+        return (int)$this->getItemCount($where);
756 756
     }
757 757
 
758 758
     /**
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
         /**  @var $db \TYPO3\CMS\Core\Database\DatabaseConnection */
775 775
         $db = $GLOBALS['TYPO3_DB'];
776 776
 
777
-        return (int) $db->exec_SELECTcountRows('uid', 'tx_solr_indexqueue_item', $where);
777
+        return (int)$db->exec_SELECTcountRows('uid', 'tx_solr_indexqueue_item', $where);
778 778
     }
779 779
 
780 780
     /**
Please login to merge, or discard this patch.
Classes/Domain/Index/IndexService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $this->site = $site;
79 79
         $this->indexQueue = is_null($queue) ? GeneralUtility::makeInstance(Queue::class) : $queue;
80
-        $this->signalSlotDispatcher = is_null($dispatcher)  ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher;
80
+        $this->signalSlotDispatcher = is_null($dispatcher) ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher;
81 81
     }
82 82
 
83 83
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     protected function generateIndexingErrorLog(Item $itemToIndex, \Exception $e)
141 141
     {
142 142
         $message = 'Failed indexing Index Queue item ' . $itemToIndex->getIndexQueueUid();
143
-        $data = [   'code' => $e->getCode(),
143
+        $data = ['code' => $e->getCode(),
144 144
                     'message' => $e->getMessage(),
145 145
                     'trace' => $e->getTrace(),
146 146
                     'item' => (array)$itemToIndex];
Please login to merge, or discard this patch.