Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Nov 10, 2015
1 parent 0e8c20b commit e760975
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/DBIx/Class/QueryLog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ in DBIx::Class:
use DBIx::Class::QueryLog;
use DBIx::Class::QueryLog::Analyzer;
my $schema = ... # Get your schema!
my $ql = DBIx::Class::QueryLog->new;
$schema->storage->debugobj($ql);
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Class/QueryLog/Analyzer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ This is useful for when you've fine-tuned individually slow queries and need
to isolate which queries are executed a lot, so that you can determine which
to focus on next.
To sort it you'll want to use something like this (sorry for the long line,
To sort it you'll want to use something like this (sorry for the long line,
blame perl...):
my $analyzed = $ana->get_totaled_queries;
Expand Down
4 changes: 2 additions & 2 deletions lib/DBIx/Class/QueryLog/Query.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ Time this query took to execute. start - end.
=cut

sub time_elapsed {
my $self = shift;
my $self = shift;

return $self->end_time - $self->start_time;
return $self->end_time - $self->start_time;
}

=head2 count
Expand Down
12 changes: 6 additions & 6 deletions lib/DBIx/Class/QueryLog/Transaction.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ Time this transaction took to execute. start - end.
=cut
sub time_elapsed {
my $self = shift;
my $self = shift;

my $total = 0;
foreach my $q (@{ $self->queries }) {
$total += $q->time_elapsed;
}
my $total = 0;
foreach my $q (@{ $self->queries }) {
$total += $q->time_elapsed;
}

return $total;
return $total;
}

=head2 add_to_queries
Expand Down
7 changes: 2 additions & 5 deletions t/02-analyzer.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ use warnings;

use Test::More;

BEGIN {
use_ok('DBIx::Class::QueryLog');
use_ok('DBIx::Class::QueryLog::Analyzer');
}
require_ok('DBIx::Class::QueryLog::Analyzer');
use DBIx::Class::QueryLog;
use DBIx::Class::QueryLog::Analyzer;

my $time = 0;

Expand Down

0 comments on commit e760975

Please sign in to comment.