Skip to content

Commit b28ef68

Browse files
committed
fixes for linter
1 parent 9d97cdd commit b28ef68

File tree

3 files changed

+32
-27
lines changed

3 files changed

+32
-27
lines changed

src/Controllers/Examples/eSignature/EG044FocusedView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ public function getTemplateArgs(): array
7979
'envelope_args' => $envelope_args
8080
];
8181
}
82-
}
82+
}

src/Services/AdminApiClientService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ public function getOrgAdminId(): String
101101
$AccountsApi = new AccountsApi($this->apiClient);
102102
$orgs = $AccountsApi->getOrganizations();
103103
if ($orgs["organizations"] == null) {
104-
throw new ApiException("You must create an organization for this account to use the DocuSign Admin API. For details, see <a target='_blank' href='https://support.docusign.com/guides/org-admin-guide'> this support article.</a>", 1);
104+
throw new ApiException(
105+
"You must create an organization for this account to use the DocuSign Admin"
106+
. " API. For details, see <a target='_blank' href='https://support.docusign.com/guides/org-admin-guide'>"
107+
. " this support article.</a>",
108+
1
109+
);
105110
} else {
106111
return $orgs["organizations"][0]["id"];
107112
}

src/Services/Examples/eSignature/AddDocToTemplateService.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -159,31 +159,31 @@ public static function makeEnvelope(array $args, $clientService): EnvelopeDefini
159159
}
160160
#ds-snippet-end:eSign13Step2
161161

162-
public static function sendCompositeTemplate($clientService, $args, $envelope_definition): array
163-
{
164-
# Call Envelopes::create API method
165-
# Exceptions will be caught by the calling function
166-
#ds-snippet-start:eSign13Step3
167-
$envelope_api = $clientService->getEnvelopeApi();
168-
$envelopeResponse = $envelope_api->createEnvelope($args['account_id'], $envelope_definition);
169-
$envelope_id = $envelopeResponse->getEnvelopeId();
170-
#ds-snippet-end:eSign13Step3
162+
public static function sendCompositeTemplate($clientService, $args, $envelope_definition): array
163+
{
164+
# Call Envelopes::create API method
165+
# Exceptions will be caught by the calling function
166+
#ds-snippet-start:eSign13Step3
167+
$envelope_api = $clientService->getEnvelopeApi();
168+
$envelopeResponse = $envelope_api->createEnvelope($args['account_id'], $envelope_definition);
169+
$envelope_id = $envelopeResponse->getEnvelopeId();
170+
#ds-snippet-end:eSign13Step3
171171

172-
#ds-snippet-start:eSign13Step4
173-
# Create the Recipient View request object
174-
$authentication_method = 'None'; # How is this application authenticating
175-
# the signer? See the `authentication_method' definition
176-
# https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeViews/createRecipient
177-
$recipient_view_request = $clientService->getRecipientViewRequest(
178-
$authentication_method,
179-
$args["envelope_args"]
180-
);
172+
#ds-snippet-start:eSign13Step4
173+
# Create the Recipient View request object
174+
$authentication_method = 'None'; # How is this application authenticating
175+
# the signer? See the `authentication_method' definition
176+
# https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeViews/createRecipient
177+
$recipient_view_request = $clientService->getRecipientViewRequest(
178+
$authentication_method,
179+
$args["envelope_args"]
180+
);
181181

182-
# Obtain the recipient_view_url for the embedded signing
183-
# Exceptions will be caught by the calling function
184-
$recipientView = $clientService->getRecipientView($args['account_id'], $envelope_id, $recipient_view_request);
185-
186-
return ['envelope_id' => $envelope_id, 'redirect_url' => $recipientView['url']];
187-
#ds-snippet-end:eSign13Step4
188-
}
182+
# Obtain the recipient_view_url for the embedded signing
183+
# Exceptions will be caught by the calling function
184+
$recipientView = $clientService->getRecipientView($args['account_id'], $envelope_id, $recipient_view_request);
185+
186+
return ['envelope_id' => $envelope_id, 'redirect_url' => $recipientView['url']];
187+
#ds-snippet-end:eSign13Step4
188+
}
189189
}

0 commit comments

Comments
 (0)