Completed
Push — master ( 8cdaf4...db6695 )
by Marcus
02:35
created
src/Customer/Helper.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
 class Helper
29 29
 {
30
+    /**
31
+     * @param string $sLang
32
+     */
30 33
     public static function validateCustomerForm($sLang, $aErr = [], $bEdit = false)
31 34
     {
32 35
         if (!isset($_POST["email"]) || !\filter_var($_POST["email"], FILTER_VALIDATE_EMAIL)) {
@@ -92,6 +95,11 @@  discard block
 block discarded – undo
92 95
         return '';
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $sKeyConfig
100
+     * @param string $sKeyForm
101
+     * @param boolean $aUserData
102
+     */
95 103
     public static function getCustomerFormDefaultValue($sKeyConfig, $sKeyForm, $aUserData) {
96 104
         $sDefaultValue = self::getUserData($sKeyConfig, $aUserData);
97 105
         if (!$sDefaultValue && isset($_SESSION["formsave_addrform"][$sKeyForm])) {
@@ -101,6 +109,9 @@  discard block
 block discarded – undo
101 109
         return $sDefaultValue;
102 110
     }
103 111
 
112
+    /**
113
+     * @param string $sLang
114
+     */
104 115
     public static function buildCustomerForm($sLang, $sPurpose = 'none', $sErr = '', $aUserData = false)
105 116
     {
106 117
         $sDefaultCountry = self::getCustomerFormDefaultValue('cust_country', "country", $aUserData);
Please login to merge, or discard this patch.