polyline: Added missing parenthesis for one-line statements
polyline: Renamed variables to camelCase convention