@@ -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 | } |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | if (!$this->get('kernel')->isBundle($subscriber)) { |
293 | 293 | throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber)); |
294 | 294 | } |
295 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) { |
|
295 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber . '::', '::', ACCESS_ADMIN)) { |
|
296 | 296 | throw new AccessDeniedException(); |
297 | 297 | } |
298 | 298 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | if (!$this->get('kernel')->isBundle($provider)) { |
311 | 311 | throw new \RuntimeException($this->get('translator.default')->__f('Provider module "%s" is not available.', $provider)); |
312 | 312 | } |
313 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($provider.'::', '::', ACCESS_ADMIN)) { |
|
313 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($provider . '::', '::', ACCESS_ADMIN)) { |
|
314 | 314 | throw new AccessDeniedException(); |
315 | 315 | } |
316 | 316 | |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | if (!$this->get('kernel')->isBundle($subscriber)) { |
373 | 373 | throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber)); |
374 | 374 | } |
375 | - if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) { |
|
375 | + if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber . '::', '::', ACCESS_ADMIN)) { |
|
376 | 376 | throw new AccessDeniedException(); |
377 | 377 | } |
378 | 378 |
@@ -49,7 +49,6 @@ |
||
49 | 49 | /** |
50 | 50 | * InstallerListener constructor. |
51 | 51 | * |
52 | - * @param ObjectManager $objectManager |
|
53 | 52 | */ |
54 | 53 | public function __construct( |
55 | 54 | CacheClearer $cacheClearer, |
@@ -63,8 +63,8 @@ |
||
63 | 63 | { |
64 | 64 | $entity = $this->entityRef; |
65 | 65 | |
66 | - list($controller, ) = $this->sanitizeHelper->sanitizeController($entity['controller']); |
|
67 | - list($action, ) = $this->sanitizeHelper->sanitizeAction($entity['action']); |
|
66 | + list($controller,) = $this->sanitizeHelper->sanitizeController($entity['controller']); |
|
67 | + list($action,) = $this->sanitizeHelper->sanitizeAction($entity['action']); |
|
68 | 68 | |
69 | 69 | $entity['controller'] = $controller; |
70 | 70 | $entity['action'] = $action; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Returns a list of custom Twig functions. |
81 | 81 | * |
82 | - * @return array |
|
82 | + * @return \Twig_SimpleFunction[] |
|
83 | 83 | */ |
84 | 84 | public function getFunctions() |
85 | 85 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Returns a list of custom Twig filters. |
98 | 98 | * |
99 | - * @return array |
|
99 | + * @return \Twig_SimpleFilter[] |
|
100 | 100 | */ |
101 | 101 | public function getFilters() |
102 | 102 | { |
@@ -203,9 +203,9 @@ |
||
203 | 203 | /** |
204 | 204 | * Determine if a $currentVersion value is between $requiredMin and $requiredMax. |
205 | 205 | * |
206 | - * @param $requiredMin |
|
207 | - * @param $requiredMax |
|
208 | - * @param $currentVersion |
|
206 | + * @param string $requiredMin |
|
207 | + * @param string $requiredMax |
|
208 | + * @param string $currentVersion |
|
209 | 209 | * @return bool |
210 | 210 | */ |
211 | 211 | private function meetsVersionRequirements($requiredMin, $requiredMax, $currentVersion) |
@@ -158,7 +158,7 @@ |
||
158 | 158 | * @param ExtensionDependencyEntity $dependency |
159 | 159 | * @return bool |
160 | 160 | */ |
161 | - private function bundleDependencySatisfied(ExtensionDependencyEntity &$dependency) |
|
161 | + private function bundleDependencySatisfied(ExtensionDependencyEntity & $dependency) |
|
162 | 162 | { |
163 | 163 | if ($dependency->getModname() == "php") { |
164 | 164 | // Do not use PHP_VERSION constant, because it might throw off the semver parser. |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | if ($constraint->propertyName == 'workflowState' && in_array($value, ['initial', 'deleted'])) { |
65 | 65 | return; |
66 | - } |
|
66 | + } |
|
67 | 67 | |
68 | 68 | $listEntries = $this->listEntriesHelper->getEntries($constraint->entityName, $constraint->propertyName); |
69 | 69 | $allowedValues = []; |