protected function getIndent($stub, $template)
    {
        $lines = explode("\n", $stub);

        foreach ($lines as $line) {
            if (($index = strpos($line, $template)) !== false) {
                return $index;
            }
        }

        return 0;
    }
protected function getIndent($stub, $template)
    {
        $lines = explode("\n", $stub);

        foreach ($lines as $line) {
            if (($index = strpos($line, $template)) !== false) {
                return $index;
            }
        }

        return 0;
    }
protected function getIndent ( $ stub , $ template ) { $ lines = explode ( "\n" , $ stub ) ; foreach ( $ lines as $ line ) { if ( ( $ index = strpos ( $ line , $ template ) ) !== false ) { return $ index ; } } return 0 ; }
Gets the indentation count.

@param  string  $stub
@param  string  $template

@return $this
Gets the indentation count .