Passed
Push — master ( 10220a...9ad793 )
by Mihail
05:11
created
Widgets/Front/Newcomment/Newcomment.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -22,23 +22,23 @@  discard block
 block discarded – undo
22 22
 
23 23
     private $_cacheName;
24 24
 
25
-	/**
26
-	 * Set default configs if not passed
27
-	 * {@inheritDoc}
28
-	 * @see \Ffcms\Core\Arch\Widget::init()
29
-	 */
25
+    /**
26
+     * Set default configs if not passed
27
+     * {@inheritDoc}
28
+     * @see \Ffcms\Core\Arch\Widget::init()
29
+     */
30 30
     public function init()
31 31
     {
32
-    	$cfg = $this->getConfigs();
33
-    	if ($this->snippet === null) {
34
-    	    $this->snippet = $cfg['snippet'];
35
-    	}
36
-    	if ($this->count === null) {
37
-    	    $this->count = $cfg['count'];
38
-    	}
39
-    	if ($this->cache === null) {
40
-    	    $this->cache = $cfg['cache'];
41
-    	}
32
+        $cfg = $this->getConfigs();
33
+        if ($this->snippet === null) {
34
+            $this->snippet = $cfg['snippet'];
35
+        }
36
+        if ($this->count === null) {
37
+            $this->count = $cfg['count'];
38
+        }
39
+        if ($this->cache === null) {
40
+            $this->cache = $cfg['cache'];
41
+        }
42 42
         if ($this->lang === null) {
43 43
             $this->lang = App::$Request->getLanguage();
44 44
         }
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         // render view
77
-    	return App::$View->render('widgets/newcomment/default', [
78
-    	    'records' => $records,
79
-    	    'snippet' => $this->snippet
80
-    	]);
77
+        return App::$View->render('widgets/newcomment/default', [
78
+            'records' => $records,
79
+            'snippet' => $this->snippet
80
+        ]);
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.