Fix if for foreach while spacing

This commit is contained in:
Dennis Eichhorn 2017-10-27 17:56:33 +02:00
parent 06edc8aaf6
commit e8271666a3
12 changed files with 13 additions and 13 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\EventManagement\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\EventManagement\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\EventManagement\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\EventManagement\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\EventManagement\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\EventManagement\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\EventManagement;
use phpOMS\Message\RequestAbstract;

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\EventManagement\Models;
use Modules\Calendar\Models\Calendar;

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\EventManagement\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;

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\EventManagement\Models;
use phpOMS\Stdlib\Base\Enum;

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\EventManagement\Models;
use phpOMS\Stdlib\Base\Enum;

View File

@ -35,14 +35,14 @@ echo $this->getData('nav')->render(); ?>
<tr>
<td colspan="5"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach($events as $key => $value) : $count++;
<?php $count = 0; foreach ($events as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/eventmanagement/profile?{?}&id=' . $value->getId());?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getStart()->format('Y-m-d')); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getEnd()->format('Y-m-d')); ?></a>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<?php if ($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
</table>