@@ 151-153 (lines=3) @@ | ||
148 | $responseContent = \json_decode($stream->getContents(), true); |
|
149 | $stream->rewind(); |
|
150 | ||
151 | if (!isset($responseContent['audiences']) || count($responseContent['audiences']) == 0) { |
|
152 | return null; |
|
153 | } |
|
154 | ||
155 | if (count($responseContent['audiences']) > 1) { |
|
156 | RepositoryException::genericFailed('Adobe Target returned more that one audiences...please check your id'); |
|
@@ 194-196 (lines=3) @@ | ||
191 | ||
192 | $result = []; |
|
193 | ||
194 | if (!isset($responseContent['audiences']) || count($responseContent['audiences']) == 0) { |
|
195 | return $result; |
|
196 | } |
|
197 | ||
198 | $audiences = $responseContent['audiences']; |
|
199 |