Completed
Branch master (131b69)
by Printful
01:49 queued 13s
created
src/MessageStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function saveTranslations(Translations $translations)
23 23
     {
24 24
         $locale = $translations->getLanguage();
25
-        $domain = (string)$translations->getDomain();
25
+        $domain = (string) $translations->getDomain();
26 26
 
27 27
         foreach ($translations as $v) {
28 28
             $this->saveSingleTranslation($locale, $domain, $v);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $item->key = $this->getKey($locale, $domain, $translation);
93 93
         $item->domain = $domain;
94 94
         $item->locale = $locale;
95
-        $item->context = (string)$translation->getContext();
95
+        $item->context = (string) $translation->getContext();
96 96
         $item->original = $translation->getOriginal();
97 97
         $item->translation = $translation->getTranslation();
98 98
         $item->originalPlural = $translation->getPlural();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
     public function getTranslations(string $locale, $domain): Translations
109 109
     {
110
-        $domain = (string)$domain;
110
+        $domain = (string) $domain;
111 111
 
112 112
         $translations = new Translations;
113 113
         $translations->setDomain($domain);
Please login to merge, or discard this patch.
src/Structures/ScanItem.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
      * Default values can be found here, for example:
29 29
      * @see \Gettext\Extractors\JsCode::$options
30 30
      * @see \Gettext\Extractors\PhpCode::$options
31
-
32 31
      *
33 32
      * @var array If null, we use default functions from Gettext library (standard gettext functions)
34 33
      */
Please login to merge, or discard this patch.
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.