Passed
Push — master ( 58026a...a54fc2 )
by Mārtiņš
01:54
created
src/MessageExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,12 +154,12 @@
 block discarded – undo
154 154
 
155 155
         // If extensions are set, filter other files out
156 156
         if ($item->extensions) {
157
-            $files = array_filter($files, function ($file) use ($item) {
157
+            $files = array_filter($files, function($file) use ($item) {
158 158
                 return in_array($file['extension'], $item->extensions);
159 159
             });
160 160
         }
161 161
 
162
-        return array_map(function ($file) use ($dir) {
162
+        return array_map(function($file) use ($dir) {
163 163
             return $dir . DIRECTORY_SEPARATOR . $file['path'];
164 164
         }, $files);
165 165
     }
Please login to merge, or discard this patch.
src/MessageStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function saveTranslations(Translations $translations)
24 24
     {
25 25
         $locale = $translations->getLanguage();
26
-        $domain = (string)$translations->getDomain();
26
+        $domain = (string) $translations->getDomain();
27 27
 
28 28
         foreach ($translations as $v) {
29 29
             $this->saveSingleTranslation($locale, $domain, $v);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $item->key = $this->getKey($locale, $domain, $translation);
94 94
         $item->domain = $domain;
95 95
         $item->locale = $locale;
96
-        $item->context = (string)$translation->getContext();
96
+        $item->context = (string) $translation->getContext();
97 97
         $item->original = $translation->getOriginal();
98 98
         $item->translation = $translation->getTranslation();
99 99
         $item->originalPlural = $translation->getPlural();
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     private function getTranslations(string $locale, $domain, bool $enabledOnly): Translations
134 134
     {
135
-        $domain = (string)$domain;
135
+        $domain = (string) $domain;
136 136
 
137 137
         $translations = new Translations;
138 138
         $translations->setDomain($domain);
Please login to merge, or discard this patch.