@@ -82,9 +82,9 @@ |
||
82 | 82 | |
83 | 83 | protected function addWorkspaceInformation(array &$neededItems, string $configurationKey, array $record): void |
84 | 84 | { |
85 | - $workspace = isset($record['t3ver_wsid']) ? (int) $record['t3ver_wsid'] : 0; |
|
86 | - $origId = isset($record['t3ver_oid']) ? (int) $record['t3ver_oid'] : 0; |
|
87 | - $neededItems = array_map(function ($item) use ($workspace, $origId) { |
|
85 | + $workspace = isset($record['t3ver_wsid']) ? (int)$record['t3ver_wsid'] : 0; |
|
86 | + $origId = isset($record['t3ver_oid']) ? (int)$record['t3ver_oid'] : 0; |
|
87 | + $neededItems = array_map(function($item) use ($workspace, $origId) { |
|
88 | 88 | $item['t3ver_wsid'] = $workspace; |
89 | 89 | // Set relation to the original record |
90 | 90 | if ($workspace) { |
@@ -75,10 +75,10 @@ |
||
75 | 75 | // Get domain model |
76 | 76 | $configuration = ExtensionConfigurationUtility::get($uniqueRegisterKey); |
77 | 77 | |
78 | - $uid = (int) $record['uid']; |
|
78 | + $uid = (int)$record['uid']; |
|
79 | 79 | if (isset($record['t3ver_oid']) && $record['t3ver_oid']) { |
80 | 80 | // Add Workspace handling |
81 | - $uid = (int) $record['t3ver_oid']; |
|
81 | + $uid = (int)$record['t3ver_oid']; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** @var DomainObjectInterface $model */ |
@@ -76,7 +76,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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; |