@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | try |
41 | 41 | { |
42 | 42 | $translated = translateMailcode($commandsText, $activeSyntax); |
43 | - } |
|
44 | - catch (Mailcode_Exception $e) |
|
43 | + } catch (Mailcode_Exception $e) |
|
45 | 44 | { |
46 | 45 | $translated = ''; |
47 | 46 | $error = $e->getMessage(); |
@@ -146,8 +145,7 @@ discard block |
||
146 | 145 | <?php pt('No commands specified.') ?> |
147 | 146 | </div> |
148 | 147 | <?php |
149 | - } |
|
150 | - else if($error) |
|
148 | + } else if($error) |
|
151 | 149 | { |
152 | 150 | ?> |
153 | 151 | <div class="alert alert-danger"> |
@@ -155,8 +153,7 @@ discard block |
||
155 | 153 | <?php echo $error ?> |
156 | 154 | </div> |
157 | 155 | <?php |
158 | - } |
|
159 | - else |
|
156 | + } else |
|
160 | 157 | { |
161 | 158 | ?> |
162 | 159 | <textarea class="form-control" rows="10"><?php echo htmlspecialchars($translated) ?></textarea> |
@@ -26,13 +26,11 @@ |
||
26 | 26 | { |
27 | 27 | $xml = FileHelper::downloadFile($xmlURL); |
28 | 28 | FileHelper::saveFile($cacheFile, $xml); |
29 | - } |
|
30 | - catch (FileHelper_Exception $e) |
|
29 | + } catch (FileHelper_Exception $e) |
|
31 | 30 | { |
32 | 31 | die('Unable to download the current libphonenumber XML from <a href="'.$xmlURL.'">'.$xmlURL.'</a>'); |
33 | 32 | } |
34 | -} |
|
35 | -else |
|
33 | +} else |
|
36 | 34 | { |
37 | 35 | $xml = FileHelper::readContents($cacheFile); |
38 | 36 | } |