@@ -192,25 +192,25 @@ public function removeMember(MemberItem $memberItem) : ?array
192
192
}
193
193
}
194
194
195
- /**
196
- * @throws JsonException
197
- * @throws MemberNotFoundException
198
- * @throws RequestException
199
- */
200
- public function removePermanentMember (MemberItem $ memberItem ) : ?array
201
- {
202
- try {
203
- return $ this ->apiRequest ->post ($ this ->getDeleteOneMemberPermanentEndpointPath ($ memberItem ->list_id , $ memberItem ->id ), []);
204
- } catch (ClientException $ clientException ) {
205
- throw new MemberNotFoundException ("Member ' {$ memberItem ->id }' not found in the list ' {$ memberItem ->list_id }' " , $ clientException );
206
- } catch (RequestException $ requestException ) {
207
- if ($ requestException ->getCode () === 204 ) {
208
- return null ;
209
- }
210
-
211
- throw $ requestException ;
212
- }
213
- }
195
+ /**
196
+ * @throws JsonException
197
+ * @throws MemberNotFoundException
198
+ * @throws RequestException
199
+ */
200
+ public function removePermanentMember (MemberItem $ memberItem ) : ?array
201
+ {
202
+ try {
203
+ return $ this ->apiRequest ->post ($ this ->getDeleteOneMemberPermanentEndpointPath ($ memberItem ->list_id , $ memberItem ->id ), []);
204
+ } catch (ClientException $ clientException ) {
205
+ throw new MemberNotFoundException ("Member ' {$ memberItem ->id }' not found in the list ' {$ memberItem ->list_id }' " , $ clientException );
206
+ } catch (RequestException $ requestException ) {
207
+ if ($ requestException ->getCode () === 204 ) {
208
+ return null ;
209
+ }
210
+
211
+ throw $ requestException ;
212
+ }
213
+ }
214
214
215
215
/**
216
216
* @throws JsonException
@@ -329,10 +329,10 @@ private function getOneMemberEndpointPath(string $listId, string $memberHash) :
329
329
return $ this ->getMemberEndpointPath ($ listId ) . "/ {$ memberHash }" ;
330
330
}
331
331
332
- private function getDeleteOneMemberPermanentEndpointPath (string $ listId , string $ memberHash ) : string
333
- {
334
- return $ this ->getOneMemberEndpointPath ($ listId , $ memberHash ) . " /actions/delete-permanent " ;
335
- }
332
+ private function getDeleteOneMemberPermanentEndpointPath (string $ listId , string $ memberHash ) : string
333
+ {
334
+ return $ this ->getOneMemberEndpointPath ($ listId , $ memberHash ) . ' /actions/delete-permanent ' ;
335
+ }
336
336
337
337
private function getSegmentEndpointPath (string $ listId ) : string
338
338
{
0 commit comments