BookStackApp/BookStack

View on GitHub
app/Entities/Tools/Markdown/HtmlToMarkdown.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getConverterEnvironment has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getConverterEnvironment(): Environment
    {
        $environment = new Environment([
            'header_style'            => 'atx', // Set to 'atx' to output H1 and H2 headers as # Header1 and ## Header2
            'suppress_errors'         => true, // Set to false to show warnings when loading malformed HTML
Severity: Minor
Found in app/Entities/Tools/Markdown/HtmlToMarkdown.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status