Fixed special case when no input params or ports are found.

fixed indentation issues.