@@ -28,16 +28,15 @@ |
||
28 | 28 | /** |
29 | 29 | * Create a new MultiLang instance. |
30 | 30 | * |
31 | - * @param string $environment |
|
32 | - * @param array $config |
|
33 | - * @param \Illuminate\Cache\CacheManager $cache |
|
34 | - * @param \Illuminate\Database\DatabaseManager $db |
|
35 | 31 | */ |
36 | 32 | public function __construct(array $data) |
37 | 33 | { |
38 | 34 | $this->data = $data; |
39 | 35 | } |
40 | 36 | |
37 | + /** |
|
38 | + * @param string $key |
|
39 | + */ |
|
41 | 40 | public function get($key = null, $default = null) |
42 | 41 | { |
43 | 42 | $array = $this->data; |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Create a new MultiLang instance. |
61 | 61 | * |
62 | - * @param string $environment |
|
63 | - * @param array $config |
|
62 | + * @param Config $config |
|
64 | 63 | * @param \Illuminate\Cache\CacheManager $cache |
65 | 64 | * @param \Illuminate\Database\DatabaseManager $db |
66 | 65 | */ |
@@ -149,6 +148,9 @@ discard block |
||
149 | 148 | } |
150 | 149 | |
151 | 150 | |
151 | + /** |
|
152 | + * @return string |
|
153 | + */ |
|
152 | 154 | protected function getTableName() |
153 | 155 | { |
154 | 156 | $table = $this->config->get('db.texts_table', 'texts'); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * Get texts |
173 | 173 | * |
174 | - * @return array |
|
174 | + * @return null|string |
|
175 | 175 | */ |
176 | 176 | public function getRedirectUrl(Request $request) |
177 | 177 | { |
@@ -207,6 +207,9 @@ discard block |
||
207 | 207 | return null; |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @return string |
|
212 | + */ |
|
210 | 213 | public function detectLocale(Request $request) |
211 | 214 | { |
212 | 215 | $locale = $request->segment(1); |