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 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param \Model $entry |
| 63 | 63 | * @return bool |
| 64 | 64 | */ |
| 65 | - public function hasAccessToAny(array|string $operation_array, $entry = null) : bool |
|
| 65 | + public function hasAccessToAny(array | string $operation_array, $entry = null) : bool |
|
| 66 | 66 | { |
| 67 | 67 | foreach ((array) $operation_array as $key => $operation) { |
| 68 | 68 | if ($this->hasAccess($operation, $entry) == true) { |
@@ -80,10 +80,10 @@ discard block |
||
| 80 | 80 | * @param \Model $entry |
| 81 | 81 | * @return bool |
| 82 | 82 | */ |
| 83 | - public function hasAccessToAll(array|string $operation_array, $entry = null) : bool |
|
| 83 | + public function hasAccessToAll(array | string $operation_array, $entry = null) : bool |
|
| 84 | 84 | { |
| 85 | 85 | foreach ((array) $operation_array as $key => $operation) { |
| 86 | - if (! $this->hasAccess($operation, $entry)) { |
|
| 86 | + if (!$this->hasAccess($operation, $entry)) { |
|
| 87 | 87 | return false; |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function hasAccessOrFail(string $operation, $entry = null) : bool |
| 104 | 104 | { |
| 105 | - if (! $this->hasAccess($operation, $entry)) { |
|
| 105 | + if (!$this->hasAccess($operation, $entry)) { |
|
| 106 | 106 | throw new AccessDeniedException(trans('backpack::crud.unauthorized_access', ['access' => $operation])); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @param string $operation |
| 117 | 117 | * @return bool|callable|null |
| 118 | 118 | */ |
| 119 | - public function getAccessCondition(string $operation) : bool|callable|null |
|
| 119 | + public function getAccessCondition(string $operation) : bool | callable | null |
|
| 120 | 120 | { |
| 121 | 121 | return $this->get($operation.'.access'); |
| 122 | 122 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @param bool|callable|null $condition |
| 129 | 129 | * @return void |
| 130 | 130 | */ |
| 131 | - public function setAccessCondition(array|string $operation, bool|callable|null $condition) : void |
|
| 131 | + public function setAccessCondition(array | string $operation, bool | callable | null $condition) : void |
|
| 132 | 132 | { |
| 133 | 133 | foreach ((array) $operation as $op) { |
| 134 | 134 | $this->set($op.'.access', $condition); |