public function toSpaces($tabLength = 4)
    {
        return $this->newSelf
        (
            UTF8::str_replace
            (
                "\t",
                UTF8::str_repeat(' ', $tabLength),
                $this->scalarString
            )
        );
    }
public function toSpaces($tabLength = 4)
    {
        return $this->newSelf
        (
            UTF8::str_replace
            (
                "\t",
                UTF8::str_repeat(' ', $tabLength),
                $this->scalarString
            )
        );
    }
public function toSpaces ( $ tabLength = 4 ) { return $ this -> newSelf ( UTF8 :: str_replace ( "\t" , UTF8 :: str_repeat ( ' ' , $ tabLength ) , $ this -> scalarString ) ) ; }
Converts tabs to spaces.

Each tab in the string is replaced with some number of spaces,
as defined by $tabLength. By default, each tab is converted to
4 consecutive spaces.

@param  int    $tabLength Number of spaces to replace each tab with.

@return static
Converts tabs to spaces .