The correct place to implode array - MVC and Repositories concept
Logic or data transformation should usually be moved out of the controller.  Your places repository seems like a better choice for the implode.  After all, one of the major purposes of repositories is to decouple data handling and storage as much as possible from other parts of the application, including controller.s