src/Clio/Widgets/Tables/Column.php
public function justify($text, $markupDefinition) {

        // if the width is null
        if ((is_null($this->width)) || ($this->getTextArea() === 0)) {

            // just return the text, something was wrong
            return "";

        }
        
        // ask the markup definition object to do the justification so all
        // the markup text does not affect the justification
        $justifiedText = $markupDefinition->justify($text, $this->justification, $this->getTextArea());

        // put the left pad and right padding around the justified text
        return $markupDefinition->pad($justifiedText, $this->leftPadding, $this->rightPadding);

        
    }
public function justify($text, $markupDefinition) {

        // if the width is null
        if ((is_null($this->width)) || ($this->getTextArea() === 0)) {

            // just return the text, something was wrong
            return "";

        }
        
        // ask the markup definition object to do the justification so all
        // the markup text does not affect the justification
        $justifiedText = $markupDefinition->justify($text, $this->justification, $this->getTextArea());

        // put the left pad and right padding around the justified text
        return $markupDefinition->pad($justifiedText, $this->leftPadding, $this->rightPadding);

        
    }
Justify text

@param string $text - the text to justify
@param Definition $markupDefinition

@return string