@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public static function get(array $setting): CaptchaInterface |
41 | 41 | { |
42 | - $type = $setting['config']['type'] ?? 'alnum'; |
|
42 | + $type = $setting['config']['type'] ?? 'alnum'; |
|
43 | 43 | $length = $setting['config']['length'] ?? 8; |
44 | 44 | |
45 | 45 | $imageCaptchaConfig = []; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | define('SHIELDON_VIEW', true); |
165 | 165 | } |
166 | 166 | |
167 | - $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
167 | + $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
168 | 168 | |
169 | 169 | if (!empty($data)) { |
170 | 170 | extract($data); |
@@ -433,12 +433,10 @@ discard block |
||
433 | 433 | $echo = []; |
434 | 434 | |
435 | 435 | $echo['css'] = $this->getConfig('messengers.' . $moduleName . '.confirm_test') ? |
436 | - 'success' : |
|
437 | - ''; |
|
436 | + 'success' : ''; |
|
438 | 437 | |
439 | 438 | $echo['icon'] = $this->getConfig('messengers.' . $moduleName . '.confirm_test') ? |
440 | - '<i class="fas fa-check"></i>' : |
|
441 | - '<i class="fas fa-exclamation"></i>'; |
|
439 | + '<i class="fas fa-check"></i>' : '<i class="fas fa-exclamation"></i>'; |
|
442 | 440 | |
443 | 441 | echo $echo[$echoType]; |
444 | 442 | } |