@@ -95,7 +95,7 @@ |
||
95 | 95 | * Send the content type header and the right file extension in front of the content. |
96 | 96 | * |
97 | 97 | * @param $contentType |
98 | - * @param $fileExtension |
|
98 | + * @param string $fileExtension |
|
99 | 99 | */ |
100 | 100 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
101 | 101 | { |
@@ -99,7 +99,7 @@ |
||
99 | 99 | */ |
100 | 100 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
101 | 101 | { |
102 | - $testMode = (bool) $this->settings['feed']['debugMode']; |
|
102 | + $testMode = (bool)$this->settings['feed']['debugMode']; |
|
103 | 103 | if ($testMode) { |
104 | 104 | header('Content-Type: text/plain; charset=utf-8'); |
105 | 105 | } else { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Find List. |
69 | 69 | * |
70 | 70 | * @param int $limit |
71 | - * @param int|string $listStartTime |
|
71 | + * @param integer $listStartTime |
|
72 | 72 | * @param int $startOffsetHours |
73 | 73 | * @param int $overrideStartDate |
74 | 74 | * @param int $overrideEndDate |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * Find by traversing information. |
204 | 204 | * |
205 | 205 | * @param DomainObjectInterface $event |
206 | - * @param bool|true $future |
|
206 | + * @param boolean $future |
|
207 | 207 | * @param bool|false $past |
208 | 208 | * @param int $limit |
209 | 209 | * @param string $sort |
@@ -287,7 +287,7 @@ |
||
287 | 287 | */ |
288 | 288 | public function findWeek($year, $week, $weekStart = 1) |
289 | 289 | { |
290 | - $weekStart = (int) $weekStart; |
|
290 | + $weekStart = (int)$weekStart; |
|
291 | 291 | $daysShift = DateTimeUtility::SECONDS_DAY * ($weekStart - 1); |
292 | 292 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
293 | 293 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -482,9 +482,9 @@ |
||
482 | 482 | /** |
483 | 483 | * Update cal event. |
484 | 484 | * |
485 | - * @param $calendarId |
|
486 | - * @param $objectUri |
|
487 | - * @param $calendarData |
|
485 | + * @param string $calendarId |
|
486 | + * @param string $objectUri |
|
487 | + * @param string $calendarData |
|
488 | 488 | */ |
489 | 489 | private function updateCalEvent($calendarId, $objectUri, $calendarData) |
490 | 490 | { |
@@ -217,7 +217,7 @@ |
||
217 | 217 | $result = [ |
218 | 218 | 200 => [], // Ok |
219 | 219 | 403 => [], // Forbidden |
220 | - 424 => [], // Failed Dependency |
|
220 | + 424 => [], // Failed Dependency |
|
221 | 221 | ]; |
222 | 222 | |
223 | 223 | $hasError = false; |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * |
122 | 122 | * @param $principal |
123 | 123 | * |
124 | - * @return array |
|
124 | + * @return string[] |
|
125 | 125 | * |
126 | 126 | * @throws Exception |
127 | 127 | */ |
@@ -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 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @param PluginConfiguration|array $configuration |
19 | 19 | * @param int $uid |
20 | 20 | * |
21 | - * @return object |
|
21 | + * @return \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface |
|
22 | 22 | */ |
23 | 23 | public static function getOriginalRecordByConfiguration($configuration, $uid) |
24 | 24 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $previewLimit = 10; |
34 | 34 | if (isset($configuration['fieldConf']['config']['items'])) { |
35 | - $previewLimit = (int) $configuration['fieldConf']['config']['items']; |
|
35 | + $previewLimit = (int)$configuration['fieldConf']['config']['items']; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | $indexService = GeneralUtility::makeInstance(IndexerService::class); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $entry = $startDate . ' - ' . $endDate; |
82 | 82 | if (!$event['all_day']) { |
83 | 83 | $start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false); |
84 | - if ((int) $event['end_time'] === AbstractTimeTable::DAY_END) { |
|
84 | + if ((int)$event['end_time'] === AbstractTimeTable::DAY_END) { |
|
85 | 85 | $end = '"' . TranslateUtility::get('openEndTime') . '"'; |
86 | 86 | } else { |
87 | 87 | $end = BackendUtility::time($event['end_time'] % DateTimeUtility::SECONDS_DAY, false); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | if ($id === '' && $name === '') { |
33 | 33 | return ''; |
34 | 34 | } |
35 | - $times = $this->getTimes((int) $params['pid']); |
|
35 | + $times = $this->getTimes((int)$params['pid']); |
|
36 | 36 | if (!$times) { |
37 | 37 | return ''; |
38 | 38 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function respectPluginConfiguration(array $settings) |
21 | 21 | { |
22 | - $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int) $settings['pluginConfiguration']); |
|
22 | + $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int)$settings['pluginConfiguration']); |
|
23 | 23 | if ($settings['pluginConfiguration'] instanceof PluginConfiguration) { |
24 | 24 | $checkFields = [ |
25 | 25 | 'detailPid', |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | protected function buildPluginConfigurationObject($uid) |
60 | 60 | { |
61 | 61 | $db = HelperUtility::getDatabaseConnection(); |
62 | - $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int) $uid); |
|
62 | + $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int)$uid); |
|
63 | 63 | if (!isset($row['model_name'])) { |
64 | 64 | return null; |
65 | 65 | } |