We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php namespace Backpack\TranslationManager\app\Http\Requests; |
| 2 | 2 | |
| 3 | -use App\Http\Requests\Request; |
|
| 4 | 3 | use Backpack\CRUD\app\Http\Requests\CrudRequest as CrudRequest; |
| 5 | 4 | |
| 6 | 5 | class LanguageRequest extends CrudRequest { |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php namespace Backpack\LangFileManager\app\Models; |
| 2 | 2 | |
| 3 | -use Illuminate\Database\Eloquent\Model; |
|
| 4 | 3 | use Backpack\CRUD\CrudTrait; |
| 4 | +use Illuminate\Database\Eloquent\Model; |
|
| 5 | 5 | |
| 6 | 6 | class Language extends Model { |
| 7 | 7 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php namespace Backpack\LangFileManager; |
| 2 | 2 | |
| 3 | -use Illuminate\Support\ServiceProvider; |
|
| 4 | -use Illuminate\Routing\Router; |
|
| 5 | 3 | use Backpack\LangFileManager\app\Services\LangFiles; |
| 4 | +use Illuminate\Routing\Router; |
|
| 5 | +use Illuminate\Support\ServiceProvider; |
|
| 6 | 6 | |
| 7 | 7 | class LangFileManagerServiceProvider extends ServiceProvider |
| 8 | 8 | { |
@@ -2,13 +2,11 @@ |
||
| 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\Services\LangFiles; |
|
| 8 | 6 | use Backpack\LangFileManager\app\Models\Language; |
| 7 | +use Backpack\LangFileManager\app\Services\LangFiles; |
|
| 9 | 8 | use Illuminate\Http\Request; |
| 10 | 9 | // VALIDATION: change the requests to match your own file names if you need form validation |
| 11 | -use Backpack\LangFileManager\app\Http\Requests\LanguageRequest as StoreRequest; |
|
| 12 | 10 | use Backpack\LangFileManager\app\Http\Requests\LanguageRequest as UpdateRequest; |
| 13 | 11 | |
| 14 | 12 | class LanguageCrudController extends CrudController |
@@ -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; |
@@ -192,7 +198,7 @@ discard block |
||
| 192 | 198 | * @param array $data the array that will be modified |
| 193 | 199 | * @param array $keys the keys (path) |
| 194 | 200 | * @param string $value the value to be added |
| 195 | - * @return array |
|
| 201 | + * @return string |
|
| 196 | 202 | */ |
| 197 | 203 | private function setArrayValue(&$data, $keys, $value) |
| 198 | 204 | { |