@@ -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 |
@@ -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 |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @throws \Exception |
| 280 | 280 | * @return void |
| 281 | 281 | */ |
| 282 | - public function allow(string $role, string $permission, string $resource, bool $status=null) |
|
| 282 | + public function allow(string $role, string $permission, string $resource, bool $status = null) |
|
| 283 | 283 | { |
| 284 | 284 | $status = $status ?? true; |
| 285 | 285 | if (!$this->roleRegistry->exists($role)) { |