Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint issues
  • Loading branch information
oandregal committed Apr 5, 2022
commit 4cff589d7d669b8a6e9860722cb5d222e9ad1bfb
8 changes: 7 additions & 1 deletion src/IterableCodeExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ public static function fromFile( $file_or_files, Translations $translations, arr
}

if ( ! empty( $options['wpExtractPatterns'] ) ) {
$headers = MakePotCommand::get_file_data_from_string( $string, [ 'Title' => 'Title', 'Description' => 'Description' ] );
$headers = MakePotCommand::get_file_data_from_string(
$string,
[
'Title' => 'Title',
'Description' => 'Description',
]
);

if ( ! empty( $headers['Title'] ) ) {
$translation = new Translation( '', $headers['Title'] );
Expand Down