phug-php/renderer

View on GitHub
Renderer/Profiler/Dump.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Function getExposedProperties has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

private function getExposedProperties($object, $deep)
{
$result = "\n";
foreach (get_class_methods($object) as $method) {
if (mb_strlen($result) > 0x80000) {
Severity: Minor
Found in Renderer/Profiler/Dump.php - About 2 hrs to fix

Method getExposedProperties has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

private function getExposedProperties($object, $deep)
{
$result = "\n";
foreach (get_class_methods($object) as $method) {
if (mb_strlen($result) > 0x80000) {
Severity: Minor
Found in Renderer/Profiler/Dump.php - About 1 hr to fix
    Category
    Status