Completed
Push — master ( 899dc9...6f2a4a )
by Tim
08:45
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.