@@ -58,7 +58,7 @@ class UserDefinedFormController extends PageController
5858 private static string $ file_upload_stage = Versioned::DRAFT ;
5959
6060 /**
61- * Size that an uploaded file must not excede for it to be attached to an email
61+ * Size that an uploaded file must not exceed for it to be attached to an email
6262 * Follows PHP "shorthand bytes" definition rules.
6363 * @see UserDefinedFormController::parseByteSizeString()
6464 *
@@ -100,7 +100,7 @@ protected function init()
100100 }
101101
102102 /**
103- * Add the necessary jQuery validate i18n translation files, either by locale or by langauge ,
103+ * Add the necessary jQuery validate i18n translation files, either by locale or by language ,
104104 * e.g. 'en_NZ' or 'en'. This adds "methods_abc.min.js" as well as "messages_abc.min.js" from the
105105 * jQuery validate thirdparty library from dist/js.
106106 */
@@ -453,7 +453,7 @@ public function process($data, $form)
453453 $ email ->setFrom ($ this ->validEmailsToArray ($ recipient ->EmailFrom ));
454454 }
455455
456- // check to see if they are a dynamic reciever eg based on a dropdown field a user selected
456+ // check to see if they are a dynamic receiver eg based on a dropdown field a user selected
457457 $ emailTo = $ recipient ->SendEmailToField ();
458458
459459 try {
@@ -542,7 +542,7 @@ public function process($data, $form)
542542 $ session ->set ('FormProcessed ' , $ data ['SecurityID ' ]);
543543 } else {
544544 // if the form has had tokens disabled we still need to set FormProcessed
545- // to allow us to get through the finshed method
545+ // to allow us to get through the finished method
546546 if (!$ this ->Form ()->getSecurityToken ()->isEnabled ()) {
547547 $ randNum = rand (1 , 1000 );
548548 $ randHash = md5 ($ randNum ?? '' );
@@ -660,7 +660,7 @@ function (){
660660EOS ;
661661 if ($ isFormStep ) {
662662 // Hide the step jump button if the FormStep has is initially hidden.
663- // This is particularly important beacause the next/prev page buttons logic is controlled by
663+ // This is particularly important because the next/prev page buttons logic is controlled by
664664 // the visibility of the FormStep buttons
665665 // The HTML for the FormStep buttons is defined in the UserFormProgress template
666666 $ id = str_replace ('# ' , '' , $ target ?? '' );
0 commit comments