Make classes final

This commit is contained in:
Dennis Eichhorn 2018-05-11 21:30:34 +02:00
parent 360c21f0f6
commit 2e25b18e68
4 changed files with 19 additions and 20 deletions

View File

@ -40,7 +40,7 @@ use phpOMS\Message\Http\RequestStatusCode;
* @link http://website.orange-management.de * @link http://website.orange-management.de
* @since 1.0.0 * @since 1.0.0
*/ */
class Controller extends ModuleAbstract implements WebInterface final class Controller extends ModuleAbstract implements WebInterface
{ {
/** /**

View File

@ -22,6 +22,6 @@ namespace Modules\Media\Models;
* @link http://website.orange-management.de * @link http://website.orange-management.de
* @since 1.0.0 * @since 1.0.0
*/ */
class NullCollection extends Collection final class NullCollection extends Collection
{ {
} }

View File

@ -22,6 +22,6 @@ namespace Modules\Media\Models;
* @link http://website.orange-management.de * @link http://website.orange-management.de
* @since 1.0.0 * @since 1.0.0
*/ */
class NullMedia extends Media final class NullMedia extends Media
{ {
} }

View File

@ -34,11 +34,10 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Size') ?> <td><?= $this->getHtml('Size') ?>
<td><?= $this->getHtml('Creator') ?> <td><?= $this->getHtml('Creator') ?>
<td><?= $this->getHtml('Created') ?> <td><?= $this->getHtml('Created') ?>
<tfoot>
<tr>
<td colspan="3">
<tbody> <tbody>
<?php $count = 0; foreach ($media as $key => $value) : $count++; <?php $count = 0;
foreach ($media as $key => $value) :
$count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/media/single?{?}&id=' . $value->getId()); $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/media/single?{?}&id=' . $value->getId());
$icon = $fileIconFunction(\phpOMS\System\File\FileUtils::getExtensionType($value->getExtension())); $icon = $fileIconFunction(\phpOMS\System\File\FileUtils::getExtensionType($value->getExtension()));
?> ?>
@ -51,7 +50,7 @@ echo $this->getData('nav')->render(); ?>
<td data-label="<?= $this->getHtml('Created') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedAt()->format('Y-m-d H:i:s')); ?></a> <td data-label="<?= $this->getHtml('Created') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedAt()->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?> <tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>