@@ -23,7 +23,7 @@ |
||
23 | 23 | } |
24 | 24 | $events = $parser->getEvents(); |
25 | 25 | |
26 | - $wrapEvents = function (ICalEvent $event) { |
|
26 | + $wrapEvents = function(ICalEvent $event) { |
|
27 | 27 | return new DissectEventAdapter($event); |
28 | 28 | }; |
29 | 29 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | { |
86 | 86 | static $tables; |
87 | 87 | if (!\is_array($tables)) { |
88 | - $tables = array_map(function ($config) { |
|
88 | + $tables = array_map(function($config) { |
|
89 | 89 | return $config['tableName']; |
90 | 90 | }, GeneralUtility::makeInstance(Register::class)->getRegister()); |
91 | 91 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
67 | 67 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
68 | - $parts = array_map(function ($element) { |
|
68 | + $parts = array_map(function($element) { |
|
69 | 69 | $split = explode('->', $element); |
70 | 70 | |
71 | 71 | return ucfirst($split[1]); |
@@ -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 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $date = $arguments['date']; |
35 | 35 | if ($date instanceof \DateTimeInterface) { |
36 | - $renderChildrenClosure = function () use ($date) { |
|
36 | + $renderChildrenClosure = function() use ($date) { |
|
37 | 37 | // Convert date to timestamp, so that it can be reparsed. |
38 | 38 | return $date->getTimestamp(); |
39 | 39 | }; |
@@ -1060,7 +1060,7 @@ |
||
1060 | 1060 | $connection = $connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME); |
1061 | 1061 | $dbSchema = $connection->getSchemaManager()->createSchema(); |
1062 | 1062 | |
1063 | - $tableNames = array_map(function ($table) { |
|
1063 | + $tableNames = array_map(function($table) { |
|
1064 | 1064 | return $table->getName(); |
1065 | 1065 | }, $dbSchema->getTables()); |
1066 | 1066 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | switch ($configuration->getEndDateDynamic()) { |
65 | 65 | case Configuration::END_DYNAMIC_1_DAY: |
66 | - $callback = function ($entry) { |
|
66 | + $callback = 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 = function ($entry) { |
|
76 | + $callback = 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 = function ($entry) { |
|
86 | + $callback = 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 = function ($entry) { |
|
97 | + $callback = 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 = function ($entry) { |
|
107 | + $callback = 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); |
@@ -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 |
@@ -199,12 +199,12 @@ |
||
199 | 199 | protected function processEvent(Repository $repository, AbstractEntity $model, string $modus) |
200 | 200 | { |
201 | 201 | // define the function for the delete-modus. |
202 | - $delete = function ($repository, $model) { |
|
202 | + $delete = function($repository, $model) { |
|
203 | 203 | $repository->remove($model); |
204 | 204 | }; |
205 | 205 | |
206 | 206 | // define the function for the hide-modus. |
207 | - $hide = function ($repository, $model) { |
|
207 | + $hide = function($repository, $model) { |
|
208 | 208 | $model->setHidden(true); |
209 | 209 | $repository->update($model); |
210 | 210 | }; |