inspection fixes

This commit is contained in:
Dennis Eichhorn 2020-07-31 18:13:52 +02:00
parent 601fdf7567
commit b95bc398fd
2 changed files with 6 additions and 6 deletions

View File

@ -146,7 +146,7 @@ final class BackendController extends Controller
/** @var string[] $glob */ /** @var string[] $glob */
$glob = $collection->isAbsolute() $glob = $collection->isAbsolute()
? $collection->getPath() . '/' . $collection->getName() . '/*' ? $collection->getPath() . '/' . $collection->getName() . '/*'
: \glob(__DIR__ . '/../Files' . '/' . \rtrim($collection->getPath(), '/') . '/' . $collection->getName() . '/*'); : \glob(__DIR__ . '/../Files/' . \rtrim($collection->getPath(), '/') . '/' . $collection->getName() . '/*');
$glob = $glob === false ? [] : $glob; $glob = $glob === false ? [] : $glob;
foreach ($glob as $file) { foreach ($glob as $file) {