mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-17 07:28:39 +00:00
autofixes
This commit is contained in:
parent
09169c3182
commit
131640416c
|
|
@ -25,7 +25,7 @@ use phpOMS\Contract\ArrayableInterface;
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class DrawImage implements ArrayableInterface, \JsonSerializable
|
class DrawImage implements \JsonSerializable, ArrayableInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Article ID.
|
* Article ID.
|
||||||
|
|
|
||||||
|
|
@ -27,20 +27,20 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<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('Images') ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Images'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
<td class="wf-100"><?= $this->getHtml('Name'); ?>
|
||||||
<td><?= $this->getHtml('Creator') ?>
|
<td><?= $this->getHtml('Creator'); ?>
|
||||||
<td><?= $this->getHtml('Created') ?>
|
<td><?= $this->getHtml('Created'); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($images as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($images as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}draw/single?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}draw/single?{?}&id=' . $value->getId()); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getName()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedBy()->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Creator'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedBy()->getName()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Created') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedAt()->format('Y-m-d')); ?></a>
|
<td data-label="<?= $this->getHtml('Created'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedAt()->format('Y-m-d')); ?></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="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace Modules\Draw\tests\Admin;
|
||||||
class AdminTest extends \PHPUnit\Framework\TestCase
|
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected const MODULE_NAME = 'Draw';
|
protected const MODULE_NAME = 'Draw';
|
||||||
|
|
||||||
protected const URI_LOAD = 'http://127.0.0.1/en/backend/draw';
|
protected const URI_LOAD = 'http://127.0.0.1/en/backend/draw';
|
||||||
|
|
||||||
use \Modules\tests\ModuleTestTrait;
|
use \Modules\tests\ModuleTestTrait;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ use phpOMS\Utils\TestUtils;
|
||||||
class ControllerTest extends \PHPUnit\Framework\TestCase
|
class ControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected $app = null;
|
protected $app = null;
|
||||||
|
|
||||||
protected $module = null;
|
protected $module = null;
|
||||||
|
|
||||||
protected function setUp() : void
|
protected function setUp() : void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user