Update Parser.php

Remove the condense method and made of the parseType method static