A Kensington junkyard that caught fire last month has been permitted to reopen — again — after addressing code violations.

The city's Department of Licenses and Inspections had ordered the junkyard at Somerset and Tulip Streets, Philadelphia Metal & Resource Recovery, to close last month. L&I required the facility's owners to reduce scrap piles to 10 feet and create clear fire lanes between piles.

Karen Guss, an L&I spokeswoman, said Saturday afternoon that the owners met those requirements.

Earlier this month, Common Pleas Court Judge Paula A. Patrick had rejected a request by the junkyard to reopen, saying it first had to resolve multiple code violations. She gave owner David Feinberg a week to prepare for an inspection.

"We believe that aggressive use of cease-operations order was key factor in owner getting the work done so quickly," Guss said in an email Saturday.

The July 1 fire grew to four alarms and sent thick, acrid smoke through the neighborhood. Feinberg told news outlets he believed heroin users had started it. He could not be reached for comment Saturday afternoon.

The junkyard, which reopened for the first time just two weeks after the blaze, was then hit with a cease-operations order by L&I.

Guss said L&I would continue to monitor and reinspect the property. The city has a hearing in an ongoing case against Philadelphia Metal & Resource Recovery on Aug. 30. Guss said the city would be asking for "hundreds of thousands of dollars" in fines. L&I has cited the facility multiple times for violations in the last 10 years.