Skip to content

Commit cb4a4c9

Browse files
committed
Detector: Use shortcut for process fast detect-only
1 parent 87caa1e commit cb4a4c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Detector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,9 @@ public function isDebugModeByIp(): ?bool
8585

8686
return $result ?: null;
8787
}
88+
89+
public static function detect(string $tempDir): bool
90+
{
91+
return (new self($tempDir))->isDebugMode();
92+
}
8893
}

0 commit comments

Comments
 (0)