autofixes

This commit is contained in:
Dennis Eichhorn 2020-08-30 20:13:10 +02:00
parent 17bcc4c577
commit cbdd8635e7
5 changed files with 14 additions and 3 deletions

View File

@ -27,13 +27,22 @@ use phpOMS\Stdlib\Base\Enum;
abstract class FrequencyInterval extends Enum abstract class FrequencyInterval extends Enum
{ {
public const SUNDAY = 1; public const SUNDAY = 1;
public const MONDAY = 2; public const MONDAY = 2;
public const TUESDAY = 4; public const TUESDAY = 4;
public const WEDNESDAY = 8; public const WEDNESDAY = 8;
public const THURSDAY = 16; public const THURSDAY = 16;
public const FRIDAY = 32; public const FRIDAY = 32;
public const SATURDAY = 64; public const SATURDAY = 64;
public const DAY = 128; public const DAY = 128;
public const WEEKDAY = 256; public const WEEKDAY = 256;
public const WEEKENDDAY = 512; public const WEEKENDDAY = 512;
} }

View File

@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum;
abstract class ScheduleStatus extends Enum abstract class ScheduleStatus extends Enum
{ {
public const ACTIVE = 1; public const ACTIVE = 1;
public const INACTIVE = 1; public const INACTIVE = 1;
} }

View File

@ -1,6 +1,6 @@
<template id="calendar-event-popup-tpl"> <template id="calendar-event-popup-tpl">
<section id="calendar-event-popup" class="box w-50" style="z-index: 9; position: absolute; margin: 0 auto; left: 50%; top: 50%; transform: translate(-50%, -50%);"> <section id="calendar-event-popup" class="box w-50" style="z-index: 9; position: absolute; margin: 0 auto; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<header><h1><?= $this->getHtml('Event', 'Calendar') ?></h1></header> <header><h1><?= $this->getHtml('Event', 'Calendar'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -19,7 +19,7 @@
{"key": 1, "type": "dom.remove", "tpl": "calendar-event-popup", "aniOut": "fadeOut"} {"key": 1, "type": "dom.remove", "tpl": "calendar-event-popup", "aniOut": "fadeOut"}
] ]
} }
]'><?= $this->getHtml('Close', 'Calendar') ?></button> ]'><?= $this->getHtml('Close', 'Calendar'); ?></button>
</table> </table>
</form> </form>
</div> </div>

View File

@ -20,6 +20,6 @@ declare(strict_types=1);
?> ?>
<div id="calendar-dashboard" class="col-xs-12 col-md-6" draggable="true"> <div id="calendar-dashboard" class="col-xs-12 col-md-6" draggable="true">
<div class="portlet"> <div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Calendar', 'Calendar') ?></div> <div class="portlet-head"><?= $this->getHtml('Calendar', 'Calendar'); ?></div>
<?= $this->getData('calendar')->render($this->getData('cal')); ?> <?= $this->getData('calendar')->render($this->getData('cal')); ?>
</div> </div>

View File

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