@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | protected function getIndexBase($indexUid): string |
| 39 | 39 | { |
| 40 | 40 | $indexRepository = HelperUtility::create(IndexRepository::class); |
| 41 | - $index = $indexRepository->findByUid((int) $indexUid); |
|
| 41 | + $index = $indexRepository->findByUid((int)$indexUid); |
|
| 42 | 42 | if (!($index instanceof Index)) { |
| 43 | 43 | return 'idx-' . $indexUid; |
| 44 | 44 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $base = $originalObject->getRealUrlAliasBase(); |
| 52 | - if (!(bool) ConfigurationUtility::get('disableDateInSpeakingUrl')) { |
|
| 52 | + if (!(bool)ConfigurationUtility::get('disableDateInSpeakingUrl')) { |
|
| 53 | 53 | $datePart = $index->isAllDay() ? 'Y-m-d' : 'Y-m-d-' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']; |
| 54 | 54 | $dateInfo = $index->getStartDateComplete() |
| 55 | 55 | ->format($datePart); |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | $base .= '-' . $dateInfo; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - if ((bool) ConfigurationUtility::get('addIndexInSpeakingUrl') || \class_exists(PersistedAliasMapper::class)) { |
|
| 60 | + if ((bool)ConfigurationUtility::get('addIndexInSpeakingUrl') || \class_exists(PersistedAliasMapper::class)) { |
|
| 61 | 61 | $base .= '-' . $indexUid; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - $result = \mb_strtolower((string) $base); |
|
| 64 | + $result = \mb_strtolower((string)$base); |
|
| 65 | 65 | return \preg_replace('/[^a-z0-9\-]/', '-', $result); |
| 66 | 66 | } |
| 67 | 67 | } |