Permalink
Browse files

fixed CS

  • Loading branch information...
1 parent f269b7b commit f89af1b91bbb9ee9151e3516aeaf1eda7992a369 @fabpot fabpot committed May 19, 2012
Showing with 5 additions and 7 deletions.
  1. +4 −6 Dumper/PoFileDumper.php
  2. +1 −1 Loader/PoFileLoader.php
View
@@ -26,16 +26,14 @@ class PoFileDumper extends FileDumper
public function format(MessageCatalogue $messages, $domain = 'messages')
{
$output = '';
-
- $newLine = FALSE;
+ $newLine = false;
foreach ($messages->all($domain) as $source => $target) {
if ($newLine) {
$output .= "\n";
+ } else {
+ $newLine = true;
}
- else {
- $newLine = TRUE;
- }
- $output .= sprintf('msgid "%s"' . "\n", $this->escape($source));
+ $output .= sprintf('msgid "%s"'."\n", $this->escape($source));
$output .= sprintf('msgstr "%s"', $this->escape($target));
}
View
@@ -161,7 +161,7 @@ private function addMessage(array &$messages, array $item)
ksort($plurals);
$messages[$item['ids']['plural']] = stripcslashes(implode('|', $plurals));
}
- } elseif(!empty($item['ids']['singular'])) {
+ } elseif (!empty($item['ids']['singular'])) {
$messages[$item['ids']['singular']] = stripslashes($item['translated']);
}
}

0 comments on commit f89af1b

Please sign in to comment.