Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed CS

  • Loading branch information...
commit f89af1b91bbb9ee9151e3516aeaf1eda7992a369 1 parent f269b7b
Fabien Potencier authored May 19, 2012
10  Dumper/PoFileDumper.php
@@ -26,16 +26,14 @@ class PoFileDumper extends FileDumper
26 26
     public function format(MessageCatalogue $messages, $domain = 'messages')
27 27
     {
28 28
         $output = '';
29  
-
30  
-        $newLine = FALSE;
  29
+        $newLine = false;
31 30
         foreach ($messages->all($domain) as $source => $target) {
32 31
             if ($newLine) {
33 32
               $output .= "\n";
  33
+            } else {
  34
+              $newLine = true;
34 35
             }
35  
-            else {
36  
-              $newLine = TRUE;
37  
-            }
38  
-            $output .= sprintf('msgid "%s"' . "\n", $this->escape($source));
  36
+            $output .= sprintf('msgid "%s"'."\n", $this->escape($source));
39 37
             $output .= sprintf('msgstr "%s"', $this->escape($target));
40 38
         }
41 39
 
2  Loader/PoFileLoader.php
@@ -161,7 +161,7 @@ private function addMessage(array &$messages, array $item)
161 161
                 ksort($plurals);
162 162
                 $messages[$item['ids']['plural']] = stripcslashes(implode('|', $plurals));
163 163
             }
164  
-        } elseif(!empty($item['ids']['singular'])) {
  164
+        } elseif (!empty($item['ids']['singular'])) {
165 165
               $messages[$item['ids']['singular']] = stripslashes($item['translated']);
166 166
         }
167 167
     }

0 notes on commit f89af1b

Please sign in to comment.
Something went wrong with that request. Please try again.