phug-php/compiler

View on GitHub
Compiler/Locator/FileLocator.php

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function locate has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

public function locate($path, array $locations, array $extensions)
{
// @ catch softly PHP open_basedir restriction
if (@is_file($path)) {
return is_readable($path) ? realpath($path) : null;
Severity: Minor
Found in Compiler/Locator/FileLocator.php - About 35 mins to fix
Category
Status