Completed
Push — master ( cf42d1...a4e9de )
by Avtandil
02:54
created
src/MultiLang/MultiLang.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@  discard block
 block discarded – undo
126 126
         return $config;
127 127
     }
128 128
 
129
+    /**
130
+     * @param string $key
131
+     */
129 132
     public function getConfig($key = null)
130 133
     {
131 134
         if ($key === null) {
@@ -222,7 +225,7 @@  discard block
 block discarded – undo
222 225
     /**
223 226
      * Get texts
224 227
      *
225
-     * @return array
228
+     * @return string|null
226 229
      */
227 230
     public function getRedirectUrl(Request $request)
228 231
     {
@@ -313,6 +316,9 @@  discard block
 block discarded – undo
313 316
         return $status;
314 317
     }
315 318
 
319
+    /**
320
+     * @param string|null $lang
321
+     */
316 322
     public function loadTextsFromDatabase($lang)
317 323
     {
318 324
         $texts = $lang ? $this->db->table($this->getTableName())
@@ -333,6 +339,9 @@  discard block
 block discarded – undo
333 339
         return $texts;
334 340
     }
335 341
 
342
+    /**
343
+     * @param string $lang
344
+     */
336 345
     public function setCacheName($lang)
337 346
     {
338 347
         $this->cache_name = $this->getConfig('texts_table') . '_' . $lang;
Please login to merge, or discard this patch.