@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | - * @param array $excludedUriPrefixes |
|
| 151 | + * @param string[] $excludedUriPrefixes |
|
| 152 | 152 | */ |
| 153 | 153 | public function setExcludedUriPrefixes(array $excludedUriPrefixes) |
| 154 | 154 | { |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | * Fragments are considered as sub-requests (i.e. ESI, Hinclude...). |
| 227 | 227 | * |
| 228 | 228 | * @param Request $request |
| 229 | - * @param $requestType |
|
| 229 | + * @param integer $requestType |
|
| 230 | 230 | * |
| 231 | 231 | * @return bool |
| 232 | 232 | */ |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * Returns matched SiteAccess. |
| 73 | 73 | * |
| 74 | - * @return string|bool |
|
| 74 | + * @return string|false |
|
| 75 | 75 | */ |
| 76 | 76 | protected function getMatchedSiteAccess() |
| 77 | 77 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param string $class A class name |
| 46 | 46 | * |
| 47 | - * @return true if this Voter can process the class |
|
| 47 | + * @return boolean if this Voter can process the class |
|
| 48 | 48 | */ |
| 49 | 49 | public function supportsClass($class) |
| 50 | 50 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN. |
| 59 | 59 | * |
| 60 | 60 | * @param TokenInterface $token A TokenInterface instance |
| 61 | - * @param object $object The object to secure |
|
| 61 | + * @param \stdClass $object The object to secure |
|
| 62 | 62 | * @param array $attributes An array of attributes associated with the method being invoked |
| 63 | 63 | * |
| 64 | 64 | * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | * @see \eZ\Publish\API\Repository\Repository::canUser() |
| 55 | 55 | * |
| 56 | 56 | * @param TokenInterface $token A TokenInterface instance |
| 57 | - * @param object $object The object to secure |
|
| 57 | + * @param \stdClass $object The object to secure |
|
| 58 | 58 | * @param array $attributes An array of attributes associated with the method being invoked |
| 59 | 59 | * |
| 60 | 60 | * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param mixed $route |
|
| 34 | + * @param string $route |
|
| 35 | 35 | */ |
| 36 | 36 | public function setRoute($route) |
| 37 | 37 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * Returns a route parameter. |
| 70 | 70 | * |
| 71 | 71 | * @param string $parameterName |
| 72 | - * @param mixed $defaultValue |
|
| 72 | + * @param string $defaultValue |
|
| 73 | 73 | * @param bool $deep |
| 74 | 74 | * |
| 75 | 75 | * @return mixed |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | return $this->params->get($parameterName, $defaultValue, $deep); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $parameterName |
|
| 84 | + */ |
|
| 82 | 85 | public function has($parameterName) |
| 83 | 86 | { |
| 84 | 87 | return $this->params->has($parameterName); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | - * @param $pathInfo |
|
| 156 | + * @param string $pathInfo |
|
| 157 | 157 | * |
| 158 | 158 | * @return Request |
| 159 | 159 | */ |