@@ -258,8 +258,7 @@ |
||
258 | 258 | if(empty($tokens)) |
259 | 259 | { |
260 | 260 | $content = '/* No strings found. */'; |
261 | - } |
|
262 | - else |
|
261 | + } else |
|
263 | 262 | { |
264 | 263 | $content = |
265 | 264 | '/**'.PHP_EOL. |
@@ -17,8 +17,7 @@ |
||
17 | 17 | if(isset($this->parentToken)) { |
18 | 18 | $this->line = $this->parentToken->getLine(); |
19 | 19 | } |
20 | - } |
|
21 | - else |
|
20 | + } else |
|
22 | 21 | { |
23 | 22 | $this->token = token_name($this->definition[0]); |
24 | 23 | $this->value = $this->definition[1]; |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | foreach($defaults as $name => $val) { |
51 | 51 | $this->setValue($name, $val); |
52 | 52 | } |
53 | - } |
|
54 | - else if($this->request->getBool($this->vars['filter'])) |
|
53 | + } else if($this->request->getBool($this->vars['filter'])) |
|
55 | 54 | { |
56 | 55 | $this->parseSearchTerms($this->request->getParam($this->vars['search'])); |
57 | 56 | |
@@ -72,8 +71,7 @@ discard block |
||
72 | 71 | ->setEnum('', 'client', 'server') |
73 | 72 | ->get('') |
74 | 73 | ); |
75 | - } |
|
76 | - else |
|
74 | + } else |
|
77 | 75 | { |
78 | 76 | $this->parseSearchTerms($this->getValue($this->vars['search'])); |
79 | 77 | } |
@@ -121,8 +121,7 @@ |
||
121 | 121 | $lines[] = '; '; |
122 | 122 | $lines[] = '; 1) Do not to modify the keys (left hand side of the = sign)'; |
123 | 123 | $lines[] = '; 2) Save the file as UTF-8 without BOM'; |
124 | - } |
|
125 | - else |
|
124 | + } else |
|
126 | 125 | { |
127 | 126 | $lines[] = '; Do NOT edit this file directly! It depends on the main translation file'; |
128 | 127 | $lines[] = '; and any changes will be lost. Edit the main file instead.'; |
@@ -19,8 +19,7 @@ |
||
19 | 19 | if(isset($this->parentToken)) { |
20 | 20 | $this->line = $this->parentToken->getLine(); |
21 | 21 | } |
22 | - } |
|
23 | - else |
|
22 | + } else |
|
24 | 23 | { |
25 | 24 | $this->token = JTokenizer::getTokenName($this->definition[0]); |
26 | 25 | $this->value = $this->definition[1]; |
@@ -124,8 +124,7 @@ |
||
124 | 124 | try |
125 | 125 | { |
126 | 126 | $this->content = FileHelper::readContents($path); |
127 | - } |
|
128 | - catch (FileHelper_Exception $e) |
|
127 | + } catch (FileHelper_Exception $e) |
|
129 | 128 | { |
130 | 129 | throw new Localization_Exception( |
131 | 130 | sprintf('Source code file [%s] could not be read', basename($path)), |
@@ -245,8 +245,7 @@ |
||
245 | 245 | if ($decimals == '-') { |
246 | 246 | $decimals = 0; |
247 | 247 | } |
248 | - } |
|
249 | - else |
|
248 | + } else |
|
250 | 249 | { |
251 | 250 | $decimals = 0; |
252 | 251 | $thousands = implode('', $parts); |
@@ -237,8 +237,7 @@ discard block |
||
237 | 237 | if($this->request->getBool($this->getVarName('scan'))) |
238 | 238 | { |
239 | 239 | $this->executeScan(); |
240 | - } |
|
241 | - else if($this->request->getBool($this->getVarName('save'))) |
|
240 | + } else if($this->request->getBool($this->getVarName('save'))) |
|
242 | 241 | { |
243 | 242 | $this->executeSave(); |
244 | 243 | } |
@@ -305,8 +304,7 @@ discard block |
||
305 | 304 | ?> |
306 | 305 | <b><?php echo $source->getLabel() ?></b> |
307 | 306 | <?php |
308 | - } |
|
309 | - else |
|
307 | + } else |
|
310 | 308 | { |
311 | 309 | echo $source->getLabel(); |
312 | 310 | } |
@@ -392,12 +390,10 @@ discard block |
||
392 | 390 | <?php pt('No application locales were added to translate to.') ?> |
393 | 391 | </div> |
394 | 392 | <?php |
395 | - } |
|
396 | - else if($this->request->getBool($this->getVarName('warnings'))) |
|
393 | + } else if($this->request->getBool($this->getVarName('warnings'))) |
|
397 | 394 | { |
398 | 395 | echo $this->renderWarnings(); |
399 | - } |
|
400 | - else |
|
396 | + } else |
|
401 | 397 | { |
402 | 398 | ?> |
403 | 399 | <h1><?php echo $this->activeSource->getLabel() ?></h1> |
@@ -447,8 +443,7 @@ discard block |
||
447 | 443 | </a> |
448 | 444 | </p> |
449 | 445 | <?php |
450 | - } |
|
451 | - else |
|
446 | + } else |
|
452 | 447 | { |
453 | 448 | echo $this->filters->renderForm(); |
454 | 449 | |
@@ -698,8 +693,7 @@ discard block |
||
698 | 693 | if($totalFiles == 1) |
699 | 694 | { |
700 | 695 | pt('Found in a single file:'); |
701 | - } |
|
702 | - else |
|
696 | + } else |
|
703 | 697 | { |
704 | 698 | pt('Found in %1$s files:', $totalFiles); |
705 | 699 | } |
@@ -246,8 +246,7 @@ |
||
246 | 246 | { |
247 | 247 | return $locale; |
248 | 248 | } |
249 | - } |
|
250 | - catch (Throwable $e) |
|
249 | + } catch (Throwable $e) |
|
251 | 250 | { |
252 | 251 | |
253 | 252 | } |