@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $this->mergeConfigFrom(__DIR__.'/../config/transcribe.php', 'transcribe'); |
23 | 23 | |
24 | - $this->app->bind(Manager::class, function () { |
|
24 | + $this->app->bind(Manager::class, function() { |
|
25 | 25 | return new Manager( |
26 | 26 | new Filesystem(), |
27 | 27 | $this->app['config']['transcribe.path'], |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function files() |
55 | 55 | { |
56 | - $files = Collection::make($this->disk->allFiles($this->path))->filter(function ($file) { |
|
56 | + $files = Collection::make($this->disk->allFiles($this->path))->filter(function($file) { |
|
57 | 57 | return $this->disk->extension($file) == 'php'; |
58 | 58 | }); |
59 | 59 | |
60 | - $filesByFile = $files->groupBy(function ($file) { |
|
60 | + $filesByFile = $files->groupBy(function($file) { |
|
61 | 61 | $filePath = str_replace('.'.$file->getExtension(), '', $file->getRelativePathname()); |
62 | 62 | $filePath = array_reverse(explode('/', $filePath, 2))[0]; |
63 | 63 | |
@@ -70,10 +70,10 @@ discard block |
||
70 | 70 | } else { |
71 | 71 | return $filePath; |
72 | 72 | } |
73 | - })->map(function ($files) { |
|
74 | - return $files->keyBy(function ($file) { |
|
73 | + })->map(function($files) { |
|
74 | + return $files->keyBy(function($file) { |
|
75 | 75 | return explode('/', str_replace($this->path, '', $file->getRelativePathname()))[0]; |
76 | - })->map(function ($file) { |
|
76 | + })->map(function($file) { |
|
77 | 77 | return $file->getRealPath(); |
78 | 78 | }); |
79 | 79 | }); |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function languages() |
119 | 119 | { |
120 | - $languages = array_map(function ($directory) { |
|
120 | + $languages = array_map(function($directory) { |
|
121 | 121 | return basename($directory); |
122 | 122 | }, $this->disk->directories($this->path)); |
123 | 123 | |
124 | - $languages = array_filter($languages, function ($directory) { |
|
124 | + $languages = array_filter($languages, function($directory) { |
|
125 | 125 | return $directory != 'vendor' && $directory != 'json'; |
126 | 126 | }); |
127 | 127 | |
@@ -321,8 +321,8 @@ discard block |
||
321 | 321 | |
322 | 322 | $pattern = |
323 | 323 | // See https://regex101.com/r/jS5fX0/4 |
324 | - '[^\w]'. // Must not start with any alphanum or _ |
|
325 | - '(?<!->)'. // Must not start with -> |
|
324 | + '[^\w]'.// Must not start with any alphanum or _ |
|
325 | + '(?<!->)'.// Must not start with -> |
|
326 | 326 | '('.implode('|', $functions).')'.// Must start with one of the functions |
327 | 327 | "\(".// Match opening parentheses |
328 | 328 | "[\'\"]".// Match " or ' |
@@ -160,7 +160,7 @@ |
||
160 | 160 | |
161 | 161 | $values = Arr::dot($filesResults); |
162 | 162 | |
163 | - $emptyValues = array_filter($values, function ($value) { |
|
163 | + $emptyValues = array_filter($values, function($value) { |
|
164 | 164 | return $value == ''; |
165 | 165 | }); |
166 | 166 |