He's a good worker and they're firing him because of necessity, so he gets 30 days notice or equivalent severance pay. If the company had gone bankrupt or he had committed a crime, broke rules, lied to get the job, disappeared, or was habitually late he would have just been fired without notice...