@@ -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); |
@@ -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 | } |
@@ -290,8 +290,7 @@ discard block |
||
| 290 | 290 | if($totalFiles == 1) |
| 291 | 291 | { |
| 292 | 292 | pt('Found in a single file:'); |
| 293 | - } |
|
| 294 | - else |
|
| 293 | + } else |
|
| 295 | 294 | { |
| 296 | 295 | pt('Found in %1$s files:', $totalFiles); |
| 297 | 296 | } |
@@ -463,8 +462,7 @@ discard block |
||
| 463 | 462 | ?> |
| 464 | 463 | <b><?php echo $source->getLabel() ?></b> |
| 465 | 464 | <?php |
| 466 | - } |
|
| 467 | - else |
|
| 465 | + } else |
|
| 468 | 466 | { |
| 469 | 467 | echo $source->getLabel(); |
| 470 | 468 | } |
@@ -554,8 +552,7 @@ discard block |
||
| 554 | 552 | </a> |
| 555 | 553 | </p> |
| 556 | 554 | <?php |
| 557 | - } |
|
| 558 | - else |
|
| 555 | + } else |
|
| 559 | 556 | { |
| 560 | 557 | echo $this->editor->getFilters()->renderForm(); |
| 561 | 558 | |