profiler: Consolidate duplicate branches in ProfilerOutputText
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 31 Mar 2015 18:23:58 +0000 (19:23 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 31 Mar 2015 18:23:58 +0000 (19:23 +0100)
Follows-up 3ca6ab103166c.

Change-Id: I342c68990301a303425c83847406dcf3b308bd27

includes/profiler/output/ProfilerOutputText.php

index d5a7180..6752779 100644 (file)
@@ -69,9 +69,7 @@ class ProfilerOutputText extends ProfilerOutput {
                                } else {
                                        print "<!--\n{$out}\n-->\n";
                                }
-                       } elseif ( $contentType === 'text/javascript' ) {
-                               print "\n/*\n{$out}*/\n";
-                       } elseif ( $contentType === 'text/css' ) {
+                       } elseif ( $contentType === 'text/javascript' || $contentType === 'text/css' ) {
                                print "\n/*\n{$out}*/\n";
                        }
                }