@@ -145,7 +145,7 @@ |
||
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 | { |
@@ -41,8 +41,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |