Completed
Push — master ( a66eb7...3648d0 )
by Erwan
02:31
created
qte.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -69,16 +69,16 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.
event/main_listener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	public function viewtopic_attr_apply($event)
105 105
 	{
106 106
 		$attr_id = (int) $this->request->variable('attr_id', 0);
107
-		if ( $attr_id )
107
+		if ($attr_id)
108 108
 		{
109 109
 			$this->qte->get_users_by_topic_id(array($event['topic_id']));
110 110
 			$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'])));
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 				if ($topic_attribute != \ernadoo\qte\qte::KEEP)
127 127
 				{
128
-					$post_data['topic_attr_id']		= (int) $topic_attribute;
128
+					$post_data['topic_attr_id'] = (int) $topic_attribute;
129 129
 					$post_data['topic_attr_user']	= (int) $this->user->data['user_id'];
130 130
 					$post_data['topic_attr_time']	= time();
131 131
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 		}
152 152
 		else if ($topic_attribute != \ernadoo\qte\qte::KEEP)
153 153
 		{
154
-			if(empty($event['post_data']['topic_attr_id']) && $topic_attribute == \ernadoo\qte\qte::REMOVE)
154
+			if (empty($event['post_data']['topic_attr_id']) && $topic_attribute == \ernadoo\qte\qte::REMOVE)
155 155
 			{
156 156
 				$topic_attribute = \ernadoo\qte\qte::KEEP;
157 157
 			}
Please login to merge, or discard this patch.