@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * Check owing Role & Resource (and their children) and match its with $roleName & $resourceName; |
| 189 | 189 | * if match was found depending on action allow or deny access to $resourceName for $roleName. |
| 190 | 190 | * |
| 191 | - * @param $needRuleName |
|
| 191 | + * @param string $needRuleName |
|
| 192 | 192 | * @param string $needRoleName |
| 193 | 193 | * @param string $needResourceName |
| 194 | 194 | * |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | /** |
| 342 | 342 | * Creates an id for rule. |
| 343 | 343 | * |
| 344 | - * @return string |
|
| 344 | + * @return integer |
|
| 345 | 345 | */ |
| 346 | 346 | protected function generateId() |
| 347 | 347 | { |
@@ -49,8 +49,8 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * @param Rule $rule |
| 51 | 51 | * @param int $priority |
| 52 | - * @param $needRoleName |
|
| 53 | - * @param $needResourceName |
|
| 52 | + * @param string $needRoleName |
|
| 53 | + * @param string $needResourceName |
|
| 54 | 54 | */ |
| 55 | 55 | public function __construct(Rule $rule, $priority, $needRoleName, $needResourceName) |
| 56 | 56 | { |
@@ -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 ( |