From d8298b17005142f232757424ffd3a71c18d8ccae Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Thu, 11 Jun 2015 12:27:28 +0300 Subject: [PATCH] Made comparisons strict --- src/class-laps.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class-laps.php b/src/class-laps.php index faf7f22..5216749 100644 --- a/src/class-laps.php +++ b/src/class-laps.php @@ -230,7 +230,7 @@ class Laps { $width = round( $duration / $total * 100, 2 ); $category = $event->getCategory(); - if ( 'http' == $category ) { + if ( 'http' === $category ) { $http_data[] = compact( 'name', 'offset', 'duration', 'width', 'category' ); continue; } @@ -256,7 +256,7 @@ class Laps { $offset = round( ( $query_start - $start ) / $total * 100, 2 ); // if query is indistinguishably close to previous then stack it - if ( $offset == $last_offset ) { + if ( $offset === $last_offset ) { $key = count( $query_data ) - 1; $query_data[ $key ]['sql'] .= '
' . $sql;