Completed
Push — master ( 15303a...d72fea )
by Tim
02:12
created
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $query = $this->createQuery();
135 135
         $constraints = $this->getDefaultConstraints($query);
136 136
 
137
-        if($limit > 0) {
137
+        if ($limit > 0) {
138 138
             $query->setLimit($limit);
139 139
         }
140 140
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      */
324 324
     public function findWeek($year, $week, $weekStart = 1)
325 325
     {
326
-        $weekStart = (int) $weekStart;
326
+        $weekStart = (int)$weekStart;
327 327
         $daysShift = DateTimeUtility::SECONDS_DAY * ($weekStart - 1);
328 328
         $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year);
329 329
         $timezone = DateTimeUtility::getTimeZone();
Please login to merge, or discard this patch.
Classes/Controller/CalendarController.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $configuration = ExtensionConfigurationUtility::get($configurationName);
78 78
 
79 79
             // get Event by Configuration and Uid
80
-            $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int) $this->request->getArgument('event'));
80
+            $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int)$this->request->getArgument('event'));
81 81
             $index = $this->indexRepository->findByEventTraversing($event, true, false, 1)->getFirst();
82 82
 
83 83
             // if there is a valid index in the event
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $limit = 100,
279 279
         $sort = 'ASC'
280 280
     ) {
281
-        $limit = (int) ($this->settings['limit']);
281
+        $limit = (int)($this->settings['limit']);
282 282
         $sort = $this->settings['sorting'];
283 283
         $this->checkStaticTemplateIsIncluded();
284 284
         $this->slotExtendedAssignMultiple([
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         $date = DateTimeUtility::normalizeDateTime(1, 1, $year);
297 297
 
298 298
         $this->slotExtendedAssignMultiple([
299
-            'indices' => $this->indexRepository->findYear((int) $date->format('Y')),
299
+            'indices' => $this->indexRepository->findYear((int)$date->format('Y')),
300 300
             'date' => $date,
301 301
         ], __CLASS__, __FUNCTION__);
302 302
     }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
         $this->slotExtendedAssignMultiple([
316 316
             'date' => $date,
317
-            'indices' => $this->indexRepository->findMonth((int) $date->format('Y'), (int) $date->format('n')),
317
+            'indices' => $this->indexRepository->findMonth((int)$date->format('Y'), (int)$date->format('n')),
318 318
         ], __CLASS__, __FUNCTION__);
319 319
     }
320 320
 
@@ -333,8 +333,8 @@  discard block
 block discarded – undo
333 333
         if (null === $week) {
334 334
             $week = $now->format('W');
335 335
         }
336
-        $weekStart = (int) $this->settings['weekStart'];
337
-        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int) $week, $year, $weekStart);
336
+        $weekStart = (int)$this->settings['weekStart'];
337
+        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int)$week, $year, $weekStart);
338 338
         $timezone = DateTimeUtility::getTimeZone();
339 339
         $firstDay->setTimezone($timezone);
340 340
         $firstDay->setTime(0, 0, 0);
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         $next->modify('+1 day');
376 376
 
377 377
         $this->slotExtendedAssignMultiple([
378
-            'indices' => $this->indexRepository->findDay((int) $date->format('Y'), (int) $date->format('n'), (int) $date->format('j')),
378
+            'indices' => $this->indexRepository->findDay((int)$date->format('Y'), (int)$date->format('n'), (int)$date->format('j')),
379 379
             'today' => $date,
380 380
             'previous' => $previous,
381 381
             'next' => $next,
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
         if (null === $index) {
395 395
             // handle fallback for "strange language settings"
396 396
             if ($this->request->hasArgument('index')) {
397
-                $indexId = (int) $this->request->getArgument('index');
397
+                $indexId = (int)$this->request->getArgument('index');
398 398
                 if ($indexId > 0) {
399 399
                     $index = $this->indexRepository->findByUid($indexId);
400 400
                 }
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 
403 403
             if (null === $index) {
404 404
                 if (!MathUtility::canBeInterpretedAsInteger($this->settings['listPid'])) {
405
-                    return (string) TranslateUtility::get('noEventDetailView');
405
+                    return (string)TranslateUtility::get('noEventDetailView');
406 406
                 }
407 407
                 $this->slottedRedirect(__CLASS__, __FUNCTION__ . 'noEvent');
408 408
             }
@@ -514,23 +514,23 @@  discard block
 block discarded – undo
514 514
         $searchMode = false;
515 515
         if ($startDate || $endDate || !empty($customSearch)) {
516 516
             $searchMode = true;
517
-            $limit = isset($this->settings['limit']) ? (int) $this->settings['limit'] : 0;
517
+            $limit = isset($this->settings['limit']) ? (int)$this->settings['limit'] : 0;
518 518
             $indices = $this->indexRepository->findBySearch($startDate, $endDate, $customSearch, $limit);
519 519
         } elseif (MathUtility::canBeInterpretedAsInteger($year) && MathUtility::canBeInterpretedAsInteger($month) && MathUtility::canBeInterpretedAsInteger($day)) {
520
-            $indices = $this->indexRepository->findDay((int) $year, (int) $month, (int) $day);
520
+            $indices = $this->indexRepository->findDay((int)$year, (int)$month, (int)$day);
521 521
         } elseif (MathUtility::canBeInterpretedAsInteger($year) && MathUtility::canBeInterpretedAsInteger($month)) {
522
-            $indices = $this->indexRepository->findMonth((int) $year, (int) $month);
522
+            $indices = $this->indexRepository->findMonth((int)$year, (int)$month);
523 523
         } elseif (MathUtility::canBeInterpretedAsInteger($year) && MathUtility::canBeInterpretedAsInteger($week)) {
524 524
             $indices = $this->indexRepository->findWeek($year, $week, $this->settings['weekStart']);
525 525
         } elseif (MathUtility::canBeInterpretedAsInteger($year)) {
526
-            $indices = $this->indexRepository->findYear((int) $year);
526
+            $indices = $this->indexRepository->findYear((int)$year);
527 527
         } else {
528
-            $overrideStartDate = (int) $this->settings['overrideStartdate'];
529
-            $overrideEndDate = (int) $this->settings['overrideEnddate'];
528
+            $overrideStartDate = (int)$this->settings['overrideStartdate'];
529
+            $overrideEndDate = (int)$this->settings['overrideEnddate'];
530 530
             $indices = $this->indexRepository->findList(
531
-                (int) $this->settings['limit'],
531
+                (int)$this->settings['limit'],
532 532
                 $this->settings['listStartTime'],
533
-                (int) $this->settings['listStartTimeOffsetHours'],
533
+                (int)$this->settings['listStartTimeOffsetHours'],
534 534
                 $overrideStartDate,
535 535
                 $overrideEndDate
536 536
             );
Please login to merge, or discard this patch.