Completed
Push — master ( d074da...3efa3d )
by Tim
8s
created
Classes/Command/ReindexCommandController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /**
4 4
  * Reindex the event models.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Command;
9 9
 
Please login to merge, or discard this patch.
Classes/Utility/ConfigurationUtility.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Configuration Utility.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Utility;
9 9
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     protected static function loadConfiguration()
40 40
     {
41 41
         if (null === self::$configuration) {
42
-            self::$configuration = (array) \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
42
+            self::$configuration = (array)\unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
43 43
         }
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
Classes/Service/TcaInformation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * TCA information.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $previewLimit = 10;
36 36
         if (isset($configuration['fieldConf']['config']['items'])) {
37
-            $previewLimit = (int) $configuration['fieldConf']['config']['items'];
37
+            $previewLimit = (int)$configuration['fieldConf']['config']['items'];
38 38
         }
39 39
 
40 40
         $indexService = GeneralUtility::makeInstance(IndexerService::class);
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
         $items = [];
78 78
         foreach ($events as $event) {
79 79
             $startDateStamp = $event['start_date'] instanceof \DateTimeInterface ? $event['start_date']->getTimestamp() : $event['start_date'];
80
-            $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $startDateStamp);
80
+            $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$startDateStamp);
81 81
             $endDateStamp = $event['end_date'] instanceof \DateTimeInterface ? $event['end_date']->getTimestamp() : $event['end_date'];
82
-            $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $endDateStamp);
82
+            $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$endDateStamp);
83 83
             $entry = $startDate . ' - ' . $endDate;
84 84
             if (!$event['all_day']) {
85 85
                 $start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false);
86
-                if (AbstractTimeTable::DAY_END === (int) $event['end_time']) {
86
+                if (AbstractTimeTable::DAY_END === (int)$event['end_time']) {
87 87
                     $end = '"' . TranslateUtility::get('openEndTime') . '"';
88 88
                 } else {
89 89
                     $end = BackendUtility::time($event['end_time'] % DateTimeUtility::SECONDS_DAY, false);
Please login to merge, or discard this patch.
Classes/Service/TcaService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * TCA service.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $title = '';
142 142
         if ($row['start_date']) {
143
-            $dateStart = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $row['start_date']);
144
-            $dateEnd = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) ($row['end_date'] ?: $row['start_date']));
143
+            $dateStart = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$row['start_date']);
144
+            $dateEnd = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)($row['end_date'] ?: $row['start_date']));
145 145
             $title .= $dateStart;
146 146
             if ($dateStart !== $dateEnd) {
147 147
                 $title .= ' - ' . $dateEnd;
Please login to merge, or discard this patch.
Classes/Domain/Model/SysCategory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  *
6 6
  * Enhance the core SysFileReference.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace HDNET\Calendarize\Domain\Model;
11 11
 
Please login to merge, or discard this patch.
Classes/Utility/DateTimeUtility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * DateTime Utility.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Utility;
9 9
 
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public static function getDaySecondsOfDateTime(\DateTime $dateTime): int
91 91
     {
92
-        $hours = (int) $dateTime->format('G');
93
-        $minutes = $hours * self::SECONDS_MINUTE + (int) $dateTime->format('i');
92
+        $hours = (int)$dateTime->format('G');
93
+        $minutes = $hours * self::SECONDS_MINUTE + (int)$dateTime->format('i');
94 94
 
95
-        return $minutes * self::SECONDS_MINUTE + (int) $dateTime->format('s');
95
+        return $minutes * self::SECONDS_MINUTE + (int)$dateTime->format('s');
96 96
     }
97 97
 
98 98
     /**
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     {
178 178
         // NOTE that new \DateTime('@timestamp') does NOT work - @see comment in normalizeDateTimeSingle()
179 179
         // So we create a date string with timezone information first, and a \DateTime in the current server timezone then.
180
-        return new \DateTime(\date(\DateTime::ATOM, (int) $GLOBALS['SIM_ACCESS_TIME']));
180
+        return new \DateTime(\date(\DateTime::ATOM, (int)$GLOBALS['SIM_ACCESS_TIME']));
181 181
     }
182 182
 
183 183
     /**
Please login to merge, or discard this patch.
Classes/Domain/Model/Index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Index information.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Domain\Model;
9 9
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             if (null === $configuration) {
115 115
                 throw new Exception('No valid configuration for the current index: ' . $this->getUniqueRegisterKey(), 123678123);
116 116
             }
117
-            $this->originalObject = EventUtility::getOriginalRecordByConfiguration($configuration, (int) $this->getForeignUid());
117
+            $this->originalObject = EventUtility::getOriginalRecordByConfiguration($configuration, (int)$this->getForeignUid());
118 118
         }
119 119
 
120 120
         return $this->originalObject;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function isAllDay()
247 247
     {
248
-        return (bool) $this->allDay;
248
+        return (bool)$this->allDay;
249 249
     }
250 250
 
251 251
     /**
Please login to merge, or discard this patch.
Classes/Domain/Model/Event.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Event (Default) for the calendarize function.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Domain\Model;
9 9
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function getFeedTitle(): string
276 276
     {
277
-        return (string) $this->getTitle();
277
+        return (string)$this->getTitle();
278 278
     }
279 279
 
280 280
     /**
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function getFeedAbstract(): string
286 286
     {
287
-        return (string) $this->getFeedContent();
287
+        return (string)$this->getFeedContent();
288 288
     }
289 289
 
290 290
     /**
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function getFeedContent(): string
296 296
     {
297
-        return (string) $this->getDescription();
297
+        return (string)$this->getDescription();
298 298
     }
299 299
 
300 300
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     public function getFeedLocation(): string
306 306
     {
307
-        return (string) $this->getLocation();
307
+        return (string)$this->getLocation();
308 308
     }
309 309
 
310 310
     /**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function getRealUrlAliasBase(): string
316 316
     {
317
-        return (string) $this->getTitle();
317
+        return (string)$this->getTitle();
318 318
     }
319 319
 
320 320
     /**
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function getKeSearchTitle(Index $index): string
368 368
     {
369
-        return (string) $this->getTitle() . ' - ' . $index->getStartDate()
369
+        return (string)$this->getTitle() . ' - ' . $index->getStartDate()
370 370
                 ->format('d.m.Y');
371 371
     }
372 372
 
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      */
380 380
     public function getKeSearchAbstract(Index $index): string
381 381
     {
382
-        return (string) $this->getDescription();
382
+        return (string)$this->getDescription();
383 383
     }
384 384
 
385 385
     /**
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     public function getKeSearchContent(Index $index): string
393 393
     {
394
-        return (string) $this->getDescription();
394
+        return (string)$this->getDescription();
395 395
     }
396 396
 
397 397
     /**
Please login to merge, or discard this patch.
Classes/Controller/CalendarController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Calendar.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Controller;
9 9
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $configuration = ExtensionConfigurationUtility::get($configurationName);
74 74
 
75 75
             // get Event by Configuration and Uid
76
-            $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int) $this->request->getArgument('event'));
76
+            $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int)$this->request->getArgument('event'));
77 77
             $index = $this->indexRepository->findByEventTraversing($event, true, false, 1)->getFirst();
78 78
 
79 79
             // if there is a valid index in the event
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
         if (null === $week) {
275 275
             $week = $now->format('W');
276 276
         }
277
-        $weekStart = (int) $this->settings['weekStart'];
278
-        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int) $week, $year, $weekStart);
277
+        $weekStart = (int)$this->settings['weekStart'];
278
+        $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int)$week, $year, $weekStart);
279 279
         $timezone = DateTimeUtility::getTimeZone();
280 280
         $firstDay->setTimezone($timezone);
281 281
         $firstDay->setTime(0, 0, 0);
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         if (null === $index) {
336 336
             // handle fallback for "strange language settings"
337 337
             if ($this->request->hasArgument('index')) {
338
-                $indexId = (int) $this->request->getArgument('index');
338
+                $indexId = (int)$this->request->getArgument('index');
339 339
                 if ($indexId > 0) {
340 340
                     $index = $this->indexRepository->findByUid($indexId);
341 341
                 }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
             if (null === $index) {
345 345
                 if (!MathUtility::canBeInterpretedAsInteger($this->settings['listPid'])) {
346
-                    return (string) TranslateUtility::get('noEventDetailView');
346
+                    return (string)TranslateUtility::get('noEventDetailView');
347 347
                 }
348 348
                 $this->slottedRedirect(__CLASS__, __FUNCTION__ . 'noEvent');
349 349
             }
@@ -465,12 +465,12 @@  discard block
 block discarded – undo
465 465
         } elseif (MathUtility::canBeInterpretedAsInteger($year)) {
466 466
             $indices = $this->indexRepository->findYear($year);
467 467
         } else {
468
-            $overrideStartDate = (int) $this->settings['overrideStartdate'];
469
-            $overrideEndDate = (int) $this->settings['overrideEnddate'];
468
+            $overrideStartDate = (int)$this->settings['overrideStartdate'];
469
+            $overrideEndDate = (int)$this->settings['overrideEnddate'];
470 470
             $indices = $this->indexRepository->findList(
471
-                (int) $this->settings['limit'],
471
+                (int)$this->settings['limit'],
472 472
                 $this->settings['listStartTime'],
473
-                (int) $this->settings['listStartTimeOffsetHours'],
473
+                (int)$this->settings['listStartTimeOffsetHours'],
474 474
                 $overrideStartDate,
475 475
                 $overrideEndDate
476 476
             );
Please login to merge, or discard this patch.