From 3f614ae8cd6df49d92c6ff836ab7f7bedae2ba11 Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 19 Dec 2023 17:50:59 +0800 Subject: [PATCH] eee --- Scanner.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Scanner.php b/Scanner.php index b3aff97..8fcc9fc 100644 --- a/Scanner.php +++ b/Scanner.php @@ -48,16 +48,13 @@ class Scanner extends Component } $this->load_directory($value->getRealPath()); } else if ($value->getExtension() == 'php') { - - $mic = microtime(true); - $this->load_file($value->getRealPath()); - - if (microtime(true) - $mic > 0.005) { - $this->files[$value->getRealPath()] = microtime(true) - $mic; + if (in_array($value->getRealPath(), $this->files)) { + continue; } + $this->files[] = $value->getRealPath(); + $this->load_file($value->getRealPath()); } } - var_dump($this->files); }