Proper way to repair a cut wire?
While cutting an opening I managed to damage some wire. What's the proper way to repair it? I know I can just splice in a fresh piece, but does code require that the splice be put in a box with a plate for future access? The wire on the left is cut through so it definitely needs a repair. The wire on the right just has the jacket scratched up - is it ok just to wrap some tape around the scratches?
Here's a photo: