Browse Source

Clean up code.

pull/471/head
James Cole 2 years ago
parent
commit
dd5273f172
No known key found for this signature in database GPG Key ID: B49A324B7EAD6D80
  1. 2
      app/Console/Commands/AutoImport.php

2
app/Console/Commands/AutoImport.php

@ -66,7 +66,7 @@ class AutoImport extends Command
return 1;
}
$argument = (string)($this->argument('directory') ?? './'); // @phpstan-ignore-line
$argument = (string)($this->argument('directory') ?? './'); /** @phpstan-ignore-line */
$directory = realpath($argument);
if (!$this->isAllowedPath($directory)) {
$this->error(sprintf('Path "%s" is not in the list of allowed paths (IMPORT_DIR_ALLOWLIST).', $directory));

Loading…
Cancel
Save