We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @param string|array $operation |
| 13 | 13 | * @return bool |
| 14 | 14 | */ |
| 15 | - public function allowAccess(array|string $operation): bool |
|
| 15 | + public function allowAccess(array | string $operation): bool |
|
| 16 | 16 | { |
| 17 | 17 | foreach ((array) $operation as $op) { |
| 18 | 18 | $this->set($op.'.access', true); |
@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | * @param string|array $operation [description] |
| 28 | 28 | * @return [type] [description] |
| 29 | 29 | */ |
| 30 | - public function denyAccess(array|string $operation) |
|
| 30 | + public function denyAccess(array | string $operation) |
|
| 31 | 31 | { |
| 32 | 32 | foreach ((array) $operation as $op) { |
| 33 | 33 | $this->set($op.'.access', false); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - return ! $this->hasAccessToAny($operation); |
|
| 36 | + return !$this->hasAccessToAny($operation); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * @param \Model $entry |
| 64 | 64 | * @return bool |
| 65 | 65 | */ |
| 66 | - public function hasAccessToAny(array|string $operation_array, $entry = null): bool |
|
| 66 | + public function hasAccessToAny(array | string $operation_array, $entry = null): bool |
|
| 67 | 67 | { |
| 68 | 68 | foreach ((array) $operation_array as $key => $operation) { |
| 69 | 69 | if ($this->hasAccess($operation, $entry) == true) { |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | * @param \Model $entry |
| 82 | 82 | * @return bool |
| 83 | 83 | */ |
| 84 | - public function hasAccessToAll(array|string $operation_array, $entry = null): bool |
|
| 84 | + public function hasAccessToAll(array | string $operation_array, $entry = null): bool |
|
| 85 | 85 | { |
| 86 | 86 | foreach ((array) $operation_array as $key => $operation) { |
| 87 | - if (! $this->hasAccess($operation, $entry)) { |
|
| 87 | + if (!$this->hasAccess($operation, $entry)) { |
|
| 88 | 88 | return false; |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public function hasAccessOrFail(string $operation, $entry = null): bool |
| 105 | 105 | { |
| 106 | - if (! $this->hasAccess($operation, $entry)) { |
|
| 106 | + if (!$this->hasAccess($operation, $entry)) { |
|
| 107 | 107 | throw new AccessDeniedException(trans('backpack::crud.unauthorized_access', ['access' => $operation])); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * @param string $operation |
| 118 | 118 | * @return bool|callable|null |
| 119 | 119 | */ |
| 120 | - public function getAccessCondition(string $operation): bool|callable|null |
|
| 120 | + public function getAccessCondition(string $operation): bool | callable | null |
|
| 121 | 121 | { |
| 122 | 122 | return $this->get($operation.'.access'); |
| 123 | 123 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * @param bool|callable|null $condition |
| 130 | 130 | * @return void |
| 131 | 131 | */ |
| 132 | - public function setAccessCondition(array|string $operation, bool|callable|null $condition): void |
|
| 132 | + public function setAccessCondition(array | string $operation, bool | callable | null $condition): void |
|
| 133 | 133 | { |
| 134 | 134 | foreach ((array) $operation as $op) { |
| 135 | 135 | $this->set($op.'.access', $condition); |