@@ -77,7 +77,7 @@ |
||
77 | 77 | /** |
78 | 78 | * Get the differnet locations for new entries. |
79 | 79 | * |
80 | - * @return array |
|
80 | + * @return OptionRequest |
|
81 | 81 | */ |
82 | 82 | protected function getDifferentTypesAndLocations() |
83 | 83 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | ]); |
36 | 36 | } |
37 | 37 | |
38 | - protected function getPids(array $typeLocations){ |
|
38 | + protected function getPids(array $typeLocations) { |
|
39 | 39 | $pids = []; |
40 | 40 | foreach ($typeLocations as $locations) { |
41 | 41 | $pids = array_merge($pids, array_keys($locations)); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | try { |
67 | 67 | $info = $GLOBALS['BE_USER']->getSessionData('calendarize_be'); |
68 | 68 | $object = @unserialize((string)$info); |
69 | - if($object instanceof OptionRequest) { |
|
69 | + if ($object instanceof OptionRequest) { |
|
70 | 70 | return $object; |
71 | 71 | } |
72 | 72 | } catch (\Exception $exception) { |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | ]); |
113 | 113 | } |
114 | 114 | |
115 | - if ((int) $options->getPid() > 0) { |
|
116 | - $query->matching($query->equals('pid', (int) $options->getPid())); |
|
115 | + if ((int)$options->getPid() > 0) { |
|
116 | + $query->matching($query->equals('pid', (int)$options->getPid())); |
|
117 | 117 | } |
118 | 118 | |
119 | - $result = $query->execute(); |
|
119 | + $result = $query->execute(); |
|
120 | 120 | |
121 | 121 | return $result; |
122 | 122 | } |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | */ |
398 | 398 | public function findWeek($year, $week, $weekStart = 1) |
399 | 399 | { |
400 | - $weekStart = (int) $weekStart; |
|
400 | + $weekStart = (int)$weekStart; |
|
401 | 401 | $daysShift = $weekStart - 1; |
402 | 402 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
403 | 403 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | public function findDifferentTypesAndLocations(): array |
421 | 421 | { |
422 | 422 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index'); |
423 | - return (array) $queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
423 | + return (array)$queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
424 | 424 | } |
425 | 425 | |
426 | 426 | /** |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | $config = $objectManager->get(ConfigurationManagerInterface::class); |
514 | 514 | $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
515 | 515 | |
516 | - $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
516 | + $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
517 | 517 | |
518 | 518 | return $mode; |
519 | 519 | } |