Completed
Push — master ( 0f80c8...3e88ff )
by Sander
13s
created
lib/Db/CredentialMapper.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -73,20 +73,20 @@  discard block
 block discarded – undo
73 73
 		return $this->findEntities($sql, [$timestamp]);
74 74
 	}
75 75
 
76
-    /**
76
+	/**
77 77
 	 * Get an credential by id.
78 78
 	 * Optional user id
79
-     * @param $credential_id
80
-     * @param null $user_id
81
-     * @return Credential
82
-     */
79
+	 * @param $credential_id
80
+	 * @param null $user_id
81
+	 * @return Credential
82
+	 */
83 83
 	public function getCredentialById($credential_id, $user_id = null){
84 84
 		$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
85 85
 			'WHERE `id` = ?';
86
-        // If we want to check the owner, add it to the query
86
+		// If we want to check the owner, add it to the query
87 87
 		$params = [$credential_id];
88
-        if ($user_id !== null){
89
-        	$sql .= ' and `user_id` = ? ';
88
+		if ($user_id !== null){
89
+			$sql .= ' and `user_id` = ? ';
90 90
 			array_push($params, $user_id);
91 91
 		}
92 92
 		return $this->findEntity($sql,$params);
@@ -176,18 +176,18 @@  discard block
 block discarded – undo
176 176
 		$this->update($credential);
177 177
 	}
178 178
 
179
-    /**
180
-     * Finds a credential by the given guid
181
-     * @param $credential_guid
182
-     * @return Credential
183
-     */
179
+	/**
180
+	 * Finds a credential by the given guid
181
+	 * @param $credential_guid
182
+	 * @return Credential
183
+	 */
184 184
 	public function getCredentialByGUID($credential_guid, $user_id = null){
185
-	    $q = 'SELECT * FROM `*PREFIX*passman_credentials` WHERE guid = ? ';
185
+		$q = 'SELECT * FROM `*PREFIX*passman_credentials` WHERE guid = ? ';
186 186
 		$params = [$credential_guid];
187 187
 		if ($user_id !== null){
188 188
 			$q .= ' and `user_id` = ? ';
189 189
 			array_push($params, $user_id);
190 190
 		}
191
-        return $this->findEntity($q, $params);
192
-    }
191
+		return $this->findEntity($q, $params);
192
+	}
193 193
 }
194 194
\ No newline at end of file
Please login to merge, or discard this patch.