getStyle(); if (!$style instanceof \PhpOffice\PhpWord\Style\Paragraph) { return; } $content = '\pard\nowidctlpar'; // Alignment $align = $style->getAlign(); $content .= $this->getValueIf(!is_null($align) && $align == 'center', '\qc'); // Spacing $spaceAfter = $style->getSpaceAfter(); $content .= $this->getValueIf(!is_null($spaceAfter), '\sa' . $spaceAfter); return $content; } }