Passed
Branch master (06ad6f)
by Alexander
22:27
created
src/Translator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         // TODO: Cleanup (avoid repetition)
147 147
         // Try to create new Instance of Handler and return it
148 148
         try {
149
-             $oHandler = new $oHandler($locale);
149
+                $oHandler = new $oHandler($locale);
150 150
         }
151 151
         catch (TranslationCacheNotFound $exception) {
152 152
             // Log error and fallback procedure
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     private function replaceParameter ($translation, $parameters) {
232 232
 
233 233
         // Go through each specified Parameter and replace its placeholder "{$key}"
234
-       foreach ($parameters as $key => $parameter) {
234
+        foreach ($parameters as $key => $parameter) {
235 235
             // TODO: Make Prefix and Suffix configurable
236 236
             // If the string (e.g "{name}") is not specified within the "parameters" array it won't be replaced!
237 237
             $translation = str_replace("{".$key."}", $parameter, $translation);
Please login to merge, or discard this patch.