Completed
Push — master ( c0abc6...eb9385 )
by Nicolas
10s
created
Repositories/File/FileTranslationRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $files = $this->getTranslationFilenamesFromPaths($this->loader->paths());
31 31
 
32
-        $translations = [];
32
+        $translations = [ ];
33 33
 
34 34
         foreach ($files as $locale => $files) {
35 35
             foreach ($files as $namespace => $file) {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                 $trans = array_dot($trans);
38 38
 
39 39
                 foreach ($trans as $key => $value) {
40
-                    $translations[$locale]["{$namespace}.{$key}"] = $value;
40
+                    $translations[ $locale ][ "{$namespace}.{$key}" ] = $value;
41 41
                 }
42 42
             }
43 43
         }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     protected function getTranslationFilenamesFromPaths(array $paths)
55 55
     {
56
-        $files   = [];
56
+        $files   = [ ];
57 57
         $locales = config('laravellocalization.supportedLocales');
58 58
 
59 59
         foreach ($paths as $hint => $path) {
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 
63 63
                 if ($glob) {
64 64
                     foreach ($glob as $file) {
65
-                        $category = str_replace(["$path/", ".php", "{$locale}/"], "", $file);
65
+                        $category = str_replace([ "$path/", ".php", "{$locale}/" ], "", $file);
66 66
                         $category = str_replace("/", ".", $category);
67 67
                         $category = !is_int($hint) ? "{$hint}::{$category}" : $category;
68 68
 
69
-                        $files[$locale][$category] = $file;
69
+                        $files[ $locale ][ $category ] = $file;
70 70
                     }
71 71
                 }
72 72
             }
Please login to merge, or discard this patch.