@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Set the index types. |
67 | 67 | * |
68 | - * @param array $types |
|
68 | + * @param string[] $types |
|
69 | 69 | */ |
70 | 70 | public function setIndexTypes(array $types) |
71 | 71 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Override page IDs. |
77 | 77 | * |
78 | - * @param array $overridePageIds |
|
78 | + * @param integer[] $overridePageIds |
|
79 | 79 | */ |
80 | 80 | public function setOverridePageIds($overridePageIds) |
81 | 81 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Find List. |
124 | 124 | * |
125 | 125 | * @param int $limit |
126 | - * @param int|string $listStartTime |
|
126 | + * @param integer $listStartTime |
|
127 | 127 | * @param int $startOffsetHours |
128 | 128 | * @param int $overrideStartDate |
129 | 129 | * @param int $overrideEndDate |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * Find by traversing information. |
293 | 293 | * |
294 | 294 | * @param DomainObjectInterface $event |
295 | - * @param bool|true $future |
|
295 | + * @param boolean $future |
|
296 | 296 | * @param bool|false $past |
297 | 297 | * @param int $limit |
298 | 298 | * @param string $sort |
@@ -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 | } |
@@ -222,16 +222,16 @@ discard block |
||
222 | 222 | $foreignIdConstraints = []; |
223 | 223 | // Old way, just accept foreignUids as provided, not checking the table. |
224 | 224 | // This has a caveat solved with the $tabledIndexIds |
225 | - if ( $indexIds ) { |
|
225 | + if ($indexIds) { |
|
226 | 226 | $foreignIdConstraints[] = $query->in('foreignUid', $indexIds); |
227 | 227 | } |
228 | - if ( $tabledIndexIds ) { |
|
228 | + if ($tabledIndexIds) { |
|
229 | 229 | // Handle each table individually on the filters |
230 | 230 | // allowing for uids to be table specific. |
231 | 231 | // If 1,3,5 on table_a are ok and 4,5,7 on table_b are ok, |
232 | 232 | // don't show uid 1 from table_b |
233 | - foreach ( $tabledIndexIds as $tabledIndexId ) { |
|
234 | - if ( $tabledIndexId['indexIds'] ) { |
|
233 | + foreach ($tabledIndexIds as $tabledIndexId) { |
|
234 | + if ($tabledIndexId['indexIds']) { |
|
235 | 235 | // This table has used filters and returned some allowed uids. |
236 | 236 | // Providing non-existing values e.g.: -1 will remove everything |
237 | 237 | // unless other elements have found elements with the filters |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | } |
243 | 243 | } |
244 | 244 | } |
245 | - if ( count($foreignIdConstraints) > 1 ) { |
|
245 | + if (count($foreignIdConstraints) > 1) { |
|
246 | 246 | // Multiple valid tables should be grouped by "OR" |
247 | 247 | // so it's either table_a with uids 1,3,4 OR table_b with uids 1,5,7 |
248 | 248 | $foreignIdConstraint = $query->logicalOr($foreignIdConstraints); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | $foreignIdConstraint = array_shift($foreignIdConstraints); |
252 | 252 | } |
253 | 253 | // If any foreignUid constraint survived, use it on the query |
254 | - if ( $foreignIdConstraint ) { |
|
254 | + if ($foreignIdConstraint) { |
|
255 | 255 | $constraints[] = $foreignIdConstraint; |
256 | 256 | } |
257 | 257 | } |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $typeList = isset($configuration['tcaTypeList']) ? \trim($configuration['tcaTypeList']) : ''; |
118 | 118 | // Configure position of where to put the calendarize fields |
119 | 119 | // Supports everything offered by TYPO3, e.g.: before:abc, after:abc, replace:abc |
120 | - $position = isset($configuration['tcaPosition']) ? \trim($configuration['tcaPosition']): ''; |
|
120 | + $position = isset($configuration['tcaPosition']) ? \trim($configuration['tcaPosition']) : ''; |
|
121 | 121 | $GLOBALS['TCA'][$tableName]['columns'][$fieldName] = [ |
122 | 122 | 'label' => 'Calendarize', |
123 | 123 | 'l10n_mode' => 'exclude', |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** @var EventRepository $eventRepository */ |
62 | 62 | $eventRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(EventRepository::class); |
63 | 63 | $searchTermHits = $eventRepository->getIdsBySearchTerm($customSearch['fullText']); |
64 | - if ( $searchTermHits && count($searchTermHits) ) { |
|
64 | + if ($searchTermHits && count($searchTermHits)) { |
|
65 | 65 | $indexIds['tx_calendarize_domain_model_event'] = $searchTermHits; |
66 | 66 | } |
67 | 67 | return [ |