From 61cce2e700684e39e5e9ccdacf4b885547238a9b Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Fri, 21 Aug 2020 06:46:00 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/comm/action/index.php | 5 ++--- htdocs/user/class/user.class.php | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index e5ab1c02902..dafd9c4aecf 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -1062,13 +1062,12 @@ if (count($listofextcals)) $event->ref = $event->id; $userId = $userstatic->findUserIdByEmail($namecal); - if(!empty($userId)) + if (!empty($userId)) { $event->userassigned[$userId] = $userId; $event->percentage = -1; } - else - { + else { $event->type_code = "ICALEVENT"; } diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 6d278e635fa..4d250c02fb7 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -3248,12 +3248,12 @@ class User extends CommonObject /** * Find a user by the given e-mail or part of a e-mail and return its user id when found * - * @param string $email The full e-mail or a part of a e-mail + * @param string $email The full e-mail or a part of a e-mail * @return int|null The id of the user when found, otherwise null */ public function findUserIdByEmail($email) { - if($this->findUserIdByEmailCache[$email]) + if ($this->findUserIdByEmailCache[$email]) { return $this->findUserIdByEmailCache[$email]; } @@ -3274,8 +3274,8 @@ class User extends CommonObject return 0; } - $this->findUserIdByEmailCache[$email] = (int)$obj->rowid; + $this->findUserIdByEmailCache[$email] = (int) $obj->rowid; - return (int)$obj->rowid; + return (int) $obj->rowid; } }