protected function minimizeResource(string $resource, ?string $fullPathName): string
  {
    list($std_out, $std_err) = $this->runProcess($this->minifyCommand, $resource);

    if ($std_err) $this->logInfo($std_err);

    return $std_out;
  }
protected function minimizeResource(string $resource, ?string $fullPathName): string
  {
    list($std_out, $std_err) = $this->runProcess($this->minifyCommand, $resource);

    if ($std_err) $this->logInfo($std_err);

    return $std_out;
  }
protected function minimizeResource ( string $ resource , ? string $ fullPathName ) : string { list ( $ std_out , $ std_err ) = $ this -> runProcess ( $ this -> minifyCommand , $ resource ) ; if ( $ std_err ) $ this -> logInfo ( $ std_err ) ; return $ std_out ; }
Minimizes JavaScript code.

@param string      $resource     The JavaScript code.
@param string|null $fullPathName The full pathname of the JavaScript file.

@return string The minimized JavaScript code.
Minimizes JavaScript code .