cvs: php-gcov-web(SOC06) /cron compile_results.php

From: Date: Sun, 03 Sep 2006 15:55:12 +0000
Subject: cvs: php-gcov-web(SOC06) /cron compile_results.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32292@lists.php.net to get a copy of this message
nlopess Sun Sep 3 15:55:12 2006 UTC Modified files: (Branch: SOC06) /php-gcov-web/cron compile_results.php Log: print a nice message when there are no warnings/errors. and remove more dead code http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/compile_results.php?r1=1.1.2.5&r2=1.1.2.6&diff_format=u Index: php-gcov-web/cron/compile_results.php diff -u php-gcov-web/cron/compile_results.php:1.1.2.5 php-gcov-web/cron/compile_results.php:1.1.2.6 --- php-gcov-web/cron/compile_results.php:1.1.2.5 Fri Sep 1 16:57:03 2006 +++ php-gcov-web/cron/compile_results.php Sun Sep 3 15:55:11 2006 @@ -128,7 +128,9 @@ if($is_master) { $total = $totalnumerrors+$totalnumwarnings; - $index_write .= <<< HTML + if ($total) + { + $index_write .= <<< HTML <p>Number of Errors: {$totalnumerrors}<br /> Number of Warnings: {$totalnumwarnings}<br /> @@ -141,9 +143,9 @@ <td>Number of warnings</td> </tr> HTML; - - $phpdir_len = strlen($phpdir)+1; - $total = 0; + } else { + $index_write = "<p>Congratulations! There are no compiler warnings/errors.</p>\n"; + } } // End check for master server foreach ($stats as $file => $data) @@ -159,8 +161,6 @@ { $short_file = $file; } - - $total += $data[0]; if($is_master) {

« previous php.mirrors (#32292) next »