lib: replace shift my @_ (pt2)

This commit is contained in:
Milan
2023-05-19 18:00:29 +02:00
parent 3a1a118eeb
commit fe857c6f65
32 changed files with 203 additions and 332 deletions

View File

@@ -23,8 +23,7 @@ sub get_columns ($) {
}
sub get ($$) {
my $config = shift;
my $condition = shift;
my ($config, $condition) = @_;
my $dbh = db::connect($config);
@@ -83,8 +82,7 @@ sub insert ($$) {
}
sub delete ($$) {
my $config = shift;
my $condition = shift;
my ($config, $condition) = @_;
my @conditions = ();
my @bind_values = ();
@@ -157,9 +155,7 @@ sub sendToken ($$) {
}
sub changePassword ($$$) {
my $config = shift;
my $request = shift;
my $userName = shift;
my ($config, $request, $userName) = @_;
my $params = $request->{params}->{checked};
my $permissions = $request->{permissions};
@@ -194,7 +190,7 @@ sub changePassword ($$$) {
}
sub isPasswordInvalid($) {
my $password = shift;
my ($password) = @_;
unless ( defined $password || $password eq '' ) {
return "The password must not be empty.";
}