From 1830ea475961b904974d67a19543ee0dcb2e0638 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Sun, 24 Jul 2022 13:49:45 +0300 Subject: [PATCH] #282 Formatting --- src/Loader/StrictPoLoader.php | 3 +-- tests/StrictPoLoaderTest.php | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Loader/StrictPoLoader.php b/src/Loader/StrictPoLoader.php index 08ebc41..4d62cf1 100644 --- a/src/Loader/StrictPoLoader.php +++ b/src/Loader/StrictPoLoader.php @@ -46,8 +46,7 @@ public function loadStringExtended( string $string, Translations $translations = null, bool $throwOnWarning = false - ): Translations - { + ): Translations { $this->data = $string; $this->position = 0; $this->translations = parent::loadString($string, $translations); diff --git a/tests/StrictPoLoaderTest.php b/tests/StrictPoLoaderTest.php index 4eaddfc..e4340d4 100644 --- a/tests/StrictPoLoaderTest.php +++ b/tests/StrictPoLoaderTest.php @@ -3,11 +3,15 @@ namespace Gettext\Tests; +use Gettext\Loader\Loader; use Gettext\Loader\StrictPoLoader; class StrictPoLoaderTest extends BasePoLoaderTestCase { - protected function createPoLoader(): StrictPoLoader + /** + * @return StrictPoLoader + */ + protected function createPoLoader(): Loader { return new StrictPoLoader(); }