The copper lines to the water heater had been leaking for a long time
This is putting a band-aid on a sucking chest wound.
The homeowner was going to have this evaluated by a structural engineer. All of the framing in this corner was compromised. The repair you see here was only meant to temporarily make this area safe.