@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * This file is part of the Samshal\Acl library |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * {@inheritdoc} |
| 36 | 36 | */ |
| 37 | - public function __construct(string $roleName, string $roleDescription="") |
|
| 37 | + public function __construct(string $roleName, string $roleDescription = "") |
|
| 38 | 38 | { |
| 39 | 39 | $this->roleName = $roleName; |
| 40 | 40 | $this->roleDescription = $roleDescription; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Adds a new role object to the registry |
| 24 | 24 | * |
| 25 | - * @param string $role |
|
| 25 | + * @param string[] $role |
|
| 26 | 26 | * @return void |
| 27 | 27 | */ |
| 28 | 28 | public function addRole(string ...$role); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Adds a new resource object to the registry |
| 32 | 32 | * |
| 33 | - * @param string $resource |
|
| 33 | + * @param string[] $resource |
|
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | 36 | public function addResource(string ...$resource); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Adds a new permission object to the registry |
| 40 | 40 | * |
| 41 | - * @param string $permission |
|
| 41 | + * @param string[] $permission |
|
| 42 | 42 | * @return void |
| 43 | 43 | */ |
| 44 | 44 | public function addPermission(string ...$permission); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * Automatically determine the type of an object and call the appropriate |
| 50 | 50 | * add method on it. |
| 51 | 51 | * |
| 52 | - * @param ObjectInterface $object |
|
| 52 | + * @param ObjectInterface[] $object |
|
| 53 | 53 | * @throws \Exception |
| 54 | 54 | * @return void |
| 55 | 55 | */ |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * This file is part of the Samshal\Acl library |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * @throws \Exception |
| 66 | 66 | * @return void |
| 67 | 67 | */ |
| 68 | - public function allow(string $role, string $permission, string $resource, bool $status=null); |
|
| 68 | + public function allow(string $role, string $permission, string $resource, bool $status = null); |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Change the status option of an assigned permission to false |