We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\LangFileManager\app\Http\Controllers; |
4 | 4 | |
5 | -use App\Http\Requests; |
|
6 | 5 | use Backpack\CRUD\app\Http\Controllers\CrudController; |
7 | -use Backpack\LangFileManager\app\Http\Requests\LanguageRequest as StoreRequest; |
|
8 | 6 | use Backpack\LangFileManager\app\Http\Requests\LanguageRequest as UpdateRequest; |
9 | 7 | use Backpack\LangFileManager\app\Models\Language; |
10 | 8 | // VALIDATION: change the requests to match your own file names if you need form validation |
@@ -13,6 +13,9 @@ discard block |
||
13 | 13 | $this->lang = config('app.locale'); |
14 | 14 | } |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $lang |
|
18 | + */ |
|
16 | 19 | public function setLanguage($lang) |
17 | 20 | { |
18 | 21 | $this->lang = $lang; |
@@ -20,6 +23,9 @@ discard block |
||
20 | 23 | return $this; |
21 | 24 | } |
22 | 25 | |
26 | + /** |
|
27 | + * @param string $file |
|
28 | + */ |
|
23 | 29 | public function setFile($file) |
24 | 30 | { |
25 | 31 | $this->file = $file; |
@@ -201,7 +207,7 @@ discard block |
||
201 | 207 | * @param array $keys the keys (path) |
202 | 208 | * @param string $value the value to be added |
203 | 209 | * |
204 | - * @return array |
|
210 | + * @return string |
|
205 | 211 | */ |
206 | 212 | private function setArrayValue(&$data, $keys, $value) |
207 | 213 | { |
@@ -212,11 +218,17 @@ discard block |
||
212 | 218 | return $data = $value; |
213 | 219 | } |
214 | 220 | |
221 | + /** |
|
222 | + * @return string |
|
223 | + */ |
|
215 | 224 | private function getFilePath() |
216 | 225 | { |
217 | 226 | return base_path("resources/lang/{$this->lang}/{$this->file}.php"); |
218 | 227 | } |
219 | 228 | |
229 | + /** |
|
230 | + * @return string |
|
231 | + */ |
|
220 | 232 | private function getLangPath() |
221 | 233 | { |
222 | 234 | return base_path("resources/lang/{$this->lang}/"); |