Passed
Push — master ( 004834...f22cf7 )
by Mihail
04:58
created
Widgets/Front/Newcomment/Newcomment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Apps/Model/Admin/Newcomment/FormSettings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcomment/default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.