Completed
Push — master ( 382c82...7ce75a )
by Tim
02:29
created
Classes/Service/TimeTable/TimeTimeTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
      */
240 240
     protected function getFrequencyLimitPerItem()
241 241
     {
242
-        $maxLimit = (int) ConfigurationUtility::get('frequencyLimitPerItem');
242
+        $maxLimit = (int)ConfigurationUtility::get('frequencyLimitPerItem');
243 243
         if ($maxLimit <= 0) {
244 244
             $maxLimit = 300;
245 245
         }
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
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();
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/Domain/Model/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function isAllDay()
187 187
     {
188
-        return (bool) $this->allDay;
188
+        return (bool)$this->allDay;
189 189
     }
190 190
 
191 191
     /**
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function setAllDay($allDay)
197 197
     {
198
-        $this->allDay = (bool) $allDay;
198
+        $this->allDay = (bool)$allDay;
199 199
     }
200 200
 
201 201
     /**
Please login to merge, or discard this patch.
Classes/Domain/Model/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
      */
244 244
     public function isAllDay()
245 245
     {
246
-        return (bool) $this->allDay;
246
+        return (bool)$this->allDay;
247 247
     }
248 248
 
249 249
     /**
Please login to merge, or discard this patch.
Classes/LinkHandling/EventSelectionLinkHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         GeneralUtility::makeInstance(PageRenderer::class)->loadRequireJsModule('TYPO3/CMS/Recordlist/PageLinkHandler');
62 62
 
63
-        $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int) $request->getQueryParams()['expandPage'] : 0;
63
+        $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int)$request->getQueryParams()['expandPage'] : 0;
64 64
         $this->setTemporaryDbMounts();
65 65
 
66 66
         $backendUser = $this->getBackendUser();
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
         /** @var ElementBrowserPageTreeView $pageTree */
69 69
         $pageTree = GeneralUtility::makeInstance(ElementBrowserPageTreeView::class);
70 70
         $pageTree->setLinkParameterProvider($this);
71
-        $pageTree->ext_showNavTitle = (bool) $backendUser->getTSConfigVal('options.pageTree.showNavTitle');
72
-        $pageTree->ext_showPageId = (bool) $backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
73
-        $pageTree->ext_showPathAboveMounts = (bool) $backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
71
+        $pageTree->ext_showNavTitle = (bool)$backendUser->getTSConfigVal('options.pageTree.showNavTitle');
72
+        $pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
73
+        $pageTree->ext_showPathAboveMounts = (bool)$backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
74 74
         $pageTree->addField('nav_title');
75 75
 
76 76
         $this->view->assign('temporaryTreeMountCancelLink', $this->getTemporaryTreeMountCancelNotice());
Please login to merge, or discard this patch.
Classes/Controller/AbstractController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
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.