bnomei/kirby3-htmlhead

View on GitHub
snippets/htmlhead/link-preload.php

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

        if (Str::contains($dep, '.js')) {
            $options['as'] = 'script';
        } elseif (Str::contains($dep, '.css')) {
            $options['as'] = 'style';
        } elseif (Str::contains($dep, '.json')) {
Severity: Major
Found in snippets/htmlhead/link-preload.php - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status