lib: replace shift my @_ (pt2)
This commit is contained in:
@@ -14,7 +14,7 @@ use studio_timeslot_dates();
|
||||
our @EXPORT_OK = qw(get_columns get insert update delete);
|
||||
|
||||
sub get_columns($) {
|
||||
my $config = shift;
|
||||
my ($config) = @_;
|
||||
|
||||
my $dbh = db::connect($config);
|
||||
return db::get_columns_hash( $dbh, 'calcms_studio_timeslot_schedule' );
|
||||
@@ -22,8 +22,7 @@ sub get_columns($) {
|
||||
|
||||
#map schedule id to id
|
||||
sub get($$) {
|
||||
my $config = shift;
|
||||
my $condition = shift;
|
||||
my ($config, $condition) = @_;
|
||||
|
||||
my $dbh = db::connect($config);
|
||||
|
||||
@@ -62,8 +61,7 @@ sub get($$) {
|
||||
}
|
||||
|
||||
sub insert($$) {
|
||||
my $config = shift;
|
||||
my $entry = shift;
|
||||
my ($config, $entry) = @_;
|
||||
|
||||
return unless defined $entry->{project_id};
|
||||
return unless defined $entry->{studio_id};
|
||||
@@ -77,8 +75,7 @@ sub insert($$) {
|
||||
|
||||
#schedule id to id
|
||||
sub update($$) {
|
||||
my $config = shift;
|
||||
my $entry = shift;
|
||||
my ($config, $entry) = @_;
|
||||
|
||||
return unless defined $entry->{project_id};
|
||||
return unless defined $entry->{studio_id};
|
||||
@@ -112,8 +109,7 @@ sub update($$) {
|
||||
|
||||
#map schedule id to id
|
||||
sub delete ($$){
|
||||
my $config = shift;
|
||||
my $entry = shift;
|
||||
my ($config, $entry) = @_;
|
||||
|
||||
return unless defined $entry->{schedule_id};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user