From 823f27b29d9cd03445de79e4a85871109fe140ef Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 22 Mar 2021 09:28:28 +0000 Subject: [PATCH] phpcs wants to change ... --- model/AdminHandler.php | 3 ++- model/AdminpasswordHandler.php | 3 ++- model/AliasHandler.php | 3 ++- model/AliasdomainHandler.php | 3 ++- model/CliDelete.php | 3 ++- model/CliEdit.php | 3 ++- model/CliHelp.php | 3 ++- model/CliScheme.php | 3 ++- model/CliView.php | 3 ++- model/Config.php | 3 ++- model/DomainHandler.php | 3 ++- model/FetchmailHandler.php | 3 ++- model/Login.php | 3 ++- model/MailboxHandler.php | 3 ++- model/PFAHandler.php | 3 ++- model/PFASmarty.php | 3 ++- model/Shell.php | 3 ++- model/VacationHandler.php | 3 ++- public/list-virtual.php | 3 ++- public/xmlrpc.php | 9 ++++++--- scripts/postfixadmin-cli.php | 3 ++- scripts/snippets/crypt.php | 3 ++- scripts/snippets/dovecot_crypt.php | 3 ++- tests/AdminHandlerTest.php | 3 ++- tests/AdminpasswordHandlerTest.php | 3 ++- tests/AliasHandlerTest.php | 3 ++- tests/AliasdomainHandlerTest.php | 3 ++- tests/CheckDomainTest.php | 3 ++- tests/CheckEmailTest.php | 3 ++- tests/CheckLanguageTest.php | 3 ++- tests/CheckOwnerTest.php | 3 ++- tests/ConfigTest.php | 3 ++- tests/CreatePageBrowserTest.php | 3 ++- tests/DbBasicTest.php | 3 ++- tests/DomainHandlerTest.php | 3 ++- tests/FetchmailHandlerTest.php | 3 ++- tests/GeneratePasswordTest.php | 3 ++- tests/GetSiteUrlTest.php | 3 ++- tests/ListAdminsTest.php | 3 ++- tests/ListDomainsForAdminTest.php | 3 ++- tests/ListDomainsTest.php | 3 ++- tests/LoginTest.php | 3 ++- tests/MailboxHandlerTest.php | 3 ++- tests/PacryptTest.php | 3 ++- tests/PasswordValidationCallableTest.php | 3 ++- tests/RemoteAliasTest.php | 3 ++- tests/RemoteTest.php | 3 ++- tests/RemoteUserTest.php | 3 ++- tests/RemoteVacationTest.php | 3 ++- tests/RemoveFromArrayTest.php | 3 ++- tests/ValidatePasswordTest.php | 3 ++- 51 files changed, 106 insertions(+), 53 deletions(-) diff --git a/model/AdminHandler.php b/model/AdminHandler.php index 9a35294f..25b7753e 100644 --- a/model/AdminHandler.php +++ b/model/AdminHandler.php @@ -1,7 +1,8 @@ handle(); -class UserProxy { +class UserProxy +{ /** * @param string $old_password @@ -105,7 +106,8 @@ class UserProxy { } } -class VacationProxy { +class VacationProxy +{ /** * @return boolean true if the vacation is removed successfully. Else false. */ @@ -154,7 +156,8 @@ class VacationProxy { } } -class AliasProxy { +class AliasProxy +{ /** * @return array - array of aliases this user has. Array may be empty. */ diff --git a/scripts/postfixadmin-cli.php b/scripts/postfixadmin-cli.php index 7b609442..2e16ea93 100644 --- a/scripts/postfixadmin-cli.php +++ b/scripts/postfixadmin-cli.php @@ -33,7 +33,8 @@ */ -class PostfixAdmin { +class PostfixAdmin +{ /** * Version * diff --git a/scripts/snippets/crypt.php b/scripts/snippets/crypt.php index 42b77fcd..31876625 100644 --- a/scripts/snippets/crypt.php +++ b/scripts/snippets/crypt.php @@ -1,6 +1,7 @@ assertEquals('', check_domain('example.com')); $this->assertEquals('', check_domain('google.com')); diff --git a/tests/CheckEmailTest.php b/tests/CheckEmailTest.php index c6ad1150..da805709 100644 --- a/tests/CheckEmailTest.php +++ b/tests/CheckEmailTest.php @@ -3,7 +3,8 @@ /** * Obviously relies on working DNS service etc. */ -class CheckEmailTest extends \PHPUnit\Framework\TestCase { +class CheckEmailTest extends \PHPUnit\Framework\TestCase +{ public function testBasic() { $this->assertEquals('', check_email('test@example.com')); $this->assertRegExp('/ not discoverable in DNS/', check_email('test@fishbeansblahblahblah' . uniqid() . '.com')); diff --git a/tests/CheckLanguageTest.php b/tests/CheckLanguageTest.php index 38efcce7..e2e2ff21 100644 --- a/tests/CheckLanguageTest.php +++ b/tests/CheckLanguageTest.php @@ -1,6 +1,7 @@ assertFalse($check, "there should be no entries in test.com as it's an invalid/non-existant domain"); diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 33a84d62..1c3eaea9 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -1,6 +1,7 @@ cleanup(); } diff --git a/tests/DbBasicTest.php b/tests/DbBasicTest.php index c18fb68e..2d020a8c 100644 --- a/tests/DbBasicTest.php +++ b/tests/DbBasicTest.php @@ -1,6 +1,7 @@ getAll(); diff --git a/tests/ListAdminsTest.php b/tests/ListAdminsTest.php index 1d74ae8f..37076e1a 100644 --- a/tests/ListAdminsTest.php +++ b/tests/ListAdminsTest.php @@ -1,6 +1,7 @@ assertEquals([], list_domains_for_admin('test@test.com')); } diff --git a/tests/ListDomainsTest.php b/tests/ListDomainsTest.php index 7e95389a..57978e12 100644 --- a/tests/ListDomainsTest.php +++ b/tests/ListDomainsTest.php @@ -1,6 +1,7 @@ assertTrue($this->user->login($this->username, $this->password)); $this->assertTrue($this->user->changePassword($this->password, 'foobar')); diff --git a/tests/RemoteVacationTest.php b/tests/RemoteVacationTest.php index 3a5f43c3..9de12937 100644 --- a/tests/RemoteVacationTest.php +++ b/tests/RemoteVacationTest.php @@ -7,7 +7,8 @@ require_once('RemoteTest.php'); -class RemoteVacationTest extends RemoteTest { +class RemoteVacationTest extends RemoteTest +{ /** diff --git a/tests/RemoveFromArrayTest.php b/tests/RemoveFromArrayTest.php index 4b614449..096c73f2 100644 --- a/tests/RemoveFromArrayTest.php +++ b/tests/RemoveFromArrayTest.php @@ -1,6 +1,7 @@