@@ -33,18 +33,18 @@ public function processCmdmap_preProcess(
3333 DataHandler $ handler ,
3434 false |array $ pasteUpdate ,
3535 ): void {
36- if ($ command === 'version ' ){
36+ if ($ command === 'version ' ) {
3737 $ register = Register::getRegister ();
3838
3939 foreach ($ register as $ key => $ configuration ) {
4040 // we just want the event!
41- if ($ key === 'ConfigurationGroup ' ){
41+ if ($ key === 'ConfigurationGroup ' ) {
4242 continue ;
4343 }
4444
4545 // if it is any event
46- if ($ configuration ['tableName ' ] === $ table ){
47- switch ($ value ['action ' ] ?? '' ){
46+ if ($ configuration ['tableName ' ] === $ table ) {
47+ switch ($ value ['action ' ] ?? '' ) {
4848 // We need to save the live-uid for deleting the workspace-indexes
4949 // after deleting the workspace version
5050 case 'clearWSID ' :
@@ -58,7 +58,7 @@ public function processCmdmap_preProcess(
5858 self ::$ lastProcessedEventId = $ uid ;
5959 self ::$ lastProcessedEventIdLive = $ row ['t3ver_oid ' ] ?? 0 ;
6060 break ;
61- // we need to save both values for publishing a deleted record
61+ // we need to save both values for publishing a deleted record
6262 case 'publish ' :
6363 self ::$ lastProcessedEventId = $ value ['swapWith ' ] ?? 0 ;
6464 self ::$ lastProcessedEventIdLive = $ uid ;
@@ -93,10 +93,10 @@ public function processCmdmap_postProcess(
9393
9494 foreach ($ register as $ key => $ configuration ) {
9595 if ('version ' === $ command && 'tx_calendarize_domain_model_configuration ' === $ table ) {
96- if ('publish ' === $ action ){
96+ if ('publish ' === $ action ) {
9797 $ indexer ->reindex ($ key , $ configuration ['tableName ' ], self ::$ lastProcessedEventIdLive );
9898 $ this ->removeWorkspaceIndexes ($ configuration , $ workspaceId , self ::$ lastProcessedEventIdLive );
99- } elseif ('clearWSID ' === $ action ){
99+ } elseif ('clearWSID ' === $ action ) {
100100 $ this ->removeWorkspaceIndexes ($ configuration , $ workspaceId , self ::$ lastProcessedEventIdLive );
101101 }
102102 } elseif ($ configuration ['tableName ' ] === $ table ) {
@@ -112,14 +112,14 @@ public function processCmdmap_postProcess(
112112 }
113113 }
114114
115- protected function removeWorkspaceIndexes (array $ configuration , int $ workspaceId , int $ parentId ) : void
115+ protected function removeWorkspaceIndexes (array $ configuration , int $ workspaceId , int $ parentId ): void
116116 {
117117 $ connection = GeneralUtility::makeInstance (ConnectionPool::class)
118118 ->getConnectionForTable ('tx_calendarize_domain_model_index ' );
119119
120120 $ connection ->delete (
121121 'tx_calendarize_domain_model_index ' ,
122- ['t3ver_wsid ' => $ workspaceId , 'foreign_uid ' => $ parentId , 'unique_register_key ' => $ configuration ['uniqueRegisterKey ' ]]
122+ ['t3ver_wsid ' => $ workspaceId , 'foreign_uid ' => $ parentId , 'unique_register_key ' => $ configuration ['uniqueRegisterKey ' ]],
123123 );
124124 }
125125}
0 commit comments