mirror of
https://github.com/Karaka-Management/oms-IncomeStatement.git
synced 2026-01-11 11:48:41 +00:00
Test fixes
This commit is contained in:
parent
81353aa0bc
commit
263b91ac83
|
|
@ -86,8 +86,8 @@ final class Installer extends InstallerAbstract
|
||||||
$module->apiIncomeStatementCreate($request, $response);
|
$module->apiIncomeStatementCreate($request, $response);
|
||||||
$responseData = $response->getDataArray('');
|
$responseData = $response->getDataArray('');
|
||||||
|
|
||||||
$incomeStatement = \is_array($responseData['response'])
|
$incomeStatement = \is_array($responseData['response'] ?? [])
|
||||||
? $responseData['response']
|
? ($responseData['response'] ?? [])
|
||||||
: $responseData['response']->toArray();
|
: $responseData['response']->toArray();
|
||||||
|
|
||||||
$fileContent = \file_get_contents(__DIR__ . '/Install/Coa/' . $file);
|
$fileContent = \file_get_contents(__DIR__ . '/Install/Coa/' . $file);
|
||||||
|
|
@ -155,8 +155,8 @@ final class Installer extends InstallerAbstract
|
||||||
$module->apiIncomeStatementElementCreate($request, $response);
|
$module->apiIncomeStatementElementCreate($request, $response);
|
||||||
$responseData = $response->getDataArray('');
|
$responseData = $response->getDataArray('');
|
||||||
|
|
||||||
$incomeStatementElement = \is_array($responseData['response'])
|
$incomeStatementElement = \is_array($responseData['response'] ?? [])
|
||||||
? $responseData['response']
|
? ($responseData['response'] ?? [])
|
||||||
: $responseData['response']->toArray();
|
: $responseData['response']->toArray();
|
||||||
|
|
||||||
$isFirst = true;
|
$isFirst = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user