Passed
Push — master ( f20f2e...004834 )
by Mihail
05:22
created
Widgets/Front/Contenttag/Contenttag.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
     	]);
59 59
     }
60 60
     
61
+    /**
62
+     * @return string
63
+     */
61 64
     private function makeQuery()
62 65
     {
63 66
         return TagRecord::select([
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
         $cfg = $this->getConfigs();
23 23
         // check cache is defined
24 24
         if ($this->cache === null || !Obj::isLikeInt($this->cache)) {
25
-            $this->cache = (int)$cfg['cache'];
25
+            $this->cache = (int) $cfg['cache'];
26 26
         }
27 27
         // check tag count is defined
28 28
         if ($this->count === null || !Obj::isLikeInt($this->count)) {
29
-            $this->count = (int)$cfg['count'];
29
+            $this->count = (int) $cfg['count'];
30 30
         }
31 31
     }
32 32
     
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
     	if ($this->cache === 0) {
41 41
     	    $records = $this->makeQuery();
42 42
     	} else {
43
-    	    $records === App::$Cache->get('widget.contenttag.' . $classHash);
43
+    	    $records === App::$Cache->get('widget.contenttag.'.$classHash);
44 44
     	    if ($records === null) {
45 45
     	        $records = $this->makeQuery();
46
-    	        App::$Cache->set('widget.contenttag' . $classHash, $records, $this->cache);
46
+    	        App::$Cache->set('widget.contenttag'.$classHash, $records, $this->cache);
47 47
     	    }
48 48
     	}
49 49
     	
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/contenttag/default.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 ?>
6 6
 
7 7
 <?php foreach ($records as $row) {
8
-    echo Url::link(['content/tag', $row['tag']], $row['tag'], ['class' => 'label label-default']) . ' ';
8
+    echo Url::link(['content/tag', $row['tag']], $row['tag'], ['class' => 'label label-default']).' ';
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Admin/Contenttag/FormSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     */
27 27
     public function before()
28 28
     {
29
-        $this->count = (int)$this->_configs['count'];
30
-        $this->cache = (int)$this->_configs['cache'];
29
+        $this->count = (int) $this->_configs['count'];
30
+        $this->cache = (int) $this->_configs['cache'];
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.