Passed
Push — master ( b0e9b2...87988d )
by Stanislav
18:47 queued 03:50
created
core/notification/events/phpbbgallery_new_image.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 class phpbbgallery_new_image extends \phpbb\notification\type\base
12 12
 {
13 13
 	/**
14
-	* Get notification type name
15
-	*
16
-	* @return string
17
-	*/
14
+	 * Get notification type name
15
+	 *
16
+	 * @return string
17
+	 */
18 18
 	public function get_type()
19 19
 	{
20 20
 		return 'phpbbgallery.core.notification.new_image';
21 21
 	}
22 22
 	/**
23
-	* Notification option data (for outputting to the user)
24
-	*
25
-	* @var bool|array False if the service should use it's default data
26
-	* 					Array of data (including keys 'id', 'lang', and 'group')
27
-	*/
23
+	 * Notification option data (for outputting to the user)
24
+	 *
25
+	 * @var bool|array False if the service should use it's default data
26
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
27
+	 */
28 28
 	public static $notification_option = array(
29 29
 		'lang'	=> 'NOTIFICATION_TYPE_PHPBBGALLERY_NEW_IMAGE',
30 30
 	);
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
-	*
51
-	* @return bool True/False whether or not this is available to the user
52
-	*/
49
+	 * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
+	 *
51
+	 * @return bool True/False whether or not this is available to the user
52
+	 */
53 53
 	public function is_available()
54 54
 	{
55 55
 		return true;
@@ -93,17 +93,17 @@  discard block
 block discarded – undo
93 93
 	}
94 94
 
95 95
 	/**
96
-	* Get the user's avatar
97
-	*/
96
+	 * Get the user's avatar
97
+	 */
98 98
 	public function get_avatar()
99 99
 	{
100 100
 		return 0;
101 101
 	}
102 102
 	/**
103
-	* Get the HTML formatted title of this notification
104
-	*
105
-	* @return string
106
-	*/
103
+	 * Get the HTML formatted title of this notification
104
+	 *
105
+	 * @return string
106
+	 */
107 107
 	public function get_title()
108 108
 	{
109 109
 		return $this->language->lang('NOTIFICATION_PHPBBGALLERY_NEW_IMAGE', $this->get_data('album_name'));
@@ -121,19 +121,19 @@  discard block
 block discarded – undo
121 121
 	}
122 122
 
123 123
 	/**
124
-	* Get email template
125
-	*
126
-	* @return string|bool
127
-	*/
124
+	 * Get email template
125
+	 *
126
+	 * @return string|bool
127
+	 */
128 128
 	public function get_email_template()
129 129
 	{
130 130
 		return false;
131 131
 	}
132 132
 	/**
133
-	* Get email template variables
134
-	*
135
-	* @return array
136
-	*/
133
+	 * Get email template variables
134
+	 *
135
+	 * @return array
136
+	 */
137 137
 	public function get_email_template_variables()
138 138
 	{
139 139
 		return array();
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
 	}
161 161
 
162 162
 	/**
163
-	* Function for preparing the data for insertion in an SQL query
164
-	* (The service handles insertion)
165
-	*
166
-	* @param array $data The data for the updated rules
167
-	* @param array $pre_create_data Data from pre_create_insert_array()
168
-	*
169
-	* @return array Array of data ready to be inserted into the database
170
-	*/
163
+	 * Function for preparing the data for insertion in an SQL query
164
+	 * (The service handles insertion)
165
+	 *
166
+	 * @param array $data The data for the updated rules
167
+	 * @param array $pre_create_data Data from pre_create_insert_array()
168
+	 *
169
+	 * @return array Array of data ready to be inserted into the database
170
+	 */
171 171
 	public function create_insert_array($data, $pre_create_data = array())
172 172
 	{
173 173
 		$this->set_data('album_name', $data['album_name']);
Please login to merge, or discard this patch.
core/notification/events/phpbbgallery_image_for_approval.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 class phpbbgallery_image_for_approval extends \phpbb\notification\type\base
12 12
 {
13 13
 	/**
14
-	* Get notification type name
15
-	*
16
-	* @return string
17
-	*/
14
+	 * Get notification type name
15
+	 *
16
+	 * @return string
17
+	 */
18 18
 	public function get_type()
19 19
 	{
20 20
 		return 'phpbbgallery.core.notification.image_for_approval';
21 21
 	}
22 22
 	/**
23
-	* Notification option data (for outputting to the user)
24
-	*
25
-	* @var bool|array False if the service should use it's default data
26
-	* 					Array of data (including keys 'id', 'lang', and 'group')
27
-	*/
23
+	 * Notification option data (for outputting to the user)
24
+	 *
25
+	 * @var bool|array False if the service should use it's default data
26
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
27
+	 */
28 28
 	public static $notification_option = array(
29 29
 		'lang'	=> 'NOTIFICATION_TYPE_PHPBBGALLERY_IMAGE_FOR_APPROVE',
30 30
 	);
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
-	*
51
-	* @return bool True/False whether or not this is available to the user
52
-	*/
49
+	 * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
+	 *
51
+	 * @return bool True/False whether or not this is available to the user
52
+	 */
53 53
 	public function is_available()
54 54
 	{
55 55
 		return true;
@@ -127,19 +127,19 @@  discard block
 block discarded – undo
127 127
 	}
128 128
 
129 129
 	/**
130
-	* Get email template
131
-	*
132
-	* @return string|bool
133
-	*/
130
+	 * Get email template
131
+	 *
132
+	 * @return string|bool
133
+	 */
134 134
 	public function get_email_template()
135 135
 	{
136 136
 		return false;
137 137
 	}
138 138
 	/**
139
-	* Get email template variables
140
-	*
141
-	* @return array
142
-	*/
139
+	 * Get email template variables
140
+	 *
141
+	 * @return array
142
+	 */
143 143
 	public function get_email_template_variables()
144 144
 	{
145 145
 		return array();
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
 	}
167 167
 
168 168
 	/**
169
-	* Function for preparing the data for insertion in an SQL query
170
-	* (The service handles insertion)
171
-	*
172
-	* @param array $data The data for the updated rules
173
-	* @param array $pre_create_data Data from pre_create_insert_array()
174
-	*
175
-	* @return array Array of data ready to be inserted into the database
176
-	*/
169
+	 * Function for preparing the data for insertion in an SQL query
170
+	 * (The service handles insertion)
171
+	 *
172
+	 * @param array $data The data for the updated rules
173
+	 * @param array $pre_create_data Data from pre_create_insert_array()
174
+	 *
175
+	 * @return array Array of data ready to be inserted into the database
176
+	 */
177 177
 	public function create_insert_array($data, $pre_create_data = array())
178 178
 	{
179 179
 		$this->set_data('album_name', $data['album_name']);
Please login to merge, or discard this patch.
core/notification/events/phpbbgallery_image_not_approved.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@  discard block
 block discarded – undo
10 10
 class phpbbgallery_image_not_approved extends \phpbb\notification\type\base
11 11
 {
12 12
 	/**
13
-	* Get notification type name
14
-	*
15
-	* @return string
16
-	*/
13
+	 * Get notification type name
14
+	 *
15
+	 * @return string
16
+	 */
17 17
 	public function get_type()
18 18
 	{
19 19
 		return 'phpbbgallery.core.notification.image_not_approved';
20 20
 	}
21 21
 	/**
22
-	* Notification option data (for outputting to the user)
23
-	*
24
-	* @var bool|array False if the service should use it's default data
25
-	* 					Array of data (including keys 'id', 'lang', and 'group')
26
-	*/
22
+	 * Notification option data (for outputting to the user)
23
+	 *
24
+	 * @var bool|array False if the service should use it's default data
25
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
26
+	 */
27 27
 	public static $notification_option = array(
28 28
 		'lang'	=> 'NOTIFICATION_TYPE_PHPBBGALLERY_IMAGE_NOT_APPROVED',
29 29
 	);
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	/**
48
-	* Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
49
-	*
50
-	* @return bool True/False whether or not this is available to the user
51
-	*/
48
+	 * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
49
+	 *
50
+	 * @return bool True/False whether or not this is available to the user
51
+	 */
52 52
 	public function is_available()
53 53
 	{
54 54
 		return true;
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
 	}
140 140
 
141 141
 	/**
142
-	* Users needed to query before this notification can be displayed
143
-	*
144
-	* @return array Array of user_ids
145
-	*/
142
+	 * Users needed to query before this notification can be displayed
143
+	 *
144
+	 * @return array Array of user_ids
145
+	 */
146 146
 	public function users_to_query()
147 147
 	{
148 148
 		return array();
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
 
151 151
 
152 152
 	/**
153
-	* Function for preparing the data for insertion in an SQL query
154
-	* (The service handles insertion)
155
-	*
156
-	* @param array $data The data for the updated rules
157
-	* @param array $pre_create_data Data from pre_create_insert_array()
158
-	*
159
-	* @return array Array of data ready to be inserted into the database
160
-	*/
153
+	 * Function for preparing the data for insertion in an SQL query
154
+	 * (The service handles insertion)
155
+	 *
156
+	 * @param array $data The data for the updated rules
157
+	 * @param array $pre_create_data Data from pre_create_insert_array()
158
+	 *
159
+	 * @return array Array of data ready to be inserted into the database
160
+	 */
161 161
 	public function create_insert_array($data, $pre_create_data = array())
162 162
 	{
163 163
 		$this->set_data('album_name', $data['album_name']);
Please login to merge, or discard this patch.
core/notification/events/phpbbgallery_image_approved.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 class phpbbgallery_image_approved extends \phpbb\notification\type\base
12 12
 {
13 13
 	/**
14
-	* Get notification type name
15
-	*
16
-	* @return string
17
-	*/
14
+	 * Get notification type name
15
+	 *
16
+	 * @return string
17
+	 */
18 18
 	public function get_type()
19 19
 	{
20 20
 		return 'phpbbgallery.core.notification.image_approved';
21 21
 	}
22 22
 	/**
23
-	* Notification option data (for outputting to the user)
24
-	*
25
-	* @var bool|array False if the service should use it's default data
26
-	* 					Array of data (including keys 'id', 'lang', and 'group')
27
-	*/
23
+	 * Notification option data (for outputting to the user)
24
+	 *
25
+	 * @var bool|array False if the service should use it's default data
26
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
27
+	 */
28 28
 	public static $notification_option = array(
29 29
 		'lang'	=> 'NOTIFICATION_TYPE_PHPBBGALLERY_IMAGE_APPROVED',
30 30
 	);
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
-	*
51
-	* @return bool True/False whether or not this is available to the user
52
-	*/
49
+	 * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
50
+	 *
51
+	 * @return bool True/False whether or not this is available to the user
52
+	 */
53 53
 	public function is_available()
54 54
 	{
55 55
 		return true;
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 
142 142
 	/**
143
-	* Users needed to query before this notification can be displayed
144
-	*
145
-	* @return array Array of user_ids
146
-	*/
143
+	 * Users needed to query before this notification can be displayed
144
+	 *
145
+	 * @return array Array of user_ids
146
+	 */
147 147
 	public function users_to_query()
148 148
 	{
149 149
 		return array();
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 
152 152
 
153 153
 	/**
154
-	* Function for preparing the data for insertion in an SQL query
155
-	* (The service handles insertion)
156
-	*
157
-	* @param array $data The data for the updated rules
158
-	* @param array $pre_create_data Data from pre_create_insert_array()
159
-	*
160
-	* @return array Array of data ready to be inserted into the database
161
-	*/
154
+	 * Function for preparing the data for insertion in an SQL query
155
+	 * (The service handles insertion)
156
+	 *
157
+	 * @param array $data The data for the updated rules
158
+	 * @param array $pre_create_data Data from pre_create_insert_array()
159
+	 *
160
+	 * @return array Array of data ready to be inserted into the database
161
+	 */
162 162
 	public function create_insert_array($data, $pre_create_data = array())
163 163
 	{
164 164
 		$this->set_data('album_name', $data['album_name']);
Please login to merge, or discard this patch.
core/notification/helper.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -235,11 +235,11 @@
 block discarded – undo
235 235
 	}
236 236
 
237 237
 	/**
238
-	* Remove albums from watch-list
239
-	*
240
-	* @param	mixed	$album_ids		Array or integer with album_id where we delete from the watch-list.
241
-	* @param	mixed	$user_ids		If not set, it uses the currents user_id
242
-	*/
238
+	 * Remove albums from watch-list
239
+	 *
240
+	 * @param	mixed	$album_ids		Array or integer with album_id where we delete from the watch-list.
241
+	 * @param	mixed	$user_ids		If not set, it uses the currents user_id
242
+	 */
243 243
 	public function remove_albums($album_ids, $user_ids = false)
244 244
 	{
245 245
 		$album_ids = $this->cast_mixed_int2array($album_ids);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,8 +244,7 @@
 block discarded – undo
244 244
 		if (is_array($ids))
245 245
 		{
246 246
 			return array_map('intval', $ids);
247
-		}
248
-		else
247
+		} else
249 248
 		{
250 249
 			return array((int) $ids);
251 250
 		}
Please login to merge, or discard this patch.
core/misc.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 			$sql = 'SELECT album_id
134 134
 				FROM ' . $this->track_table . '
135
-				WHERE user_id = ' . (int) $this->user->data['user_id'] .'
135
+				WHERE user_id = ' . (int) $this->user->data['user_id'] . '
136 136
 					AND ' . $this->db->sql_in_set('album_id', $album_id);
137 137
 			$result = $this->db->sql_query($sql);
138 138
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 			{
148 148
 				$sql = 'UPDATE ' . $this->track_table . '
149 149
 					SET mark_time = ' . time() . '
150
-					WHERE user_id = '. (int) $this->user->data['user_id'] .'
150
+					WHERE user_id = '. (int) $this->user->data['user_id'] . '
151 151
 						AND ' . $this->db->sql_in_set('album_id', $sql_update);
152 152
 				$this->db->sql_query($sql);
153 153
 			}
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
 			$sql = 'UPDATE ' . $this->track_table . '
180 180
 				SET mark_time = ' . time() . '
181
-				WHERE user_id = ' . (int) $this->user->data['user_id'] .'
181
+				WHERE user_id = ' . (int) $this->user->data['user_id'] . '
182 182
 					AND album_id = ' . (int) $album_id;
183 183
 			$this->db->sql_query($sql);
184 184
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -72,14 +72,12 @@  discard block
 block discarded – undo
72 72
 			if ($login_explain && isset($this->user->lang[$login_explain]))
73 73
 			{
74 74
 				$login_explain = $this->user->lang($login_explain);
75
-			}
76
-			else
75
+			} else
77 76
 			{
78 77
 				$login_explain = '';
79 78
 			}
80 79
 			login_box($loginlink, $login_explain);
81
-		}
82
-		else
80
+		} else
83 81
 		{
84 82
 			$this->url->meta_refresh(3, $backlink);
85 83
 			trigger_error('NOT_AUTHORISED');
@@ -121,8 +119,7 @@  discard block
 block discarded – undo
121 119
 			}
122 120
 
123 121
 			return;
124
-		}
125
-		else if ($mode == 'albums')
122
+		} else if ($mode == 'albums')
126 123
 		{
127 124
 			// Mark album read
128 125
 			if (!is_array($album_id))
@@ -168,8 +165,7 @@  discard block
 block discarded – undo
168 165
 			}
169 166
 
170 167
 			return;
171
-		}
172
-		else if ($mode == 'album')
168
+		} else if ($mode == 'album')
173 169
 		{
174 170
 			if ($album_id === false)
175 171
 			{
Please login to merge, or discard this patch.
core/log.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,9 +106,9 @@
 block discarded – undo
106 106
 	}
107 107
 
108 108
 	/**
109
-	* Delete logs
110
-	* @param	array	$mark	Logs selected for deletion
111
-	**/
109
+	 * Delete logs
110
+	 * @param	array	$mark	Logs selected for deletion
111
+	 **/
112 112
 	public function delete_logs($mark)
113 113
 	{
114 114
 		$sql = 'DELETE FROM ' . $this->log_table . ' WHERE ' . $this->db->sql_in_set('log_id', $mark);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 				),
274 274
 				'params' => array(
275 275
 				),
276
-			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
276
+			), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
277 277
 		}
278 278
 		else if ($album == -1)
279 279
 		{
@@ -293,9 +293,9 @@  discard block
 block discarded – undo
293 293
 			{
294 294
 				$url_array['sd'] = $additional['sort_dir'];
295 295
 			}
296
-			$url = http_build_query($url_array,'','&');
296
+			$url = http_build_query($url_array, '', '&');
297 297
 
298
-			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
298
+			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
299 299
 		}
300 300
 		else
301 301
 		{
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 				'params' => array(
308 308
 					'album_id'	=> $album,
309 309
 				),
310
-			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
310
+			), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
311 311
 		}
312 312
 	}
313 313
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -204,8 +204,7 @@  discard block
 block discarded – undo
204 204
 					$sql_array['GROUP_BY'] = 'l.description, l.log_id, i.image_id';
205 205
 				break;
206 206
 			}
207
-		}
208
-		else
207
+		} else
209 208
 		{
210 209
 			$sql_array['ORDER_BY'] = 'l.log_time ' . (isset($additional['sort_dir']) ? 'ASC' : 'DESC');
211 210
 			$sql_array['GROUP_BY'] = 'l.log_time, l.log_id, i.image_id';
@@ -219,8 +218,7 @@  discard block
 block discarded – undo
219 218
 		if ($row)
220 219
 		{
221 220
 			$count = $row['count'];
222
-		}
223
-		else
221
+		} else
224 222
 		{
225 223
 			$count = 0;
226 224
 		}
@@ -281,8 +279,7 @@  discard block
 block discarded – undo
281 279
 				'params' => array(
282 280
 				),
283 281
 			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
284
-		}
285
-		else if ($album == -1)
282
+		} else if ($album == -1)
286 283
 		{
287 284
 			$url_array = array(
288 285
 				'i' => '-phpbbgallery-core-acp-gallery_logs_module',
@@ -303,8 +300,7 @@  discard block
 block discarded – undo
303 300
 			$url = http_build_query($url_array,'','&');
304 301
 
305 302
 			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
306
-		}
307
-		else
303
+		} else
308 304
 		{
309 305
 			$this->pagination->generate_template_pagination(array(
310 306
 				'routes' => array(
Please login to merge, or discard this patch.
core/cache.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 	private $phpbb_db;
18 18
 
19 19
 	/**
20
-	* cache constructor.
21
-	* @param \phpbb\cache\service $cache
22
-	* @param \phpbb\db\driver\driver_interface $db
23
-	* @param $albums_table
24
-	* @param $images_table
25
-	*/
20
+	 * cache constructor.
21
+	 * @param \phpbb\cache\service $cache
22
+	 * @param \phpbb\db\driver\driver_interface $db
23
+	 * @param $albums_table
24
+	 * @param $images_table
25
+	 */
26 26
 	public function __construct(\phpbb\cache\service $cache, \phpbb\db\driver\driver_interface $db,
27 27
 								$albums_table, $images_table)
28 28
 	{
@@ -153,18 +153,18 @@  discard block
 block discarded – undo
153 153
 	}
154 154
 
155 155
 	/**
156
-	* Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache
157
-	*/
156
+	 * Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache
157
+	 */
158 158
 	public function destroy_images()
159 159
 	{
160 160
 		$this->phpbb_cache->destroy('_images');
161 161
 	}
162 162
 
163 163
 	/**
164
-	* Destroy album cache
165
-	* Basicly some tests fail due album cache not destroyed ...
166
-	* So lets try it now?
167
-	*/
164
+	 * Destroy album cache
165
+	 * Basicly some tests fail due album cache not destroyed ...
166
+	 * So lets try it now?
167
+	 */
168 168
 	public function destroy_albums()
169 169
 	{
170 170
 		$this->phpbb_cache->destroy('_albums');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 		if (($albums = $this->phpbb_cache->get('_albums')) === false)
56 56
 		{
57 57
 			$sql = 'SELECT a.album_id, a.parent_id, a.album_name, a.album_type, a.left_id, a.right_id, a.album_user_id, a.display_in_rrc, a.album_auth_access
58
-				FROM ' . $this->table_albums. ' a
58
+				FROM ' . $this->table_albums . ' a
59 59
 				LEFT JOIN ' . USERS_TABLE . ' u
60 60
 					ON (u.user_id = a.album_user_id)
61 61
 				ORDER BY u.username_clean, a.album_user_id, a.left_id ASC';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,8 +180,7 @@
 block discarded – undo
180 180
 		if ($subtarget)
181 181
 		{
182 182
 			$this->phpbb_cache->destroy($target, $subtarget);
183
-		}
184
-		else
183
+		} else
185 184
 		{
186 185
 			$this->phpbb_cache->destroy($target);
187 186
 		}
Please login to merge, or discard this patch.
core/ucp/settings_module.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 			$additional_settings = array();
93 93
 
94 94
 			/**
95
-			* Event set personal settings
96
-			*
97
-			* @event phpbbgallery.core.ucp.set_settings_submit
98
-			* @var	array	additional_settings		array of additional settings
99
-			* @since 1.2.0
100
-			*/
95
+			 * Event set personal settings
96
+			 *
97
+			 * @event phpbbgallery.core.ucp.set_settings_submit
98
+			 * @var	array	additional_settings		array of additional settings
99
+			 * @since 1.2.0
100
+			 */
101 101
 			$vars = array('additional_settings');
102 102
 			extract($this->dispatcher->trigger_event('phpbbgallery.core.ucp.set_settings_submit', compact($vars)));
103 103
 
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
 		}
119 119
 
120 120
 		/**
121
-		* Event no submit personal settings
122
-		*
123
-		* @event phpbbgallery.core.ucp.set_settings_nosubmit
124
-		* @since 1.2.0
125
-		*/
121
+		 * Event no submit personal settings
122
+		 *
123
+		 * @event phpbbgallery.core.ucp.set_settings_nosubmit
124
+		 * @since 1.2.0
125
+		 */
126 126
 		$this->dispatcher->dispatch('phpbbgallery.core.ucp.set_settings_nosubmit');
127 127
 
128 128
 		$this->template->assign_vars(array(
Please login to merge, or discard this patch.