@@ -33,7 +33,7 @@ |
||
33 | 33 | <tbody> |
34 | 34 | <tr> |
35 | 35 | <td align="left" style="font-family:Helvetica Neue,Arial,Helvetica,sans-serif;padding-left:9px;font-size:14px;"> |
36 | - <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id . '/' . $record->hash ?>"> |
|
36 | + <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id.'/'.$record->hash ?>"> |
|
37 | 37 | <?= __('View request') ?> |
38 | 38 | </a> |
39 | 39 | </td> |
@@ -27,11 +27,11 @@ discard block |
||
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <?php |
30 | -if ((int)$post->closed === 0 && \App::$User->isAuth()) { |
|
30 | +if ((int) $post->closed === 0 && \App::$User->isAuth()) { |
|
31 | 31 | $user = App::$User->identity(); |
32 | - if ($user->getId() === (int)$post->user_id) { |
|
33 | - echo '<div class="pull-right">' . |
|
34 | - Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) . |
|
32 | + if ($user->getId() === (int) $post->user_id) { |
|
33 | + echo '<div class="pull-right">'. |
|
34 | + Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']). |
|
35 | 35 | '</div>'; |
36 | 36 | } |
37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | </div> |
53 | 53 | <h3><?= __('Answers') ?></h3> |
54 | 54 | <hr /> |
55 | -<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
55 | +<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
56 | 56 | <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p> |
57 | 57 | <?php endif; ?> |
58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <?php foreach ($answers as $answer): ?> |
61 | 61 | <div class="row"> |
62 | 62 | <div class="col-md-12"> |
63 | - <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
63 | + <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
64 | 64 | <div class="panel-heading"> |
65 | 65 | <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>, |
66 | 66 | <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | <?php endif; ?> |
76 | 76 | |
77 | 77 | <br /> |
78 | -<?php if ((int)$post->closed === 0 && $model !== null): ?> |
|
78 | +<?php if ((int) $post->closed === 0 && $model !== null): ?> |
|
79 | 79 | <h3><?= __('Add answer') ?></h3> |
80 | 80 | <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?> |
81 | 81 | <?= $form->start() ?> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | <?php if ($useCaptcha === true) { |
32 | 32 | if (\App::$Captcha->isFull()) { |
33 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
33 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
34 | 34 | } else { |
35 | 35 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
36 | 36 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** @var \Apps\ActiveRecord\Content $item*/ |
24 | 24 | $items[] = [ |
25 | 25 | 'text' => Serialize::getDecodeLocale($item->title), |
26 | - 'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath() |
|
26 | + 'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath() |
|
27 | 27 | ]; |
28 | 28 | } |
29 | 29 | ?> |
@@ -7,8 +7,8 @@ |
||
7 | 7 | $numericRating = 0; |
8 | 8 | if ($rating > 0) { |
9 | 9 | $cssRatingClass = 'label-success'; |
10 | - $numericRating = '+' . $rating; |
|
11 | -} elseif($rating < 0) { |
|
10 | + $numericRating = '+'.$rating; |
|
11 | +} elseif ($rating < 0) { |
|
12 | 12 | $cssRatingClass = 'label-danger'; |
13 | 13 | $numericRating = $rating; |
14 | 14 | } |
@@ -30,9 +30,9 @@ |
||
30 | 30 | if (Obj::isArray($notify) && count($notify) > 0) { |
31 | 31 | foreach ($notify as $type => $messages) { |
32 | 32 | foreach ($messages as $message) { |
33 | - echo '<p class="alert ' . type2html($type) . '"> |
|
33 | + echo '<p class="alert '.type2html($type).'"> |
|
34 | 34 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
35 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
35 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | <?php |
17 | 17 | $customCssCode = \App::$View->showPlainCode('css'); |
18 | 18 | if ($customCssCode !== null) { |
19 | - echo '<style>' . $customCssCode . '</style>'; |
|
19 | + echo '<style>'.$customCssCode.'</style>'; |
|
20 | 20 | } ?> |
21 | 21 | <script> |
22 | 22 | window.jQ = []; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | <?php |
63 | 63 | $customJsCode = \App::$View->showPlainCode('js'); |
64 | 64 | if ($customJsCode !== null) { |
65 | - echo '<script>' . $customJsCode . '</script>'; |
|
65 | + echo '<script>'.$customJsCode.'</script>'; |
|
66 | 66 | } |
67 | 67 | ?> |
68 | 68 | </body> |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public function before() |
34 | 34 | { |
35 | 35 | // get full name of update object |
36 | - $class = 'Apps\Controller\Admin\\' . $this->_record->sys_name; |
|
36 | + $class = 'Apps\Controller\Admin\\'.$this->_record->sys_name; |
|
37 | 37 | if (class_exists($class)) { |
38 | 38 | $this->_callback = $class; |
39 | 39 | } else { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function before() |
40 | 40 | { |
41 | 41 | foreach ($this->_apps as $app) { |
42 | - $this->_definedControllers[] = (string)$app->sys_name; |
|
42 | + $this->_definedControllers[] = (string) $app->sys_name; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | parent::before(); |
@@ -70,14 +70,14 @@ discard block |
||
70 | 70 | public function make() |
71 | 71 | { |
72 | 72 | $cName = ucfirst(Str::lowerCase($this->sysname)); |
73 | - $cPath = 'Apps\Controller\Admin\\' . $cName; |
|
73 | + $cPath = 'Apps\Controller\Admin\\'.$cName; |
|
74 | 74 | // if object class is not loaded - prevent install |
75 | - if (!class_exists($cPath) || !defined($cPath . '::VERSION')) { |
|
75 | + if (!class_exists($cPath) || !defined($cPath.'::VERSION')) { |
|
76 | 76 | return false; |
77 | 77 | } |
78 | 78 | |
79 | 79 | // get ext version |
80 | - $cVersion = (float)constant($cPath . '::VERSION'); |
|
80 | + $cVersion = (float) constant($cPath.'::VERSION'); |
|
81 | 81 | if ($cVersion < 0.1) { |
82 | 82 | $cVersion = 0.1; |
83 | 83 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | // callback to install method in extension |
95 | 95 | if (method_exists($cPath, 'install')) { |
96 | - call_user_func($cPath . '::install'); |
|
96 | + call_user_func($cPath.'::install'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | return true; |