mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-01-26 22:58:40 +00:00
bug fixes and template adjustments
This commit is contained in:
parent
9dce2fc6e5
commit
788d182cbe
|
|
@ -247,6 +247,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->addData('currentCustomerRegion', $currentCustomerRegion);
|
||||
|
||||
$annualCustomerRegion = [];
|
||||
for ($i = 1; $i < 11; ++$i) {
|
||||
$annualCustomerRegion[] = [
|
||||
'year' => 2020 - 10 + $i,
|
||||
|
|
@ -270,7 +271,9 @@ final class BackendController extends Controller
|
|||
];
|
||||
}
|
||||
|
||||
\uasort($currentCustomersRep, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
||||
\uasort($currentCustomersRep, function($a, $b) {
|
||||
return $b['customers'] <=> $a['customers'];
|
||||
});
|
||||
|
||||
$view->addData('currentCustomersRep', $currentCustomersRep);
|
||||
|
||||
|
|
@ -297,7 +300,9 @@ final class BackendController extends Controller
|
|||
];
|
||||
}
|
||||
|
||||
\uasort($currentCustomersCountry, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
||||
\uasort($currentCustomersCountry, function($a, $b) {
|
||||
return $b['customers'] <=> $a['customers'];
|
||||
});
|
||||
|
||||
$view->addData('currentCustomersCountry', $currentCustomersCountry);
|
||||
|
||||
|
|
|
|||
|
|
@ -68,9 +68,7 @@ class ClientAttributeType implements \JsonSerializable, ArrayableInterface
|
|||
*
|
||||
* @var string | ClientAttributeTypeL11n
|
||||
*/
|
||||
protected string |
|
||||
|
||||
ClientAttributeTypeL11n $l11n;
|
||||
protected string|ClientAttributeTypeL11n $l11n;
|
||||
|
||||
/**
|
||||
* Possible default attribute values
|
||||
|
|
|
|||
|
|
@ -41,9 +41,7 @@ class ClientAttributeTypeL11n implements \JsonSerializable, ArrayableInterface
|
|||
* @var int|ClientAttributeType
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int |
|
||||
|
||||
ClientAttributeType $type = 0;
|
||||
protected int|ClientAttributeType $type = 0;
|
||||
|
||||
/**
|
||||
* Language.
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"require-dev": {
|
||||
"phpunit/phpunit": ">=9.4",
|
||||
"friendsofphp/php-cs-fixer": ">=3.0",
|
||||
"squizlabs/php_codesniffer": ">=3.5",
|
||||
"squizlabs/php_codesniffer": ">=3.6",
|
||||
"phpmd/phpmd": ">=2.9",
|
||||
"phpstan/phpstan": ">=0.12.58",
|
||||
"phan/phan": ">=3.2.6"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user