Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed May 2, 2022
1 parent 39d3673 commit bddba75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MakePotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,10 @@ protected function audit_strings( $translations ) {
foreach ( $translations as $translation ) {
/** @var Translation $translation */

$references = $translation->getReferences();

// File headers don't have any file references.
$location = $translation->hasReferences() ? '(' . implode( ':', $reference[0] ) . ')' : '';
$location = $translation->hasReferences() ? '(' . implode( ':', $references[0] ) . ')' : '';

// Check 1: Flag strings with placeholders that should have translator comments.
if (
Expand Down

0 comments on commit bddba75

Please sign in to comment.