@@ -39,7 +39,7 @@ |
||
39 | 39 | * Add one row to the table. |
40 | 40 | * |
41 | 41 | * @param string $label |
42 | - * @param mixed $value |
|
42 | + * @param string $value |
|
43 | 43 | */ |
44 | 44 | public function addRow($label, $value) |
45 | 45 | { |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | /** |
410 | 410 | * Update event with configuration. |
411 | 411 | * |
412 | - * @param $eventImportId |
|
412 | + * @param string $eventImportId |
|
413 | 413 | * @param $configuration |
414 | 414 | * @param $dbQueries |
415 | 415 | * @param $customMessages |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | /** |
532 | 532 | * Find event by import ID. |
533 | 533 | * |
534 | - * @param $eventImportId |
|
534 | + * @param string $eventImportId |
|
535 | 535 | * @param $dbQueries |
536 | 536 | * @param $customMessages |
537 | 537 | * |
@@ -153,7 +153,6 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * Normalize quartar. |
155 | 155 | * |
156 | - * @param int|null $quarter |
|
157 | 156 | * |
158 | 157 | * @return int |
159 | 158 | */ |
@@ -234,7 +233,7 @@ discard block |
||
234 | 233 | /** |
235 | 234 | * Get the End of the given day. |
236 | 235 | * |
237 | - * @param int|string|\DateTime|null $dateInformation |
|
236 | + * @param \DateTime $dateInformation |
|
238 | 237 | * |
239 | 238 | * @return \DateTime |
240 | 239 | */ |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | use DmitryDulepov\Realurl\Configuration\ConfigurationReader; |
11 | 11 | use DmitryDulepov\Realurl\Utility; |
12 | -use HDNET\Calendarize\Domain\Model\Index; |
|
13 | 12 | use HDNET\Calendarize\Service\IndexerService; |
14 | 13 | use HDNET\Calendarize\Utility\HelperUtility; |
15 | 14 | use TYPO3\CMS\Core\Database\ConnectionPool; |
@@ -164,7 +164,7 @@ |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | $aliasBase = $alias; |
167 | - for ($i = 0;; ++$i) { |
|
167 | + for ($i = 0; ; ++$i) { |
|
168 | 168 | $alias = $i > 0 ? $aliasBase . '-' . $i : $aliasBase; |
169 | 169 | if (!$this->aliasAlreadyExists($alias)) { |
170 | 170 | $entry['value_alias'] = $alias; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * Send the content type header and the right file extension in front of the content. |
110 | 110 | * |
111 | 111 | * @param $contentType |
112 | - * @param $fileExtension |
|
112 | + * @param string $fileExtension |
|
113 | 113 | */ |
114 | 114 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
115 | 115 | { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Add cache tags. |
226 | 226 | * |
227 | - * @param array $tags |
|
227 | + * @param string[] $tags |
|
228 | 228 | */ |
229 | 229 | protected function addCacheTags(array $tags) |
230 | 230 | { |
@@ -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 | } |
@@ -104,12 +104,12 @@ discard block |
||
104 | 104 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
105 | 105 | { |
106 | 106 | // define the function for the delete-modus. |
107 | - $delete = function ($repository, $model) { |
|
107 | + $delete = function($repository, $model) { |
|
108 | 108 | $repository->remove($model); |
109 | 109 | }; |
110 | 110 | |
111 | 111 | // define the function for the hide-modus. |
112 | - $hide = function ($repository, $model) { |
|
112 | + $hide = function($repository, $model) { |
|
113 | 113 | $model->setHidden(true); |
114 | 114 | $repository->update($model); |
115 | 115 | }; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | ->execute() |
172 | 172 | ->fetchAll(); |
173 | 173 | |
174 | - $foreignUids = \array_map(function ($item) { |
|
174 | + $foreignUids = \array_map(function($item) { |
|
175 | 175 | return (int)$item['foreign_uid']; |
176 | 176 | }, $foreignUids); |
177 | 177 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | switch ($configuration->getEndDateDynamic()) { |
66 | 66 | case Configuration::END_DYNAMIC_1_DAY: |
67 | - $callback = function ($entry) { |
|
67 | + $callback = function($entry) { |
|
68 | 68 | if ($entry['start_date'] instanceof \DateTime) { |
69 | 69 | $entry['end_date'] = clone $entry['start_date']; |
70 | 70 | $entry['end_date']->modify('+1 day'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | }; |
75 | 75 | break; |
76 | 76 | case Configuration::END_DYNAMIC_1_WEEK: |
77 | - $callback = function ($entry) { |
|
77 | + $callback = function($entry) { |
|
78 | 78 | if ($entry['start_date'] instanceof \DateTime) { |
79 | 79 | $entry['end_date'] = clone $entry['start_date']; |
80 | 80 | $entry['end_date']->modify('+1 week'); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | }; |
85 | 85 | break; |
86 | 86 | case Configuration::END_DYNAMIC_END_WEEK: |
87 | - $callback = function ($entry) { |
|
87 | + $callback = function($entry) { |
|
88 | 88 | if ($entry['start_date'] instanceof \DateTime) { |
89 | 89 | $entry['end_date'] = clone $entry['start_date']; |
90 | 90 | $entry['end_date']->modify('monday next week'); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | }; |
96 | 96 | break; |
97 | 97 | case Configuration::END_DYNAMIC_END_MONTH: |
98 | - $callback = function ($entry) { |
|
98 | + $callback = function($entry) { |
|
99 | 99 | if ($entry['start_date'] instanceof \DateTime) { |
100 | 100 | $entry['end_date'] = clone $entry['start_date']; |
101 | 101 | $entry['end_date']->modify('last day of this month'); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | break; |
107 | 107 | case Configuration::END_DYNAMIC_END_YEAR: |
108 | 108 | |
109 | - $callback = function ($entry) { |
|
109 | + $callback = function($entry) { |
|
110 | 110 | if ($entry['start_date'] instanceof \DateTime) { |
111 | 111 | $entry['end_date'] = clone $entry['start_date']; |
112 | 112 | $entry['end_date']->setDate((int)$entry['end_date']->format('Y'), 12, 31); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
66 | 66 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
67 | - $parts = \array_map(function ($element) { |
|
67 | + $parts = \array_map(function($element) { |
|
68 | 68 | $split = \explode('->', $element); |
69 | 69 | |
70 | 70 | return \ucfirst($split[1]); |