mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 10:18:41 +00:00
autofixes
This commit is contained in:
parent
249e2f65ad
commit
e8008ab855
|
|
@ -32,9 +32,9 @@ use phpOMS\Message\NotificationLevel;
|
|||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Model\Message\FormValidation;
|
||||
use phpOMS\System\File\FileUtils;
|
||||
use phpOMS\System\File\Local\Directory;
|
||||
use phpOMS\Utils\Parser\Markdown\Markdown;
|
||||
use phpOMS\System\File\FileUtils;
|
||||
|
||||
/**
|
||||
* Media class.
|
||||
|
|
@ -113,7 +113,7 @@ final class ApiController extends Controller
|
|||
* @param array $files Files
|
||||
* @param int $account Uploader
|
||||
* @param string $basePath Base path. The path which is used for the upload.
|
||||
* @param string $virtualPath Virtual path The path which is used to visually structure the files, like directories.
|
||||
* @param string $virtualPath virtual path The path which is used to visually structure the files, like directories
|
||||
* @param string $type Media type (internal/custom media categorization)
|
||||
* The file storage on the system can be different
|
||||
* @param string $password File password. The password to protect the file (only database)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Media\Models;
|
||||
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
use Modules\Admin\Models\Account;
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
|
||||
/**
|
||||
* Mapper class.
|
||||
|
|
@ -122,11 +122,11 @@ final class CollectionMapper extends MediaMapper
|
|||
*/
|
||||
public static function getCollectionsByPath(string $path, bool $showDirectories = false) : array
|
||||
{
|
||||
$collection = CollectionMapper::getByVirtualPath($path);
|
||||
$collection = self::getByVirtualPath($path);
|
||||
$parent = [];
|
||||
|
||||
if ($showDirectories) {
|
||||
$parent = CollectionMapper::getParentCollection($path);
|
||||
$parent = self::getParentCollection($path);
|
||||
if (\is_array($parent) && \is_dir(__DIR__ . '/../../Media/Files' . $path)) {
|
||||
$parent = new Collection();
|
||||
$parent->name = \basename($path);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user