Completed
Push — master ( f06e6b...d540a7 )
by Florin
02:24
created
models/main_model.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -114,10 +114,11 @@  discard block
 block discarded – undo
114 114
 			'sentAt' => time()
115 115
 		);
116 116
 
117
-		if ($this->db->insert('messages', $insert))
118
-			return $this->db->lastInsertId();
119
-		else
120
-			return false;
117
+		if ($this->db->insert('messages', $insert)) {
118
+					return $this->db->lastInsertId();
119
+		} else {
120
+					return false;
121
+		}
121 122
 	}
122 123
 
123 124
 	public function sendFile($data)
@@ -131,10 +132,11 @@  discard block
 block discarded – undo
131 132
 			'sentAt' => time()
132 133
 		);
133 134
 
134
-		if ($this->db->insert('files', $insert))
135
-			return $this->db->lastInsertId();
136
-		else
137
-			return false;
135
+		if ($this->db->insert('files', $insert)) {
136
+					return $this->db->lastInsertId();
137
+		} else {
138
+					return false;
139
+		}
138 140
 	}
139 141
 
140 142
 	public function getMessageById($id)
Please login to merge, or discard this patch.
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.