eee
This commit is contained in:
+4
-7
@@ -48,16 +48,13 @@ class Scanner extends Component
|
|||||||
}
|
}
|
||||||
$this->load_directory($value->getRealPath());
|
$this->load_directory($value->getRealPath());
|
||||||
} else if ($value->getExtension() == 'php') {
|
} else if ($value->getExtension() == 'php') {
|
||||||
|
if (in_array($value->getRealPath(), $this->files)) {
|
||||||
$mic = microtime(true);
|
continue;
|
||||||
$this->load_file($value->getRealPath());
|
|
||||||
|
|
||||||
if (microtime(true) - $mic > 0.005) {
|
|
||||||
$this->files[$value->getRealPath()] = microtime(true) - $mic;
|
|
||||||
}
|
}
|
||||||
|
$this->files[] = $value->getRealPath();
|
||||||
|
$this->load_file($value->getRealPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var_dump($this->files);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user