@@ -64,7 +64,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |