@@ -20,8 +20,8 @@ |
||
20 | 20 | public $chmodCheck = []; |
21 | 21 | |
22 | 22 | /** |
23 | - * Get default server information and prepare chmod info |
|
24 | - */ |
|
23 | + * Get default server information and prepare chmod info |
|
24 | + */ |
|
25 | 25 | public function before() |
26 | 26 | { |
27 | 27 | $this->phpVersion = phpversion(); |
@@ -27,8 +27,8 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * Load configs from app data |
|
31 | - */ |
|
30 | + * Load configs from app data |
|
31 | + */ |
|
32 | 32 | public function before() |
33 | 33 | { |
34 | 34 | if ($this->_config === null) { |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * Set default values from database record |
|
48 | - */ |
|
47 | + * Set default values from database record |
|
48 | + */ |
|
49 | 49 | public function before() |
50 | 50 | { |
51 | 51 | // set data from db record |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | - * Form labels |
|
89 | - * @return array |
|
90 | - */ |
|
88 | + * Form labels |
|
89 | + * @return array |
|
90 | + */ |
|
91 | 91 | public function labels(): array |
92 | 92 | { |
93 | 93 | return [ |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
103 | - * Content update form validation rules |
|
104 | - * @return array |
|
105 | - */ |
|
103 | + * Content update form validation rules |
|
104 | + * @return array |
|
105 | + */ |
|
106 | 106 | public function rules(): array |
107 | 107 | { |
108 | 108 | $r = [ |
@@ -50,8 +50,8 @@ |
||
50 | 50 | public $trustedProxy; |
51 | 51 | |
52 | 52 | /** |
53 | - * Set property values from configurations |
|
54 | - */ |
|
53 | + * Set property values from configurations |
|
54 | + */ |
|
55 | 55 | public function before() |
56 | 56 | { |
57 | 57 | $properties = App::$Properties->getAll(); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php return [ |
2 | - 'instances' => [ |
|
3 | - 'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600, |
|
4 | - 'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800, |
|
5 | - 'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400 |
|
6 | - ] |
|
2 | + 'instances' => [ |
|
3 | + 'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600, |
|
4 | + 'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800, |
|
5 | + 'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400 |
|
6 | + ] |
|
7 | 7 | ]; |
8 | 8 | \ No newline at end of file |
@@ -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)); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | // render view |
78 | 78 | return App::$View->render($this->tpl, [ |
79 | - 'records' => $query |
|
79 | + 'records' => $query |
|
80 | 80 | ]); |
81 | 81 | } |
82 | 82 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Prepare model attributes from passed objects |
69 | 69 | * @throws ForbiddenException |
70 | - */ |
|
70 | + */ |
|
71 | 71 | public function before() |
72 | 72 | { |
73 | 73 | // set class attributes from ActiveRecord objects |
@@ -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']); |