mirror of
https://github.com/Karaka-Management/oms-InvestmentManagement.git
synced 2026-02-16 20:28:43 +00:00
rector fixes
This commit is contained in:
parent
f8a85f432d
commit
525bee96ed
|
|
@ -93,9 +93,9 @@ final class Installer extends InstallerAbstract
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$amountTypes[$type['name']] = !\is_array($responseData['response'])
|
$amountTypes[$type['name']] = \is_array($responseData['response'])
|
||||||
? $responseData['response']->toArray()
|
? $responseData['response']
|
||||||
: $responseData['response'];
|
: $responseData['response']->toArray();
|
||||||
|
|
||||||
$isFirst = true;
|
$isFirst = true;
|
||||||
foreach ($type['l11n'] as $language => $l11n) {
|
foreach ($type['l11n'] as $language => $l11n) {
|
||||||
|
|
|
||||||
|
|
@ -487,7 +487,7 @@ final class ApiController extends Controller
|
||||||
$types = AmountTypeMapper::getAll()->execute();
|
$types = AmountTypeMapper::getAll()->execute();
|
||||||
|
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
if ($type->title = 'costs') {
|
if ($type->title === 'costs') {
|
||||||
$defaultGroup = new AmountGroup();
|
$defaultGroup = new AmountGroup();
|
||||||
$defaultGroup->name = 'Purchase Price'; // @todo: replace with api l11n
|
$defaultGroup->name = 'Purchase Price'; // @todo: replace with api l11n
|
||||||
$defaultGroup->type = new NullBaseStringL11nType($type->id);
|
$defaultGroup->type = new NullBaseStringL11nType($type->id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user