Completed
Push — master ( 639c8e...d98ce7 )
by Tim
02:05
created
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.