summaryrefslogtreecommitdiffstats
path: root/lib/private/avatar.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-22 12:34:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-22 12:34:37 +0100
commit92c8672c0f4cae5881abdb4832955e3fa6ae6350 (patch)
treec65528084d9de9dc57ddb928c74a657e770d0565 /lib/private/avatar.php
parentf94a6eb1669cbdae45ccd76ecc4c07988ecddecf (diff)
downloadnextcloud-server-92c8672c0f4cae5881abdb4832955e3fa6ae6350.tar.gz
nextcloud-server-92c8672c0f4cae5881abdb4832955e3fa6ae6350.zip
fixing PHPDoc comments and syntax
Diffstat (limited to 'lib/private/avatar.php')
-rw-r--r--lib/private/avatar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php
index e82e517b091..814a9b22bed 100644
--- a/lib/private/avatar.php
+++ b/lib/private/avatar.php
@@ -54,7 +54,9 @@ class OC_Avatar implements \OCP\IAvatar {
$img = new OC_Image($data);
$type = substr($img->mimeType(), -3);
- if ($type === 'peg') { $type = 'jpg'; }
+ if ($type === 'peg') {
+ $type = 'jpg';
+ }
if ($type !== 'jpg' && $type !== 'png') {
$l = \OC_L10N::get('lib');
throw new \Exception($l->t("Unknown filetype"));