cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php
| From: | Xavier Noguer Gallego | Date: | Sat, 12 Nov 2005 01:40:58 +0000 |
| Subject: | cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36216@lists.php.net to get a copy of this message | ||
xnoguer Fri Nov 11 20:40:58 2005 EDT
Modified files:
/pear/Spreadsheet_Excel_Writer/Writer Parser.php
Log:
reobfuscating my code so other people can read it comfortably
http://cvs.php.net/diff.php/pear/Spreadsheet_Excel_Writer/Writer/Parser.php?r1=1.53&r2=1.54&ty=u
Index: pear/Spreadsheet_Excel_Writer/Writer/Parser.php
diff -u pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.53
pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.54
--- pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.53 Fri Nov 11 09:51:07 2005
+++ pear/Spreadsheet_Excel_Writer/Writer/Parser.php Fri Nov 11 20:40:56 2005
@@ -1388,8 +1388,8 @@
return $result;
}
while (($this->_current_token == SPREADSHEET_EXCEL_WRITER_ADD) or
- ($this->_current_token == SPREADSHEET_EXCEL_WRITER_SUB))
- {
+ ($this->_current_token == SPREADSHEET_EXCEL_WRITER_SUB)) {
+ /**/
if ($this->_current_token == SPREADSHEET_EXCEL_WRITER_ADD) {
$this->_advance();
$result2 = $this->_term();
@@ -1437,10 +1437,9 @@
return $result;
}
while (($this->_current_token == SPREADSHEET_EXCEL_WRITER_MUL) or
- ($this->_current_token == SPREADSHEET_EXCEL_WRITER_DIV))
- {
- if ($this->_current_token == SPREADSHEET_EXCEL_WRITER_MUL)
- {
+ ($this->_current_token == SPREADSHEET_EXCEL_WRITER_DIV)) {
+ /**/
+ if ($this->_current_token == SPREADSHEET_EXCEL_WRITER_MUL) {
$this->_advance();
$result2 = $this->_fact();
if (PEAR::isError($result2)) {
@@ -1554,8 +1553,8 @@
$function = $this->_current_token;
$this->_advance();
$this->_advance(); // eat the "("
- while ($this->_current_token != ')')
- {
+ while ($this->_current_token != ')') {
+ /**/
if ($num_args > 0) {
if ($this->_current_token == SPREADSHEET_EXCEL_WRITER_COMA or
$this->_current_token == SPREADSHEET_EXCEL_WRITER_SEMICOLON)