Fix if for foreach while spacing

This commit is contained in:
Dennis Eichhorn 2017-10-27 17:56:33 +02:00
parent 2c2a14ccbb
commit c848955819
12 changed files with 21 additions and 21 deletions

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin;
use phpOMS\DataStorage\Database\DatabaseType;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Messages;
use Modules\Navigation\Models\Navigation;

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5"><?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage'])); ?> / <?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit'])); ?>
<tbody>
<?php $count = 0; foreach($unseen as $key => $value) : $count++;
<?php $count = 0; foreach ($unseen as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?>
<?php foreach($seen as $key => $value) : $count++;
<?php foreach ($seen as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
@ -58,7 +58,7 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?>
<?php if($count < 1) : ?>
<?php if ($count < 1) : ?>
<tr>
<td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5"><?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage'])); ?> / <?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit'])); ?>
<tbody>
<?php $count = 0; foreach($sent as $key => $value) : $count++;
<?php $count = 0; foreach ($sent as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
@ -47,7 +47,7 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?>
<?php if($count < 1) : ?>
<?php if ($count < 1) : ?>
<tr>
<td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5"><?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage'])); ?> / <?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit'])); ?>
<tbody>
<?php $count = 0; foreach($sent as $key => $value) : $count++;
<?php $count = 0; foreach ($sent as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
@ -47,7 +47,7 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?>
<?php if($count < 1) : ?>
<?php if ($count < 1) : ?>
<tr>
<td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5"><?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['usage'])); ?> / <?= $this->printHtml(\phpOMS\Utils\Converter\File::kilobyteSizeToString($quota['limit'])); ?>
<tbody>
<?php $count = 0; foreach($sent as $key => $value) : $count++;
<?php $count = 0; foreach ($sent as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
@ -47,7 +47,7 @@ echo $this->getData('nav')->render(); ?>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?></a>
<?php endforeach; ?>
<?php if($count < 1) : ?>
<?php if ($count < 1) : ?>
<tr>
<td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>

View File

@ -25,35 +25,35 @@ echo $this->getData('nav')->render(); ?>
<tr><td><label for="iInbox"><?= $this->getHtml('Inbox') ?></label>
<tr><td><select id="iInbox" name="inbox">
<option value=""><?= $this->getHtml('Select') ?>
<?php foreach($boxes as $box) : ?>
<?php foreach ($boxes as $box) : ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iOutbox"><?= $this->getHtml('Outbox') ?></label>
<tr><td><select id="iOutbox" name="outbox">
<option value=""><?= $this->getHtml('Select') ?>
<?php foreach($boxes as $box) : ?>
<?php foreach ($boxes as $box) : ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iDraft"><?= $this->getHtml('Draft') ?></label>
<tr><td><select id="iDraft" name="draft">
<option value=""><?= $this->getHtml('Select') ?>
<?php foreach($boxes as $box) : ?>
<?php foreach ($boxes as $box) : ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTrash"><?= $this->getHtml('Trash') ?></label>
<tr><td><select id="iTrash" name="trash">
<option value=""><?= $this->getHtml('Select') ?>
<?php foreach($boxes as $box) : ?>
<?php foreach ($boxes as $box) : ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSpam"><?= $this->getHtml('Spam') ?></label>
<tr><td><select id="iSpam" name="spam">
<option value=""><?= $this->getHtml('Select') ?>
<?php foreach($boxes as $box) : ?>
<?php foreach ($boxes as $box) : ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>