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