Completed
Push — master ( c83b47...38acfc )
by Avtandil
05:44
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/MultiLang.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -288,9 +288,9 @@
 block discarded – undo
288 288
 
289 289
         foreach ($locales as $locale => $val) {
290 290
             $router->group([
291
-                               'prefix' => $locale,
292
-                               'as'     => $locale . '.',
293
-                           ], $callback);
291
+                                'prefix' => $locale,
292
+                                'as'     => $locale . '.',
293
+                            ], $callback);
294 294
         }
295 295
 
296 296
     }
Please login to merge, or discard this patch.
src/MultiLang/Repository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -203,11 +203,11 @@
 block discarded – undo
203 203
                 $this->getDb()
204 204
                     ->table($table)
205 205
                     ->insert([
206
-                                 'key'   => $k,
207
-                                 'lang'  => $lang,
208
-                                 'scope' => $scope,
209
-                                 'value' => $v,
210
-                             ]);
206
+                                    'key'   => $k,
207
+                                    'lang'  => $lang,
208
+                                    'scope' => $scope,
209
+                                    'value' => $v,
210
+                                ]);
211 211
             }
212 212
         }
213 213
         return true;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Create a new MultiLang instance.
43 43
      *
44
-     * @param string                               $environment
45
-     * @param array                                $config
44
+     * @param Config                                $config
46 45
      * @param \Illuminate\Cache\CacheManager       $cache
47 46
      * @param \Illuminate\Database\DatabaseManager $db
48 47
      */
Please login to merge, or discard this patch.
src/MultiLang/MultiLangServiceProvider.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
     {
36 36
         // Publish config files
37 37
         $this->publishes([
38
-                             __DIR__ . '/../config/config.php' => config_path('multilang.php'),
39
-                             __DIR__ . '/../views'             => base_path('resources/views/vendor/multilang'),
40
-                         ]);
38
+                                __DIR__ . '/../config/config.php' => config_path('multilang.php'),
39
+                                __DIR__ . '/../views'             => base_path('resources/views/vendor/multilang'),
40
+                            ]);
41 41
 
42 42
         // Append the country settings
43 43
         $this->mergeConfigFrom(
Please login to merge, or discard this patch.