@@ -98,7 +98,7 @@ |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | // @todo check |
| 101 | - $result = array_values(array_filter($result, function ($item) { |
|
| 101 | + $result = array_values(array_filter($result, function($item) { |
|
| 102 | 102 | return \is_array($item) && VersionState::DELETE_PLACEHOLDER !== $item['t3ver_state']; |
| 103 | 103 | })); |
| 104 | 104 | |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | |
| 196 | 196 | if ($workspace) { |
| 197 | 197 | // Placeholder are respect in function updateIndex |
| 198 | - $currentItems = array_filter($currentItems, function ($item) { |
|
| 198 | + $currentItems = array_filter($currentItems, function($item) { |
|
| 199 | 199 | return VersionState::DELETE_PLACEHOLDER !== $item['t3ver_state']; |
| 200 | 200 | }); |
| 201 | 201 | } |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | { |
| 85 | 85 | $workspace = isset($record['t3ver_wsid']) ? (int)$record['t3ver_wsid'] : 0; |
| 86 | 86 | $origId = isset($record['t3ver_oid']) ? (int)$record['t3ver_oid'] : 0; |
| 87 | - $neededItems = array_map(function ($item) use ($workspace, $origId, $record) { |
|
| 87 | + $neededItems = array_map(function($item) use ($workspace, $origId, $record) { |
|
| 88 | 88 | $item['t3ver_wsid'] = $workspace; |
| 89 | 89 | // Set relation to the original record |
| 90 | 90 | if ($workspace) { |
@@ -93,20 +93,20 @@ |
||
| 93 | 93 | ], '&'); |
| 94 | 94 | |
| 95 | 95 | $storeArguments = [ |
| 96 | - $indexerConfig['storagepid'], // storage PID |
|
| 97 | - $title, // record title |
|
| 98 | - self::KEY, // content type |
|
| 99 | - $indexerConfig['targetpid'], // target PID: where is the single view? |
|
| 100 | - $fullContent, // indexed content, includes the title (linebreak after title) |
|
| 101 | - $originalObject->getKeSearchTags($index), // tags for faceted search |
|
| 102 | - $params, // typolink params for singleview |
|
| 103 | - $abstract, // abstract; shown in result list if not empty |
|
| 96 | + $indexerConfig['storagepid'], // storage PID |
|
| 97 | + $title, // record title |
|
| 98 | + self::KEY, // content type |
|
| 99 | + $indexerConfig['targetpid'], // target PID: where is the single view? |
|
| 100 | + $fullContent, // indexed content, includes the title (linebreak after title) |
|
| 101 | + $originalObject->getKeSearchTags($index), // tags for faceted search |
|
| 102 | + $params, // typolink params for singleview |
|
| 103 | + $abstract, // abstract; shown in result list if not empty |
|
| 104 | 104 | $index->_getProperty('_languageUid'), // $index always has a "_languageUid" - if the $originalObject does not use translations, it is 0 |
| 105 | 105 | $index->_hasProperty('starttime') ? $index->_getProperty('starttime') : 0, |
| 106 | 106 | $index->_hasProperty('endtime') ? $index->_getProperty('endtime') : 0, |
| 107 | 107 | $index->_hasProperty('fe_group') ? $index->_getProperty('fe_group') : '', |
| 108 | - false, // debug only? |
|
| 109 | - $additionalFields, // additionalFields |
|
| 108 | + false, // debug only? |
|
| 109 | + $additionalFields, // additionalFields |
|
| 110 | 110 | ]; |
| 111 | 111 | |
| 112 | 112 | $indexerObject->storeInIndex(...$storeArguments); |