@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @param $lang |
|
| 54 | + * @param string $lang |
|
| 55 | 55 | * |
| 56 | 56 | * @return string|Exception |
| 57 | 57 | */ |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param $request |
|
| 70 | + * @param \Illuminate\Http\Request $request |
|
| 71 | 71 | * |
| 72 | 72 | * @return string |
| 73 | 73 | */ |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | private function findLanguage($request) |
| 75 | 75 | { |
| 76 | 76 | // read the language from the request header, if the header is missed, take the default local language |
| 77 | - return $request->header('Content-Language') ? : $this->app->config->get('app.locale'); |
|
| 77 | + return $request->header('Content-Language') ?: $this->app->config->get('app.locale'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $paths[] = app_path() . "/Containers/{$containerName}/Resources/Languages"; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - $this->app->singleton('translation.loader', function ($app) use ($paths){ |
|
| 38 | + $this->app->singleton('translation.loader', function($app) use ($paths){ |
|
| 39 | 39 | return new FileLoader($app['files'], $paths); |
| 40 | 40 | }); |
| 41 | 41 | } |