@@ -85,7 +85,7 @@ |
||
85 | 85 | return call_user_func($this->template); |
86 | 86 | } |
87 | 87 | |
88 | - $callback = function ($matches) { |
|
88 | + $callback = function($matches) { |
|
89 | 89 | return ArrayHelper::getValue($this->owner, $matches[1]); |
90 | 90 | }; |
91 | 91 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | 'entityId' => null, |
19 | 19 | 'page' => null |
20 | 20 | ])) ?> |
21 | - <?php if($model->entity_id): ?> |
|
21 | + <?php if ($model->entity_id): ?> |
|
22 | 22 | <?= ':' . Html::a(Html::encode($model->entity_id), Url::current([ |
23 | 23 | 'entityName' => $model->entity_name, |
24 | 24 | 'entityId' => $model->entity_id, |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <?php foreach ($model->getData() as $attribute => $values): ?> |
47 | 47 | <?php if (is_string($values)): ?> |
48 | 48 | <li> |
49 | - <?php if(is_string($attribute)): ?> |
|
49 | + <?php if (is_string($attribute)): ?> |
|
50 | 50 | <strong><?= Html::encode($attribute) ?></strong> |
51 | 51 | <?php endif; ?> |
52 | 52 | <?= Html::encode(Yii::t('lav45/logger', $values)) ?> |
@@ -51,7 +51,8 @@ discard block |
||
51 | 51 | <?php endif; ?> |
52 | 52 | <?= Html::encode(Yii::t('lav45/logger', $values)) ?> |
53 | 53 | </li> |
54 | - <?php else: ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
55 | 56 | <li> |
56 | 57 | <?= Yii::t('lav45/logger', '<strong>{attribute}</strong> has been changed', ['attribute' => Html::encode($attribute)]) ?> |
57 | 58 | |
@@ -61,6 +62,8 @@ discard block |
||
61 | 62 | <?= Html::encode(Yii::t('lav45/logger', 'to')) ?> |
62 | 63 | <strong><i class="details-text"><?= $values->getNewValue() ?></i></strong> |
63 | 64 | </li> |
64 | - <?php endif; ?> |
|
65 | + <?php endif; |
|
66 | +} |
|
67 | +?> |
|
65 | 68 | <?php endforeach; ?> |
66 | 69 | </ul> |