This commit is contained in:
Dennis Eichhorn 2021-06-05 11:04:50 +02:00
commit d5561ef4cc
2 changed files with 8 additions and 8 deletions

View File

@ -20,8 +20,8 @@ use Modules\ClientManagement\Models\ClientMapper;
use Modules\Media\Models\Media; use Modules\Media\Models\Media;
use phpOMS\Asset\AssetType; use phpOMS\Asset\AssetType;
use phpOMS\Contract\RenderableInterface; use phpOMS\Contract\RenderableInterface;
use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\ISO3166CharEnum; use phpOMS\Localization\ISO3166CharEnum;
use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\Money; use phpOMS\Localization\Money;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract; use phpOMS\Message\ResponseAbstract;
@ -281,7 +281,7 @@ final class BackendController extends Controller
for ($j = 1; $j < 11; ++$j) { for ($j = 1; $j < 11; ++$j) {
$annualCustomersRep['Rep ' . $i][] = [ $annualCustomersRep['Rep ' . $i][] = [
'customers' => (int) (\mt_rand(200, 400) / 12), 'customers' => (int) (\mt_rand(200, 400) / 12),
'year' => 2020 - 10 + $j, 'year' => 2020 - 10 + $j,
]; ];
} }
} }
@ -291,7 +291,7 @@ final class BackendController extends Controller
///// /////
$currentCustomersCountry = []; $currentCustomersCountry = [];
for ($i = 1; $i < 51; ++$i) { for ($i = 1; $i < 51; ++$i) {
$country = ISO3166NameEnum::getRandom(); $country = ISO3166NameEnum::getRandom();
$currentCustomersCountry[\substr($country, 0, 20)] = [ $currentCustomersCountry[\substr($country, 0, 20)] = [
'customers' => (int) (\mt_rand(200, 400) / 12), 'customers' => (int) (\mt_rand(200, 400) / 12),
]; ];
@ -310,9 +310,9 @@ final class BackendController extends Controller
for ($j = 1; $j < 11; ++$j) { for ($j = 1; $j < 11; ++$j) {
$annualCustomersCountry[\substr($countryName, 0, 20)][] = [ $annualCustomersCountry[\substr($countryName, 0, 20)][] = [
'customers' => (int) (\mt_rand(200, 400) / 12), 'customers' => (int) (\mt_rand(200, 400) / 12),
'year' => 2020 - 10 + $j, 'year' => 2020 - 10 + $j,
'name' => $countryName, 'name' => $countryName,
'code' => $countryCode, 'code' => $countryCode,
]; ];
} }
} }

View File

@ -2264,7 +2264,7 @@ echo $this->getData('nav')->render();
<?php <?php
$sum = []; $sum = [];
$rnd = \mt_rand(10, 30); $rnd = \mt_rand(10, 30);
$i = 0; $i = 0;
foreach ($customersCountry as $country => $annual) : ++$i; foreach ($customersCountry as $country => $annual) : ++$i;
if ($i > $rnd) break; if ($i > $rnd) break;
?> ?>
@ -3329,7 +3329,7 @@ echo $this->getData('nav')->render();
<?php <?php
$sum = []; $sum = [];
$rnd = \mt_rand(10, 30); $rnd = \mt_rand(10, 30);
$i = 0; $i = 0;
foreach ($customersCountry as $country => $annual) : ++$i; foreach ($customersCountry as $country => $annual) : ++$i;
if ($i > $rnd) break; if ($i > $rnd) break;
?> ?>