Enquiries remain ongoing by detectives in the Major Enquiry Team into a firearms discharge on Huddersfield Road, Liversedge on Monday evening.
Officers are continuing to appeal for anyone who witnessed the incident at around 7.10pm, or who witnessed a small dark coloured vehicle driving in the area to come forward.
A police cordon remains in place on Huddersfield Road while officers conduct enquiries.
Two men were taken to hospital for treatment for gun-shot injuries. The 27-year-old man has since been discharged from hospital and has been arrested for an unrelated offence.
The 22-year-old man remains in hospital with non-life threatening injuries.
Detective Superintendent Mark Swift said: “Clearly this incident has caused understandable concern in the community and extensive enquiries are underway to identify those involved.
“The discharge of any firearm in a public place is an extremely serious matter and something police will absolutely not tolerate.
“There will be an increased policing presence and high visibility patrols in the area to offer reassurance to the community.
“I would continue to appeal for anyone with any information or anyone who witnessed any suspicious activity in the area on Monday to contact police.”