it's perfectly in line with http://doc.owncloud.org/server/5.0/developer_manual/codingguidelines.html#control-structures