@@ -37,11 +37,11 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | |