Test Failed
Pull Request — master (#1073)
by
unknown
10:09
created
src/Translator/src/Config/TranslatorConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getLocaleDirectory(string $locale, ?string $directory = null): string
103 103
     {
104
-        if ($directory !== null) {
104
+        if ($directory !== null){
105 105
             return \rtrim($directory, \DIRECTORY_SEPARATOR) 
106 106
                 . \DIRECTORY_SEPARATOR 
107 107
                 . $locale 
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
     public function resolveDomain(string $bundle): string
122 122
     {
123 123
         $bundle = \strtolower(\str_replace(['/', '\\'], '-', $bundle));
124
-        $domains = (array) ($this->config['domains'] ?? []);
124
+        $domains = (array)($this->config['domains'] ?? []);
125 125
 
126
-        foreach ($domains as $domain => $patterns) {
127
-            foreach ($patterns as $pattern) {
128
-                if ($this->matcher->matches($bundle, $pattern)) {
126
+        foreach ($domains as $domain => $patterns){
127
+            foreach ($patterns as $pattern){
128
+                if ($this->matcher->matches($bundle, $pattern)){
129 129
                     return $domain;
130 130
                 }
131 131
             }
Please login to merge, or discard this patch.