Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function addData(array $result): array |
||
24 | { |
||
25 | if ($result['tableName'] !== 'tx_sfeventmgt_domain_model_event' || empty($result['databaseRow'])) { |
||
26 | return $result; |
||
27 | } |
||
28 | |||
29 | $eventPlausabilityService = GeneralUtility::makeInstance(EventPlausabilityService::class); |
||
30 | $eventPlausabilityService->verifyEventStartAndEnddate( |
||
31 | (int)$result['databaseRow']['startdate'], |
||
32 | (int)$result['databaseRow']['enddate'] |
||
33 | ); |
||
34 | $eventPlausabilityService->verifyOrganisatorConfiguration($result['databaseRow']); |
||
35 | |||
36 | return $result; |
||
37 | } |
||
39 |