1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-07 17:42:53 +03:00

composer format time

This commit is contained in:
David Goodwin
2020-08-13 15:27:47 +01:00
parent 5bd5bdc25b
commit 12f68a6e3a
3 changed files with 7 additions and 15 deletions

View File

@@ -401,7 +401,7 @@ class AliasHandler extends PFAHandler {
$errors[] = "$singlegoto: $email_check";
}
}
if($this->called_by != "MailboxHandler" && $this->id == $singlegoto) {
if ($this->called_by != "MailboxHandler" && $this->id == $singlegoto) {
// The MailboxHandler needs to create an alias that points to itself (for the mailbox)
// Otherwise, disallow such aliases as they cause severe trouble in the mail system
$errors[] = "$singlegoto: " . Config::Lang('alias_points_to_itself');

View File

@@ -12,8 +12,6 @@ class AdminHandlerTest extends \PHPUnit\Framework\TestCase {
$this->assertEmpty($results);
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */

View File

@@ -1,9 +1,7 @@
<?php
class AliasHandlerTest extends \PHPUnit\Framework\TestCase
{
public function testBasic()
{
class AliasHandlerTest extends \PHPUnit\Framework\TestCase {
public function testBasic() {
$x = new AliasHandler();
$list = $x->getList("");
$this->assertTrue($list);
@@ -11,8 +9,7 @@ class AliasHandlerTest extends \PHPUnit\Framework\TestCase
$this->assertEmpty($results);
}
public function tearDown(): void
{
public function tearDown(): void {
$_SESSION = [];
db_query('DELETE FROM alias');
db_query('DELETE FROM domain_admins');
@@ -21,8 +18,7 @@ class AliasHandlerTest extends \PHPUnit\Framework\TestCase
parent::tearDown();
}
public function testCannotAddAliasUntilDomainIsThere()
{
public function testCannotAddAliasUntilDomainIsThere() {
// Fake us being an admin.
@@ -56,8 +52,7 @@ class AliasHandlerTest extends \PHPUnit\Framework\TestCase
/**
* @see https://github.com/postfixadmin/postfixadmin/pull/375 and https://github.com/postfixadmin/postfixadmin/issues/358
*/
public function testCannotAddAliasThatPointsToItself()
{
public function testCannotAddAliasThatPointsToItself() {
// Fake being an admin.
$_SESSION = [
'sessid' => [
@@ -140,8 +135,7 @@ class AliasHandlerTest extends \PHPUnit\Framework\TestCase
], $x->errormsg);
}
public function testAddingDataEtc()
{
public function testAddingDataEtc() {
// Fake being an admin.
$_SESSION = [
'sessid' => [