He escaped punishment for the offence but deputy district judge Edward Barr told him: “If you keep your hands on the mixing desks and not on somebody else’s property, that will be the end of this matter.”

Prosecutor Bill Astin told the court that the theft at the New Street store occurred on March 3.

He explained that a security guard witnessed Miller, of Fanny Moor Lane in Almondbury, trying on several coats.

He then put on his own jacket, concealing one of the coats underneath and went to the till to pay for a pair of shoes.

Next Miller continued to make his way around the store, picked up another coat, put this over his arm and then left the store.

He fled after being challenged by staff, throwing the coats away as he ran through the town centre.

Primark, New Street, Huddersfield.

The items, worth £34, were returned to the store and Miller was arrested.

He told police in interview that he had suffered a “lapse of concentration” while choosing between the coats.

Daniel Metcalf, mitigating, explained that his client worked as a musician and went into the store with his mum’s card to buy some items.

He said: “Before leaving the store he went back to select the coats and some individuals recognised him from YouTube and spoke to him.

“Then he decided to try and seize the opportunity to leave the store without paying for the jackets.

He didn’t go there with that intent, it was an opportunity he foolishly took.”