Should be `switch ($attr) {`