original_string: private function extractPaths(string $mainJsFile): array
    {
      $command = [$this->nodePath,
                  __DIR__.'/../../lib/extract_config.js',
                  $mainJsFile];
      $output  = $this->execCommand($command);
      $config  = json_decode(implode(PHP_EOL, $output), true);
  
      return [$config['baseUrl'], $config['paths']];
    }
code: private function extractPaths(string $mainJsFile): array
    {
      $command = [$this->nodePath,
                  __DIR__.'/../../lib/extract_config.js',
                  $mainJsFile];
      $output  = $this->execCommand($command);
      $config  = json_decode(implode(PHP_EOL, $output), true);
  
      return [$config['baseUrl'], $config['paths']];
    }
code_tokens: private function extractPaths ( string $ mainJsFile ) : array { $ command = [ $ this -> nodePath , __DIR__ . '/../../lib/extract_config.js' , $ mainJsFile ] ; $ output = $ this -> execCommand ( $ command ) ; $ config = json_decode ( implode ( PHP_EOL , $ output ) , true ) ; return [ $ config [ 'baseUrl' ] , $ config [ 'paths' ] ] ; }
docstring: Reads the main.js file and returns baseUrl and paths.
  
  @param $mainJsFile
  
  @return array
docstring_tokens: Reads the main . js file and returns baseUrl and paths .