@@ -390,7 +390,7 @@ |
||
390 | 390 | } |
391 | 391 | |
392 | 392 | /** |
393 | - * @return array |
|
393 | + * @return string[] |
|
394 | 394 | */ |
395 | 395 | private function _get_sorting_options() |
396 | 396 | { |
@@ -167,7 +167,7 @@ |
||
167 | 167 | { |
168 | 168 | for ($i = 0, $size = sizeof($topic_data); $i < $size; $i++) |
169 | 169 | { |
170 | - $row =& $topic_data[$i]; |
|
170 | + $row = & $topic_data[$i]; |
|
171 | 171 | $forum_id = $row['forum_id']; |
172 | 172 | $topic_id = $row['topic_id']; |
173 | 173 |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | if (!empty($collection)) |
51 | 51 | { |
52 | 52 | return $collection->get_entities(); |
53 | - } |
|
54 | - else |
|
53 | + } else |
|
55 | 54 | { |
56 | 55 | return array(); |
57 | 56 | } |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | if (!$has_blocks && !$hiding_blocks && !sizeof($ex_positions)) |
89 | 88 | { |
90 | 89 | $this->route_mapper->delete($route); |
91 | - } |
|
92 | - else |
|
90 | + } else |
|
93 | 91 | { |
94 | 92 | $route->set_has_blocks($has_blocks); |
95 | 93 | $this->route_mapper->save($route); |