@@ -148,7 +148,7 @@ |
||
| 148 | 148 | * @return mixed |
| 149 | 149 | * @throws \yii\base\InvalidConfigException |
| 150 | 150 | */ |
| 151 | - private function request(string $method, string|array $url, array $data = [], array $headers = []) |
|
| 151 | + private function request(string $method, string | array $url, array $data = [], array $headers = []) |
|
| 152 | 152 | { |
| 153 | 153 | $request = $this->http->createRequest() |
| 154 | 154 | ->setMethod($method) |
@@ -966,7 +966,7 @@ discard block |
||
| 966 | 966 | ]; |
| 967 | 967 | } |
| 968 | 968 | |
| 969 | - return $this->client->post('/v1/sys/namespaces/api-lock/lock'. $path, [], $headers); |
|
| 969 | + return $this->client->post('/v1/sys/namespaces/api-lock/lock' . $path, [], $headers); |
|
| 970 | 970 | } |
| 971 | 971 | |
| 972 | 972 | /** |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | */ |
| 980 | 980 | public function unlockNamespace(string $path = '', array $data = []) |
| 981 | 981 | { |
| 982 | - return $this->client->post('/v1/sys/namespaces/api-lock/unlock'. $path, $data); |
|
| 982 | + return $this->client->post('/v1/sys/namespaces/api-lock/unlock' . $path, $data); |
|
| 983 | 983 | } |
| 984 | 984 | |
| 985 | 985 | /** |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * @see https://developer.hashicorp.com/vault/api-docs/auth/userpass#update-policies-on-user |
| 85 | 85 | * @throws \yii\base\InvalidConfigException |
| 86 | 86 | */ |
| 87 | - public function updateUserPolicies(string $username, array|string $policies) |
|
| 87 | + public function updateUserPolicies(string $username, array | string $policies) |
|
| 88 | 88 | { |
| 89 | 89 | $data = [ |
| 90 | 90 | 'token_policies' => $policies, |