run: composer format

pull/277/head
David Goodwin 5 years ago
parent 03b9483204
commit 8e2e4eb189

@ -1542,7 +1542,6 @@ function db_connect() {
} }
return $link; return $link;
} }
/** /**

@ -217,7 +217,6 @@ class MailboxHandler extends PFAHandler {
protected function beforestore() { protected function beforestore() {
if (isset($this->values['quota']) && $this->values['quota'] != -1) { if (isset($this->values['quota']) && $this->values['quota'] != -1) {
$multiplier = Config::read_string('quota_multiplier'); $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...
@ -276,7 +275,7 @@ class MailboxHandler extends PFAHandler {
public function set($values) { public function set($values) {
// See: https://github.com/postfixadmin/postfixadmin/issues/282 - ensure the 'local_part' does not contain an @ sign. // See: https://github.com/postfixadmin/postfixadmin/issues/282 - ensure the 'local_part' does not contain an @ sign.
$ok = true; $ok = true;
if(isset($values['local_part']) && strpos($values['local_part'], '@')) { if (isset($values['local_part']) && strpos($values['local_part'], '@')) {
$this->errormsg['local_part'] = Config::lang('pCreate_mailbox_local_part_error'); $this->errormsg['local_part'] = Config::lang('pCreate_mailbox_local_part_error');
$ok = false; $ok = false;
} }

@ -189,8 +189,7 @@ $error_text = null;
try { try {
$link = db_connect(); $link = db_connect();
} } catch (Exception $e) {
catch(Exception $e) {
$error_text = $e->getMessage(); $error_text = $e->getMessage();
} }

@ -39,7 +39,6 @@ if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') || $
} }
function sendCodebyEmail($to, $username, $code) { function sendCodebyEmail($to, $username, $code) {
$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; $https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$_SERVER['REQUEST_SCHEME'] = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] : $https; $_SERVER['REQUEST_SCHEME'] = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] : $https;

@ -85,7 +85,6 @@ try {
echo "failed to connect to database\n"; echo "failed to connect to database\n";
echo $e->getMessage(); echo $e->getMessage();
exit(1); exit(1);
} }
require_once(dirname(__FILE__) . '/../public/upgrade.php'); require_once(dirname(__FILE__) . '/../public/upgrade.php');

Loading…
Cancel
Save