One comment on this is when you leave a company is customary to give your two weeks. Companies rarely offer than consideration for employees. This unbalanced power dynamic is even greater as a layoff doesn’t mean a catastrophic situation for the company but for the employee it often is. The two events shouldn’t be compared apples to apples.