Completed
Push — master ( 20bb8b...e297f9 )
by Avtandil
09:09
created
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/MultiLang/Repository.php 2 patches
Doc Comments   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 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
      */
@@ -72,8 +71,8 @@  discard block
 block discarded – undo
72 71
     /**
73 72
      * Load texts from database storage
74 73
      *
75
-     * @param      $lang
76
-     * @param null $scope
74
+     * @param      string $lang
75
+     * @param string|null $scope
77 76
      * @return array
78 77
      */
79 78
     public function loadFromDatabase($lang, $scope = null)
@@ -102,8 +101,8 @@  discard block
 block discarded – undo
102 101
     /**
103 102
      * Load texts from cache storage
104 103
      *
105
-     * @param      $lang
106
-     * @param null $scope
104
+     * @param      string $lang
105
+     * @param string|null $scope
107 106
      * @return mixed
108 107
      */
109 108
     public function loadFromCache($lang, $scope = null)
@@ -116,9 +115,9 @@  discard block
 block discarded – undo
116 115
     /**
117 116
      * Store texts in cache
118 117
      *
119
-     * @param       $lang
118
+     * @param       string $lang
120 119
      * @param array $texts
121
-     * @param null  $scope
120
+     * @param string|null  $scope
122 121
      * @return $this
123 122
      */
124 123
     public function storeInCache($lang, array $texts, $scope = null)
@@ -130,7 +129,7 @@  discard block
 block discarded – undo
130 129
     /**
131 130
      * Check if we must load texts from cache
132 131
      *
133
-     * @param      $lang
132
+     * @param      string $lang
134 133
      * @param null $scope
135 134
      * @return bool
136 135
      */
@@ -171,7 +170,7 @@  discard block
 block discarded – undo
171 170
      * Save missing texts in database
172 171
      *
173 172
      * @param      $texts
174
-     * @param null $scope
173
+     * @param string $scope
175 174
      * @return bool
176 175
      */
177 176
     public function save($texts, $scope = null)
@@ -216,7 +215,7 @@  discard block
 block discarded – undo
216 215
     /**
217 216
      * Get texts table name
218 217
      *
219
-     * @return array|mixed|null
218
+     * @return string
220 219
      */
221 220
     public function getTableName()
222 221
     {
Please login to merge, or discard this patch.
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.
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.