protected function createCallCommand($binary, $command, array $args, array $files)
    {
        $cmd    = trim(sprintf('%s %s %s', $binary, $command, implode(' ', $args)));
        if (count($files) > 0) {
            $cmd    .= ' -- '.implode(' ', $files);
        }
        return $cmd;
    }
protected function createCallCommand($binary, $command, array $args, array $files)
    {
        $cmd    = trim(sprintf('%s %s %s', $binary, $command, implode(' ', $args)));
        if (count($files) > 0) {
            $cmd    .= ' -- '.implode(' ', $files);
        }
        return $cmd;
    }
protected function createCallCommand ( $ binary , $ command , array $ args , array $ files ) { $ cmd = trim ( sprintf ( '%s %s %s' , $ binary , $ command , implode ( ' ' , $ args ) ) ) ; if ( count ( $ files ) > 0 ) { $ cmd .= ' -- ' . implode ( ' ' , $ files ) ; } return $ cmd ; }
Creates the command string to be executed

@param   string      $binary     The path to the binary
@param   string      $command    The VCS command
@param   array       $args       The list of command line arguments (sanitized)
@param   array       $files      The list of files to be added to the command line call
@return  string                  The command string to be executed
Creates the command string to be executed