/** * Right-aligned text * @param $str * @param Cell $cell * @return string */ public static function right($str, Cell $cell) { $cell->appendStyle(['text-align' => 'right']); return $cell->getCurrentValue(); }