Completed
Push — master ( 7d660e...c11331 )
by Avtandil
02:52
created
src/MultiLang/Config.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,16 +28,15 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/MultiLang/Repository.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/MultiLang/MultiLang.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * Get texts
173 173
      *
174
-     * @return array
174
+     * @return string|null
175 175
      */
176 176
     public function getRedirectUrl(Request $request)
177 177
     {
@@ -203,6 +203,9 @@  discard block
 block discarded – undo
203 203
         return null;
204 204
     }
205 205
 
206
+    /**
207
+     * @return string
208
+     */
206 209
     public function detectLocale(Request $request)
207 210
     {
208 211
         $locale  = $request->segment(1);
Please login to merge, or discard this patch.