/** * @param CodeComment $comment * @return string */ protected function commentStyle($comment) { $align = wfUILang()->AlignStart(); $depth = $comment->threadDepth(); $margin = ($depth - 1) * 48; return "margin-{$align}: {$margin}px"; }