services/scanners/ScannerJavaScriptFunction.php
public function run($route, $params = [])
    {
        $this->scanner->stdout('Detect JavaScriptFunction - BEGIN', Console::FG_YELLOW);
        foreach (self::$files[static::EXTENSION] as $file) {
            if ($this->containsTranslator($this->module->jsTranslators, $file)) {
                $this->extractMessages($file, [
                    'translator' => (array) $this->module->jsTranslators,
                    'begin' => '(',
                    'end' => ')',
                ]);
            }
        }

        $this->scanner->stdout('Detect JavaScriptFunction - END', Console::FG_YELLOW);
    }
public function run($route, $params = [])
    {
        $this->scanner->stdout('Detect JavaScriptFunction - BEGIN', Console::FG_YELLOW);
        foreach (self::$files[static::EXTENSION] as $file) {
            if ($this->containsTranslator($this->module->jsTranslators, $file)) {
                $this->extractMessages($file, [
                    'translator' => (array) $this->module->jsTranslators,
                    'begin' => '(',
                    'end' => ')',
                ]);
            }
        }

        $this->scanner->stdout('Detect JavaScriptFunction - END', Console::FG_YELLOW);
    }
public function run ( $ route , $ params = [ ] ) { $ this -> scanner -> stdout ( 'Detect JavaScriptFunction - BEGIN' , Console :: FG_YELLOW ) ; foreach ( self :: $ files [ static :: EXTENSION ] as $ file ) { if ( $ this -> containsTranslator ( $ this -> module -> jsTranslators , $ file ) ) { $ this -> extractMessages ( $ file , [ 'translator' => ( array ) $ this -> module -> jsTranslators , 'begin' => '(' , 'end' => ')' , ] ) ; } } $ this -> scanner -> stdout ( 'Detect JavaScriptFunction - END' , Console :: FG_YELLOW ) ; }
Start scanning JavaScript files.

@param string $route
@param array $params
@inheritdoc
Start scanning JavaScript files .