summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHannes Kindströmmer <hannes@kindstrommer.se>2017-03-16 11:37:25 +0100
committerHannes Kindströmmer <hannes@kindstrommer.se>2017-03-16 11:38:04 +0100
commit0d3f1dc8b98fd25d0df709da76642212b664b068 (patch)
treead3aeb4b58ac5378a086d15e49a3fae2eeb63e58 /src
parent401c829a1ded22265d9152ed4d34e0bfb58ddda3 (diff)
downloadip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.zip
ip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.tar.gz
ip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.tar.bz2
Fixed issue #7 and #8
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
Diffstat (limited to 'src')
-rw-r--r--src/Recipient/ProcessedContact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Recipient/ProcessedContact.php b/src/Recipient/ProcessedContact.php
index cdd7436..5408dee 100644
--- a/src/Recipient/ProcessedContact.php
+++ b/src/Recipient/ProcessedContact.php
@@ -109,7 +109,7 @@ class ProcessedContact extends Contact implements UpdatableComponent, Membership
*/
public function getMemberships(Communicator $communicator = null): ClassValidationArray
{
- if ($communicator != null) {
+ if ($communicator !== null) {
$membershipJSON = $communicator->get("api/contacts/".$this->contactID."/memberships");
$membershipStd = json_decode($membershipJSON);
$memberships = [];
@@ -130,7 +130,7 @@ class ProcessedContact extends Contact implements UpdatableComponent, Membership
*/
public function getGroups(Communicator $communicator = null): ClassValidationArray
{
- if ($communicator != null) {
+ if ($communicator !== null) {
$groupsJSON = $communicator->get('api/contacts/'.$this->contactID. '/groups');
$groupStd = json_decode($groupsJSON);
$groups = RecipientFactory::createProcessedGroupsFromStdClassArray($groupStd);