@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param $vault_id |
| 93 | 93 | * @param $user_id |
| 94 | 94 | */ |
| 95 | - public function setLastAccess($vault_id, $user_id){ |
|
| 95 | + public function setLastAccess($vault_id, $user_id) { |
|
| 96 | 96 | return $this->vaultMapper->setLastAccess($vault_id, $user_id); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * @param $privateKey |
| 103 | 103 | * @param $publicKey |
| 104 | 104 | */ |
| 105 | - public function updateSharingKeys($vault_id, $privateKey, $publicKey){ |
|
| 105 | + public function updateSharingKeys($vault_id, $privateKey, $publicKey) { |
|
| 106 | 106 | return $this->vaultMapper->updateSharingKeys($vault_id, $privateKey, $publicKey); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | * @param string $vault_guid |
| 112 | 112 | * @param string $user_id |
| 113 | 113 | */ |
| 114 | - public function deleteVault($vault_guid, $user_id){ |
|
| 114 | + public function deleteVault($vault_guid, $user_id) { |
|
| 115 | 115 | $vault = $this->getByGuid($vault_guid, $user_id); |
| 116 | - if($vault instanceof Vault) { |
|
| 116 | + if ($vault instanceof Vault) { |
|
| 117 | 117 | $this->vaultMapper->deleteVault($vault); |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param $vault_id |
| 93 | 93 | * @param $user_id |
| 94 | 94 | */ |
| 95 | - public function setLastAccess($vault_id, $user_id){ |
|
| 95 | + public function setLastAccess($vault_id, $user_id) { |
|
| 96 | 96 | return $this->vaultMapper->setLastAccess($vault_id, $user_id); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * @param $privateKey |
| 103 | 103 | * @param $publicKey |
| 104 | 104 | */ |
| 105 | - public function updateSharingKeys($vault_id, $privateKey, $publicKey){ |
|
| 105 | + public function updateSharingKeys($vault_id, $privateKey, $publicKey) { |
|
| 106 | 106 | return $this->vaultMapper->updateSharingKeys($vault_id, $privateKey, $publicKey); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @param string $vault_guid |
| 112 | 112 | * @param string $user_id |
| 113 | 113 | */ |
| 114 | - public function deleteVault($vault_guid, $user_id){ |
|
| 114 | + public function deleteVault($vault_guid, $user_id) { |
|
| 115 | 115 | $vault = $this->getByGuid($vault_guid, $user_id); |
| 116 | 116 | if($vault instanceof Vault) { |
| 117 | 117 | $this->vaultMapper->deleteVault($vault); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function afterController($controller, $methodName, Response $response) { |
| 19 | - if($response instanceof JSONResponse){ |
|
| 19 | + if($response instanceof JSONResponse) { |
|
| 20 | 20 | $origin = $this->request->server['HTTP_ORIGIN']; |
| 21 | 21 | if($origin) { |
| 22 | 22 | $response->addHeader('Access-Control-Allow-Origin', $origin); |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function afterController($controller, $methodName, Response $response) { |
| 19 | - if($response instanceof JSONResponse){ |
|
| 20 | - if(isset($this->request->server['HTTP_ORIGIN'])) { |
|
| 19 | + if ($response instanceof JSONResponse) { |
|
| 20 | + if (isset($this->request->server['HTTP_ORIGIN'])) { |
|
| 21 | 21 | $response->addHeader('Access-Control-Allow-Origin', $this->request->server['HTTP_ORIGIN']); |
| 22 | 22 | } |
| 23 | 23 | } |