phug-php/phug

View on GitHub
src/Phug/Renderer/Renderer/Partial/RendererOptionsTrait.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

Method getDefaultOptions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getDefaultOptions($options)
    {
        return [
            'debug'                 => true,
            'exit_on_error'         => true,
Severity: Minor
Found in src/Phug/Renderer/Renderer/Partial/RendererOptionsTrait.php - About 1 hr to fix

    Method enableModules has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function enableModules()
        {
            /* @var ModuleContainerInterface $this */
    
            $this->addModules($this->getOption('modules'));
    Severity: Minor
    Found in src/Phug/Renderer/Renderer/Partial/RendererOptionsTrait.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status