alexandernst/yii2-device-detect

Bad "if"

rugabarbo opened this issue · 1 comments

I think, here is bug: https://github.com/alexandernst/yii2-device-detect/blob/master/DeviceDetect.php#L37

This "if" has no braces. It does not look right.

You're absolutely right, and this is why I shouldn't accept any PR that don't use explicit braces. Will fix in a moment.