Skip to content

Commit 737ff43

Browse files
committed
scrutinizer fixes
1 parent f2f6305 commit 737ff43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Loader/PoLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ public function loadString(string $string, Translations $translations = null): T
125125

126126
$description = $translation->getComments()->toArray();
127127

128-
if ($description) {
128+
if (!empty($description)) {
129129
$translations->setDescription(implode("\n", $description));
130130
}
131131

132132
$flags = $translation->getFlags()->toArray();
133133

134-
if ($flags) {
134+
if (!empty($flags)) {
135135
$translations->getFlags()->add(...$flags);
136136
}
137137

0 commit comments

Comments
 (0)