autofixes

This commit is contained in:
Dennis Eichhorn 2020-08-30 20:13:10 +02:00
parent fad2a7acce
commit 3d7a5d7aa2
3 changed files with 6 additions and 3 deletions

View File

@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
abstract class PermissionState extends Enum abstract class PermissionState extends Enum
{ {
public const HELP_GENERAL = 1; public const HELP_GENERAL = 1;
public const HELP_MODULE = 2; public const HELP_MODULE = 2;
public const HELP_DEVELOPER = 3; public const HELP_DEVELOPER = 3;
} }

View File

@ -27,11 +27,11 @@ $next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/modul
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="portlet"> <div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Modules') ?><i class="fa fa-download floatRight download btn"></i></div> <div class="portlet-head"><?= $this->getHtml('Modules'); ?><i class="fa fa-download floatRight download btn"></i></div>
<table id="moduleList" class="default"> <table id="moduleList" class="default">
<thead> <thead>
<tr> <tr>
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i> <td class="wf-100"><?= $this->getHtml('Name'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
<tbody> <tbody>
<?php <?php
$count = 0; $count = 0;
@ -47,7 +47,7 @@ $next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/modul
); );
?> ?>
<tr tabindex="0" data-href="<?= $url; ?>"> <tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module->getExternalName()); ?></a> <td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module->getExternalName()); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?> <tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>

View File

@ -20,6 +20,7 @@ namespace Modules\Help\tests\Admin;
class AdminTest extends \PHPUnit\Framework\TestCase class AdminTest extends \PHPUnit\Framework\TestCase
{ {
protected const MODULE_NAME = 'Help'; protected const MODULE_NAME = 'Help';
protected const URI_LOAD = 'http://127.0.0.1/en/backend/help'; protected const URI_LOAD = 'http://127.0.0.1/en/backend/help';
use \Modules\tests\ModuleTestTrait; use \Modules\tests\ModuleTestTrait;