Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jan 13, 2016
1 parent 46c2fd6 commit 8eea871
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions plugins/system/debug/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -1744,22 +1744,28 @@ protected function displayLogs()
JLog::DEBUG => '<span class="badge">DEBUG</span>'
);

$logEntriesDeprecated = count(array_filter($this->logEntries, function($logEntry)
{
return $logEntry->category == 'deprecated';
}
));
$logEntriesDeprecated = count(
array_filter(
$this->logEntries, function($logEntry)
{
return $logEntry->category == 'deprecated';
}
)
);

$logEntriesTotal = count($this->logEntries);

$showExecutedSQL = $this->params->get('log_executed_sql', 0);
if (!$showExecutedSQL)
{
$logEntriesDatabasequery = count(array_filter($this->logEntries, function($logEntry)
{
return $logEntry->category == 'databasequery';
}
));
$logEntriesDatabasequery = count(
array_filter(
$this->logEntries, function($logEntry)
{
return $logEntry->category == 'databasequery';
}
)
);
$logEntriesTotal = $logEntriesTotal - $logEntriesDatabasequery;
}

Expand Down

0 comments on commit 8eea871

Please sign in to comment.