Skip to content

A free open source IT asset/license management system

Make phpstan happy

snipecf0442da87a1
diff --git a/app/SyncAdapters/Addigy/AddigyAdapter.php b/app/SyncAdapters/Addigy/AddigyAdapter.php
index 5de84fe23c..6fd2998170 100644
--- a/app/SyncAdapters/Addigy/AddigyAdapter.php
+++ b/app/SyncAdapters/Addigy/AddigyAdapter.php
@@ -300,12 +300,12 @@ class AddigyAdapter extends SyncAdapter implements PushableAdapter
$client = $this->makeClient();
$dispatched = false;
- if ($hostnameConfigured) {
- $dispatched = $this->pushHostname($asset, $externalSource, $client) || $dispatched;
+ if ($hostnameConfigured && $this->pushHostname($asset, $externalSource, $client)) {
+ $dispatched = true;
}
- if ($endUserConfigured) {
- $dispatched = $this->pushEndUserAssignment($asset, $externalSource, $client) || $dispatched;
+ if ($endUserConfigured && $this->pushEndUserAssignment($asset, $externalSource, $client)) {
+ $dispatched = true;
}
return $dispatched;