@@ -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(); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $result = $this->db->sql_query($sql); |
145 | 145 | |
146 | 146 | $this->_name = array(); |
147 | - while ( $row = $this->db->sql_fetchrow($result) ) |
|
147 | + while ($row = $this->db->sql_fetchrow($result)) |
|
148 | 148 | { |
149 | 149 | $this->_name[$row['user_id']] = array( |
150 | 150 | 'user_id' => (int) $row['user_id'], |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | public function viewtopic_attr_apply($event) |
102 | 102 | { |
103 | 103 | $attr_id = (int) $this->request->variable('attr_id', 0); |
104 | - if ( $attr_id ) |
|
104 | + if ($attr_id) |
|
105 | 105 | { |
106 | 106 | $this->qte->get_users_by_topic_id(array($event['topic_id'])); |
107 | 107 | $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']))); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | if ($topic_attribute != \ernadoo\qte\qte::KEEP) |
124 | 124 | { |
125 | - $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
125 | + $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
126 | 126 | $post_data['topic_attr_user'] = (int) $this->user->data['user_id']; |
127 | 127 | $post_data['topic_attr_time'] = time(); |
128 | 128 |