@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\WebGuyActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\WebGuyActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\WebGuyActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\WebGuyActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | // render view |
74 | 74 | return App::$View->render($this->tpl, [ |
75 | - 'records' => $query |
|
75 | + 'records' => $query |
|
76 | 76 | ]); |
77 | 77 | } |
78 | 78 |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * Set default values from configs |
|
29 | - */ |
|
28 | + * Set default values from configs |
|
29 | + */ |
|
30 | 30 | public function before() |
31 | 31 | { |
32 | 32 | $this->categories = Serialize::decode($this->_configs['categories']); |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * Labels for form |
|
39 | - */ |
|
38 | + * Labels for form |
|
39 | + */ |
|
40 | 40 | public function labels() |
41 | 41 | { |
42 | 42 | return [ |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * Validation rules |
|
51 | - */ |
|
50 | + * Validation rules |
|
51 | + */ |
|
52 | 52 | public function rules() |
53 | 53 | { |
54 | 54 | return [ |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | // render view output |
31 | 31 | return App::$View->render('index', [ |
32 | - 'model' => $model |
|
32 | + 'model' => $model |
|
33 | 33 | ]); |
34 | 34 | } |
35 | 35 | } |
36 | 36 | \ No newline at end of file |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | - * Set default model properties from global configuration |
|
26 | - */ |
|
25 | + * Set default model properties from global configuration |
|
26 | + */ |
|
27 | 27 | public function before() |
28 | 28 | { |
29 | 29 | $this->count = (int)$this->_configs['count']; |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | - * Form display labels |
|
35 | - */ |
|
34 | + * Form display labels |
|
35 | + */ |
|
36 | 36 | public function labels() |
37 | 37 | { |
38 | 38 | return [ |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * Validation rules |
|
46 | - */ |
|
45 | + * Validation rules |
|
46 | + */ |
|
47 | 47 | public function rules() |
48 | 48 | { |
49 | 49 | return [ |
@@ -12,22 +12,22 @@ discard block |
||
12 | 12 | { |
13 | 13 | use OopTools; |
14 | 14 | |
15 | - public $snippet; |
|
16 | - public $count; |
|
17 | - public $cache; |
|
15 | + public $snippet; |
|
16 | + public $count; |
|
17 | + public $cache; |
|
18 | 18 | |
19 | 19 | public function init() |
20 | 20 | { |
21 | - $cfg = $this->getConfigs(); |
|
22 | - if ($this->snippet === null) { |
|
23 | - $this->snippet = $cfg['snippet']; |
|
24 | - } |
|
25 | - if ($this->count === null) { |
|
26 | - $this->count = $cfg['count']; |
|
27 | - } |
|
28 | - if ($this->cache === null) { |
|
29 | - $this->cache = $cfg['cache']; |
|
30 | - } |
|
21 | + $cfg = $this->getConfigs(); |
|
22 | + if ($this->snippet === null) { |
|
23 | + $this->snippet = $cfg['snippet']; |
|
24 | + } |
|
25 | + if ($this->count === null) { |
|
26 | + $this->count = $cfg['count']; |
|
27 | + } |
|
28 | + if ($this->cache === null) { |
|
29 | + $this->cache = $cfg['cache']; |
|
30 | + } |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | public function display() |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | return __('Comments not yet found'); |
50 | 50 | } |
51 | 51 | |
52 | - return App::$View->render('widgets/newcomment/default', [ |
|
53 | - 'records' => $records, |
|
54 | - 'snippet' => $this->snippet |
|
55 | - ]); |
|
52 | + return App::$View->render('widgets/newcomment/default', [ |
|
53 | + 'records' => $records, |
|
54 | + 'snippet' => $this->snippet |
|
55 | + ]); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | private function makeQuery() |