Completed
Pull Request — master (#520)
by Marcos
08:47
created
controller/credentialcontroller.php 1 patch
Braces   +3 added lines, -3 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
         }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         //fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend.
274 274
         $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId);
275 275
         foreach ($credentials as &$value) {
276
-            if($value->getGuid() == $credential->getGuid()){
276
+            if($value->getGuid() == $credential->getGuid()) {
277 277
                 return new JSONResponse($value);
278 278
             }
279 279
         }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 		$this->sharingService->unshareCredential($credential->getGuid());
315 315
 		foreach ($this->credentialRevisionService->getRevisions($credential->getId()) as $revision) {
316 316
 				$id = $revision['revision_id'];
317
-				if(isset($id)){
317
+				if(isset($id)) {
318 318
 					$this->credentialRevisionService->deleteRevision($id, $this->userId);
319 319
 				}
320 320
 		}
Please login to merge, or discard this patch.