@@ -166,7 +166,6 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Get bundle values for given path. |
168 | 168 | * |
169 | - * @param Bundle $bundle |
|
170 | 169 | * |
171 | 170 | * @return Collection |
172 | 171 | */ |
@@ -190,7 +189,6 @@ discard block |
||
190 | 189 | /** |
191 | 190 | * Build pathKeys array and set namespace. |
192 | 191 | * |
193 | - * @param array $autoAliases |
|
194 | 192 | */ |
195 | 193 | protected function buildKeys() |
196 | 194 | { |
@@ -204,7 +202,6 @@ discard block |
||
204 | 202 | /** |
205 | 203 | * Get keys from id. |
206 | 204 | * |
207 | - * @param array $autoAliases |
|
208 | 205 | * |
209 | 206 | * @return array |
210 | 207 | */ |
@@ -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 |
@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @param mixed $value |
25 | 25 | * |
26 | - * @return mixed |
|
26 | + * @return string |
|
27 | 27 | */ |
28 | 28 | public function value($value) |
29 | 29 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * Get stub and fill. |
58 | 58 | * |
59 | 59 | * @param string $name |
60 | - * @param Filestystem $filesystem |
|
60 | + * @param Filesystem $filesystem |
|
61 | 61 | * |
62 | 62 | * @return string |
63 | 63 | */ |
@@ -42,8 +42,8 @@ |
||
42 | 42 | /** |
43 | 43 | * Create directories included in path if they don't exist. |
44 | 44 | * |
45 | - * @param Collection $pathArray |
|
46 | - * @param filesystem $filesystem |
|
45 | + * @param \Illuminate\Support\Collection $pathArray |
|
46 | + * @param Filesystem $filesystem |
|
47 | 47 | * |
48 | 48 | * @return string |
49 | 49 | */ |
@@ -12,7 +12,6 @@ |
||
12 | 12 | * |
13 | 13 | * @param Bundle $bundle |
14 | 14 | * @param array $parameters |
15 | - * @param string $domain |
|
16 | 15 | * @param string $locale |
17 | 16 | * |
18 | 17 | * @return Collection |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $locale = null |
24 | 24 | ) { |
25 | 25 | return $bundle->getValues() |
26 | - ->mapWithKeys(function ($bundleItem) use ($parameters, $locale) { |
|
26 | + ->mapWithKeys(function($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 ($app) { |
|
20 | + $this->app->singleton(LangBundler::class, function($app) { |
|
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 |