Nani opened the scoring for Portugal in their 4-0 win over Malta which sees them through the play-offs.