@@ -44,7 +44,7 @@  | 
                                                    ||
| 44 | 44 | public function resolve(string $value): ?string  | 
                                                        
| 45 | 45 |      { | 
                                                        
| 46 | 46 | $route = GeneralUtility::makeInstance(Typo3Route::class);  | 
                                                        
| 47 | - $id = (string) $route->convert(['resolve' => $value], null);  | 
                                                        |
| 47 | + $id = (string)$route->convert(['resolve' => $value], null);  | 
                                                        |
| 48 | 48 | |
| 49 | 49 |          if ($this->generate($id) !== $value) { | 
                                                        
| 50 | 50 |              throw new RouteNotFoundException('Wrong realurl segment', 12378); | 
                                                        
@@ -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,16 +49,16 @@ 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-h-i';  | 
                                                        
| 54 | 54 | $base .= '-' . $index->getStartDateComplete()  | 
                                                        
| 55 | 55 | ->format($datePart);  | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | |
| 58 | -        if ((bool) ConfigurationUtility::get('addIndexInSpeakingUrl') || \class_exists(PersistedAliasMapper::class)) { | 
                                                        |
| 58 | +        if ((bool)ConfigurationUtility::get('addIndexInSpeakingUrl') || \class_exists(PersistedAliasMapper::class)) { | 
                                                        |
| 59 | 59 | $base .= '-' . $indexUid;  | 
                                                        
| 60 | 60 | }  | 
                                                        
| 61 | 61 | |
| 62 | - return (string) $base;  | 
                                                        |
| 62 | + return (string)$base;  | 
                                                        |
| 63 | 63 | }  | 
                                                        
| 64 | 64 | }  | 
                                                        
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 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,11 +56,11 @@ discard block  | 
                                                    ||
| 56 | 56 | */  | 
                                                        
| 57 | 57 | protected function id2alias($value): string  | 
                                                        
| 58 | 58 |      { | 
                                                        
| 59 | - $alias = (string) $this->getIndexBase((int) $value);  | 
                                                        |
| 59 | + $alias = (string)$this->getIndexBase((int)$value);  | 
                                                        |
| 60 | 60 | |
| 61 | 61 | $slugHelper = GeneralUtility::makeInstance(SlugHelper::class, 'pages', 'uid', []);  | 
                                                        
| 62 | 62 | $alias = $slugHelper->sanitize($alias);  | 
                                                        
| 63 | 63 | |
| 64 | - return (string) $alias;  | 
                                                        |
| 64 | + return (string)$alias;  | 
                                                        |
| 65 | 65 | }  | 
                                                        
| 66 | 66 | }  |