@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | protected function getIndexBase($indexUid): string |
38 | 38 | { |
39 | 39 | $indexRepository = HelperUtility::create(IndexRepository::class); |
40 | - $index = $indexRepository->findByUid((int) $indexUid); |
|
40 | + $index = $indexRepository->findByUid((int)$indexUid); |
|
41 | 41 | if (!($index instanceof Index)) { |
42 | 42 | return 'idx-' . $indexUid; |
43 | 43 | } |
@@ -48,16 +48,16 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | $base = $originalObject->getRealUrlAliasBase(); |
51 | - if (!(bool) ConfigurationUtility::get('disableDateInSpeakingUrl')) { |
|
51 | + if (!(bool)ConfigurationUtility::get('disableDateInSpeakingUrl')) { |
|
52 | 52 | $datePart = $index->isAllDay() ? 'Y-m-d' : 'Y-m-d-h-i'; |
53 | 53 | $base .= '-' . $index->getStartDateComplete() |
54 | 54 | ->format($datePart); |
55 | 55 | } |
56 | 56 | |
57 | - if ((bool) ConfigurationUtility::get('addIndexInSpeakingUrl')) { |
|
57 | + if ((bool)ConfigurationUtility::get('addIndexInSpeakingUrl')) { |
|
58 | 58 | $base .= '-' . $indexUid; |
59 | 59 | } |
60 | 60 | |
61 | - return (string) $base; |
|
61 | + return (string)$base; |
|
62 | 62 | } |
63 | 63 | } |