diff --git a/src/JsCodeExtractor.php b/src/JsCodeExtractor.php index 62d3bc84..6c108d89 100644 --- a/src/JsCodeExtractor.php +++ b/src/JsCodeExtractor.php @@ -28,6 +28,8 @@ public static function fromString( $string, Translations $translations, array $o try { $options += static::$options; + WP_CLI::debug( "Parsing file {$options['file']}" ); + $functions = new JsFunctionsScanner( $string ); $functions->enableCommentsExtraction( $options['extractComments'] ); diff --git a/src/MapCodeExtractor.php b/src/MapCodeExtractor.php index 3d147044..5a976da4 100644 --- a/src/MapCodeExtractor.php +++ b/src/MapCodeExtractor.php @@ -41,6 +41,8 @@ public static function fromString( $string, Translations $translations, array $o $string = implode( "\n", $map_object->sourcesContent ); + WP_CLI::debug( "Parsing file {$options['file']}" ); + $functions = new JsFunctionsScanner( $string ); $functions->enableCommentsExtraction( $options['extractComments'] ); diff --git a/src/PhpCodeExtractor.php b/src/PhpCodeExtractor.php index b2e53c32..43babdef 100644 --- a/src/PhpCodeExtractor.php +++ b/src/PhpCodeExtractor.php @@ -46,6 +46,8 @@ final class PhpCodeExtractor extends PhpCode { public static function fromString( $string, Translations $translations, array $options = [] ) { $options += static::$options; + WP_CLI::debug( "Parsing file {$options['file']}" ); + $functions = new PhpFunctionsScanner( $string ); $functions->enableCommentsExtraction( $options['extractComments'] );