You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
tighten psalm checks; fix errors
This commit is contained in:
@ -78,7 +78,6 @@ class PFASmarty {
|
|||||||
if (!is_array($data)) {
|
if (!is_array($data)) {
|
||||||
return htmlentities($data, ENT_QUOTES, 'UTF-8', false);
|
return htmlentities($data, ENT_QUOTES, 'UTF-8', false);
|
||||||
}
|
}
|
||||||
if (is_array($data)) {
|
|
||||||
$clean = array();
|
$clean = array();
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
/* as this is a nested data structure it's more likely we'll output the key too (at least in my opinion, so we'll sanitise it too */
|
/* as this is a nested data structure it's more likely we'll output the key too (at least in my opinion, so we'll sanitise it too */
|
||||||
@ -87,5 +86,4 @@ class PFASmarty {
|
|||||||
return $clean;
|
return $clean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -55,8 +55,6 @@
|
|||||||
<MissingClosureParamType errorLevel="info" />
|
<MissingClosureParamType errorLevel="info" />
|
||||||
<MissingParamType errorLevel="info" />
|
<MissingParamType errorLevel="info" />
|
||||||
|
|
||||||
<RedundantCondition errorLevel="info" />
|
|
||||||
|
|
||||||
<DocblockTypeContradiction errorLevel="info" />
|
<DocblockTypeContradiction errorLevel="info" />
|
||||||
<RedundantConditionGivenDocblockType errorLevel="info" />
|
<RedundantConditionGivenDocblockType errorLevel="info" />
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ if (isset($limit)) {
|
|||||||
|
|
||||||
$gen_show_status_mailbox = array();
|
$gen_show_status_mailbox = array();
|
||||||
$divide_quota = array('current' => array(), 'quota' => array());
|
$divide_quota = array('current' => array(), 'quota' => array());
|
||||||
if ((is_array($tMailbox) and sizeof($tMailbox) > 0)) {
|
|
||||||
for ($i = 0; $i < sizeof($tMailbox); $i++) {
|
for ($i = 0; $i < sizeof($tMailbox); $i++) {
|
||||||
$gen_show_status_mailbox [$i] = gen_show_status($tMailbox[$i]['username']);
|
$gen_show_status_mailbox [$i] = gen_show_status($tMailbox[$i]['username']);
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ if ((is_array($tMailbox) and sizeof($tMailbox) > 0)) {
|
|||||||
$divide_quota ['quota_width'][$i] = 0; # TODO: use special value?
|
$divide_quota ['quota_width'][$i] = 0; # TODO: use special value?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class cNav_bar {
|
class cNav_bar {
|
||||||
|
@ -167,10 +167,7 @@ class PostfixAdmin {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$command = 'help'; # not the worst default ;-)
|
|
||||||
if (isset($this->args[0])) {
|
|
||||||
$command = $this->args[0];
|
$command = $this->args[0];
|
||||||
}
|
|
||||||
|
|
||||||
$this->shellCommand = $command;
|
$this->shellCommand = $command;
|
||||||
$this->shellClass = 'Cli' . ucfirst($command);
|
$this->shellClass = 'Cli' . ucfirst($command);
|
||||||
|
Reference in New Issue
Block a user