Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
check isset before using
  • Loading branch information
bbrands02 committed Oct 11, 2024
1 parent ed9b6f9 commit bb28467
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Service/ZaakService.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ public function getZaak(array $configuration, string $caseID)
private function updateTaak(ObjectEntity $zaak, string $taakId): ?ObjectEntity
{
$this->pluginLogger->info("taakId found in body, trying to update taak with zaak url", ['plugin' => XxllncZGWBundle::PLUGIN_NAME]);
$this->style->info("taakId found in body, trying to update taak with zaak url");
isset($this->style) === true && $this->style->info("taakId found in body, trying to update taak with zaak url");

$zaak = $this->resourceService->getObject($zaak->getId()->toString(), 'common-gateway/xxllnc-zgw-bundle');
$taak = $this->resourceService->getObject($taakId, 'common-gateway/xxllnc-zgw-bundle');
if ($taak === null) {
$this->pluginLogger->error("Taak not found with id {$taakId}, can not add zaak and zaaktype url to it", ['plugin' => XxllncZGWBundle::PLUGIN_NAME]);
$this->style->error("Taak not found with id {$taakId}, can not add zaak and zaaktype url to it");
isset($this->style) === true &&$this->style->error("Taak not found with id {$taakId}, can not add zaak and zaaktype url to it");

return null;
}
Expand All @@ -469,7 +469,7 @@ private function updateTaak(ObjectEntity $zaak, string $taakId): ?ObjectEntity
}

$this->pluginLogger->info("Updated taak with zaak url and zaaktype url", ['plugin' => XxllncZGWBundle::PLUGIN_NAME]);
$this->style->info("Updated taak with zaak url and zaaktype url");
isset($this->style) === true && $this->style->info("Updated taak with zaak url and zaaktype url");
return $taak;

}//end updateTaak()
Expand Down

0 comments on commit bb28467

Please # to comment.