mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
bumping php-cs-fixer; formatting rules change slightly
This commit is contained in:
parent
3472897527
commit
b18ed591a2
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
// vim:ts=4:sw=4:et
|
||||
ini_set('include_path', get_include_path() . ':' . dirname(__FILE__));
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__) . '/common.php');
|
||||
|
||||
$xmlrpc = get_xmlrpc();
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
// vim:ts=4:sw=4:et
|
||||
if (!defined('SM_PATH')) {
|
||||
die("Invalid internal state (don't access file directly)");
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
//
|
||||
// Postfix Admin
|
||||
// by Mischa Peters <mischa at high5 dot net>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
class AdminHandler extends PFAHandler {
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
class AdminpasswordHandler extends PFAHandler {
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
/**
|
||||
* class to handle 'delete' in Cli
|
||||
*/
|
||||
|
||||
class CliDelete extends Shell {
|
||||
|
||||
/**
|
||||
* Execution method always used for tasks
|
||||
*/
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
class CliHelp extends Shell {
|
||||
@ -14,7 +15,7 @@ class CliHelp extends Shell {
|
||||
}
|
||||
|
||||
public function help() {
|
||||
$handler = new $this->handler_to_use;
|
||||
$handler = new $this->handler_to_use();
|
||||
# TODO: adjust help text according to $handler->taskNames
|
||||
|
||||
$module = preg_replace('/Handler$/', '', $this->handler_to_use);
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
/**
|
||||
* class to display the database scheme (for usage in upgrade.php) in Cli
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
/**
|
||||
* class to handle 'view' in Cli
|
||||
*/
|
||||
|
||||
class CliView extends Shell {
|
||||
|
||||
/**
|
||||
* Execution method always used for tasks
|
||||
*/
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
# This class is too static - if you inherit a class from it, it will share the static $instance and all its contents
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
abstract class PFAHandler {
|
||||
|
||||
abstract class PFAHandler {
|
||||
/**
|
||||
* public variables
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
# $Id$
|
||||
|
||||
class VacationHandler extends PFAHandler {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -1,2 +1,3 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__) . '/../common.php');
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
//
|
||||
// File: index.php
|
||||
//
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php /**
|
||||
<?php
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
* LICENSE
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||
|
||||
# Note: run with upgrade.php?debug=1 to see all SQL error messages
|
||||
|
@ -66,7 +66,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$error = true;
|
||||
flash_error(Config::lang('pPassword_password_text_error'));
|
||||
} else {
|
||||
$handler = $context === 'admin' ? new AdminHandler : new MailboxHandler;
|
||||
$handler = $context === 'admin' ? new AdminHandler() : new MailboxHandler();
|
||||
if (!$handler->checkPasswordRecoveryCode($tUsername, $tCode)) {
|
||||
flash_error(Config::lang('pPassword_code_text_error'));
|
||||
} else {
|
||||
|
@ -67,7 +67,6 @@ echo $server->handle();
|
||||
|
||||
|
||||
class UserProxy {
|
||||
|
||||
/**
|
||||
* @param string $old_password
|
||||
* @param string $new_password
|
||||
|
@ -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)
|
||||
|
||||
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)) {
|
||||
$this->shiftArgs();
|
||||
$shell->startup();
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Crypt {
|
||||
|
||||
/**
|
||||
* @access private
|
||||
*/
|
||||
|
@ -8,8 +8,6 @@
|
||||
require_once('RemoteTest.php');
|
||||
|
||||
class RemoteVacationTest extends RemoteTest {
|
||||
|
||||
|
||||
/**
|
||||
* Adds the test recipient data to the database.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user