private function handleAbbrConsistency(StaticPage $sp, $checkOnly = false) { if (!$checkOnly) { $title = Strings::webalize($sp->getTitle()); $abbr = $title . "-{$sp->getGroup()->getAbbr()}"; $sp->setAbbr($abbr); } else { $sp->setAbbr(Strings::webalize($sp->getAbbr())); } }