From a00487b0b841c4b15463b591c7f62176c4b84d15 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Tue, 30 Sep 2014 07:37:32 +0200 Subject: coding style fixes, some PHPStorm inspection fixes, improved readability of code, few refactorings, all as part of our code cleanup strategy --- core/Profiler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/Profiler.php') diff --git a/core/Profiler.php b/core/Profiler.php index 7468b1f5d6..2b92583d89 100644 --- a/core/Profiler.php +++ b/core/Profiler.php @@ -143,7 +143,7 @@ class Profiler { $totalTime = self::getDbElapsedSecs(); $queryCount = Profiler::getQueryCount(); - if($queryCount > 0) { + if ($queryCount > 0) { Log::debug(sprintf("Total queries = %d (total sql time = %.2fs)", $queryCount, $totalTime)); } } @@ -234,7 +234,7 @@ class Profiler $currentGitBranch = SettingsPiwik::getCurrentGitBranch(); $profilerNamespace = "piwik"; - if($currentGitBranch != 'master') { + if ($currentGitBranch != 'master') { $profilerNamespace .= "." . $currentGitBranch; } @@ -326,7 +326,7 @@ class Profiler { $runIds = file_get_contents( self::getPathToXHProfRunIds() ); $array = json_decode($runIds, $assoc = true); - if(!is_array($array)) { + if (!is_array($array)) { $array = array(); } return $array; -- cgit v1.2.3