Completed
Push — master ( cee3ea...304e61 )
by Sander
02:37
created
lib/Service/CredentialService.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -81,17 +81,17 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	public function getCredentialById($credential_id, $user_id) {
84
-        $credential = $this->credentialMapper->getCredentialById($credential_id);
85
-        if ($credential->getUserId() === $user_id) {
86
-            return $credential;
87
-        }
88
-        else {
89
-            $acl = $this->sharingACL->getItemACL($user_id, $credential->getGuid());
90
-            if ($acl->hasPermission(SharingACL::READ));
91
-            return $credential;
92
-        }
93
-
94
-        throw new DoesNotExistException("Did expect one result but found none when executing");
84
+		$credential = $this->credentialMapper->getCredentialById($credential_id);
85
+		if ($credential->getUserId() === $user_id) {
86
+			return $credential;
87
+		}
88
+		else {
89
+			$acl = $this->sharingACL->getItemACL($user_id, $credential->getGuid());
90
+			if ($acl->hasPermission(SharingACL::READ));
91
+			return $credential;
92
+		}
93
+
94
+		throw new DoesNotExistException("Did expect one result but found none when executing");
95 95
 	}
96 96
 
97 97
 	/**
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 
104 104
 	public function getCredentialByGUID($credential_guid, $user_id = null){
105
-	    return $this->credentialMapper->getCredentialByGUID($credential_guid, $user_id);
106
-    }
105
+		return $this->credentialMapper->getCredentialByGUID($credential_guid, $user_id);
106
+	}
107 107
 }
108 108
\ No newline at end of file
Please login to merge, or discard this patch.