phug-php/renderer

View on GitHub
Renderer/Partial/RendererOptionsTrait.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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 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 Renderer/Partial/RendererOptionsTrait.php - About 1 hr to fix
      Category
      Status