From b3be188181d584b339efe2e1d6ba701ef6bccf2c 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 | 4 +++- 2 files changed, 4 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..49cf515 100644 --- a/tests/StrictPoLoaderTest.php +++ b/tests/StrictPoLoaderTest.php @@ -3,11 +3,13 @@ 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(); }