Completed
Pull Request — master (#352)
by René
02:19
created
Classes/Controller/AbstractController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $objectManager = new ObjectManager();
59 59
         $pluginConfigurationService = $objectManager->get(PluginConfigurationService::class);
60
-        $this->settings = $pluginConfigurationService->respectPluginConfiguration((array) $this->settings);
60
+        $this->settings = $pluginConfigurationService->respectPluginConfiguration((array)$this->settings);
61 61
     }
62 62
 
63 63
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function sendHeaderAndFilename($contentType, $fileExtension)
105 105
     {
106
-        $testMode = (bool) $this->settings['feed']['debugMode'];
106
+        $testMode = (bool)$this->settings['feed']['debugMode'];
107 107
         if ($testMode) {
108 108
             \header('Content-Type: text/plain; charset=utf-8');
109 109
         } else {
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
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 119
         $result = $query->execute();
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
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();
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
     {
422 422
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index');
423 423
 
424
-        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
+        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();
425 425
     }
426 426
 
427 427
     /**
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         $config = $objectManager->get(ConfigurationManagerInterface::class);
515 515
         $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS);
516 516
 
517
-        $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict';
517
+        $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict';
518 518
 
519 519
         return $mode;
520 520
     }
Please login to merge, or discard this patch.
Classes/Service/ContentElementLayoutService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Classes/Service/Url/CoolUri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function coolUri($xml, $value)
59 59
     {
60
-        $alias = $this->getIndexBase((int) $value);
60
+        $alias = $this->getIndexBase((int)$value);
61 61
         $alias = Functions::URLize($alias);
62 62
         $alias = Functions::sanitize_title_with_dashes($alias);
63 63
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/EventRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $ids = [];
32 32
         foreach ($rows as $row) {
33
-            $ids[] = (int) $row['uid'];
33
+            $ids[] = (int)$row['uid'];
34 34
         }
35 35
 
36 36
         return $ids;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/DaysInWeekViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         }
37 37
 
38 38
         $days = [];
39
-        $move = (int) ($date->format('N') - ((int) $this->arguments['weekStartsAt']));
39
+        $move = (int)($date->format('N') - ((int)$this->arguments['weekStartsAt']));
40 40
         $date->modify('-' . $move . ' days');
41 41
         $inWeek = false;
42 42
         for ($i = 0; $i < 7; ++$i) {
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/DaysInMonthViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         $daysInMonth = $date->format('t');
23 23
         $days = [];
24
-        $move = (int) ($date->format('j') - 1);
24
+        $move = (int)($date->format('j') - 1);
25 25
         $date->modify('-' . $move . ' days');
26 26
 
27 27
         for ($i = 0; $i < $daysInMonth; ++$i) {
Please login to merge, or discard this patch.
Classes/Hooks/TimeShift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         $configuration = $this->getConfiguration();
29
-        $timeShift = isset($configuration['timeShift']) ? (int) $configuration['timeShift'] : 0;
29
+        $timeShift = isset($configuration['timeShift']) ? (int)$configuration['timeShift'] : 0;
30 30
         if ($timeShift <= 0) {
31 31
             // shift is disabled
32 32
             return;
Please login to merge, or discard this patch.
Classes/Service/TimeTableService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * Build the timetable for the given configuration matrix (sorted).
23 23
      *
24
-     * @param array $ids
24
+     * @param integer[] $ids
25 25
      *
26 26
      * @return array
27 27
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         }
175 175
         /** @var \DateTime $base */
176 176
         $base = clone $record[$position . '_date'];
177
-        if (\is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) {
177
+        if (\is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) {
178 178
             // Fix handling, if the time field contains a complete timestamp
179 179
             $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY;
180 180
             $base->setTime(0, 0, 0);
Please login to merge, or discard this patch.