Completed
Pull Request — master (#515)
by
unknown
05:37
created
controller/credentialcontroller.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -107,15 +107,15 @@
 block discarded – undo
107 107
 
108 108
 
109 109
 		//fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend.
110
-        $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId);
111
-        foreach ($credentials as &$value) {
112
-            if($value->getGuid() == $credential->getGuid()){
113
-                return new JSONResponse($value);
114
-            }
115
-        }
116
-
117
-        //return old value as fallback
118
-        return new JSONResponse($credentials);
110
+		$credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId);
111
+		foreach ($credentials as &$value) {
112
+			if($value->getGuid() == $credential->getGuid()){
113
+				return new JSONResponse($value);
114
+			}
115
+		}
116
+
117
+		//return old value as fallback
118
+		return new JSONResponse($credentials);
119 119
 	}
120 120
 
121 121
 	/**
Please login to merge, or discard this patch.