Completed
Push — master ( 382c82...7ce75a )
by Tim
02:29
created
Classes/Controller/CalendarController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -254,12 +254,12 @@  discard block
 block discarded – undo
254 254
         } elseif (MathUtility::canBeInterpretedAsInteger($year)) {
255 255
             $indices = $this->indexRepository->findYear($year);
256 256
         } else {
257
-            $overrideStartDate = (int) $this->settings['overrideStartdate'];
258
-            $overrideEndDate = (int) $this->settings['overrideEnddate'];
257
+            $overrideStartDate = (int)$this->settings['overrideStartdate'];
258
+            $overrideEndDate = (int)$this->settings['overrideEnddate'];
259 259
             $indices = $this->indexRepository->findList(
260
-                (int) $this->settings['limit'],
260
+                (int)$this->settings['limit'],
261 261
                 $this->settings['listStartTime'],
262
-                (int) $this->settings['listStartTimeOffsetHours'],
262
+                (int)$this->settings['listStartTimeOffsetHours'],
263 263
                 $overrideStartDate,
264 264
                 $overrideEndDate
265 265
             );
@@ -336,8 +336,8 @@  discard block
 block discarded – undo
336 336
         if ($week === null) {
337 337
             $week = $now->format('W');
338 338
         }
339
-        $weekStart = (int) $this->settings['weekStart'];
340
-        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int) $week, $year, $weekStart);
339
+        $weekStart = (int)$this->settings['weekStart'];
340
+        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int)$week, $year, $weekStart);
341 341
         $timezone = DateTimeUtility::getTimeZone();
342 342
         $firstDay->setTimezone($timezone);
343 343
         $firstDay->setTime(0, 0, 0);
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         if ($index === null) {
398 398
             // handle fallback for "strange language settings"
399 399
             if ($this->request->hasArgument('index')) {
400
-                $indexId = (int) $this->request->getArgument('index');
400
+                $indexId = (int)$this->request->getArgument('index');
401 401
                 if ($indexId > 0) {
402 402
                     $index = $this->indexRepository->findByUid($indexId);
403 403
                 }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 
406 406
             if ($index === null) {
407 407
                 if (!MathUtility::canBeInterpretedAsInteger($this->settings['listPid'])) {
408
-                    return (string) TranslateUtility::get('noEventDetailView');
408
+                    return (string)TranslateUtility::get('noEventDetailView');
409 409
                 }
410 410
                 $this->redirect('list', null, null, [], $this->settings['listPid'], 0, 301);
411 411
             }
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/ViewHelpers/Loop/WeeksInMonthViewHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         $dateClone->modify('first day of this month');
37 37
 
38 38
         $monthCheck = $dateClone->format('m');
39
-        while ((int) $monthCheck == (int) $dateClone->format('m')) {
40
-            $week = (int) $dateClone->format('W');
39
+        while ((int)$monthCheck == (int)$dateClone->format('m')) {
40
+            $week = (int)$dateClone->format('W');
41 41
             if (!isset($weeks[$week])) {
42 42
                 $weeks[$week] = [
43 43
                     'week' => $week,
Please login to merge, or discard this patch.
Classes/ViewHelpers/IndexTraversingViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
46 46
     ) {
47 47
         $indexRepository = $this->objectManager->get(IndexRepository::class);
48 48
 
49
-        return $indexRepository->findByTraversing($index, $future, $past, (int) $limit, $sort, $useIndexTime);
49
+        return $indexRepository->findByTraversing($index, $future, $past, (int)$limit, $sort, $useIndexTime);
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Uri/IndexViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function render(Index $index, $pageUid = null, $absolute = false)
25 25
     {
26
-        parent::render($index, $pageUid, (bool) $absolute);
26
+        parent::render($index, $pageUid, (bool)$absolute);
27 27
 
28 28
         return $this->lastHref;
29 29
     }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/IndexViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
             ],
30 30
         ];
31 31
 
32
-        return parent::renderLink($this->getPageUid($pageUid, 'detailPid'), $additionalParams, (bool) $absolute);
32
+        return parent::renderLink($this->getPageUid($pageUid, 'detailPid'), $additionalParams, (bool)$absolute);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/AbstractLinkViewHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function renderLink($pageUid = null, array $additionalParams = [], $absolute = false)
55 55
     {
56 56
         $uriBuilder = $this->controllerContext->getUriBuilder();
57
-        $this->lastHref = (string) $uriBuilder->reset()
57
+        $this->lastHref = (string)$uriBuilder->reset()
58 58
             ->setTargetPageUid($pageUid)
59 59
             ->setArguments($additionalParams)
60 60
             ->setCreateAbsoluteUri($absolute)
@@ -81,17 +81,17 @@  discard block
 block discarded – undo
81 81
     protected function getPageUid($pageUid, $contextName = null)
82 82
     {
83 83
         if (MathUtility::canBeInterpretedAsInteger($pageUid)) {
84
-            return (int) $pageUid;
84
+            return (int)$pageUid;
85 85
         }
86 86
 
87 87
         // by settings
88 88
         if ($contextName && $this->templateVariableContainer->exists('settings')) {
89 89
             $settings = $this->templateVariableContainer->get('settings');
90 90
             if (isset($settings[$contextName]) && MathUtility::canBeInterpretedAsInteger($settings[$contextName])) {
91
-                return (int) $settings[$contextName];
91
+                return (int)$settings[$contextName];
92 92
             }
93 93
         }
94 94
 
95
-        return (int) $GLOBALS['TSFE']->id;
95
+        return (int)$GLOBALS['TSFE']->id;
96 96
     }
97 97
 }
Please login to merge, or discard this patch.
Classes/Utility/ConfigurationUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     protected static function loadConfiguration()
38 38
     {
39 39
         if (self::$configuration === null) {
40
-            self::$configuration = (array) unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
40
+            self::$configuration = (array)unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
41 41
         }
42 42
     }
43 43
 }
Please login to merge, or discard this patch.