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

bumping php-cs-fixer; formatting rules change slightly

This commit is contained in:
David Goodwin
2022-06-28 13:31:37 +01:00
parent 3472897527
commit b18ed591a2
38 changed files with 76 additions and 61 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
// vim:ts=4:sw=4:et // vim:ts=4:sw=4:et
ini_set('include_path', get_include_path() . ':' . dirname(__FILE__)); ini_set('include_path', get_include_path() . ':' . dirname(__FILE__));

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once(dirname(__FILE__) . '/common.php'); require_once(dirname(__FILE__) . '/common.php');
$xmlrpc = get_xmlrpc(); $xmlrpc = get_xmlrpc();

View File

@@ -1,4 +1,5 @@
<?php <?php
// vim:ts=4:sw=4:et // vim:ts=4:sw=4:et
if (!defined('SM_PATH')) { if (!defined('SM_PATH')) {
die("Invalid internal state (don't access file directly)"); die("Invalid internal state (don't access file directly)");

View File

@@ -1,4 +1,5 @@
<?php <?php
// //
// Postfix Admin // Postfix Admin
// by Mischa Peters <mischa at high5 dot net> // by Mischa Peters <mischa at high5 dot net>

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
class AdminHandler extends PFAHandler { class AdminHandler extends PFAHandler {

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
class AdminpasswordHandler extends PFAHandler { class AdminpasswordHandler extends PFAHandler {

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,11 +1,11 @@
<?php <?php
# $Id$ # $Id$
/** /**
* class to handle 'delete' in Cli * class to handle 'delete' in Cli
*/ */
class CliDelete extends Shell { class CliDelete extends Shell {
/** /**
* Execution method always used for tasks * Execution method always used for tasks
*/ */

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
class CliHelp extends Shell { class CliHelp extends Shell {
@@ -14,7 +15,7 @@ class CliHelp extends Shell {
} }
public function help() { public function help() {
$handler = new $this->handler_to_use; $handler = new $this->handler_to_use();
# TODO: adjust help text according to $handler->taskNames # TODO: adjust help text according to $handler->taskNames
$module = preg_replace('/Handler$/', '', $this->handler_to_use); $module = preg_replace('/Handler$/', '', $this->handler_to_use);

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**
* class to display the database scheme (for usage in upgrade.php) in Cli * class to display the database scheme (for usage in upgrade.php) in Cli

View File

@@ -1,11 +1,11 @@
<?php <?php
# $Id$ # $Id$
/** /**
* class to handle 'view' in Cli * class to handle 'view' in Cli
*/ */
class CliView extends Shell { class CliView extends Shell {
/** /**
* Execution method always used for tasks * Execution method always used for tasks
*/ */

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
# This class is too static - if you inherit a class from it, it will share the static $instance and all its contents # This class is too static - if you inherit a class from it, it will share the static $instance and all its contents

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,4 +1,5 @@
<?php <?php
# $Id$ # $Id$
/** /**

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PFAHandler {
abstract class PFAHandler {
/** /**
* public variables * public variables
*/ */

View File

@@ -1,8 +1,8 @@
<?php <?php
# $Id$ # $Id$
class VacationHandler extends PFAHandler { class VacationHandler extends PFAHandler {
/** /**
* @var string * @var string
*/ */

View File

@@ -1,2 +1,3 @@
<?php <?php
require_once(dirname(__FILE__) . '/../common.php'); require_once(dirname(__FILE__) . '/../common.php');

View File

@@ -1,4 +1,5 @@
<?php <?php
// //
// File: index.php // File: index.php
// //

View File

@@ -1,4 +1,5 @@
<?php /** <?php
/**
* Postfix Admin * Postfix Admin
* *
* LICENSE * LICENSE

View File

@@ -1,4 +1,5 @@
<?php <?php
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
# Note: run with upgrade.php?debug=1 to see all SQL error messages # Note: run with upgrade.php?debug=1 to see all SQL error messages

View File

@@ -66,7 +66,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$error = true; $error = true;
flash_error(Config::lang('pPassword_password_text_error')); flash_error(Config::lang('pPassword_password_text_error'));
} else { } else {
$handler = $context === 'admin' ? new AdminHandler : new MailboxHandler; $handler = $context === 'admin' ? new AdminHandler() : new MailboxHandler();
if (!$handler->checkPasswordRecoveryCode($tUsername, $tCode)) { if (!$handler->checkPasswordRecoveryCode($tUsername, $tCode)) {
flash_error(Config::lang('pPassword_code_text_error')); flash_error(Config::lang('pPassword_code_text_error'));
} else { } else {

View File

@@ -67,7 +67,6 @@ echo $server->handle();
class UserProxy { class UserProxy {
/** /**
* @param string $old_password * @param string $old_password
* @param string $new_password * @param string $new_password

View File

@@ -203,7 +203,7 @@ class PostfixAdmin {
# TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password) # TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password)
if (strtolower(get_parent_class($shell)) == 'shell') { if (strtolower(get_parent_class($shell)) == 'shell') {
$handler = new $shell->handler_to_use; $handler = new $shell->handler_to_use();
if (in_array($task, $handler->taskNames)) { if (in_array($task, $handler->taskNames)) {
$this->shiftArgs(); $this->shiftArgs();
$shell->startup(); $shell->startup();

View File

@@ -1,7 +1,6 @@
<?php <?php
class Crypt { class Crypt {
/** /**
* @access private * @access private
*/ */

View File

@@ -8,8 +8,6 @@
require_once('RemoteTest.php'); require_once('RemoteTest.php');
class RemoteVacationTest extends RemoteTest { class RemoteVacationTest extends RemoteTest {
/** /**
* Adds the test recipient data to the database. * Adds the test recipient data to the database.
*/ */