Passed
Pull Request — master (#1126)
by Timo
32:27
created
Classes/IndexQueue/Queue.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
             . '(errors not like "") as failed,'
864 864
             . 'COUNT(*) as count',
865 865
             'tx_solr_indexqueue_item',
866
-            'root = ' . (int) $site->getRootPageId(),
866
+            'root = ' . (int)$site->getRootPageId(),
867 867
             'pending, failed'
868 868
         );
869 869
             /** @var $statistic QueueStatistic */
@@ -871,11 +871,11 @@  discard block
 block discarded – undo
871 871
 
872 872
         foreach ($indexQueueStats as $row) {
873 873
             if ($row['failed'] == 1) {
874
-                $statistic->setFailedCount((int) $row['count']);
874
+                $statistic->setFailedCount((int)$row['count']);
875 875
             } elseif ($row['pending'] == 1) {
876
-                $statistic->setPendingCount((int) $row['count']);
876
+                $statistic->setPendingCount((int)$row['count']);
877 877
             } else {
878
-                $statistic->setSuccessCount((int) $row['count']);
878
+                $statistic->setSuccessCount((int)$row['count']);
879 879
             }
880 880
         }
881 881
 
Please login to merge, or discard this patch.
Classes/IndexQueue/Item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         $this->type = $itemMetaData['item_type'];
130 130
         $this->recordUid = $itemMetaData['item_uid'];
131 131
         $this->changed = $itemMetaData['changed'];
132
-        $this->errors = (string) empty($itemMetaData['errors']) ? '' : $itemMetaData['errors'];
132
+        $this->errors = (string)empty($itemMetaData['errors']) ? '' : $itemMetaData['errors'];
133 133
 
134 134
         $this->indexingConfigurationName = $itemMetaData['indexing_configuration'];
135 135
         $this->hasIndexingProperties = (boolean)$itemMetaData['has_indexing_properties'];
Please login to merge, or discard this patch.