Skip to content

Commit f6bdf1d

Browse files
author
Chris Harrison
committed
Changed formatting to fit with project conventions (hopefully this is tabs not spaces)
1 parent 527a43a commit f6bdf1d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/AmazonSNS.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -442,24 +442,24 @@ public function unsubscribe($subscriptionArn) {
442442
* @return string
443443
* @throws InvalidArgumentException
444444
*/
445-
public function createPlatformEndpoint($platformApplicationArn, $token, $userData = null) {
446-
if(empty($platformApplicationArn) || empty($token)) {
447-
throw new InvalidArgumentException('Must supply a PlatformApplicationArn & Token to create platform endpoint');
448-
}
445+
public function createPlatformEndpoint($platformApplicationArn, $token, $userData = null) {
446+
if(empty($platformApplicationArn) || empty($token)) {
447+
throw new InvalidArgumentException('Must supply a PlatformApplicationArn & Token to create platform endpoint');
448+
}
449449

450-
$attributes = array(
451-
'PlatformApplicationArn' => $platformApplicationArn,
452-
'Token' => $token
453-
);
450+
$attributes = array(
451+
'PlatformApplicationArn' => $platformApplicationArn,
452+
'Token' => $token
453+
);
454454

455-
if (!empty($userData)) {
456-
$attributes['CustomUserData'] = $userData;
457-
}
455+
if(!empty($userData)) {
456+
$attributes['CustomUserData'] = $userData;
457+
}
458458

459-
$response = $this->_request('CreatePlatformEndpoint', $attributes);
459+
$response = $this->_request('CreatePlatformEndpoint', $attributes);
460460

461-
return strval($response->CreatePlatformEndpointResult->EndpointArn);
462-
}
461+
return strval($response->CreatePlatformEndpointResult->EndpointArn);
462+
}
463463

464464
/**
465465
* Delete endpoint

0 commit comments

Comments
 (0)