Put Lines to Left and Right of a Heading

Two ways to make a centered heading with a line on either side in InDesign