@@ -69,16 +69,16 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function __construct(\phpbb\request\request $request, \phpbb\cache\driver\driver_interface $cache, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\template\template $template, \phpbb\user $user, \phpbb\log\log $log, $root_path, $php_ext, $table_prefix) |
| 71 | 71 | { |
| 72 | - $this->request = $request; |
|
| 73 | - $this->cache = $cache; |
|
| 74 | - $this->config = $config; |
|
| 75 | - $this->db = $db; |
|
| 76 | - $this->template = $template; |
|
| 77 | - $this->user = $user; |
|
| 78 | - $this->log = $log; |
|
| 79 | - |
|
| 80 | - $this->root_path = $root_path; |
|
| 81 | - $this->php_ext = $php_ext; |
|
| 72 | + $this->request = $request; |
|
| 73 | + $this->cache = $cache; |
|
| 74 | + $this->config = $config; |
|
| 75 | + $this->db = $db; |
|
| 76 | + $this->template = $template; |
|
| 77 | + $this->user = $user; |
|
| 78 | + $this->log = $log; |
|
| 79 | + |
|
| 80 | + $this->root_path = $root_path; |
|
| 81 | + $this->php_ext = $php_ext; |
|
| 82 | 82 | $this->table_prefix = $table_prefix; |
| 83 | 83 | |
| 84 | 84 | $this->_get_attributes(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $result = $this->db->sql_query($sql); |
| 142 | 142 | |
| 143 | 143 | $this->_name = array(); |
| 144 | - while ( $row = $this->db->sql_fetchrow($result) ) |
|
| 144 | + while ($row = $this->db->sql_fetchrow($result)) |
|
| 145 | 145 | { |
| 146 | 146 | $this->_name[$row['user_id']] = array( |
| 147 | 147 | 'user_id' => (int) $row['user_id'], |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function viewtopic_attr_apply($event) |
| 95 | 95 | { |
| 96 | 96 | $attr_id = (int) $this->request->variable('attr_id', 0); |
| 97 | - if ( $attr_id ) |
|
| 97 | + if ($attr_id) |
|
| 98 | 98 | { |
| 99 | 99 | $this->qte->get_users_by_topic_id(array($event['topic_id'])); |
| 100 | 100 | $this->qte->attr_apply($attr_id, $event['topic_id'], $event['forum_id'], $event['topic_data']['topic_attr_id'], (array) unserialize(trim($event['topic_data']['hide_attr']))); |