@@ -174,10 +174,10 @@ |
||
174 | 174 | $body['call']['source'] = Config::$otpCallSource; |
175 | 175 | $body['call']['speed'] = Config::$otpCallSpeed; |
176 | 176 | $body['call']['repetition'] = Config::$otpCallRepetition; |
177 | - if (isset(Config::$otpCallVoiceProfile)) { |
|
178 | - $body['call']['voiceProfile'] = Config::$otpCallVoiceProfile; |
|
179 | - } |
|
180 | - break; |
|
177 | + if (isset(Config::$otpCallVoiceProfile)) { |
|
178 | + $body['call']['voiceProfile'] = Config::$otpCallVoiceProfile; |
|
179 | + } |
|
180 | + break; |
|
181 | 181 | default: |
182 | 182 | throw new Exception(PHP_EOL. "***You must specify an OTP channel type***" . PHP_EOL); |
183 | 183 | break; |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $body['codeLength'] = Config::$otpCodeLength; |
162 | 162 | $body['codeValidity'] = Config::$otpCodeValidity; |
163 | 163 | $body['resendingInterval'] = Config::$resendInterval; |
164 | - switch(Config::$otpChannel) { |
|
164 | + switch (Config::$otpChannel) { |
|
165 | 165 | case "sms": |
166 | 166 | if (isset(Config::$optSmsSource)) { |
167 | 167 | $body['sms']['source'] = Config::$otpSmsSource; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | break; |
181 | 181 | default: |
182 | - throw new Exception(PHP_EOL. "***You must specify an OTP channel type***" . PHP_EOL); |
|
182 | + throw new Exception(PHP_EOL . "***You must specify an OTP channel type***" . PHP_EOL); |
|
183 | 183 | break; |
184 | 184 | } |
185 | 185 | $body['channel'] = Config::$otpChannel; |