The BBC has been given photos of Twitter office space that has been converted into bedrooms, which San Francisco authorities are probing as a possible building code violation. One image shows a room with a double bed, including a wardrobe and slippers. An ex-worker said new Twitter boss Elon Musk has been staying at the headquarters since he bought the firm. He last month emailed all Twitter staff saying they "will need to be extremely hardcore" to succeed. San Francisco's Department of Building Inspection has confirmed it is investigating potential violations following a complaint. Mr Musk said the city was attacking companies for providing beds to "tired employees". In a now-deleted tweet, Mr Musk posted that he would work and sleep in the office "until the org is fixed".