@@ -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 | } |
@@ -71,14 +71,14 @@ |
||
71 | 71 | |
72 | 72 | public function directoryExist(string $path, string $locale): void |
73 | 73 | { |
74 | - if (! $path || ! $this->exists($path)) { |
|
74 | + if ( ! $path || ! $this->exists($path)) { |
|
75 | 75 | throw new SourceLocaleDirectoryDoesntExist($locale); |
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | 79 | public function fileExist(string $path, string $locale): void |
80 | 80 | { |
81 | - if (! $path || ! $this->exists($path)) { |
|
81 | + if ( ! $path || ! $this->exists($path)) { |
|
82 | 82 | throw new SourceLocaleFileDoesntExist($locale); |
83 | 83 | } |
84 | 84 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | protected function container(string $class, array $parameters = []) |
12 | 12 | { |
13 | - if (! isset(static::$containers[$class])) { |
|
13 | + if ( ! isset(static::$containers[$class])) { |
|
14 | 14 | static::$containers[$class] = Container::getInstance()->make($class, $parameters); |
15 | 15 | } |
16 | 16 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $key = File::name($filename); |
26 | 26 | $keys = Config::getExclude($key, [], true); |
27 | 27 | |
28 | - return array_filter($array, static function ($value) use ($keys) { |
|
28 | + return array_filter($array, static function($value) use ($keys) { |
|
29 | 29 | return in_array($value, $keys); |
30 | 30 | }, ARRAY_FILTER_USE_KEY); |
31 | 31 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $key = File::name($filename); |
26 | 26 | $keys = Config::getExclude($key, [], true); |
27 | 27 | |
28 | - return array_filter($array, static function ($value) use ($keys) { |
|
28 | + return array_filter($array, static function($value) use ($keys) { |
|
29 | 29 | return in_array($value, $keys); |
30 | 30 | }, ARRAY_FILTER_USE_KEY); |
31 | 31 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $locales = $this->get($this->getInstalledDirectories($is_json)); |
39 | 39 | $available = $this->available(); |
40 | 40 | |
41 | - return array_values(array_filter($locales, function ($locale) use ($available) { |
|
41 | + return array_values(array_filter($locales, function($locale) use ($available) { |
|
42 | 42 | return in_array($locale, $available); |
43 | 43 | })); |
44 | 44 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | protected function normalizeNames(array $directories): array |
133 | 133 | { |
134 | - return array_map(function ($dir) { |
|
134 | + return array_map(function($dir) { |
|
135 | 135 | return File::name($dir); |
136 | 136 | }, $directories); |
137 | 137 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $unique = ArrFacade::unique($locales); |
147 | 147 | $ignore = Config::getIgnore(); |
148 | 148 | |
149 | - return array_values(array_filter($unique, static function ($locale) use ($ignore) { |
|
149 | + return array_values(array_filter($unique, static function($locale) use ($ignore) { |
|
150 | 150 | return ! in_array($locale, $ignore); |
151 | 151 | })); |
152 | 152 | } |