inc/I18n/BladeCodeExtractor.php
public static function fromString( $string, Translations $translations, array $options = [] ) {

		// Use the same options as \WP_CLI\I18n\PhpCodeExtractor
		static::$options = PhpCodeExtractor::$options;
		$options += static::$options;

		// Pull in the BladeCompiler class, compile into regular PHP and then provide it to the regular parser.
		/** @var \Illuminate\View\Compilers\BladeCompiler $compiler */
		$compiler = Container::get( 'Blade' )->compiler();
		$string = $compiler->compileString( $string );
		$functions = new PhpFunctionsScanner( $string );

		$functions->enableCommentsExtraction( $options['extractComments'] );
		$functions->saveGettextFunctions( $translations, $options );
	}
public static function fromString( $string, Translations $translations, array $options = [] ) {

		// Use the same options as \WP_CLI\I18n\PhpCodeExtractor
		static::$options = PhpCodeExtractor::$options;
		$options += static::$options;

		// Pull in the BladeCompiler class, compile into regular PHP and then provide it to the regular parser.
		/** @var \Illuminate\View\Compilers\BladeCompiler $compiler */
		$compiler = Container::get( 'Blade' )->compiler();
		$string = $compiler->compileString( $string );
		$functions = new PhpFunctionsScanner( $string );

		$functions->enableCommentsExtraction( $options['extractComments'] );
		$functions->saveGettextFunctions( $translations, $options );
	}
{@inheritdoc}