@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
93 | 93 | |
94 | - if (!$repositoryResponse->isSuccessful()) { |
|
94 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
95 | 95 | throw RepositoryException::failed($repositoryResponse); |
96 | 96 | } |
97 | 97 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $result = []; |
103 | 103 | |
104 | - if (!$responseContent['response']['member_data_sharings']) { |
|
104 | + if ( ! $responseContent['response']['member_data_sharings']) { |
|
105 | 105 | $responseContent['response']['member_data_sharings'] = []; |
106 | 106 | } |
107 | 107 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
141 | 141 | |
142 | - if (!$repositoryResponse->isSuccessful()) { |
|
142 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
143 | 143 | throw RepositoryException::failed($repositoryResponse); |
144 | 144 | } |
145 | 145 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | $result = []; |
151 | 151 | |
152 | - if (!$responseContent['response']['member_data_sharings']) { |
|
152 | + if ( ! $responseContent['response']['member_data_sharings']) { |
|
153 | 153 | $responseContent['response']['member_data_sharings'] = []; |
154 | 154 | } |
155 | 155 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | $segments = []; |
160 | 160 | |
161 | - if (!empty($memberDataSharing->getSegments() && count($memberDataSharing->getSegments()) > 0)) { |
|
161 | + if ( ! empty($memberDataSharing->getSegments() && count($memberDataSharing->getSegments()) > 0)) { |
|
162 | 162 | foreach ($memberDataSharing->getSegments() as $s) { |
163 | 163 | $segments[] = MemberDataSharingSegment::fromArray($s); |
164 | 164 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
199 | 199 | |
200 | - if (!$repositoryResponse->isSuccessful()) { |
|
200 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
201 | 201 | throw RepositoryException::failed($repositoryResponse); |
202 | 202 | } |
203 | 203 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $result = []; |
209 | 209 | |
210 | 210 | |
211 | - if (!$responseContent['response']['member_data_sharing']) { |
|
211 | + if ( ! $responseContent['response']['member_data_sharing']) { |
|
212 | 212 | $responseContent['response']['member_data_sharing'] = []; |
213 | 213 | } |
214 | 214 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | $segments = []; |
218 | 218 | |
219 | - if (!empty($memberDataSharing->getSegments() && count($memberDataSharing->getSegments()) > 0)) { |
|
219 | + if ( ! empty($memberDataSharing->getSegments() && count($memberDataSharing->getSegments()) > 0)) { |
|
220 | 220 | foreach ($memberDataSharing->getSegments() as $s) { |
221 | 221 | $segments[] = MemberDataSharingSegment::fromArray($s); |
222 | 222 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | ]; |
250 | 250 | |
251 | 251 | |
252 | - if (!empty($mSharing->getSegments())) { |
|
252 | + if ( ! empty($mSharing->getSegments())) { |
|
253 | 253 | $segmentToUpload = []; |
254 | 254 | |
255 | 255 | foreach ($mSharing->getSegments() as $segment) { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | $responseContent = json_decode($stream->getContents(), true); |
271 | 271 | $stream->rewind(); |
272 | 272 | |
273 | - if (!(isset($responseContent['response']['member_data_sharing']['id']))) { |
|
273 | + if ( ! (isset($responseContent['response']['member_data_sharing']['id']))) { |
|
274 | 274 | throw RepositoryException::wrongFormat(serialize($responseContent)); |
275 | 275 | } |
276 | 276 | |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | public function addSegmentsToMemberDataSharing($memberDataSharingId, $segments) |
289 | 289 | { |
290 | 290 | |
291 | - $compiledUrl = $this->baseUrl.$memberDataSharingId; |
|
291 | + $compiledUrl = $this->baseUrl . $memberDataSharingId; |
|
292 | 292 | |
293 | 293 | /** @var MemberDataSharingSegment[] $mdObject */ |
294 | 294 | $mdObjectArray = $this->findById($memberDataSharingId); |