@@ -35,9 +35,9 @@ |
||
| 35 | 35 | $classHash = $this->createStringClassSnapshotHash(); |
| 36 | 36 | |
| 37 | 37 | $records = null; |
| 38 | - if ((int)$this->cache > 0) { |
|
| 39 | - if (App::$Cache->get('widget.newcomment.' . $classHash) !== null) { |
|
| 40 | - $records = App::$Cache->get('widget.newcomment.' . $classHash); |
|
| 38 | + if ((int) $this->cache > 0) { |
|
| 39 | + if (App::$Cache->get('widget.newcomment.'.$classHash) !== null) { |
|
| 40 | + $records = App::$Cache->get('widget.newcomment.'.$classHash); |
|
| 41 | 41 | } else { |
| 42 | 42 | $records = $this->makeQuery(); |
| 43 | 43 | } |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function before() |
| 29 | 29 | { |
| 30 | - $this->snippet = (int)$this->_configs['snippet']; |
|
| 31 | - $this->count = (int)$this->_configs['count']; |
|
| 32 | - $this->cache = (int)$this->_configs['cache']; |
|
| 30 | + $this->snippet = (int) $this->_configs['snippet']; |
|
| 31 | + $this->count = (int) $this->_configs['count']; |
|
| 32 | + $this->cache = (int) $this->_configs['cache']; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | <ul class="list-inline list-info"> |
| 23 | 23 | <li><i class="fa fa-calendar"></i> <?= $data['date'] ?></li> |
| 24 | 24 | <li><i class="fa fa-user"></i> |
| 25 | - <?php if ((int)$data['user']['id'] > 0): ?> |
|
| 25 | + <?php if ((int) $data['user']['id'] > 0): ?> |
|
| 26 | 26 | <?= Url::link(['profile/show', $data['user']['id']], $data['user']['name']) ?> |
| 27 | 27 | <?php else: ?> |
| 28 | 28 | <?= $data['user']['name'] ?> |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | <img class="media-object img-responsive" src="<?= $data['user']['avatar']?>" style="width: 64px; height: 64px;" alt="Picture of user <?= $data['user']['name'] ?>"> |
| 36 | 36 | </span> |
| 37 | 37 | <div class="media-body"> |
| 38 | - <a href="<?= \App::$Alias->baseUrl . $data['pathway'] ?>"><?= $data['text'] ?></a> |
|
| 38 | + <a href="<?= \App::$Alias->baseUrl.$data['pathway'] ?>"><?= $data['text'] ?></a> |
|
| 39 | 39 | </div> |
| 40 | 40 | </li> |
| 41 | 41 | </ul> |