Automated formatting changes

This commit is contained in:
Formatter Bot 2020-09-19 19:27:47 +00:00
parent 122ffcd7b9
commit af32a0a56f
2 changed files with 3 additions and 3 deletions

View File

@ -16,6 +16,7 @@ namespace Modules\Editor\Controller;
use Modules\Editor\Models\EditorDocMapper; use Modules\Editor\Models\EditorDocMapper;
use Modules\Editor\Models\PermissionState; use Modules\Editor\Models\PermissionState;
use Modules\Media\Models\CollectionMapper;
use phpOMS\Account\PermissionType; use phpOMS\Account\PermissionType;
use phpOMS\Asset\AssetType; use phpOMS\Asset\AssetType;
use phpOMS\Contract\RenderableInterface; use phpOMS\Contract\RenderableInterface;
@ -23,7 +24,6 @@ use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract; use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View; use phpOMS\Views\View;
use Modules\Media\Models\CollectionMapper;
/** /**
* Calendar controller class. * Calendar controller class.
@ -100,7 +100,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Editor/Theme/Backend/editor-list'); $view->setTemplate('/Modules/Editor/Theme/Backend/editor-list');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response)); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response));
$path = (string) ($request->getData('path') ?? '/'); $path = (string) ($request->getData('path') ?? '/');
$collection = CollectionMapper::getByVirtualPath(\str_replace('+', ' ', $path)); $collection = CollectionMapper::getByVirtualPath(\str_replace('+', ' ', $path));
$parent = CollectionMapper::getParentCollection(\str_replace('+', ' ', $path)); $parent = CollectionMapper::getParentCollection(\str_replace('+', ' ', $path));

View File

@ -70,7 +70,7 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Created'); ?> <td><?= $this->getHtml('Created'); ?>
<tbody> <tbody>
<?php $count = 0; foreach ($collections as $key => $value) : ++$count; <?php $count = 0; foreach ($collections as $key => $value) : ++$count;
$url = UriFactory::build('{/prefix}editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->getName()); $url = UriFactory::build('{/prefix}editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->getName());
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><i class="fa fa-folder-o"></i></a> <td><a href="<?= $url; ?>"><i class="fa fa-folder-o"></i></a>