@@ -195,6 +195,7 @@ |
||
195 | 195 | |
196 | 196 | /** |
197 | 197 | * Set the translation namespace on the object. |
198 | + * @param string $id |
|
198 | 199 | */ |
199 | 200 | protected function setNamespace($id) |
200 | 201 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | */ |
149 | 149 | public function setParameters($parameters) |
150 | 150 | { |
151 | - $this->parameters = collect($parameters)->mapWithKeys(function ($value, $key) { |
|
151 | + $this->parameters = collect($parameters)->mapWithKeys(function($value, $key) { |
|
152 | 152 | if (!$key = $this->getNamespacedKey($key)) { |
153 | 153 | return []; |
154 | 154 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | protected function setValues(Collection $values) |
156 | 156 | { |
157 | - return $this->values = $values->map(function ($value) { |
|
157 | + return $this->values = $values->map(function($value) { |
|
158 | 158 | if (!$value instanceof BundleItem) { |
159 | 159 | return ItemFactory::build($value); |
160 | 160 | } |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $aliases = config('lang-bundler.aliases'); |
214 | 214 | |
215 | 215 | $autoAliases = collect($this->bundleMap->getAutoAliases()) |
216 | - ->filter(function ($value) { |
|
216 | + ->filter(function($value) { |
|
217 | 217 | return $value === $this->id; |
218 | 218 | }); |
219 | 219 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $locale = null |
24 | 24 | ) { |
25 | 25 | return $bundle->getValues() |
26 | - ->mapWithKeys(function (BundleItem $bundleItem) use ($parameters, $locale) { |
|
26 | + ->mapWithKeys(function(BundleItem $bundleItem) use ($parameters, $locale) { |
|
27 | 27 | $bundleItem->setParameters($parameters); |
28 | 28 | |
29 | 29 | if ($choice = $bundleItem->hasChoice()) { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function register() |
19 | 19 | { |
20 | - $this->app->singleton(LangBundler::class, function () { |
|
20 | + $this->app->singleton(LangBundler::class, function() { |
|
21 | 21 | return new LangBundler( |
22 | 22 | new BundleMap(), |
23 | 23 | new Translator() |
@@ -44,15 +44,15 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function registerCommands() |
46 | 46 | { |
47 | - $this->app->singleton('command.langb.start', function ($app) { |
|
47 | + $this->app->singleton('command.langb.start', function($app) { |
|
48 | 48 | return $app[MakeBundlesFolder::class]; |
49 | 49 | }); |
50 | 50 | |
51 | - $this->app->singleton('command.langb.new', function ($app) { |
|
51 | + $this->app->singleton('command.langb.new', function($app) { |
|
52 | 52 | return $app[MakeNewBundleFile::class]; |
53 | 53 | }); |
54 | 54 | |
55 | - $this->app->singleton('command.langb.mod', function ($app) { |
|
55 | + $this->app->singleton('command.langb.mod', function($app) { |
|
56 | 56 | return $app[MakeBundleMod::class]; |
57 | 57 | }); |
58 | 58 |