Completed
Push — master ( cd6ca3...800f7e )
by Florin
02:35
created
ucp/ucp_friends_module.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
 								{
86 86
 								  redirect($redirect_url);
87 87
 								}
88
-							}
89
-							else
88
+							} else
90 89
 							{
91 90
 								$user_id = $request->variable('user_id', array(0));
92 91
 								$redirect_url = $request->server('HTTP_REFERER');
@@ -118,8 +117,7 @@  discard block
 block discarded – undo
118 117
 			  {
119 118
 				$requests_id = $request->variable('requests_id', array(0));
120 119
 				$friends_controller->delete_request($requests_id);
121
-			  }
122
-			  else
120
+			  } else
123 121
 			  {
124 122
 				$requests_id = $request->variable('requests_id', array(0));
125 123
 				confirm_box(false, $user->lang('CONFIRM_REMOVE_REQUESTS'), build_hidden_fields(array(
@@ -149,8 +147,7 @@  discard block
 block discarded – undo
149 147
 				{
150 148
 					redirect($redirect_url);
151 149
 				}
152
-			  }
153
-			  else
150
+			  } else
154 151
 			  {
155 152
 				$request_id = $request->variable('request_id', 0);
156 153
 				$redirect_url = $request->server('HTTP_REFERER');
Please login to merge, or discard this patch.
event/main_listener.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,9 @@
 block discarded – undo
143 143
             'sender_id' => $user_id
144 144
         ));
145 145
         $check_widget = true;
146
-        if ($user_id == $this->user->data['user_id']) $check_widget = false;
146
+        if ($user_id == $this->user->data['user_id']) {
147
+        	$check_widget = false;
148
+        }
147 149
         $this->template->assign_vars(array(
148 150
             'U_USER_ID' => $user_id,
149 151
             'U_CHECK_FRIEND' => $check_friend,
Please login to merge, or discard this patch.
models/main_model.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -158,10 +158,11 @@  discard block
 block discarded – undo
158 158
             'sentAt' => time()
159 159
         );
160 160
 
161
-        if ($this->db->insert('messages', $insert))
162
-            return $this->db->lastInsertId();
163
-        else
164
-            return false;
161
+        if ($this->db->insert('messages', $insert)) {
162
+                    return $this->db->lastInsertId();
163
+        } else {
164
+                    return false;
165
+        }
165 166
     }
166 167
 
167 168
     /**
@@ -180,10 +181,11 @@  discard block
 block discarded – undo
180 181
             'sentAt' => time()
181 182
         );
182 183
 
183
-        if ($this->db->insert('files', $insert))
184
-            return $this->db->lastInsertId();
185
-        else
186
-            return false;
184
+        if ($this->db->insert('files', $insert)) {
185
+                    return $this->db->lastInsertId();
186
+        } else {
187
+                    return false;
188
+        }
187 189
     }
188 190
 
189 191
     /**
Please login to merge, or discard this patch.