Does this look up to code?

I had to route over with pvc to make room for a shower pan. The old insert fit with the pipes where they come up. I cut them close to subfloor and made the turns.

I had to route over with pvc to make room for a shower pan. The old insert fit with the pipes where they come up. I cut them close to subfloor and made the turns.