@@ -71,12 +71,14 @@ |
||
71 | 71 | ->setUsername($mCfg['user']); |
72 | 72 | |
73 | 73 | // set auth password if exist |
74 | - if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) |
|
75 | - $transport->setPassword($mCfg['password']); |
|
74 | + if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) { |
|
75 | + $transport->setPassword($mCfg['password']); |
|
76 | + } |
|
76 | 77 | |
77 | 78 | // set encryption method |
78 | - if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) |
|
79 | - $transport->setEncryption($mCfg['encrypt']); |
|
79 | + if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) { |
|
80 | + $transport->setEncryption($mCfg['encrypt']); |
|
81 | + } |
|
80 | 82 | |
81 | 83 | // initialize mailer instance |
82 | 84 | $swift = (new Swift_Mailer($transport)); |
@@ -58,7 +58,8 @@ discard block |
||
58 | 58 | </button> |
59 | 59 | </div> |
60 | 60 | </div> |
61 | - <?php else: ?> |
|
61 | + <?php else { |
|
62 | + : ?> |
|
62 | 63 | <div class="row"> |
63 | 64 | <div class="col-md-8" style="padding-right: 0;"> |
64 | 65 | <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>"> |
@@ -75,7 +76,9 @@ discard block |
||
75 | 76 | <button class="btn btn-block btn-danger" id="reduceRating">-</button> |
76 | 77 | </div> |
77 | 78 | </div> |
78 | - <?php endif; ?> |
|
79 | + <?php endif; |
|
80 | +} |
|
81 | +?> |
|
79 | 82 | <?php endif; ?> |
80 | 83 | <?php |
81 | 84 | $userMenu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs flex-column']); |
@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |