Skip to content

Commit 17d912e

Browse files
committed
style: fix some long lines
Signed-off-by: Jack Cherng <[email protected]>
1 parent 7e9a001 commit 17d912e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Utility/Language.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public static function getTranslationsByLanguage(string $language): array
9191
$decoded = \json_decode($fileContent, true);
9292

9393
if (\json_last_error() !== \JSON_ERROR_NONE) {
94-
throw new \Exception(\sprintf('Fail to decode JSON file (code %d): %s', \json_last_error(), \realpath($filePath)));
94+
$msg = \sprintf('Fail to decode JSON file (code %d): %s', \json_last_error(), \realpath($filePath));
95+
throw new \Exception($msg); // workaround single-line throw + 120-char limit
9596
}
9697

9798
return (array) $decoded;

0 commit comments

Comments
 (0)