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

View File

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