Bad "if"
rugabarbo opened this issue · 1 comments
rugabarbo commented
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.
alexandernst commented
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.