@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function directoryExists(string $path, string $locale): void |
69 | 69 | { |
70 | - if (! $path || ! $this->exists($path)) { |
|
70 | + if ( ! $path || ! $this->exists($path)) { |
|
71 | 71 | throw new SourceLocaleNotExists($locale); |
72 | 72 | } |
73 | 73 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | protected function makeProcess(string $classname): Process |
64 | 64 | { |
65 | - if (! is_subclass_of($classname, Process::class)) { |
|
65 | + if ( ! is_subclass_of($classname, Process::class)) { |
|
66 | 66 | throw new NoProcessInstanceException($classname); |
67 | 67 | } |
68 | 68 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $item = Arr::first($this->items); |
58 | 58 | $keys = Arr::keys($item); |
59 | 59 | |
60 | - return Arr::transform($keys, function ($value) { |
|
60 | + return Arr::transform($keys, function($value) { |
|
61 | 61 | return Str::title($value); |
62 | 62 | }); |
63 | 63 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $locales = $this->get($this->getInstalledDirectories()); |
30 | 30 | $available = $this->available(); |
31 | 31 | |
32 | - return array_filter($locales, function ($locale) use ($available) { |
|
32 | + return array_filter($locales, function($locale) use ($available) { |
|
33 | 33 | return in_array($locale, $available); |
34 | 34 | }); |
35 | 35 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | protected function normalizeNames(array $directories): array |
130 | 130 | { |
131 | - return array_map(function ($dir) { |
|
131 | + return array_map(function($dir) { |
|
132 | 132 | return File::name($dir); |
133 | 133 | }, $directories); |
134 | 134 | } |