@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @param \Illuminate\Foundation\Application $app laravel application for further use |
| 48 | 48 | */ |
| 49 | - public function __construct($app = null) |
|
| 49 | + public function __construct ($app = null) |
|
| 50 | 50 | { |
| 51 | 51 | if (null === $app) { |
| 52 | 52 | $app = app(); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @return \Illuminate\Database\Eloquent\Collection a collection of active languages |
| 65 | 65 | */ |
| 66 | - public static function languages(): Collection |
|
| 66 | + public static function languages (): Collection |
|
| 67 | 67 | { |
| 68 | 68 | return Language::where('active', 1)->get(); |
| 69 | 69 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * |
| 76 | 76 | * @return \PWWEB\Localisation\Contracts\Language A language object |
| 77 | 77 | */ |
| 78 | - public static function currentLanguage(string $locale = ''): LanguageContract |
|
| 78 | + public static function currentLanguage (string $locale = ''): LanguageContract |
|
| 79 | 79 | { |
| 80 | 80 | $fallbackLocale = config('app.fallback_locale'); |
| 81 | 81 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @return \Illuminate\Contracts\Support\Renderable language selector / switcher markup |
| 103 | 103 | */ |
| 104 | - public static function languageSelector(): Renderable |
|
| 104 | + public static function languageSelector (): Renderable |
|
| 105 | 105 | { |
| 106 | 106 | $languages = self::languages(); |
| 107 | 107 | $current = self::currentLanguage(); |