Test Failed
Push — master ( e3c39f...fe570d )
by Mihail
07:20
created
Widgets/Front/Newcomment/Newcomment.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
         }
38 38
 
39 39
         if (!$this->count) {
40
-            $this->count = (int)$cfg['count'];
40
+            $this->count = (int) $cfg['count'];
41 41
         }
42 42
 
43 43
         if (!$this->cache) {
44
-            $this->cache = (int)$cfg['cache'];
44
+            $this->cache = (int) $cfg['cache'];
45 45
         }
46 46
 
47 47
         if (!$this->lang) {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
 
51 51
 
52
-        $this->_cacheName = 'widget.newcomment.' . $this->createStringClassSnapshotHash();
52
+        $this->_cacheName = 'widget.newcomment.'.$this->createStringClassSnapshotHash();
53 53
     }
54 54
 
55 55
     /**
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
     {
63 63
         // work with cache and make query
64 64
         $records = null;
65
-        if ((int)$this->cache > 0) {
65
+        if ((int) $this->cache > 0) {
66 66
             // process caching data
67 67
             $cache = App::$Cache->getItem($this->_cacheName);
68 68
             if (!$cache->isHit()) {
69 69
                 $cache->set($this->makeQuery());
70
-                $cache->expiresAfter((int)$this->cache);
70
+                $cache->expiresAfter((int) $this->cache);
71 71
                 App::$Cache->save($cache);
72 72
             }
73 73
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             ->where('moderate', false);
104 104
 
105 105
         $cfg = AppRecord::getConfigs('widget', 'Comments');
106
-        if ((bool)$cfg['onlyLocale']) {
106
+        if ((bool) $cfg['onlyLocale']) {
107 107
             $records->where('lang', $this->lang);
108 108
         }
109 109
 
Please login to merge, or discard this patch.