From 045a19ae334972935cd96141949f9c4199c036c1 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 27 Feb 2019 14:40:22 +0000 Subject: [PATCH] re-format --- model/MailboxHandler.php | 4 ++-- model/PFAHandler.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/model/MailboxHandler.php b/model/MailboxHandler.php index ad596e78..d919592d 100644 --- a/model/MailboxHandler.php +++ b/model/MailboxHandler.php @@ -219,7 +219,7 @@ class MailboxHandler extends PFAHandler { protected function beforestore() { if (isset($this->values['quota']) && $this->values['quota'] != -1) { $multiplier = Config::read_string('quota_multiplier'); - if($multiplier == 0) { // or empty string, or null, or false... + if ($multiplier == 0) { // or empty string, or null, or false... $multiplier = 1; } $this->values['quota'] = $this->values['quota'] * $multiplier; # convert quota from MB to bytes @@ -257,7 +257,7 @@ class MailboxHandler extends PFAHandler { if (Config::bool('password_expiration')) { - if(!empty($this->values['password']) && !empty($this->values['password2']) && $this->values['password'] == $this->values['password2']) { + if (!empty($this->values['password']) && !empty($this->values['password2']) && $this->values['password'] == $this->values['password2']) { $domain_dirty = $this->domain_from_id(); $domain = trim($domain_dirty, "`'"); // naive assumption it is ' escaping. $password_expiration_value = (int)get_password_expiration_value($domain); diff --git a/model/PFAHandler.php b/model/PFAHandler.php index ad81b2c0..49da96e2 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -559,8 +559,7 @@ abstract class PFAHandler { } else { $result = db_update($this->db_table, $this->id_field, $this->id, $db_values, array('created', 'modified'), true); } - } - catch(PDOException $e) { + } catch (PDOException $e) { $this->errormsg[] = Config::lang_f($this->msg['store_error'], $this->label); return false; }