diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-07 08:48:38 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-13 18:46:04 +0200 |
commit | eea6f74ca47e94f6b740dbd33d10e22faf4221a5 (patch) | |
tree | 41065c0960957f64daae24850410cd7750262ada /lib/private/Avatar.php | |
parent | c1766b2abc82a21b578824fe24dc38b007163424 (diff) | |
download | nextcloud-server-eea6f74ca47e94f6b740dbd33d10e22faf4221a5.tar.gz nextcloud-server-eea6f74ca47e94f6b740dbd33d10e22faf4221a5.zip |
Controller tests fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Avatar.php')
-rw-r--r-- | lib/private/Avatar.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index 2b0fb3d2663..6858346f22b 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -11,6 +11,7 @@ * @author Robin Appelman <robin@icewind.nl> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Thomas Müller <thomas.mueller@tmit.eu> + * @author John Molakvoæ <skjnldsv@protonmail.com> * * @license AGPL-3.0 * @@ -280,7 +281,7 @@ class Avatar implements IAvatar { * @return string * */ - public function getAvatarVector($size) { + public function getAvatarVector(int $size): string { $userDisplayName = $this->user->getDisplayName(); $bgRGB = $this->avatarBackgroundColor($userDisplayName); @@ -410,7 +411,7 @@ class Avatar implements IAvatar { * @param string $text * @return Color Object containting r g b int in the range [0, 255] */ - public function avatarBackgroundColor($text) { + public function avatarBackgroundColor(string $text) { $hash = preg_replace('/[^0-9a-f]+/', '', $text); $hash = md5($hash); |