@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @param string $permission |
| 147 | 147 | * @param string[] $args |
| 148 | 148 | * @throws \Exception |
| 149 | - * @return void |
|
| 149 | + * @return boolean|null |
|
| 150 | 150 | */ |
| 151 | 151 | public function __call(string $permission, array $args) |
| 152 | 152 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | /** |
| 195 | 195 | * Add a new role object to the registry |
| 196 | 196 | * |
| 197 | - * @param string $role |
|
| 197 | + * @param string[] $role |
|
| 198 | 198 | * @return void |
| 199 | 199 | */ |
| 200 | 200 | public function addRole(string ...$role) |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | /** |
| 209 | 209 | * Add a new resource object to the registry |
| 210 | 210 | * |
| 211 | - * @param string $resource |
|
| 211 | + * @param string[] $resource |
|
| 212 | 212 | * @return void |
| 213 | 213 | */ |
| 214 | 214 | public function addResource(string ...$resource) |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * Automatically determine the type of an object and call the appropriate |
| 240 | 240 | * add method on it. |
| 241 | 241 | * |
| 242 | - * @param ObjectInterface $object |
|
| 242 | + * @param ObjectInterface $objects |
|
| 243 | 243 | * @throws \Exception |
| 244 | 244 | * @return void |
| 245 | 245 | */ |
@@ -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 |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | * @throws \Exception |
| 282 | 282 | * @return void |
| 283 | 283 | */ |
| 284 | - public function allow(string $role, string $permission, string $resource, bool $status=true) |
|
| 284 | + public function allow(string $role, string $permission, string $resource, bool $status = true) |
|
| 285 | 285 | { |
| 286 | 286 | if (!$this->roleRegistry->exists($role)) { |
| 287 | 287 | throw new \Exception( |
@@ -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=true); |
|
| 68 | + public function allow(string $role, string $permission, string $resource, bool $status = true); |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Change the status option of an assigned permission to false |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |
@@ -1,4 +1,4 @@ |
||
| 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 |