Completed
Branch master (00eb3f)
by Matt
04:08
created
acp/viglink_module.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@
 block discarded – undo
116 116
 				$type_caster = new type_cast_helper();
117 117
 				$type_caster->set_var($convert_account_link, $convert_account_link, 'string', false, false);
118 118
 				$config->set('viglink_convert_account_url', $convert_account_link);
119
-			}
120
-			else
119
+			} else
121 120
 			{
122 121
 				$error[] = $language->lang('ACP_VIGLINK_NO_CONVERT_LINK');
123 122
 				$convert_account_link = '';
Please login to merge, or discard this patch.
acp/viglink_helper.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,14 +66,12 @@  discard block
 block discarded – undo
66 66
 		if ($info === false && $force_cache)
67 67
 		{
68 68
 			throw new \RuntimeException($this->language->lang('VERSIONCHECK_FAIL'));
69
-		}
70
-		else if ($info === false || $force_update)
69
+		} else if ($info === false || $force_update)
71 70
 		{
72 71
 			try
73 72
 			{
74 73
 				$info = $this->file_downloader->get('www.phpbb.com', '/viglink', 'enabled', 443);
75
-			}
76
-			catch (\phpbb\exception\runtime_exception $exception)
74
+			} catch (\phpbb\exception\runtime_exception $exception)
77 75
 			{
78 76
 				$prepare_parameters = array_merge(array($exception->getMessage()), $exception->get_parameters());
79 77
 				throw new \RuntimeException(call_user_func_array(array($this->language, 'lang'), $prepare_parameters));
@@ -84,8 +82,7 @@  discard block
 block discarded – undo
84 82
 				$this->set_viglink_configs(array(
85 83
 					'allow_viglink_phpbb'	=> false,
86 84
 				));
87
-			}
88
-			else
85
+			} else
89 86
 			{
90 87
 				$info = '1';
91 88
 				$this->set_viglink_configs(array(
Please login to merge, or discard this patch.
cron/viglink.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 		try
43 43
 		{
44 44
 			$this->helper->set_viglink_services(true);
45
-		}
46
-		catch (\RuntimeException $e)
45
+		} catch (\RuntimeException $e)
47 46
 		{
48 47
 			$this->helper->log_viglink_error($e->getMessage());
49 48
 		}
Please login to merge, or discard this patch.
ext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
 			try
56 56
 			{
57 57
 				$viglink_helper->set_viglink_services();
58
-			}
59
-			catch (\RuntimeException $e)
58
+			} catch (\RuntimeException $e)
60 59
 			{
61 60
 				$viglink_helper->log_viglink_error($e->getMessage());
62 61
 			}
Please login to merge, or discard this patch.
event/acp_listener.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@
 block discarded – undo
90 90
 		try
91 91
 		{
92 92
 			$this->helper->set_viglink_services();
93
-		}
94
-		catch (\RuntimeException $e)
93
+		} catch (\RuntimeException $e)
95 94
 		{
96 95
 			$this->helper->log_viglink_error($e->getMessage());
97 96
 		}
Please login to merge, or discard this patch.
event/listener.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	/**
39
-	* {@inheritDoc}
40
-	*/
39
+	 * {@inheritDoc}
40
+	 */
41 41
 	static public function getSubscribedEvents()
42 42
 	{
43 43
 		return array(
Please login to merge, or discard this patch.