| @@ -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); | 
| @@ -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 | }; | 
| @@ -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); | 
| @@ -206,7 +206,7 @@ | ||
| 206 | 206 | |
| 207 | 207 |          if ($workspace) { | 
| 208 | 208 | // Placeholder are respect in function updateIndex | 
| 209 | -            $currentItems = array_filter($currentItems, static function ($item) { | |
| 209 | +            $currentItems = array_filter($currentItems, static function($item) { | |
| 210 | 210 | return VersionState::DELETE_PLACEHOLDER !== $item['t3ver_state']; | 
| 211 | 211 | }); | 
| 212 | 212 | } | 
| @@ -98,7 +98,7 @@ | ||
| 98 | 98 | } | 
| 99 | 99 | |
| 100 | 100 | // @todo check | 
| 101 | -        $result = array_values(array_filter($result, static function ($item) { | |
| 101 | +        $result = array_values(array_filter($result, static function($item) { | |
| 102 | 102 | return \is_array($item) && VersionState::DELETE_PLACEHOLDER !== $item['t3ver_state']; | 
| 103 | 103 | })); | 
| 104 | 104 | |
| @@ -101,7 +101,7 @@ | ||
| 101 | 101 |      { | 
| 102 | 102 | static $tables; | 
| 103 | 103 |          if (!\is_array($tables)) { | 
| 104 | -            $tables = array_map(static function ($config) { | |
| 104 | +            $tables = array_map(static function($config) { | |
| 105 | 105 | return $config['tableName']; | 
| 106 | 106 | }, GeneralUtility::makeInstance(Register::class)->getRegister()); | 
| 107 | 107 | } | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | |
| 34 | 34 | $date = $arguments['date']; | 
| 35 | 35 |          if ($date instanceof \DateTimeInterface) { | 
| 36 | -            $renderChildrenClosure = static function () use ($date) { | |
| 36 | +            $renderChildrenClosure = static function() use ($date) { | |
| 37 | 37 | // Convert date to timestamp, so that it can be reparsed. | 
| 38 | 38 | return $date->getTimestamp(); | 
| 39 | 39 | }; |