cvs: pear /Benchmark Profiler.php
| From: | Matthias Englert | Date: | Tue, 27 Aug 2002 17:22:35 +0000 |
| Subject: | cvs: pear /Benchmark Profiler.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-6018@lists.php.net to get a copy of this message | ||
matthias Tue Aug 27 13:22:35 2002 EDT
Modified files:
/pear/Benchmark Profiler.php
Log:
better fit to coding standards
Index: pear/Benchmark/Profiler.php
diff -u pear/Benchmark/Profiler.php:1.2 pear/Benchmark/Profiler.php:1.3
--- pear/Benchmark/Profiler.php:1.2 Tue Aug 27 11:25:34 2002
+++ pear/Benchmark/Profiler.php Tue Aug 27 13:22:34 2002
@@ -17,7 +17,7 @@
// | Based on code from: Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Profiler.php,v 1.2 2002/08/27 15:25:34 matthias Exp $
+// $Id: Profiler.php,v 1.3 2002/08/27 17:22:34 matthias Exp $
//
/**
* Benchmark::Profiler
@@ -57,7 +57,7 @@
* $profiler->display();
*
* @author Matthias Englert <Matthias.Englert@gmx.de>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @access public
*/
@@ -182,16 +182,18 @@
$calls_str = "";
if ($this->_calls[$name]) {
foreach($this->_calls[$name] as $key => $val) {
- if ($calls_str)
+ if ($calls_str) {
$calls_str .= ", ";
+ }
$calls_str .= "$key ($val)";
}
}
$callers_str = "";
if ($this->_callers[$name]) {
foreach($this->_callers[$name] as $key => $val) {
- if ($callers_str)
+ if ($callers_str) {
$callers_str .= ", ";
+ }
$callers_str .= "$key ($val)";
}
}