Completed
Pull Request — master (#515)
by
unknown
05:37
created
controller/credentialcontroller.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		//fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend.
110 110
         $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId);
111 111
         foreach ($credentials as &$value) {
112
-            if($value->getGuid() == $credential->getGuid()){
112
+            if($value->getGuid() == $credential->getGuid()) {
113 113
                 return new JSONResponse($value);
114 114
             }
115 115
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 		$this->sharingService->unshareCredential($credential->getGuid());
305 305
 		foreach ($this->credentialRevisionService->getRevisions($credential->getId()) as $revision) {
306 306
 				$id = $revision['revision_id'];
307
-				if(isset($id)){
307
+				if(isset($id)) {
308 308
 					$this->credentialRevisionService->deleteRevision($id, $this->userId);
309 309
 				}
310 310
 		}
Please login to merge, or discard this patch.