Completed
Push — master ( 2b1500...ed3a76 )
by Avtandil
02:41
created
src/MultiLang/MultiLang.php 1 patch
Doc Comments   +13 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
         return $config;
121 121
     }
122 122
 
123
+    /**
124
+     * @param string $key
125
+     */
123 126
     public function getConfig($key = null)
124 127
     {
125 128
         if ($key === null) {
@@ -133,7 +136,6 @@  discard block
 block discarded – undo
133 136
      * Set locale and load texts
134 137
      *
135 138
      * @param  string $lang
136
-     * @param  string $default_lang
137 139
      * @param  array  $texts
138 140
      * @return void
139 141
      */
@@ -210,7 +212,7 @@  discard block
 block discarded – undo
210 212
     /**
211 213
      * Get texts
212 214
      *
213
-     * @return array
215
+     * @return string|null
214 216
      */
215 217
     public function getRedirectUrl(Request $request)
216 218
     {
@@ -242,6 +244,9 @@  discard block
 block discarded – undo
242 244
         return null;
243 245
     }
244 246
 
247
+    /**
248
+     * @return string
249
+     */
245 250
     public function detectLocale(Request $request)
246 251
     {
247 252
         $locale  = $request->segment(1);
@@ -314,6 +319,9 @@  discard block
 block discarded – undo
314 319
         return $this;
315 320
     }
316 321
 
322
+    /**
323
+     * @param string|null $lang
324
+     */
317 325
     public function loadTextsFromDatabase($lang)
318 326
     {
319 327
         $texts = $lang ? $this->db->table($this->getTableName())
@@ -334,6 +342,9 @@  discard block
 block discarded – undo
334 342
         return $texts;
335 343
     }
336 344
 
345
+    /**
346
+     * @param string $lang
347
+     */
337 348
     public function setCacheName($lang)
338 349
     {
339 350
         $this->cache_name = $this->getConfig('texts_table') . '_' . $lang;
Please login to merge, or discard this patch.