src/PhpConsole/EvalProvider.php
protected function forceEndingSemicolon($code) {
		$code = rtrim($code, "; \r\n");
		return $code[strlen($code) - 1] != '}' ? $code . ';' : $code;
	}
protected function forceEndingSemicolon($code) {
		$code = rtrim($code, "; \r\n");
		return $code[strlen($code) - 1] != '}' ? $code . ';' : $code;
	}
protected function forceEndingSemicolon ( $ code ) { $ code = rtrim ( $ code , "; \r\n" ) ; return $ code [ strlen ( $ code ) - 1 ] != '}' ? $ code . ';' : $ code ; }
Add semicolon to the end of code if it's required
@param string $code
@return string
Add semicolon to the end of code if it s required