Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: swissspidy <pascal.birchler@gmail.com>
  • Loading branch information
schlessera and swissspidy authored Feb 19, 2019
1 parent 2604669 commit 3d9cb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PotGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function toString( Translations $translations, array $options = []
}

foreach ( $translation->getReferences() as $reference ) {
$lines[] = '#: ' . $reference[0] . ( $reference[1] !== null ? ':' . $reference[1] : null );
$lines[] = '#: ' . $reference[0] . ( $reference[1] !== null ? ':' . $reference[1] : '' );
}

if ( $translation->hasFlags() ) {
Expand Down Expand Up @@ -91,7 +91,7 @@ public static function toString( Translations $translations, array $options = []
$lines[] = '';
}

return implode("\n", $lines);
return implode( "\n", $lines );
}

/**
Expand Down

0 comments on commit 3d9cb95

Please sign in to comment.