@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | // does the user have admin permissions on the provider module? |
| 211 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hookproviders[$i]['name']."::", '::', ACCESS_ADMIN)) { |
|
| 211 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hookproviders[$i]['name'] . "::", '::', ACCESS_ADMIN)) { |
|
| 212 | 212 | unset($hookproviders[$i]); |
| 213 | 213 | continue; |
| 214 | 214 | } |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | if (!$this->get('kernel')->isBundle($subscriber)) { |
| 286 | 286 | throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber)); |
| 287 | 287 | } |
| 288 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) { |
|
| 288 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber . '::', '::', ACCESS_ADMIN)) { |
|
| 289 | 289 | throw new AccessDeniedException(); |
| 290 | 290 | } |
| 291 | 291 | |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | if (!$this->get('kernel')->isBundle($provider)) { |
| 304 | 304 | throw new \RuntimeException($this->get('translator.default')->__f('Provider module "%s" is not available.', $provider)); |
| 305 | 305 | } |
| 306 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($provider.'::', '::', ACCESS_ADMIN)) { |
|
| 306 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($provider . '::', '::', ACCESS_ADMIN)) { |
|
| 307 | 307 | throw new AccessDeniedException(); |
| 308 | 308 | } |
| 309 | 309 | |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | if (!$this->get('kernel')->isBundle($subscriber)) { |
| 367 | 367 | throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber)); |
| 368 | 368 | } |
| 369 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) { |
|
| 369 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber . '::', '::', ACCESS_ADMIN)) { |
|
| 370 | 370 | throw new AccessDeniedException(); |
| 371 | 371 | } |
| 372 | 372 | |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | private function isCapable($moduleName, $type) |
| 411 | 411 | { |
| 412 | 412 | $nonPersisted = $this->get('zikula_hook_bundle.collector.hook_collector')->isCapable($moduleName, $type); |
| 413 | - $persisted = $this->get('zikula_extensions_module.api.capability')->isCapable($moduleName, $type) ? true : false; |
|
| 413 | + $persisted = $this->get('zikula_extensions_module.api.capability')->isCapable($moduleName, $type) ? true : false; |
|
| 414 | 414 | |
| 415 | 415 | return $nonPersisted || $persisted; |
| 416 | 416 | } |
@@ -243,10 +243,10 @@ |
||
| 243 | 243 | $siteName = $this->variableApi->getSystemVar('sitename'); |
| 244 | 244 | $pageTitle = iconv('UTF-8', 'ASCII//TRANSLIT', $this->pageVars->get('title', '')); |
| 245 | 245 | $fileTitle = iconv('UTF-8', 'ASCII//TRANSLIT', $siteName) |
| 246 | - . '-' |
|
| 247 | - . ($pageTitle != '' ? $pageTitle . '-' : '') |
|
| 248 | - . date('Ymd') . '.pdf'; |
|
| 249 | - $fileTitle = str_replace(' ', '_', $fileTitle); |
|
| 246 | + . '-' |
|
| 247 | + . ($pageTitle != '' ? $pageTitle . '-' : '') |
|
| 248 | + . date('Ymd') . '.pdf'; |
|
| 249 | + $fileTitle = str_replace(' ', '_', $fileTitle); |
|
| 250 | 250 | |
| 251 | 251 | /* |
| 252 | 252 | if (true === $this->request->query->getBoolean('dbg', false)) { |