| @@ 1273-1277 (lines=5) @@ | ||
| 1270 | // not whatever it already is. The opener needs to be the opening curly |
|
| 1271 | // brace so everything matches up. |
|
| 1272 | $newCloser = $this->tokens[$x]['bracket_closer']; |
|
| 1273 | foreach (array($i, $x, $newCloser) as $index) { |
|
| 1274 | $this->tokens[$index]['scope_condition'] = $i; |
|
| 1275 | $this->tokens[$index]['scope_opener'] = $x; |
|
| 1276 | $this->tokens[$index]['scope_closer'] = $newCloser; |
|
| 1277 | } |
|
| 1278 | ||
| 1279 | unset($this->tokens[$scopeOpener]['scope_condition']); |
|
| 1280 | unset($this->tokens[$scopeOpener]['scope_opener']); |
|
| @@ 1000-1004 (lines=5) @@ | ||
| 997 | echo "=> Found (unexpected) scope closer for $stackPtr:$type".PHP_EOL; |
|
| 998 | } |
|
| 999 | ||
| 1000 | foreach (array($stackPtr, $opener) as $token) { |
|
| 1001 | $this->tokens[$token]['scope_condition'] = $stackPtr; |
|
| 1002 | $this->tokens[$token]['scope_opener'] = $opener; |
|
| 1003 | $this->tokens[$token]['scope_closer'] = $i; |
|
| 1004 | } |
|
| 1005 | ||
| 1006 | return ($i - 1); |
|
| 1007 | }//end if |
|