Skip to content

Commit

Permalink
php-gettext#282 Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 24, 2022
1 parent 10ca616 commit b3be188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Loader/StrictPoLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion tests/StrictPoLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b3be188

Please sign in to comment.