Passed
Pull Request — master (#325)
by
unknown
15:05
created
core/acp/gallery_logs_module.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
 		$this->tpl_name = 'gallery_logs';
29 29
 		add_form_key('acp_logs');
30 30
 
31
-		$page				= $request->variable('page', 0);
32
-		$filter_log		= $request->variable('lf', 'all');
33
-		$sort_days		= $request->variable('st', 0);
31
+		$page = $request->variable('page', 0);
32
+		$filter_log = $request->variable('lf', 'all');
33
+		$sort_days = $request->variable('st', 0);
34 34
 		$sort_key		= $request->variable('sk', 't');
35 35
 		$sort_dir		= $request->variable('sd', 'd');
36
-		$deletemark		= $request->is_set_post('delmarked');
37
-		$marked			= $request->variable('mark', []);
36
+		$deletemark = $request->is_set_post('delmarked');
37
+		$marked = $request->variable('mark', []);
38 38
 
39 39
 		$log = $phpbb_container->get('phpbbgallery.core.log');
40 40
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
 			if (confirm_box(true))
68 68
 			{
69 69
 				$log->delete_logs($marked);
70
-			}
71
-			else
70
+			} else
72 71
 			{
73 72
 				confirm_box(false, $this->language->lang('CONFIRM_OPERATION'), build_hidden_fields([
74 73
 					'page'		=> $page,
Please login to merge, or discard this patch.
core/log.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		{
134 134
 			$limit = $this->gallery_config->get('items_per_page');
135 135
 			// If its called from ACP album is 0 if MCP then is not
136
-			if($album == 0) $page = (int) ($page / $limit) + 1;
136
+			if ($album == 0) $page = (int) ($page / $limit) + 1;
137 137
 		}
138 138
 		$this->language->add_lang(['info_acp_gallery_logs'], 'phpbbgallery/core');
139 139
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 				),
284 284
 				'params' => array(
285 285
 				),
286
-			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
286
+			), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
287 287
 		}
288 288
 		else if ($album == -1)
289 289
 		{
@@ -304,9 +304,9 @@  discard block
 block discarded – undo
304 304
 			{
305 305
 				$url_array['sd'] = $additional['sort_dir'];
306 306
 			}
307
-			$url = http_build_query($url_array,'','&');
307
+			$url = http_build_query($url_array, '', '&');
308 308
 
309
-			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
309
+			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
310 310
 		}
311 311
 		else
312 312
 		{
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 				'params' => array(
319 319
 					'album_id'	=> $album,
320 320
 				),
321
-			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
321
+			), 'pagination', 'page', $count, $limit, ($page - 1) * $limit);
322 322
 		}
323 323
 	}
324 324
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -133,7 +133,9 @@  discard block
 block discarded – undo
133 133
 		{
134 134
 			$limit = $this->gallery_config->get('items_per_page');
135 135
 			// If its called from ACP album is 0 if MCP then is not
136
-			if($album == 0) $page = (int) ($page / $limit) + 1;
136
+			if($album == 0) {
137
+				$page = (int) ($page / $limit) + 1;
138
+			}
137 139
 		}
138 140
 		$this->language->add_lang(['info_acp_gallery_logs'], 'phpbbgallery/core');
139 141
 
@@ -206,8 +208,7 @@  discard block
 block discarded – undo
206 208
 					$sql_array['GROUP_BY'] = 'l.description, l.log_id, i.image_id';
207 209
 				break;
208 210
 			}
209
-		}
210
-		else
211
+		} else
211 212
 		{
212 213
 			$sql_array['ORDER_BY'] = 'l.log_time ' . (isset($additional['sort_dir']) ? 'ASC' : 'DESC');
213 214
 			$sql_array['GROUP_BY'] = 'l.log_time, l.log_id, i.image_id';
@@ -284,8 +285,7 @@  discard block
 block discarded – undo
284 285
 				'params' => array(
285 286
 				),
286 287
 			), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
287
-		}
288
-		else if ($album == -1)
288
+		} else if ($album == -1)
289 289
 		{
290 290
 			$url_array = array(
291 291
 				'i' => '-phpbbgallery-core-acp-gallery_logs_module',
@@ -307,8 +307,7 @@  discard block
 block discarded – undo
307 307
 			$url = http_build_query($url_array,'','&');
308 308
 
309 309
 			$this->pagination->generate_template_pagination(append_sid('index.php?' . $url), 'pagination', 'page', $count, $limit, ($page-1) * $limit);
310
-		}
311
-		else
310
+		} else
312 311
 		{
313 312
 			$this->pagination->generate_template_pagination(array(
314 313
 				'routes' => array(
Please login to merge, or discard this patch.