diff --git a/functions.inc.php b/functions.inc.php index 35b4dbe3..16b0d8c6 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -353,7 +353,7 @@ function escape_string($string_or_int) { * * @param string $param parameter name. * @param string|array $default (optional) - default value if key is not set. - * @return string|array + * @return string|array */ function safeget($param, $default = "") { $retval = $default; diff --git a/model/AliasHandler.php b/model/AliasHandler.php index 716ea745..b52c835f 100644 --- a/model/AliasHandler.php +++ b/model/AliasHandler.php @@ -5,7 +5,6 @@ * Handlers User level alias actions - e.g. add alias, get aliases, update etc. */ class AliasHandler extends PFAHandler { - protected $db_table = 'alias'; protected $id_field = 'address'; protected $domain_field = 'domain'; diff --git a/public/list.php b/public/list.php index 7e2d0900..030da1ba 100644 --- a/public/list.php +++ b/public/list.php @@ -23,7 +23,7 @@ $username = authentication_get_username(); # enforce login $table = safeget('table'); -if(!is_string($table)) { +if (!is_string($table)) { die("table parameter must be a string"); } $handlerclass = ucfirst($table) . 'Handler'; diff --git a/scripts/snippets/crypt.php b/scripts/snippets/crypt.php index 3cec06c1..42b77fcd 100644 --- a/scripts/snippets/crypt.php +++ b/scripts/snippets/crypt.php @@ -20,7 +20,7 @@ class Crypt { } /** - * @return bool + * @return bool */ public function crypt($algorithm) { return true;