File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments