Completed
Push — master ( 560ded...2d0e02 )
by Tim
39s
created
Classes/Service/IndexerService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $q->select('uid')
77 77
                 ->from($tableName);
78 78
 
79
-            $worksSpaceSupport = $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] ? (bool) $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] : false;
79
+            $worksSpaceSupport = $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] ? (bool)$GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] : false;
80 80
             if ($worksSpaceSupport) {
81 81
                 $q->addOrderBy('t3ver_wsid', 'ASC');
82 82
             }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             if ($transPointer) {
86 86
                 // Note: In localized tables, it is important, that the "default language records" are indexed first, so the
87 87
                 // overlays can connect with l10n_parent to the right default record.
88
-                $q->addOrderBy((string) $transPointer, 'ASC');
88
+                $q->addOrderBy((string)$transPointer, 'ASC');
89 89
             }
90 90
             $rows = $q->execute()->fetchAll();
91 91
             foreach ($rows as $row) {
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
         $neededItems = $this->preparationService->prepareIndex($configurationKey, $tableName, $uid);
177 177
 
178 178
         $rawRecord = BackendUtility::getRecord($tableName, $uid);
179
-        $workspace = isset($rawRecord['t3ver_wsid']) ? (int) $rawRecord['t3ver_wsid'] : 0;
180
-        $origId = isset($rawRecord['t3ver_oid']) ? (int) $rawRecord['t3ver_oid'] : 0;
179
+        $workspace = isset($rawRecord['t3ver_wsid']) ? (int)$rawRecord['t3ver_wsid'] : 0;
180
+        $origId = isset($rawRecord['t3ver_oid']) ? (int)$rawRecord['t3ver_oid'] : 0;
181 181
 
182 182
         if ($workspace && $origId) {
183 183
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $db = HelperUtility::getDatabaseConnection(self::TABLE_NAME);
287 287
         foreach ($neededItems as $key => $item) {
288
-            if($workspace) {
288
+            if ($workspace) {
289 289
                 // @todo remove placeholders
290 290
                 $livePlaceholder = $item;
291 291
                 $livePlaceholder['t3ver_wsid'] = 0;
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@
 block discarded – undo
128 128
 
129 129
         $constraints = [];
130 130
 
131
-        if ((int) $options->getPid() > 0) {
132
-            $constraints[] = $query->equals('pid', (int) $options->getPid());
131
+        if ((int)$options->getPid() > 0) {
132
+            $constraints[] = $query->equals('pid', (int)$options->getPid());
133 133
         } elseif ($allowedPages) {
134 134
             $constraints[] = $query->in('pid', $allowedPages);
135 135
         }
Please login to merge, or discard this patch.