diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-07-05 20:43:18 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 00:19:20 +0200 |
commit | 37722eca39874bb6abdcd120e3e458bd62dea62b (patch) | |
tree | 57a9a9970c00ec77baecab7e154ef7dfcef863fe /Bugzilla/Keyword.pm | |
parent | a6f98de0d4e842351222b0173a1fff151da8738e (diff) | |
download | bugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.gz bugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.xz |
Bug 1377933 - Remove trailing whitespace from all perl files
Diffstat (limited to 'Bugzilla/Keyword.pm')
-rw-r--r-- | Bugzilla/Keyword.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Bugzilla/Keyword.pm b/Bugzilla/Keyword.pm index d65e0b942..61038f602 100644 --- a/Bugzilla/Keyword.pm +++ b/Bugzilla/Keyword.pm @@ -54,7 +54,7 @@ sub bug_count { return $self->{'bug_count'} if defined $self->{'bug_count'}; ($self->{'bug_count'}) = Bugzilla->dbh->selectrow_array( - 'SELECT COUNT(*) FROM keywords WHERE keywordid = ?', + 'SELECT COUNT(*) FROM keywords WHERE keywordid = ?', undef, $self->id); return $self->{'bug_count'}; } @@ -75,7 +75,7 @@ sub get_all_with_bug_count { my $class = shift; my $dbh = Bugzilla->dbh; my $keywords = - $dbh->selectall_arrayref('SELECT ' + $dbh->selectall_arrayref('SELECT ' . join(', ', $class->_get_db_columns) . ', COUNT(keywords.bug_id) AS bug_count FROM keyworddefs @@ -88,7 +88,7 @@ sub get_all_with_bug_count { if (!$keywords) { return []; } - + foreach my $keyword (@$keywords) { bless($keyword, $class); } @@ -153,7 +153,7 @@ Bugzilla::Keyword - A Keyword that can be added to a bug. Bugzilla::Keyword represents a keyword that can be added to a bug. -This implements all standard C<Bugzilla::Object> methods. See +This implements all standard C<Bugzilla::Object> methods. See L<Bugzilla::Object> for more details. =head1 METHODS @@ -164,7 +164,7 @@ implements. =over -=item C<get_all_with_bug_count()> +=item C<get_all_with_bug_count()> Description: Returns all defined keywords. This is an efficient way to get the associated bug counts, as only one SQL query |