src/Draggy/Autocode/Templates/Template.php
public function getIndentationPrefix($times = 1)
    {
        if (!is_integer($times)) {
            throw new \InvalidArgumentException('The times parameter has to be an integer');
        }

        $indentation = '';

        for ($i = 0; $i < $times; $i++) {
            $indentation .= $this->getTemplate()->getIndentation();
        }

        return $indentation;
    }
public function getIndentationPrefix($times = 1)
    {
        if (!is_integer($times)) {
            throw new \InvalidArgumentException('The times parameter has to be an integer');
        }

        $indentation = '';

        for ($i = 0; $i < $times; $i++) {
            $indentation .= $this->getTemplate()->getIndentation();
        }

        return $indentation;
    }
public function getIndentationPrefix ( $ times = 1 ) { if ( ! is_integer ( $ times ) ) { throw new \ InvalidArgumentException ( 'The times parameter has to be an integer' ) ; } $ indentation = '' ; for ( $ i = 0 ; $ i < $ times ; $ i ++ ) { $ indentation .= $ this -> getTemplate ( ) -> getIndentation ( ) ; } return $ indentation ; }
Returns all the indentation that should be put before the current line

@param int $times

@return string

@throws \InvalidArgumentException
Returns all the indentation that should be put before the current line