Passed
Push — master ( 590eaf...a6cb32 )
by Michal
10:28
created
config_examples/CheckDictionaries/config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
     return new InvalidConfigInstanceReturnedException('$basePath is not set. Use --params="basePath=/your/base/path"');
16 16
 }
17 17
 
18
-$container = require $basePath . '/app/bootstrap.php';
18
+$container = require $basePath.'/app/bootstrap.php';
19 19
 $containerParameters = $container->getParameters();
20 20
 $translationDirs = $containerParameters['translation']['dirs'] ?? [];
21 21
 
22
-$defaultTranslationDir = $basePath . '/app/lang';
22
+$defaultTranslationDir = $basePath.'/app/lang';
23 23
 if (file_exists($defaultTranslationDir)) {
24
-    $translationDirs[] = $basePath . '/app/lang';
24
+    $translationDirs[] = $basePath.'/app/lang';
25 25
 }
26 26
 
27 27
 if ($translationDirs === []) {
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 }
36 36
 $dictionaries = [];
37 37
 foreach ($files as $file) {
38
-    $filePath = (string)$file;
38
+    $filePath = (string) $file;
39 39
     $info = pathinfo($filePath);
40 40
     list($prefix, $lang,) = explode('.', $info['basename'], 3);
41 41
     if (isset($languages) && !in_array($lang, $languages)) {
42 42
         continue;
43 43
     }
44
-    $storage = new NeonFileStorage($filePath, $prefix . '.', '    ');
44
+    $storage = new NeonFileStorage($filePath, $prefix.'.', '    ');
45 45
     $dictionaries[$lang] = array_merge($dictionaries[$lang] ?? [], $storage->load());
46 46
 }
47 47
 
Please login to merge, or discard this patch.
src/Translator/GoogleTranslator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $this->languageTo = $languageTo;
27 27
 
28 28
         // google credentials
29
-        putenv('GOOGLE_APPLICATION_CREDENTIALS=' . $credentialsFilePath);
29
+        putenv('GOOGLE_APPLICATION_CREDENTIALS='.$credentialsFilePath);
30 30
 
31 31
         // cannot use service - before create must be authorized google credentials
32 32
         $this->translationServiceClient = new TranslationServiceClient();
Please login to merge, or discard this patch.