diff options
author | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-16 11:39:54 +0100 |
---|---|---|
committer | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-16 11:39:54 +0100 |
commit | b4cae1c1ecf74a5b57f995ffb752e46b6a225f9d (patch) | |
tree | 37d2591112479b8561ff6367d84b417e503652f7 | |
parent | 0d3f1dc8b98fd25d0df709da76642212b664b068 (diff) | |
download | ip1-php-sdk-b4cae1c1ecf74a5b57f995ffb752e46b6a225f9d.zip ip1-php-sdk-b4cae1c1ecf74a5b57f995ffb752e46b6a225f9d.tar.gz ip1-php-sdk-b4cae1c1ecf74a5b57f995ffb752e46b6a225f9d.tar.bz2 |
Fixed issue #9 and #10
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
-rw-r--r-- | src/Recipient/ProcessedGroup.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Recipient/ProcessedGroup.php b/src/Recipient/ProcessedGroup.php index bbe0985..514a69b 100644 --- a/src/Recipient/ProcessedGroup.php +++ b/src/Recipient/ProcessedGroup.php @@ -106,7 +106,7 @@ class ProcessedGroup extends Group implements UpdatableComponent, MembershipRela */ public function getMemberships(Communicator $communicator = null): ClassValidationArray { - if ($communicator != null) { + if ($communicator !== null) { $membershipJSON = $communicator->get("api/groups/".$this->groupID."/memberships"); $membershipStd = json_decode($membershipJSON); $memberships = []; @@ -135,7 +135,7 @@ class ProcessedGroup extends Group implements UpdatableComponent, MembershipRela */ public function getContacts(Communicator $communicator = null): ClassValidationArray { - if ($communicator != null) { + if ($communicator !== null) { $contactStd = $communicator->get('api/groups/'.$this->groupID. '/contacts'); $contactStd = json_decode($contactStd); $contacts = RecipientFactory::createProcessedGroupsFromStdClassArray($contactStd); |