level 7 typing

This commit is contained in:
Shish
2024-01-20 20:48:47 +00:00
parent 8bd00f60c1
commit 82a3ce25c2
81 changed files with 383 additions and 277 deletions

View File

@@ -235,7 +235,7 @@ class CronUploader extends Extension
$running = false;
$lockfile = fopen($this->get_lock_file(), "w");
$lockfile = false_throws(fopen($this->get_lock_file(), "w"));
try {
if (!flock($lockfile, LOCK_EX | LOCK_NB)) {
$running = true;
@@ -343,7 +343,7 @@ class CronUploader extends Extension
throw new SCoreException("User does not have permission to run cron upload");
}
$lockfile = fopen($this->get_lock_file(), "w");
$lockfile = false_throws(fopen($this->get_lock_file(), "w"));
if (!flock($lockfile, LOCK_EX | LOCK_NB)) {
throw new SCoreException("Cron upload process is already running");
}