@@ -9,8 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @author Jakub Konečný |
| 11 | 11 | */ |
| 12 | -final class PhpLoader extends FileLoader |
|
| 13 | -{ |
|
| 12 | +final class PhpLoader extends FileLoader { |
|
| 14 | 13 | protected string $extension = "php"; |
| 15 | 14 | |
| 16 | 15 | protected function parseFile(string $filename): array |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @author Jakub Konečný |
| 11 | 11 | */ |
| 12 | -final class IniLoader extends FileLoader |
|
| 13 | -{ |
|
| 12 | +final class IniLoader extends FileLoader { |
|
| 14 | 13 | protected string $extension = "ini"; |
| 15 | 14 | |
| 16 | 15 | /** |
@@ -11,8 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @author Jakub Konečný |
| 13 | 13 | */ |
| 14 | -final class YamlLoader extends FileLoader |
|
| 15 | -{ |
|
| 14 | +final class YamlLoader extends FileLoader { |
|
| 16 | 15 | protected string $extension = "yaml"; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | /** |
| 51 | 51 | * @param string[] $folders |
| 52 | 52 | */ |
| 53 | - public function __construct(protected LocaleResolver $resolver = new ManualLocaleResolver(), array $folders = []) |
|
| 54 | - { |
|
| 53 | + public function __construct(protected LocaleResolver $resolver = new ManualLocaleResolver(), array $folders = []) { |
|
| 55 | 54 | $this->setFolders($folders); |
| 56 | 55 | } |
| 57 | 56 | |
@@ -12,8 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @author Jakub Konečný |
| 14 | 14 | */ |
| 15 | -final class MessagesCatalogue extends FileLoader |
|
| 16 | -{ |
|
| 15 | +final class MessagesCatalogue extends FileLoader { |
|
| 17 | 16 | protected string $extension = "php"; |
| 18 | 17 | |
| 19 | 18 | protected function parseFile(string $filename): array |
@@ -11,8 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @author Jakub Konečný |
| 13 | 13 | */ |
| 14 | -final class JsonLoader extends FileLoader |
|
| 15 | -{ |
|
| 14 | +final class JsonLoader extends FileLoader { |
|
| 16 | 15 | protected string $extension = "json"; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -11,8 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @author Jakub Konečný |
| 13 | 13 | */ |
| 14 | -final class NeonLoader extends FileLoader |
|
| 15 | -{ |
|
| 14 | +final class NeonLoader extends FileLoader { |
|
| 16 | 15 | protected string $extension = "neon"; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -8,8 +8,7 @@ |
||
| 8 | 8 | * |
| 9 | 9 | * @author Jakub Konečný |
| 10 | 10 | */ |
| 11 | -interface Loader |
|
| 12 | -{ |
|
| 11 | +interface Loader { |
|
| 13 | 12 | public function getLang(): string; |
| 14 | 13 | public function setLang(string $lang): void; |
| 15 | 14 | public function getDefaultLang(): string; |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Bridges\NetteDI; |
| 5 | 5 | |
| 6 | -if (false) { // @phpstan-ignore if.alwaysFalse |
|
| 6 | +if (false) { |
|
| 7 | +// @phpstan-ignore if.alwaysFalse |
|
| 7 | 8 | /** @deprecated Use TranslationProvider */ |
| 8 | - interface ITranslationProvider extends TranslationProvider |
|
| 9 | - { |
|
| 9 | + interface ITranslationProvider extends TranslationProvider { |
|
| 10 | 10 | } |
| 11 | 11 | } elseif (!interface_exists(ITranslationProvider::class)) { |
| 12 | 12 | class_alias(TranslationProvider::class, ITranslationProvider::class); |