Index: /trunk/Decompiler.class.php
===================================================================
--- /trunk/Decompiler.class.php	(revision 795)
+++ /trunk/Decompiler.class.php	(revision 796)
@@ -742,5 +742,5 @@
 
 			$this->beginComplexBlock($EX);
-			echo $indent, 'try {', PHP_EOL;
+			echo $indent, "try {", PHP_EOL;
 			$this->recognizeAndDecompileClosedBlocks($EX, $tryFirst, $tryLast, $indent . INDENT);
 			echo $indent, '}', PHP_EOL;
@@ -750,5 +750,5 @@
 				$this->recognizeAndDecompileClosedBlocks($EX, $catchFirst, $catchOpLine, $indent);
 				$catchOp = &$opcodes[$catchOpLine];
-				echo $indent, 'catch (', str($this->getOpVal($catchOp['op1'], $EX)), ' ', str($this->getOpVal($catchOp['op2'], $EX)), ') {', PHP_EOL;
+				echo $indent, 'catch (', str($this->getOpVal($catchOp['op1'], $EX)), ' ', str($this->getOpVal($catchOp['op2'], $EX)), ") {", PHP_EOL;
 				unset($catchOp);
 
@@ -761,9 +761,9 @@
 		}
 		// }}}
-
+		// {{{ switch/case
 		if ($firstOp['opcode'] == XC_SWITCH_FREE && isset($T[$firstOp['op1']['var']])) {
 			// TODO: merge this code to CASE code. use SWITCH_FREE to detect begin of switch by using $Ts if possible
 			$this->beginComplexBlock($EX);
-			echo $indent, 'switch (' . str($this->getOpVal($firstOp['op1'], $EX)) . ') {', PHP_EOL;
+			echo $indent, 'switch (', str($this->getOpVal($firstOp['op1'], $EX)), ") {", PHP_EOL;
 			echo $indent, '}', PHP_EOL;
 			$this->endComplexBlock($EX);
@@ -806,5 +806,5 @@
 			$this->beginComplexBlock($EX);
 
-			echo $indent, 'switch (', str($this->getOpVal($caseOp['op1'], $EX, true, true), $EX), ') {', PHP_EOL;
+			echo $indent, 'switch (', str($this->getOpVal($caseOp['op1'], $EX, true, true), $EX), ") {", PHP_EOL;
 			$caseIsOut = false;
 			foreach ($cases as $caseFirst => $caseLast) {
@@ -860,5 +860,6 @@
 			return;
 		}
-
+		// }}}
+		// {{{ do/while
 		if ($lastOp['opcode'] == XC_JMPNZ && !empty($lastOp['jmpouts'])
 		 && $lastOp['jmpouts'][0] == $first) {
@@ -866,12 +867,14 @@
 			$this->beginComplexBlock($EX);
 
-			echo $indent, 'do {', PHP_EOL;
+			echo $indent, "do {", PHP_EOL;
 			$this->recognizeAndDecompileClosedBlocks($EX, $first, $last, $indent . INDENT);
-			echo $indent, '} while (', str($this->getOpVal($lastOp['op1'], $EX)), ');', PHP_EOL;
+			echo $indent, "} while (", str($this->getOpVal($lastOp['op1'], $EX)), ');', PHP_EOL;
 
 			$this->endComplexBlock($EX);
 			return;
 		}
-
+		// }}}
+
+		// {{{ search firstJmpOp
 		$firstJmp = null;
 		$firstJmpOp = null;
@@ -883,5 +886,7 @@
 			}
 		}
-
+		// }}}
+
+		// {{{ while
 		if (isset($firstJmpOp)
 		 && $firstJmpOp['opcode'] == XC_JMPZ
@@ -897,5 +902,5 @@
 			$body = ob_get_clean();
 
-			echo $indent, 'while (', str($this->getOpVal($firstJmpOp['op1'], $EX)), ') {', PHP_EOL;
+			echo $indent, 'while (', str($this->getOpVal($firstJmpOp['op1'], $EX)), ") {", PHP_EOL;
 			echo $body;
 			echo $indent, '}', PHP_EOL;
@@ -904,5 +909,6 @@
 			return;
 		}
-
+		// }}}
+		// {{{ foreach
 		if (isset($firstJmpOp)
 		 && $firstJmpOp['opcode'] == XC_FE_FETCH
@@ -930,4 +936,5 @@
 			return;
 		}
+		// }}}
 
 		$this->decompileBasicBlock($EX, $first, $last, $indent);
