Completed
Push — master ( 63134d...15fa36 )
by Tim
10:06
created
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
             ]);
114 114
         }
115 115
 
116
-        if ((int) $options->getPid() > 0) {
117
-            $query->matching($query->equals('pid', (int) $options->getPid()));
116
+        if ((int)$options->getPid() > 0) {
117
+            $query->matching($query->equals('pid', (int)$options->getPid()));
118 118
         }
119 119
 
120 120
         $result = $query->execute();
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      */
399 399
     public function findWeek($year, $week, $weekStart = 1)
400 400
     {
401
-        $weekStart = (int) $weekStart;
401
+        $weekStart = (int)$weekStart;
402 402
         $daysShift = $weekStart - 1;
403 403
         $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year);
404 404
         $timezone = DateTimeUtility::getTimeZone();
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
     {
423 423
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index');
424 424
 
425
-        return (array) $queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll();
425
+        return (array)$queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll();
426 426
     }
427 427
 
428 428
     /**
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
         $config = $objectManager->get(ConfigurationManagerInterface::class);
516 516
         $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS);
517 517
 
518
-        $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict';
518
+        $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict';
519 519
 
520 520
         return $mode;
521 521
     }
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
             $arguments['endTime'] = DateTimeUtility::getNow()->getTimestamp() + DateTimeUtility::SECONDS_DECADE;
612 612
         }
613 613
 
614
-        if ((bool) ConfigurationUtility::get('respectTimesInTimeFrameConstraints')) {
614
+        if ((bool)ConfigurationUtility::get('respectTimesInTimeFrameConstraints')) {
615 615
             $this->addDateTimeFrameConstraints($constraints, $query, $arguments);
616 616
         } else {
617 617
             $this->addDateFrameConstraints($constraints, $query, $arguments);
Please login to merge, or discard this patch.
Classes/Service/TimeTable/TimeTimeTable.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         switch ($configuration->getEndDateDynamic()) {
66 66
             case Configuration::END_DYNAMIC_1_DAY:
67
-                $callback = function ($entry) {
67
+                $callback = function($entry) {
68 68
                     if ($entry['start_date'] instanceof \DateTime) {
69 69
                         $entry['end_date'] = clone $entry['start_date'];
70 70
                         $entry['end_date']->modify('+1 day');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 };
75 75
                 break;
76 76
             case Configuration::END_DYNAMIC_1_WEEK:
77
-                $callback = function ($entry) {
77
+                $callback = function($entry) {
78 78
                     if ($entry['start_date'] instanceof \DateTime) {
79 79
                         $entry['end_date'] = clone $entry['start_date'];
80 80
                         $entry['end_date']->modify('+1 week');
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 };
85 85
                 break;
86 86
             case Configuration::END_DYNAMIC_END_WEEK:
87
-                $callback = function ($entry) {
87
+                $callback = function($entry) {
88 88
                     if ($entry['start_date'] instanceof \DateTime) {
89 89
                         $entry['end_date'] = clone $entry['start_date'];
90 90
                         $entry['end_date']->modify('monday next week');
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 };
96 96
                 break;
97 97
             case Configuration::END_DYNAMIC_END_MONTH:
98
-                $callback = function ($entry) {
98
+                $callback = function($entry) {
99 99
                     if ($entry['start_date'] instanceof \DateTime) {
100 100
                         $entry['end_date'] = clone $entry['start_date'];
101 101
                         $entry['end_date']->modify('last day of this month');
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
                 break;
107 107
             case Configuration::END_DYNAMIC_END_YEAR:
108 108
 
109
-                $callback = function ($entry) {
109
+                $callback = function($entry) {
110 110
                     if ($entry['start_date'] instanceof \DateTime) {
111 111
                         $entry['end_date'] = clone $entry['start_date'];
112
-                        $entry['end_date']->setDate((int) $entry['end_date']->format('Y'), 12, 31);
112
+                        $entry['end_date']->setDate((int)$entry['end_date']->format('Y'), 12, 31);
113 113
                     }
114 114
 
115 115
                     return $entry;
@@ -383,10 +383,10 @@  discard block
 block discarded – undo
383 383
         // if not set get values from extension configuration
384 384
         if (null === $tillDays && null === $tillDaysPast) {
385 385
             $tillDays = ConfigurationUtility::get('tillDays');
386
-            $tillDays = MathUtility::canBeInterpretedAsInteger($tillDays) ? (int) $tillDays : null;
386
+            $tillDays = MathUtility::canBeInterpretedAsInteger($tillDays) ? (int)$tillDays : null;
387 387
             $tillDaysPast = ConfigurationUtility::get('tillDaysPast');
388
-            $tillDaysPast = MathUtility::canBeInterpretedAsInteger($tillDaysPast) ? (int) $tillDaysPast : null;
389
-            $tillDaysRelative = (bool) ConfigurationUtility::get('tillDaysRelative');
388
+            $tillDaysPast = MathUtility::canBeInterpretedAsInteger($tillDaysPast) ? (int)$tillDaysPast : null;
389
+            $tillDaysRelative = (bool)ConfigurationUtility::get('tillDaysRelative');
390 390
         }
391 391
 
392 392
         // get base date for till tillDate and tillDatePast calculation
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      */
423 423
     protected function getFrequencyLimitPerItem(): int
424 424
     {
425
-        $maxLimit = (int) ConfigurationUtility::get('frequencyLimitPerItem');
425
+        $maxLimit = (int)ConfigurationUtility::get('frequencyLimitPerItem');
426 426
         if ($maxLimit <= 0) {
427 427
             $maxLimit = 300;
428 428
         }
Please login to merge, or discard this patch.
Classes/Updates/CalMigrationUpdate.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         foreach ($events as $event) {
134 134
             $calendarizeEventRecord = [
135 135
                 'pid' => $event['pid'],
136
-                'import_id' => self::IMPORT_PREFIX . (int) $event['uid'],
136
+                'import_id' => self::IMPORT_PREFIX . (int)$event['uid'],
137 137
                 'tstamp' => $event['tstamp'],
138 138
                 'crdate' => $event['crdate'],
139 139
                 'hidden' => $event['hidden'],
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
         foreach ($selectResults as $group) {
261 261
             $importId = \explode(':', $group['import_id']);
262
-            $groupId = (int) $importId[1];
262
+            $groupId = (int)$importId[1];
263 263
 
264 264
             $variables = [
265 265
                 'table' => 'tx_cal_exception_event_mm',
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
                 ->where(
275 275
                     $q->expr()->andX(
276 276
                         $q->expr()->eq('tablenames', 'tx_cal_exception_event_group'),
277
-                        $q->expr()->eq('uid_foreign', $q->createNamedParameter((int) $groupId, \PDO::PARAM_INT))
277
+                        $q->expr()->eq('uid_foreign', $q->createNamedParameter((int)$groupId, \PDO::PARAM_INT))
278 278
                     )
279 279
                 );
280 280
 
@@ -282,9 +282,9 @@  discard block
 block discarded – undo
282 282
             $selectResults = $q->execute()->fetchAll();
283 283
 
284 284
             foreach ($selectResults as $eventUid) {
285
-                $eventImportId = self::IMPORT_PREFIX . (int) $eventUid['uid_local'];
285
+                $eventImportId = self::IMPORT_PREFIX . (int)$eventUid['uid_local'];
286 286
                 $configurationRow = [
287
-                    'pid' => (int) $group['pid'],
287
+                    'pid' => (int)$group['pid'],
288 288
                     'tstamp' => $now->getTimestamp(),
289 289
                     'crdate' => $now->getTimestamp(),
290 290
                     'type' => 'group',
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
             unset($configurationRow['uid']);
429 429
 
430 430
             $q->update(self::CONFIGURATION_GROUP_TABLE)
431
-                ->where('uid', $q->createNamedParameter((int) $configuration['uid'], \PDO::PARAM_INT))
431
+                ->where('uid', $q->createNamedParameter((int)$configuration['uid'], \PDO::PARAM_INT))
432 432
                 ->values($configurationRow);
433 433
 
434 434
             $dbQueries[] = $q->getSQL();
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 
508 508
         $variables = [
509 509
             'table' => self::EVENT_TABLE,
510
-            'eventId' => (int) $eventId,
510
+            'eventId' => (int)$eventId,
511 511
             'values' => $values,
512 512
             'dbQueries' => $dbQueries,
513 513
         ];
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 
518 518
         $q->update($variables['table'])
519 519
             ->where(
520
-                $q->expr()->eq('uid', $q->createNamedParameter((int) $eventId, \PDO::PARAM_INT))
520
+                $q->expr()->eq('uid', $q->createNamedParameter((int)$eventId, \PDO::PARAM_INT))
521 521
             )
522 522
             ->values($variables['values']);
523 523
 
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
 
624 624
         $q->select('*')
625 625
             ->from($variables['table'])
626
-            ->where('uid_local', $q->createNamedParameter((int) $groupId, \PDO::PARAM_INT));
626
+            ->where('uid_local', $q->createNamedParameter((int)$groupId, \PDO::PARAM_INT));
627 627
 
628 628
         $dbQueries[] = $q->getSQL();
629 629
 
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
             $q->select('*')
639 639
                 ->from($variables['table'])
640 640
                 ->where(
641
-                    $q->expr()->eq('uid', $q->createNamedParameter((int) $mmResult['uid_foreign'], \PDO::PARAM_INT))
641
+                    $q->expr()->eq('uid', $q->createNamedParameter((int)$mmResult['uid_foreign'], \PDO::PARAM_INT))
642 642
                 );
643 643
 
644 644
             $dbQueries[] = $q->getSQL();
@@ -654,13 +654,13 @@  discard block
 block discarded – undo
654 654
                     'handling' => 'include',
655 655
                     'start_date' => $this->migrateDate($selectResult['start_date']),
656 656
                     'end_date' => $this->migrateDate($selectResult['end_date']),
657
-                    'start_time' => (int) $selectResult['start_time'],
658
-                    'end_time' => (int) $selectResult['end_time'],
657
+                    'start_time' => (int)$selectResult['start_time'],
658
+                    'end_time' => (int)$selectResult['end_time'],
659 659
                     'all_day' => (null === $selectResult['start_time'] && null === $selectResult['end_time']) ? 1 : 0,
660 660
                     'frequency' => $this->mapFrequency($selectResult['freq']),
661 661
                     'till_date' => $this->migrateDate($selectResult['until']),
662
-                    'counter_amount' => (int) $selectResult['cnt'],
663
-                    'counter_interval' => (int) $selectResult['interval'],
662
+                    'counter_amount' => (int)$selectResult['cnt'],
663
+                    'counter_interval' => (int)$selectResult['interval'],
664 664
                     'import_id' => self::IMPORT_PREFIX . $selectResult['uid'],
665 665
                 ];
666 666
 
@@ -753,8 +753,8 @@  discard block
 block discarded – undo
753 753
                 'l10n_parent' => $category['l18n_parent'],
754 754
                 'l10n_diffsource' => $category['l18n_diffsource'],
755 755
                 'title' => $category['title'],
756
-                'parent' => (int) $category['parent_category'],
757
-                'import_id' => self::IMPORT_PREFIX . (int) $category['uid'],
756
+                'parent' => (int)$category['parent_category'],
757
+                'import_id' => self::IMPORT_PREFIX . (int)$category['uid'],
758 758
                 'sorting' => $category['sorting'],
759 759
             ];
760 760
 
@@ -787,13 +787,13 @@  discard block
 block discarded – undo
787 787
         foreach ($selectResults as $sysCategory) {
788 788
             // update parent, because there are just the old uids
789 789
             $updateRecord = [
790
-                'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int) $sysCategory['parent']),
790
+                'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int)$sysCategory['parent']),
791 791
             ];
792 792
 
793 793
             $q->resetQueryParts()->resetRestrictions();
794 794
             $q->update('sys_category')
795 795
                 ->where(
796
-                    $q->expr()->eq('uid', $q->createNamedParameter((int) $sysCategory['uid'], \PDO::PARAM_INT))
796
+                    $q->expr()->eq('uid', $q->createNamedParameter((int)$sysCategory['uid'], \PDO::PARAM_INT))
797 797
                 )
798 798
                 ->values($updateRecord);
799 799
 
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 
827 827
         $result = $q->execute()->fetchAll();
828 828
 
829
-        return (int) $result['uid'];
829
+        return (int)$result['uid'];
830 830
     }
831 831
 
832 832
     /**
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
         $dbQueries[] = $q->getSQL();
861 861
 
862 862
         $result = $q->execute()->fetchAll();
863
-        $uid = (int) $result['uid'];
863
+        $uid = (int)$result['uid'];
864 864
 
865 865
         return $uid;
866 866
     }
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
         $dbQueries[] = $q->getSQL();
899 899
 
900 900
         $result = $q->execute()->fetchAll();
901
-        $uid = (int) $result['uid'];
901
+        $uid = (int)$result['uid'];
902 902
 
903 903
         return $uid;
904 904
     }
@@ -926,8 +926,8 @@  discard block
 block discarded – undo
926 926
             'all_day' => $calEventRow['allday'],
927 927
             'frequency' => $this->mapFrequency($calEventRow['freq']),
928 928
             'till_date' => $this->migrateDate($calEventRow['until']),
929
-            'counter_amount' => (int) $calEventRow['cnt'],
930
-            'counter_interval' => (int) $calEventRow['interval'],
929
+            'counter_amount' => (int)$calEventRow['cnt'],
930
+            'counter_interval' => (int)$calEventRow['interval'],
931 931
         ];
932 932
 
933 933
         $variables = [
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
     protected function migrateDate($oldFormat)
975 975
     {
976 976
         try {
977
-            $date = new \DateTime((string) $oldFormat);
977
+            $date = new \DateTime((string)$oldFormat);
978 978
 
979 979
             return $date->getTimestamp();
980 980
         } catch (\Exception $e) {
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
 
1011 1011
         foreach ($events as $event) {
1012 1012
             $checkImportIds[] = '"' . self::IMPORT_PREFIX . $event['uid'] . '"';
1013
-            $nonMigrated[(int) $event['uid']] = (int) $event['uid'];
1013
+            $nonMigrated[(int)$event['uid']] = (int)$event['uid'];
1014 1014
         }
1015 1015
 
1016 1016
         $countOriginal = \count($checkImportIds);
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
             );
1035 1035
 
1036 1036
         foreach ($migratedRows as $migratedRow) {
1037
-            $importId = (int) \str_replace(self::IMPORT_PREFIX, '', $migratedRow['import_id']);
1037
+            $importId = (int)\str_replace(self::IMPORT_PREFIX, '', $migratedRow['import_id']);
1038 1038
             if (isset($nonMigrated[$importId])) {
1039 1039
                 unset($nonMigrated[$importId]);
1040 1040
             }
Please login to merge, or discard this patch.
Classes/Slots/CalMigration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             ->where(
37 37
                 $q->expr()->andX(
38 38
                     $q->expr()->eq('tablenames', $q->quote('tx_cal_event')),
39
-                    $q->expr()->eq('uid_foreign', $q->createNamedParameter((int) $event['uid'], \PDO::PARAM_INT))
39
+                    $q->expr()->eq('uid_foreign', $q->createNamedParameter((int)$event['uid'], \PDO::PARAM_INT))
40 40
                 )
41 41
             );
42 42
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $importId = CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'];
50 50
 
51 51
             $fieldValues = [
52
-                'uid_foreign' => (int) $recordId,
52
+                'uid_foreign' => (int)$recordId,
53 53
                 'tablenames' => $table,
54 54
             ];
55 55
 
Please login to merge, or discard this patch.
Classes/Service/Url/Typo3Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $parts = GeneralUtility::trimExplode('-', $value, true);
46 46
 
47
-        return (int) \array_pop($parts);
47
+        return (int)\array_pop($parts);
48 48
     }
49 49
 
50 50
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function id2alias($value): string
58 58
     {
59
-        $alias = $this->getIndexBase((int) $value);
59
+        $alias = $this->getIndexBase((int)$value);
60 60
 
61 61
         // Because the Slug helper do not remove "/" chars
62 62
         $alias = \str_replace('/', '-', $alias);
@@ -64,6 +64,6 @@  discard block
 block discarded – undo
64 64
         $slugHelper = GeneralUtility::makeInstance(SlugHelper::class, 'pages', 'uid', []);
65 65
         $alias = $slugHelper->sanitize($alias);
66 66
 
67
-        return (string) $alias;
67
+        return (string)$alias;
68 68
     }
69 69
 }
Please login to merge, or discard this patch.
Classes/Service/IndexerService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 // overlays can connect with l10n_paretn to the right default record.
64 64
                 $q->select('uid')
65 65
                     ->from($tableName)
66
-                    ->orderBy((string) $transPointer);
66
+                    ->orderBy((string)$transPointer);
67 67
             } else {
68 68
                 $q->select('uid')
69 69
                     ->from($tableName);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         // Note: "uid" could be e.g. NEW6273482 in DataHandler process
111 111
         if (MathUtility::canBeInterpretedAsInteger($uid)) {
112
-            return (int) $this->getCurrentItems($tableName, $uid)->rowCount();
112
+            return (int)$this->getCurrentItems($tableName, $uid)->rowCount();
113 113
         }
114 114
 
115 115
         return 0;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 $q->expr()->andX(
139 139
                     $q->expr()->gte('start_date', $q->createNamedParameter(DateTimeUtility::getNow()->format('Y-m-d'))),
140 140
                     $q->expr()->eq('foreign_table', $q->createNamedParameter($table)),
141
-                    $q->expr()->eq('foreign_uid', $q->createNamedParameter((int) $uid, \PDO::PARAM_INT))
141
+                    $q->expr()->eq('foreign_uid', $q->createNamedParameter((int)$uid, \PDO::PARAM_INT))
142 142
                 )
143 143
             )
144 144
             ->addOrderBy('start_date', 'ASC')
@@ -284,9 +284,9 @@  discard block
 block discarded – undo
284 284
                     $q->expr()->notIn('unique_register_key', $validKeys)
285 285
                 )->execute();
286 286
 
287
-            return (bool) $q->execute();
287
+            return (bool)$q->execute();
288 288
         }
289 289
 
290
-        return (bool) $db->truncate(self::TABLE_NAME);
290
+        return (bool)$db->truncate(self::TABLE_NAME);
291 291
     }
292 292
 }
Please login to merge, or discard this patch.
Classes/Service/IndexPreparationService.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         $configurations = GeneralUtility::intExplode(',', $rawRecord['calendarize'], true);
37 37
 
38 38
         $transPointer = $GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'] ?? false; // e.g. l10n_parent
39
-        if ($transPointer && (int) $rawRecord[$transPointer] > 0) {
40
-            $rawOriginalRecord = BackendUtility::getRecord($tableName, (int) $rawRecord[$transPointer]);
39
+        if ($transPointer && (int)$rawRecord[$transPointer] > 0) {
40
+            $rawOriginalRecord = BackendUtility::getRecord($tableName, (int)$rawRecord[$transPointer]);
41 41
             $configurations = GeneralUtility::intExplode(',', $rawOriginalRecord['calendarize'], true);
42 42
         }
43 43
 
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
         $languageField = $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] ?? false; // e.g. sys_language_uid
86 86
         $transPointer = $GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'] ?? false; // e.g. l10n_parent
87 87
 
88
-        if ($transPointer && (int) $record[$transPointer] > 0) {
88
+        if ($transPointer && (int)$record[$transPointer] > 0) {
89 89
             foreach ($neededItems as $key => $value) {
90 90
                 $originalRecord = BackendUtility::getRecord($value['foreign_table'], $value['foreign_uid']);
91 91
 
92 92
                 $searchFor = $value;
93
-                $searchFor['foreign_uid'] = (int) $originalRecord[$transPointer];
93
+                $searchFor['foreign_uid'] = (int)$originalRecord[$transPointer];
94 94
 
95 95
                 $db = HelperUtility::getDatabaseConnection(IndexerService::TABLE_NAME);
96 96
                 $q = $db->createQueryBuilder();
@@ -99,19 +99,19 @@  discard block
 block discarded – undo
99 99
                     if (\is_string($val)) {
100 100
                         $where[] = $q->expr()->eq($field, $q->quote($val));
101 101
                     } else {
102
-                        $where[] = $q->expr()->eq($field, (int) $val);
102
+                        $where[] = $q->expr()->eq($field, (int)$val);
103 103
                     }
104 104
                 }
105 105
 
106 106
                 $result = $q->select('uid')->from(IndexerService::TABLE_NAME)->andWhere(...$where)->execute()->fetch();
107 107
                 if (isset($result['uid'])) {
108
-                    $neededItems[$key]['l10n_parent'] = (int) $result['uid'];
108
+                    $neededItems[$key]['l10n_parent'] = (int)$result['uid'];
109 109
                 }
110 110
             }
111 111
         }
112 112
 
113
-        if ($languageField && 0 !== (int) $record[$languageField]) {
114
-            $language = (int) $record[$languageField];
113
+        if ($languageField && 0 !== (int)$record[$languageField]) {
114
+            $language = (int)$record[$languageField];
115 115
             foreach (\array_keys($neededItems) as $key) {
116 116
                 $neededItems[$key]['sys_language_uid'] = $language;
117 117
             }
@@ -134,16 +134,16 @@  discard block
 block discarded – undo
134 134
 
135 135
         $addFields = [];
136 136
         if (isset($enableFields['disabled'])) {
137
-            $addFields['hidden'] = (int) $record[$enableFields['disabled']];
137
+            $addFields['hidden'] = (int)$record[$enableFields['disabled']];
138 138
         }
139 139
         if (isset($enableFields['starttime'])) {
140
-            $addFields['starttime'] = (int) $record[$enableFields['starttime']];
140
+            $addFields['starttime'] = (int)$record[$enableFields['starttime']];
141 141
         }
142 142
         if (isset($enableFields['endtime'])) {
143
-            $addFields['endtime'] = (int) $record[$enableFields['endtime']];
143
+            $addFields['endtime'] = (int)$record[$enableFields['endtime']];
144 144
         }
145 145
         if (isset($enableFields['fe_group'])) {
146
-            $addFields['fe_group'] = (string) $record[$enableFields['fe_group']];
146
+            $addFields['fe_group'] = (string)$record[$enableFields['fe_group']];
147 147
         }
148 148
 
149 149
         foreach ($neededItems as $key => $value) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             if ($value instanceof \DateTimeInterface) {
163 163
                 $record[$key] = $value->format('Y-m-d');
164 164
             } elseif (\is_bool($value) || 'start_time' === $key || 'end_time' === $key) {
165
-                $record[$key] = (int) $value;
165
+                $record[$key] = (int)$value;
166 166
             } elseif (null === $value) {
167 167
                 $record[$key] = '';
168 168
             }
Please login to merge, or discard this patch.
Classes/Service/TcaInformation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         $previewLimit = 10;
35 35
         if (isset($configuration['fieldConf']['config']['items'])) {
36
-            $previewLimit = (int) $configuration['fieldConf']['config']['items'];
36
+            $previewLimit = (int)$configuration['fieldConf']['config']['items'];
37 37
         }
38 38
 
39 39
         $indexService = GeneralUtility::makeInstance(IndexerService::class);
@@ -78,16 +78,16 @@  discard block
 block discarded – undo
78 78
             if (!($event['start_date'] instanceof \DateTimeInterface)) {
79 79
                 $event['start_date'] = new \DateTime($event['start_date']);
80 80
             }
81
-            $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $event['start_date']->getTimestamp());
81
+            $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$event['start_date']->getTimestamp());
82 82
 
83 83
             if (!($event['end_date'] instanceof \DateTimeInterface)) {
84 84
                 $event['end_date'] = new \DateTime($event['end_date']);
85 85
             }
86
-            $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $event['end_date']->getTimestamp());
86
+            $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$event['end_date']->getTimestamp());
87 87
             $entry = $startDate . ' - ' . $endDate;
88 88
             if (!$event['all_day']) {
89 89
                 $start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false);
90
-                if ((bool) $event['open_end_time']) {
90
+                if ((bool)$event['open_end_time']) {
91 91
                     $end = '"' . TranslateUtility::get('openEndTime') . '"';
92 92
                 } else {
93 93
                     $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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $fullRow = $databaseConnection->select(['*'], $table, ['uid' => $params['row']['uid']])->fetch();
71 71
 
72 72
         $transPointer = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] ?? false; // e.g. l10n_parent
73
-        if ($transPointer && (int) $fullRow[$transPointer] > 0) {
73
+        if ($transPointer && (int)$fullRow[$transPointer] > 0) {
74 74
             return;
75 75
         }
76 76
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         foreach ($configurations as $key => $value) {
88 88
             $paramsInternal = [
89
-                'row' => (array) $databaseConnection->select(
89
+                'row' => (array)$databaseConnection->select(
90 90
                     ['*'],
91 91
                     'tx_calendarize_domain_model_configuration',
92 92
                     ['uid' => $value]
Please login to merge, or discard this patch.