PHPnews.io

Overview for 'murze'






★ Avoid using else

Written by murze.be / Original link on Mar. 16, 2022

Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns. In this piece of code, it takes some brainpower to determine whe…