@@ -76,7 +76,7 @@ |
||
76 | 76 | } elseif ($argsCount == 1) { |
77 | 77 | $rule = $args[0]; |
78 | 78 | } else { |
79 | - throw new InvalidArgumentException(__METHOD__ . ' accepts only one, tow, three or four arguments'); |
|
79 | + throw new InvalidArgumentException(__METHOD__.' accepts only one, tow, three or four arguments'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | if ( |
@@ -17,7 +17,7 @@ |
||
17 | 17 | protected $objects = []; |
18 | 18 | |
19 | 19 | /** |
20 | - * @param Object[] $objects |
|
20 | + * @param \SimpleAcl\BaseObject[] $objects |
|
21 | 21 | */ |
22 | 22 | public function __construct($objects) |
23 | 23 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Return all resources. |
58 | 58 | * |
59 | - * @return array|Resource[] |
|
59 | + * @return \SimpleAcl\BaseObject[] |
|
60 | 60 | */ |
61 | 61 | public function getResources() |
62 | 62 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param Resource|string $resourceName |
80 | 80 | * |
81 | - * @return null|Resource |
|
81 | + * @return \SimpleAcl\BaseObject|null |
|
82 | 82 | */ |
83 | 83 | public function getResource($resourceName) |
84 | 84 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | * |
78 | 78 | * @param Role|string $roleName |
79 | 79 | * |
80 | - * @return null|Role |
|
80 | + * @return \SimpleAcl\BaseObject|null |
|
81 | 81 | */ |
82 | 82 | public function getRole($roleName) |
83 | 83 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | !\is_callable($actionResult) |
153 | 153 | ) { |
154 | 154 | if (null !== $actionResult) { |
155 | - return (bool)$actionResult; |
|
155 | + return (bool) $actionResult; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | return null; |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $actionResult = \call_user_func($this->action, $ruleResult); |
162 | 162 | |
163 | 163 | if (null !== $actionResult) { |
164 | - return (bool)$actionResult; |
|
164 | + return (bool) $actionResult; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | return null; |