@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | public function setRouteEntriesPerPage(int $routeEntriesPerPage): void |
| 83 | 83 | { |
| 84 | - if ((int)$this->routeEntriesPerPage !== $routeEntriesPerPage) { |
|
| 84 | + if ((int) $this->routeEntriesPerPage !== $routeEntriesPerPage) { |
|
| 85 | 85 | $this->routeEntriesPerPage = $routeEntriesPerPage; |
| 86 | 86 | } |
| 87 | 87 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | public function setShowOnlyOwnEntries(bool $showOnlyOwnEntries): void |
| 95 | 95 | { |
| 96 | - if ((bool)$this->showOnlyOwnEntries !== $showOnlyOwnEntries) { |
|
| 96 | + if ((bool) $this->showOnlyOwnEntries !== $showOnlyOwnEntries) { |
|
| 97 | 97 | $this->showOnlyOwnEntries = $showOnlyOwnEntries; |
| 98 | 98 | } |
| 99 | 99 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | public function setAllowModerationSpecificCreatorForRoute(bool $allowModerationSpecificCreatorForRoute): void |
| 107 | 107 | { |
| 108 | - if ((bool)$this->allowModerationSpecificCreatorForRoute !== $allowModerationSpecificCreatorForRoute) { |
|
| 108 | + if ((bool) $this->allowModerationSpecificCreatorForRoute !== $allowModerationSpecificCreatorForRoute) { |
|
| 109 | 109 | $this->allowModerationSpecificCreatorForRoute = $allowModerationSpecificCreatorForRoute; |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | public function setAllowModerationSpecificCreationDateForRoute(bool $allowModerationSpecificCreationDateForRoute): void |
| 119 | 119 | { |
| 120 | - if ((bool)$this->allowModerationSpecificCreationDateForRoute !== $allowModerationSpecificCreationDateForRoute) { |
|
| 120 | + if ((bool) $this->allowModerationSpecificCreationDateForRoute !== $allowModerationSpecificCreationDateForRoute) { |
|
| 121 | 121 | $this->allowModerationSpecificCreationDateForRoute = $allowModerationSpecificCreationDateForRoute; |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | |
| 222 | 222 | public function setId(int $id = null): void |
| 223 | 223 | { |
| 224 | - if ((int)$this->id !== $id) { |
|
| 224 | + if ((int) $this->id !== $id) { |
|
| 225 | 225 | $this->id = $id; |
| 226 | 226 | } |
| 227 | 227 | } |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | public function setPrependBundlePrefix(bool $prependBundlePrefix): void |
| 331 | 331 | { |
| 332 | - if ((bool)$this->prependBundlePrefix !== $prependBundlePrefix) { |
|
| 332 | + if ((bool) $this->prependBundlePrefix !== $prependBundlePrefix) { |
|
| 333 | 333 | $this->prependBundlePrefix = $prependBundlePrefix; |
| 334 | 334 | } |
| 335 | 335 | } |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | public function setTranslatable(bool $translatable): void |
| 343 | 343 | { |
| 344 | - if ((bool)$this->translatable !== $translatable) { |
|
| 344 | + if ((bool) $this->translatable !== $translatable) { |
|
| 345 | 345 | $this->translatable = $translatable; |
| 346 | 346 | } |
| 347 | 347 | } |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | |
| 426 | 426 | public function setSort(int $sort): void |
| 427 | 427 | { |
| 428 | - if ((int)$this->sort !== $sort) { |
|
| 428 | + if ((int) $this->sort !== $sort) { |
|
| 429 | 429 | $this->sort = $sort; |
| 430 | 430 | } |
| 431 | 431 | } |
@@ -80,12 +80,12 @@ discard block |
||
| 80 | 80 | 'mode' => $this->templateParameters['mode'], |
| 81 | 81 | 'actions' => $this->templateParameters['actions'], |
| 82 | 82 | 'has_moderate_permission' => $this->permissionHelper->hasEntityPermission($this->entityRef, ACCESS_ADMIN), |
| 83 | - 'allow_moderation_specific_creator' => (bool)$this->variableApi->get( |
|
| 83 | + 'allow_moderation_specific_creator' => (bool) $this->variableApi->get( |
|
| 84 | 84 | 'ZikulaRoutesModule', |
| 85 | 85 | 'allowModerationSpecificCreatorFor' . $this->objectTypeCapital, |
| 86 | 86 | false |
| 87 | 87 | ), |
| 88 | - 'allow_moderation_specific_creation_date' => (bool)$this->variableApi->get( |
|
| 88 | + 'allow_moderation_specific_creation_date' => (bool) $this->variableApi->get( |
|
| 89 | 89 | 'ZikulaRoutesModule', |
| 90 | 90 | 'allowModerationSpecificCreationDateFor' . $this->objectTypeCapital, |
| 91 | 91 | false |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | return $this->router->generate($routePrefix . 'view'); |
| 288 | 288 | case 'userOwnView': |
| 289 | 289 | case 'adminOwnView': |
| 290 | - return $this->router->generate($routePrefix . 'view', [ 'own' => 1 ]); |
|
| 290 | + return $this->router->generate($routePrefix . 'view', ['own' => 1]); |
|
| 291 | 291 | case 'userDisplay': |
| 292 | 292 | case 'adminDisplay': |
| 293 | 293 | if ( |
@@ -70,8 +70,8 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $entity = $this->entityRef; |
| 72 | 72 | |
| 73 | - list($controller,) = $this->sanitizeHelper->sanitizeController((string)$entity['controller']); |
|
| 74 | - list($action,) = $this->sanitizeHelper->sanitizeAction((string)$entity['action']); |
|
| 73 | + list($controller,) = $this->sanitizeHelper->sanitizeController((string) $entity['controller']); |
|
| 74 | + list($action,) = $this->sanitizeHelper->sanitizeAction((string) $entity['action']); |
|
| 75 | 75 | |
| 76 | 76 | $entity['controller'] = $controller; |
| 77 | 77 | $entity['action'] = $action; |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | */ |
| 180 | 180 | public function getUserId(): int |
| 181 | 181 | { |
| 182 | - return (int)$this->currentUserApi->get('uid'); |
|
| 182 | + return (int) $this->currentUserApi->get('uid'); |
|
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $templateParameters['sortdir'] = strtolower($sortdir); |
| 138 | 138 | |
| 139 | 139 | $templateParameters['all'] = 'csv' === $request->getRequestFormat() ? 1 : $request->query->getInt('all'); |
| 140 | - $showOnlyOwnEntriesSetting = (bool)$request->query->getInt( |
|
| 140 | + $showOnlyOwnEntriesSetting = (bool) $request->query->getInt( |
|
| 141 | 141 | 'own', |
| 142 | 142 | (int) $this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries') |
| 143 | 143 | ); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | // use provided lang if available |
| 78 | 78 | $langs = [$lang]; |
| 79 | 79 | } else { |
| 80 | - $multilingual = (bool)$this->variableApi->getSystemVar('multilingual'); |
|
| 80 | + $multilingual = (bool) $this->variableApi->getSystemVar('multilingual'); |
|
| 81 | 81 | if ($multilingual) { |
| 82 | 82 | // get all available locales |
| 83 | 83 | $langs = $installedLanguages; |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | 'route' => 'zikulasettingsmodule_settings_locale', |
| 95 | 95 | ])->setAttribute('icon', 'fas fa-spell-check'); |
| 96 | 96 | |
| 97 | - if (true === (bool)$this->variableApi->getSystemVar('multilingual')) { |
|
| 97 | + if (true === (bool) $this->variableApi->getSystemVar('multilingual')) { |
|
| 98 | 98 | if ('dev' === $this->kernel->getEnvironment()) { |
| 99 | 99 | $request = $this->requestStack->getCurrentRequest(); |
| 100 | 100 | if ($request->hasSession() && ($session = $request->getSession())) { |
@@ -97,10 +97,10 @@ |
||
| 97 | 97 | 'entrypoint' => ZikulaKernel::FRONT_CONTROLLER, |
| 98 | 98 | 'baseURL' => $event->getRequest()->getSchemeAndHttpHost() . '/', |
| 99 | 99 | 'baseURI' => $event->getRequest()->getBasePath(), |
| 100 | - 'ajaxtimeout' => (int)$this->variableApi->getSystemVar('ajaxtimeout', 5000), |
|
| 100 | + 'ajaxtimeout' => (int) $this->variableApi->getSystemVar('ajaxtimeout', 5000), |
|
| 101 | 101 | 'lang' => $event->getRequest()->getLocale(), |
| 102 | 102 | 'sessionName' => isset($session) ? $session->getName() : $this->defaultSessionName, |
| 103 | - 'uid' => (int)$this->currentUserApi->get('uid') |
|
| 103 | + 'uid' => (int) $this->currentUserApi->get('uid') |
|
| 104 | 104 | ]; |
| 105 | 105 | |
| 106 | 106 | $config = array_map('htmlspecialchars', $config); |