Bug 16717: Improve variable naming

$category was a categorycode, to help the readability it's better to
name it $categorycode or assign a Category to $category

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit f8b73deaec)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 8ebe3a0a42)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Jonathan Druart 2016-06-14 11:18:32 +01:00 committed by Julian Maurice
parent 772cde5e55
commit bcb1ecbb09
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ my $dbh = C4::Context->dbh;
my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode };
my $branch_2 = $builder->build({ source => 'Branch' })->{ branchcode };
my $category = $builder->build({ source => 'Category' })->{categorycode};
my $category = $builder->build({ source => 'Category' });
my $borrowers_count = 5;
@ -60,7 +60,7 @@ foreach (1..$borrowers_count) {
my $borrowernumber = AddMember(
firstname => 'my firstname',
surname => 'my surname ' . $_,
categorycode => $category,
categorycode => $category->{categorycode},
branchcode => $branch_1,
);
push @borrowernumbers, $borrowernumber;