mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-17 05:58:41 +00:00
Fix if for foreach while spacing
This commit is contained in:
parent
6f39c089ce
commit
5b1ab5d5b0
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin;
|
namespace Modules\Auditor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin;
|
namespace Modules\Auditor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin\Install;
|
namespace Modules\Auditor\Admin\Install;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin;
|
namespace Modules\Auditor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabaseType;
|
use phpOMS\DataStorage\Database\DatabaseType;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin;
|
namespace Modules\Auditor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Admin;
|
namespace Modules\Auditor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor;
|
namespace Modules\Auditor;
|
||||||
|
|
||||||
use phpOMS\Asset\AssetType;
|
use phpOMS\Asset\AssetType;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Models;
|
namespace Modules\Auditor\Models;
|
||||||
|
|
||||||
class Audit
|
class Audit
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types = 1);
|
||||||
namespace Modules\Auditor\Models;
|
namespace Modules\Auditor\Models;
|
||||||
|
|
||||||
use Modules\Admin\Models\AccountMapper;
|
use Modules\Admin\Models\AccountMapper;
|
||||||
|
|
@ -89,7 +89,7 @@ class AuditMapper extends DataMapperAbstract
|
||||||
try {
|
try {
|
||||||
$objId = parent::create($obj, $relations);
|
$objId = parent::create($obj, $relations);
|
||||||
|
|
||||||
if($objId === null || !is_scalar($objId)) {
|
if ($objId === null || !is_scalar($objId)) {
|
||||||
return $objId;
|
return $objId;
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach($audits as $key => $audit) : $count++;
|
<?php $count = 0; foreach ($audits as $key => $audit) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td>
|
<td>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="9">
|
<td colspan="9">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach($audits as $key => $audit) : $count++;
|
<?php $count = 0; foreach ($audits as $key => $audit) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td>
|
<td>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach($audits as $key => $audit) : $count++;
|
<?php $count = 0; foreach ($audits as $key => $audit) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/audit/single?{?}&id=' . $audit->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td>
|
<td>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user