Completed
Push — master ( 37dba0...c619b5 )
by Erwan
01:40
created
event/main_listener.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 
34 34
 	public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, \phpbb\log\log $log, \ernadoo\qte\qte $qte)
35 35
 	{
36
-		$this->request	= $request;
37
-		$this->template	= $template;
38
-		$this->user		= $user;
36
+		$this->request = $request;
37
+		$this->template = $template;
38
+		$this->user = $user;
39 39
 		$this->log		= $log;
40 40
 		$this->qte		= $qte;
41 41
 	}
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 			if ($topic_attribute != \ernadoo\qte\qte::KEEP)
119 119
 			{
120
-				$post_data['topic_attr_id']		= (int) $topic_attribute;
120
+				$post_data['topic_attr_id'] = (int) $topic_attribute;
121 121
 				$post_data['topic_attr_user']	= (int) $this->user->data['user_id'];
122 122
 				$post_data['topic_attr_time']	= time();
123 123
 
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 
140 140
 		if ($event['post_data']['force_attr'])
141 141
 		{
142
-			if ((!$post_data['attr_id'] || $post_data['attr_id'] == \ernadoo\qte\qte::REMOVE) && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id'])) )
142
+			if ((!$post_data['attr_id'] || $post_data['attr_id'] == \ernadoo\qte\qte::REMOVE) && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id'])))
143 143
 			{
144 144
 				$error = $event['error'];
145 145
 				$error[] = $this->user->lang['QTE_ATTRIBUTE_UNSELECTED'];
146
-				$event['error'] = $error ;
146
+				$event['error'] = $error;
147 147
 
148 148
 				// init the value
149 149
 				$post_data['attr_id'] = 0;
Please login to merge, or discard this patch.