@@ -36,8 +36,7 @@ class CreateAndEmbedFormService
3636 public static function getForms (
3737 FormManagementApi $ formManagementApi ,
3838 string $ accountId
39- ): WebFormSummaryList
40- {
39+ ): WebFormSummaryList {
4140 $ formName = "Web Form Example Template " ;
4241
4342 $ listFormsOptions = new FormManagementApi \ListFormsOptions ();
@@ -53,7 +52,7 @@ public static function getForms(
5352 * @return void
5453 */
5554 #ds-snippet-start:WebForms1Step3
56- public static function addTemplateIdToForm (string $ fileLocation , string $ templateId ): void
55+ public static function addTemplateIdToForm (string $ fileLocation , string $ templateId ): void
5756 {
5857 $ targetString = "template-id " ;
5958
@@ -74,12 +73,11 @@ public static function addTemplateIdToForm(string $fileLocation, string $templat
7473 * @return WebFormInstance
7574 * @throws ApiException
7675 */
77- public static function createInstance (
76+ public static function createInstance (
7877 FormInstanceManagementApi $ formInstanceApi ,
7978 string $ accountId ,
8079 string $ formId
81- ): WebFormInstance
82- {
80+ ): WebFormInstance {
8381 #ds-snippet-start:WebForms1Step4
8482 $ formValues = new WebFormValues ([
8583 ["PhoneNumber " => "555-555-5555 " ],
@@ -110,8 +108,7 @@ public static function getTemplatesByName(
110108 TemplatesApi $ templatesApi ,
111109 string $ templateName ,
112110 string $ accountId
113- ): mixed
114- {
111+ ): mixed {
115112 $ listTemplateOptions = new ListTemplatesOptions ();
116113 $ listTemplateOptions ->setSearchText ($ templateName );
117114
@@ -142,8 +139,7 @@ public static function createTemplate(
142139 string $ template_name ,
143140 string $ demoDocsPath ,
144141 SignatureClientService $ clientService
145- ): array
146- {
142+ ): array {
147143 $ templatesApi = $ clientService ->getTemplatesApi ();
148144 $ options = new ListTemplatesOptions ();
149145 $ options ->setSearchText ($ template_name );
@@ -186,8 +182,7 @@ public static function createTemplate(
186182 public static function makeTemplateRequest (
187183 string $ template_name ,
188184 string $ demoDocsPath
189- ): EnvelopeTemplate
190- {
185+ ): EnvelopeTemplate {
191186 $ docName = 'World_Wide_Corp_Web_Form.pdf ' ;
192187 $ contentBytes = file_get_contents ($ demoDocsPath . $ docName );
193188 $ base64FileContent = base64_encode ($ contentBytes );
0 commit comments