Completed
Push — master ( 12d899...a33b7a )
by Avtandil
04:40
created
src/MultiLang/Config.php 2 patches
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.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use Illuminate\Cache\CacheManager as Cache;
14 14
 use Illuminate\Database\DatabaseManager as Database;
15
-use Illuminate\Http\Request;
16
-use Illuminate\Support\Collection;
17
-use InvalidArgumentException;
18 15
 use Longman\LaravelMultiLang\Config;
19 16
 
20 17
 class Repository
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 2 patches
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 null|string
175 175
      */
176 176
     public function getRedirectUrl(Request $request)
177 177
     {
@@ -207,6 +207,9 @@  discard block
 block discarded – undo
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);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Illuminate\Cache\CacheManager as Cache;
15 15
 use Illuminate\Database\DatabaseManager as Database;
16 16
 use Illuminate\Http\Request;
17
-use Illuminate\Routing\Router;
18 17
 use InvalidArgumentException;
19 18
 use Longman\LaravelMultiLang\Config;
20 19
 use Longman\LaravelMultiLang\Repository;
Please login to merge, or discard this patch.