@@ -116,8 +116,7 @@ |
||
| 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 = ''; |
@@ -66,14 +66,12 @@ discard block |
||
| 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 |
||
| 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( |
@@ -42,8 +42,7 @@ |
||
| 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 | } |
@@ -55,8 +55,7 @@ |
||
| 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 | } |
@@ -90,8 +90,7 @@ |
||
| 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 | } |
@@ -36,8 +36,8 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * {@inheritDoc} |
|
| 40 | - */ |
|
| 39 | + * {@inheritDoc} |
|
| 40 | + */ |
|
| 41 | 41 | static public function getSubscribedEvents() |
| 42 | 42 | { |
| 43 | 43 | return array( |