@@ -214,8 +214,8 @@ |
||
| 214 | 214 | } elseif (\is_string($key) && \is_int($indexId)) { |
| 215 | 215 | // Table based single return value |
| 216 | 216 | $tabledIndexIds[] = [ |
| 217 | - 'table' => $key, |
|
| 218 | - 'indexIds' => [$indexId], |
|
| 217 | + 'table' => $key, |
|
| 218 | + 'indexIds' => [$indexId], |
|
| 219 | 219 | ]; |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | return preg_replace( |
| 35 | 35 | // Line folding after 75 characters: RFC-5545/3-1-content-lines |
| 36 | 36 | // Base on: sabre/vobject |
| 37 | - '/( |
|
| 37 | + '/( |
|
| 38 | 38 | (?:^.)? # 1 additional byte in first line because of missing single space (see next line) |
| 39 | 39 | .{74} # 75 bytes per line (1 byte is used for a single space added after every CRLF) |
| 40 | 40 | (?![\x80-\xbf]) # prevent splitting multibyte characters |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $query->setLimit(15); |
| 33 | 33 | $indices = $query->execute()->toArray(); |
| 34 | 34 | |
| 35 | - return array_map(function (Index $index) { |
|
| 35 | + return array_map(function(Index $index) { |
|
| 36 | 36 | try { |
| 37 | 37 | /** @var StandaloneView $standaloneView */ |
| 38 | 38 | $standaloneView = GeneralUtility::makeInstance(StandaloneView::class); |
@@ -115,20 +115,20 @@ |
||
| 115 | 115 | ], '&'); |
| 116 | 116 | |
| 117 | 117 | $storeArguments = [ |
| 118 | - $indexerConfig['storagepid'], // storage PID |
|
| 119 | - $title, // record title |
|
| 120 | - self::KEY, // content type |
|
| 121 | - $indexerConfig['targetpid'], // target PID: where is the single view? |
|
| 122 | - $fullContent, // indexed content, includes the title (linebreak after title) |
|
| 123 | - $originalObject->getKeSearchTags($index), // tags for faceted search |
|
| 124 | - $params, // typolink params for singleview |
|
| 125 | - $abstract, // abstract; shown in result list if not empty |
|
| 126 | - $row[$languageField], // language uid |
|
| 127 | - $row['starttime'], // starttime |
|
| 128 | - $row['endtime'], // endtime |
|
| 129 | - $row['fe_group'], // fe_group |
|
| 130 | - false, // debug only? |
|
| 131 | - $additionalFields, // additionalFields |
|
| 118 | + $indexerConfig['storagepid'], // storage PID |
|
| 119 | + $title, // record title |
|
| 120 | + self::KEY, // content type |
|
| 121 | + $indexerConfig['targetpid'], // target PID: where is the single view? |
|
| 122 | + $fullContent, // indexed content, includes the title (linebreak after title) |
|
| 123 | + $originalObject->getKeSearchTags($index), // tags for faceted search |
|
| 124 | + $params, // typolink params for singleview |
|
| 125 | + $abstract, // abstract; shown in result list if not empty |
|
| 126 | + $row[$languageField], // language uid |
|
| 127 | + $row['starttime'], // starttime |
|
| 128 | + $row['endtime'], // endtime |
|
| 129 | + $row['fe_group'], // fe_group |
|
| 130 | + false, // debug only? |
|
| 131 | + $additionalFields, // additionalFields |
|
| 132 | 132 | ]; |
| 133 | 133 | |
| 134 | 134 | $indexerObject->storeInIndex(...$storeArguments); |
@@ -209,12 +209,12 @@ |
||
| 209 | 209 | protected function processEvent(Repository $repository, AbstractEntity $model, string $modus) |
| 210 | 210 | { |
| 211 | 211 | // define the function for the delete-modus. |
| 212 | - $delete = static function ($repository, $model) { |
|
| 212 | + $delete = static function($repository, $model) { |
|
| 213 | 213 | $repository->remove($model); |
| 214 | 214 | }; |
| 215 | 215 | |
| 216 | 216 | // define the function for the hide-modus. |
| 217 | - $hide = static function ($repository, $model) { |
|
| 217 | + $hide = static function($repository, $model) { |
|
| 218 | 218 | $model->setHidden(true); |
| 219 | 219 | $repository->update($model); |
| 220 | 220 | }; |
@@ -1184,7 +1184,7 @@ |
||
| 1184 | 1184 | $connection = $connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME); |
| 1185 | 1185 | $dbSchema = $connection->getSchemaManager()->createSchema(); |
| 1186 | 1186 | |
| 1187 | - $tableNames = array_map(static function ($table) { |
|
| 1187 | + $tableNames = array_map(static function($table) { |
|
| 1188 | 1188 | return $table->getName(); |
| 1189 | 1189 | }, $dbSchema->getTables()); |
| 1190 | 1190 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | } |
| 24 | 24 | $events = $parser->getEvents(); |
| 25 | 25 | |
| 26 | - $wrapEvents = static function (ICalEvent $event) { |
|
| 26 | + $wrapEvents = static function(ICalEvent $event) { |
|
| 27 | 27 | return new DissectEventAdapter($event); |
| 28 | 28 | }; |
| 29 | 29 | |
@@ -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(static function ($item) use ($workspace, $origId, $record) { |
|
| 87 | + $neededItems = array_map(static function($item) use ($workspace, $origId, $record) { |
|
| 88 | 88 | $item['t3ver_wsid'] = $workspace; |
| 89 | 89 | // Set relation to the original record |
| 90 | 90 | if ($workspace) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | switch ($configuration->getEndDateDynamic()) { |
| 65 | 65 | case Configuration::END_DYNAMIC_1_DAY: |
| 66 | - $callback = static function ($entry) { |
|
| 66 | + $callback = static function($entry) { |
|
| 67 | 67 | if ($entry['start_date'] instanceof \DateTime) { |
| 68 | 68 | $entry['end_date'] = clone $entry['start_date']; |
| 69 | 69 | $entry['end_date']->modify('+1 day'); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | }; |
| 74 | 74 | break; |
| 75 | 75 | case Configuration::END_DYNAMIC_1_WEEK: |
| 76 | - $callback = static function ($entry) { |
|
| 76 | + $callback = static function($entry) { |
|
| 77 | 77 | if ($entry['start_date'] instanceof \DateTime) { |
| 78 | 78 | $entry['end_date'] = clone $entry['start_date']; |
| 79 | 79 | $entry['end_date']->modify('+1 week'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | }; |
| 84 | 84 | break; |
| 85 | 85 | case Configuration::END_DYNAMIC_END_WEEK: |
| 86 | - $callback = static function ($entry) { |
|
| 86 | + $callback = static function($entry) { |
|
| 87 | 87 | if ($entry['start_date'] instanceof \DateTime) { |
| 88 | 88 | $entry['end_date'] = clone $entry['start_date']; |
| 89 | 89 | $entry['end_date']->modify('monday next week'); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | }; |
| 95 | 95 | break; |
| 96 | 96 | case Configuration::END_DYNAMIC_END_MONTH: |
| 97 | - $callback = static function ($entry) { |
|
| 97 | + $callback = static function($entry) { |
|
| 98 | 98 | if ($entry['start_date'] instanceof \DateTime) { |
| 99 | 99 | $entry['end_date'] = clone $entry['start_date']; |
| 100 | 100 | $entry['end_date']->modify('last day of this month'); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | }; |
| 105 | 105 | break; |
| 106 | 106 | case Configuration::END_DYNAMIC_END_YEAR: |
| 107 | - $callback = static function ($entry) { |
|
| 107 | + $callback = static function($entry) { |
|
| 108 | 108 | if ($entry['start_date'] instanceof \DateTime) { |
| 109 | 109 | $entry['end_date'] = clone $entry['start_date']; |
| 110 | 110 | $entry['end_date']->setDate((int)$entry['end_date']->format('Y'), 12, 31); |