cvs: pear /Services_Weather/Weather Metar.php
| From: | Alexander Wirtz | Date: | Thu, 16 Mar 2006 17:08:28 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Metar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39125@lists.php.net to get a copy of this message | ||
eru Thu Mar 16 17:08:28 2006 UTC
Modified files:
/pear/Services_Weather/Weather Metar.php
Log:
Make $cloudtypes static
Increase tabsize in debug output
http://cvs.php.net/viewcvs.cgi/pear/Services_Weather/Weather/Metar.php?r1=1.96&r2=1.97&diff_format=u
Index: pear/Services_Weather/Weather/Metar.php
diff -u pear/Services_Weather/Weather/Metar.php:1.96 pear/Services_Weather/Weather/Metar.php:1.97
--- pear/Services_Weather/Weather/Metar.php:1.96 Wed Mar 15 20:20:31 2006
+++ pear/Services_Weather/Weather/Metar.php Thu Mar 16 17:08:28 2006
@@ -40,7 +40,7 @@
* @author Alexander Wirtz <alex@pc4p.net>
* @copyright 2005-2006 Alexander Wirtz
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
- * @version CVS: $Id: Metar.php,v 1.96 2006/03/15 20:20:31 eru Exp $
+ * @version CVS: $Id: Metar.php,v 1.97 2006/03/16 17:08:28 eru Exp $
* @link http://pear.php.net/package/Services_Weather
* @link http://weather.noaa.gov/weather/metar.shtml
* @link http://weather.noaa.gov/weather/taf.shtml
@@ -429,6 +429,7 @@
{
static $compass;
static $clouds;
+ static $cloudtypes;
static $conditions;
static $sensors;
if (!isset($compass)) {
@@ -578,7 +579,7 @@
}
if (SERVICES_WEATHER_DEBUG) {
- $tab = str_repeat("\t", 2 - floor((strlen($metar[$i]) + 2) / 8));
+ $tab = str_repeat("\t", 3 - floor((strlen($metar[$i]) + 2) / 8));
echo "\"".$metar[$i]."\"".$tab."-> ";
}
@@ -1071,7 +1072,7 @@
}
if (SERVICES_WEATHER_DEBUG) {
- $tab = str_repeat("\t", 2 - floor((strlen($taf[$i]) + 2) / 8));
+ $tab = str_repeat("\t", 3 - floor((strlen($taf[$i]) + 2) / 8));
echo "\"".$taf[$i]."\"".$tab."-> ";
}