Passed
Push — master ( 68fb93...b68f6e )
by Stanislav
12:11
created
core/controller/album.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -117,8 +117,7 @@  discard block
 block discarded – undo
117 117
 		try
118 118
 		{
119 119
 			$this->loader->load($album_id);
120
-		}
121
-		catch (\Exception $e)
120
+		} catch (\Exception $e)
122 121
 		{
123 122
 			throw new \phpbb\exception\http_exception(404, 'ALBUM_NOT_EXIST');
124 123
 		}
@@ -178,8 +177,7 @@  discard block
 block discarded – undo
178 177
 					'phpbbgallery_core_album_upload',
179 178
 					array('album_id' => (int) $album_id)
180 179
 				));
181
-			}
182
-			else
180
+			} else
183 181
 			{
184 182
 				if ($album_data['contest_start'] + $album_data['contest_rating'] > time())
185 183
 				{
@@ -236,8 +234,7 @@  discard block
 block discarded – undo
236 234
 		if (in_array($sort_key, array('r', 'ra')))
237 235
 		{
238 236
 			$sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'ASC' : 'DESC');
239
-		}
240
-		else
237
+		} else
241 238
 		{
242 239
 			$sql_help_sort = ', image_id ' . (($sort_dir == 'd') ? 'DESC' : 'ASC');
243 240
 		}
@@ -460,8 +457,7 @@  discard block
 block discarded – undo
460 457
 				));
461 458
 				$this->url->meta_refresh(3, $back_link);
462 459
 				return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY'));
463
-			}
464
-			else
460
+			} else
465 461
 			{
466 462
 				$this->notifications_helper->add_albums($album_id);
467 463
 				$this->template->assign_vars(array(
@@ -470,14 +466,12 @@  discard block
 block discarded – undo
470 466
 				$this->url->meta_refresh(3, $back_link);
471 467
 				return $this->helper->render('gallery/message.html', $this->language->lang('GALLERY'));
472 468
 			}
473
-		}
474
-		else
469
+		} else
475 470
 		{
476 471
 			if ($this->notifications_helper->get_watched_album($album_id) == 1)
477 472
 			{
478 473
 				$lang = $this->language->lang('UNWATCH_ALBUM');
479
-			}
480
-			else
474
+			} else
481 475
 			{
482 476
 				$lang = $this->language->lang('WATCH_ALBUM');
483 477
 			}
@@ -509,8 +503,7 @@  discard block
 block discarded – undo
509 503
 			if (!$this->user->data['is_registered'])
510 504
 			{
511 505
 				login_box();
512
-			}
513
-			else
506
+			} else
514 507
 			{
515 508
 				//return $this->error('NOT_AUTHORISED', 403);
516 509
 				trigger_error($this->language->lang('NOT_AUTHORISED'));
Please login to merge, or discard this patch.