Completed
Push — master ( a4e9de...48e288 )
by Avtandil
03:24
created
src/MultiLang/Console/MigrationCommand.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,6 @@
 block discarded – undo
65 65
     /**
66 66
      * Create the migration.
67 67
      *
68
-     * @param  string $name
69 68
      * @return bool
70 69
      */
71 70
     protected function createMigration($table)
Please login to merge, or discard this patch.
src/MultiLang/MultiLangServiceProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     /**
146 146
      * Get the services provided by the provider.
147 147
      *
148
-     * @return array
148
+     * @return string[]
149 149
      */
150 150
     public function provides()
151 151
     {
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
     /**
36 36
      * Get translated text
37 37
      *
38
-     * @param  mixed   $key
39 38
      * @return mixed
40 39
      */
41 40
     function t($text)
Please login to merge, or discard this patch.
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.