fucongcong/framework

View on GitHub
core/Group/Cache/BootstrapClass.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 10 of 10 total issues

Avoid unused local variables such as '$file'.
Open

$file = $this->loader->findFile($class);
Severity: Minor
Found in core/Group/Cache/BootstrapClass.php by phpmd

Avoid unused local variables such as '$class'.
Open

foreach ($this->classes as $class => $file) {
Severity: Minor
Found in core/Group/Cache/BootstrapClass.php by phpmd

Opening class brace must be on a line by itself
Open

{

Inline control structures are not allowed
Open

if ($cacheDir) $this->cacheDir = $cacheDir;

Opening brace should be on a new line
Open

public static function getInstance(){

Whitespace found at end of line
Open

{

Whitespace found at end of line
Open

{

Whitespace found at end of line
Open

$data .= substr(file_get_contents($file), 5);

Whitespace found at end of line
Open

public function rmClass($class)

Whitespace found at end of line
Open

public function setClass($class)
Category
Status