@@ -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 |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * @throws \Exception |
318 | 318 | * @return void |
319 | 319 | */ |
320 | - public function allow(string $role, string $permission, string $resource, bool $status=null) |
|
320 | + public function allow(string $role, string $permission, string $resource, bool $status = null) |
|
321 | 321 | { |
322 | 322 | $status = $status ?? true; |
323 | 323 | if (!$this->roleRegistry->exists($role)) { |