mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 02:08:40 +00:00
inspection fixes
This commit is contained in:
parent
601fdf7567
commit
b95bc398fd
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user