@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Make query to database |
81 | - * @return object |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | private function makeQuery() |
84 | 84 | { |
@@ -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 |
@@ -32,11 +32,11 @@ |
||
32 | 32 | } |
33 | 33 | // check cache is defined |
34 | 34 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
35 | - $this->cache = (int)$cfg['cache']; |
|
35 | + $this->cache = (int) $cfg['cache']; |
|
36 | 36 | } |
37 | 37 | // check item count is defined |
38 | 38 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
39 | - $this->count = (int)$cfg['count']; |
|
39 | + $this->count = (int) $cfg['count']; |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 |
@@ -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 [ |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | public function before() |
31 | 31 | { |
32 | 32 | $this->categories = Serialize::decode($this->_configs['categories']); |
33 | - $this->count = (int)$this->_configs['count']; |
|
34 | - $this->cache = (int)$this->_configs['cache']; |
|
33 | + $this->count = (int) $this->_configs['count']; |
|
34 | + $this->cache = (int) $this->_configs['cache']; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | public function getResult() |
65 | 65 | { |
66 | 66 | return [ |
67 | - 'count' => (int)$this->count, |
|
68 | - 'cache' => (int)$this->cache, |
|
67 | + 'count' => (int) $this->count, |
|
68 | + 'cache' => (int) $this->cache, |
|
69 | 69 | 'categories' => Serialize::encode($this->categories) |
70 | 70 | ]; |
71 | 71 | } |