protected function optimizeTokens()
	{
		while (++$this->i < $this->cnt)
		{
			if ($this->tokens[$this->i] === ';')
			{
				++$this->context['statements'];
			}
			elseif ($this->tokens[$this->i] === '{')
			{
				++$this->braces;
			}
			elseif ($this->tokens[$this->i] === '}')
			{
				if ($this->context['braces'] === $this->braces)
				{
					$this->processEndOfBlock();
				}

				--$this->braces;
			}
			elseif ($this->isControlStructure())
			{
				$this->processControlStructure();
			}
		}
	}
protected function optimizeTokens()
	{
		while (++$this->i < $this->cnt)
		{
			if ($this->tokens[$this->i] === ';')
			{
				++$this->context['statements'];
			}
			elseif ($this->tokens[$this->i] === '{')
			{
				++$this->braces;
			}
			elseif ($this->tokens[$this->i] === '}')
			{
				if ($this->context['braces'] === $this->braces)
				{
					$this->processEndOfBlock();
				}

				--$this->braces;
			}
			elseif ($this->isControlStructure())
			{
				$this->processControlStructure();
			}
		}
	}
protected function optimizeTokens ( ) { while ( ++ $ this -> i < $ this -> cnt ) { if ( $ this -> tokens [ $ this -> i ] === ';' ) { ++ $ this -> context [ 'statements' ] ; } elseif ( $ this -> tokens [ $ this -> i ] === '{' ) { ++ $ this -> braces ; } elseif ( $ this -> tokens [ $ this -> i ] === '}' ) { if ( $ this -> context [ 'braces' ] === $ this -> braces ) { $ this -> processEndOfBlock ( ) ; } -- $ this -> braces ; } elseif ( $ this -> isControlStructure ( ) ) { $ this -> processControlStructure ( ) ; } } }
Optimize control structures in stored tokens

@return void
Optimize control structures in stored tokens