public static function getIndent($content)
    {
        $indent = self::DEFAULT_INDENT;
        preg_match(self::INDENT_REGEX, trim($content), $matches);

        if (!empty($matches)) {
            $indent = \strlen($matches[1]);
        }

        return $indent;
    }
public static function getIndent($content)
    {
        $indent = self::DEFAULT_INDENT;
        preg_match(self::INDENT_REGEX, trim($content), $matches);

        if (!empty($matches)) {
            $indent = \strlen($matches[1]);
        }

        return $indent;
    }
public static function getIndent ( $ content ) { $ indent = self :: DEFAULT_INDENT ; preg_match ( self :: INDENT_REGEX , trim ( $ content ) , $ matches ) ; if ( ! empty ( $ matches ) ) { $ indent = \ strlen ( $ matches [ 1 ] ) ; } return $ indent ; }
Get the indent of file.

@param string $content The content

@return int
Get the indent of file .