Skip to content

Commit 3d6c57c

Browse files
committed
Cleaned up code - some adjustments to selected files
The following adjustments were made: - Files should end with a newline (PHP:S113) - Control structures should use curly braces (PHP:S121) - Sections of code should not be commented out (PHP:S125) - Empty statements should be removed (PHP:S1116) - Lines should not end with trailing whitespaces (PHP:S1131) - Unused function parameters should be removed (PHP:S1172) - Unused local variables should be removed (PHP:S1481) - PHP keywords and constants "true", "false", "null" should be lower case (PHP:S1781) - Method visibility should be explicitly declared (PHP:S1784) - Method arguments with default values should be last (PHP:S1788) - "elseif" keyword should be used in place of "else if" keywords (PHP:S1793) - "require_once" and "include_once" should be used instead of "require" and "include" (PHP:2003) - "&&" and "||" should be used (PHP:S2010) - Jump statements should not be redundant (PHP:S3626)
1 parent ceaf6a2 commit 3d6c57c

17 files changed

Lines changed: 879 additions & 1061 deletions

lib/results/metricsDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
list($gui->tplan_metrics,$gui->show_platforms, $platforms) = getMetrics($db,$_SESSION['currentUser'],$args,$result_cfg, $labels);
3131

3232

33-
if(count($gui->tplan_metrics) > 0)
33+
if(!empty($gui->tplan_metrics))
3434
{
3535
$statusSetForDisplay = $result_cfg['status_label_for_exec_ui'];
3636
$gui->warning_msg = '';

0 commit comments

Comments
 (0)