diff options
author | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 12:36:17 +0100 |
---|---|---|
committer | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 12:36:17 +0100 |
commit | 138865bbde25bb6193930c98e30c33913d19e367 (patch) | |
tree | 626e8e26dd4f4776ce9f8cd743987f08377127ed /admin/purgecache.php | |
parent | 5f2b708377aec4bc5f1d731dfbb50557552d0482 (diff) | |
download | planet-138865bbde25bb6193930c98e30c33913d19e367.tar planet-138865bbde25bb6193930c98e30c33913d19e367.tar.gz planet-138865bbde25bb6193930c98e30c33913d19e367.tar.bz2 planet-138865bbde25bb6193930c98e30c33913d19e367.tar.xz planet-138865bbde25bb6193930c98e30c33913d19e367.zip |
Install code QA helpers, enforce PSR2
Installs phpcs, phpmd, parallel-lint, phpstan.
Diffstat (limited to 'admin/purgecache.php')
-rw-r--r-- | admin/purgecache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/purgecache.php b/admin/purgecache.php index 23a5712..7b01c97 100644 --- a/admin/purgecache.php +++ b/admin/purgecache.php @@ -3,13 +3,13 @@ require_once __DIR__.'/../app/app.php'; require_once __DIR__.'/inc/auth.inc.php'; -if (isset($_POST['purge'])){ +if (isset($_POST['purge'])) { $dir = __DIR__.'/../cache/'; $dh = opendir($dir); while ($filename = readdir($dh)) { - if ($filename == '.' OR $filename == '..') { + if ($filename == '.' or $filename == '..') { continue; } |