Skip to content

Commit

Permalink
Apply CS/Rector changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanwilfer authored and github-actions[bot] committed Aug 10, 2024
1 parent 0284f7f commit 3f56656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/TSVtoSIE.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead
if ($data['result_unit'] !== '') {
// find dimension (pre-defined)
$dim = $company->getDimension(Dimension::DIMENSION_COST_CENTRE);
if ($dim === null) {
if (!$dim instanceof Dimension) {
throw new \LogicException('Expected to find dimension: DIMENSION_COST_CENTRE');
}

Expand All @@ -210,7 +210,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead
if ($data['project'] !== '') {
// find dimension (pre-defined)
$dim = $company->getDimension(Dimension::DIMENSION_PROJECT);
if ($dim === null) {
if (!$dim instanceof Dimension) {
throw new \LogicException('Expected to find dimension: DIMENSION_PROJECT');
}

Expand Down
2 changes: 0 additions & 2 deletions examples/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
->addAccount($account3741)
;



// add a verification with two transactions
$verification = (new Verification('591000490'))->setDate('20150105')
->addTransaction(
Expand Down

0 comments on commit 3f56656

Please sign in to comment.