Fix increment to pre-increment

This commit is contained in:
Dennis Eichhorn 2019-05-19 19:08:35 +02:00
parent 65f6ec0e27
commit e090df0ec0
11 changed files with 22 additions and 22 deletions

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
<?php $c = 0; foreach ($categories as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/category/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($causes as $key => $value) : $c++;
<?php $c = 0; foreach ($causes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="6">
<tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++;
<?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($departments as $key => $value) : $c++;
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/department/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -109,7 +109,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ($risks as $key => $value) : $c++;
<?php $c = 0; foreach ($risks as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -140,7 +140,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
<?php $c = 0; foreach ($categories as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/category/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -168,7 +168,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($projects as $key => $value) : $c++;
<?php $c = 0; foreach ($projects as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/project/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -196,7 +196,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($processes as $key => $value) : $c++;
<?php $c = 0; foreach ($processes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/process/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -225,7 +225,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($causes as $key => $value) : $c++;
<?php $c = 0; foreach ($causes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -256,7 +256,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="4">
<tbody>
<?php $c = 0; foreach ($solutions as $key => $value) : $c++;
<?php $c = 0; foreach ($solutions as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/solution/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($processes as $key => $value) : $c++;
<?php $c = 0; foreach ($processes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/process/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($projects as $key => $value) : $c++;
<?php $c = 0; foreach ($projects as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/project/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -28,7 +28,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ($risks as $key => $value) : $c++;
<?php $c = 0; foreach ($risks as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/risk/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -28,7 +28,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="4">
<tbody>
<?php $c = 0; foreach ($solutions as $key => $value) : $c++;
<?php $c = 0; foreach ($solutions as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/solution/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($units as $key => $value) : $c++;
<?php $c = 0; foreach ($units as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/unit/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>

View File

@ -110,7 +110,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ($risks as $key => $value) : $c++;
<?php $c = 0; foreach ($risks as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -141,7 +141,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($departments as $key => $value) : $c++;
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/department/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -169,7 +169,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
<?php $c = 0; foreach ($categories as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/category/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -197,7 +197,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($projects as $key => $value) : $c++;
<?php $c = 0; foreach ($projects as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/project/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -225,7 +225,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($processes as $key => $value) : $c++;
<?php $c = 0; foreach ($processes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/process/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -254,7 +254,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="3">
<tbody>
<?php $c = 0; foreach ($causes as $key => $value) : $c++;
<?php $c = 0; foreach ($causes as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/cause/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
@ -285,7 +285,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="4">
<tbody>
<?php $c = 0; foreach ($solutions as $key => $value) : $c++;
<?php $c = 0; foreach ($solutions as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}riskmanagement/solution/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>