public function createCall($path, $command, array $arguments)
    {
        if (!self::isWindows()) {
            $binary = escapeshellcmd($this->path);
        } else {
            $binary = $this->path;
        }
        if (!empty($command)) {
            $command    = escapeshellarg($command);
        }

        list($args, $files) = $this->sanitizeCommandArguments($arguments);
        $cmd                = $this->createCallCommand($binary, $command, $args, $files);
        $call               = $this->doCreateCall($cmd, $path);
        return $call;
    }
public function createCall($path, $command, array $arguments)
    {
        if (!self::isWindows()) {
            $binary = escapeshellcmd($this->path);
        } else {
            $binary = $this->path;
        }
        if (!empty($command)) {
            $command    = escapeshellarg($command);
        }

        list($args, $files) = $this->sanitizeCommandArguments($arguments);
        $cmd                = $this->createCallCommand($binary, $command, $args, $files);
        $call               = $this->doCreateCall($cmd, $path);
        return $call;
    }
public function createCall ( $ path , $ command , array $ arguments ) { if ( ! self :: isWindows ( ) ) { $ binary = escapeshellcmd ( $ this -> path ) ; } else { $ binary = $ this -> path ; } if ( ! empty ( $ command ) ) { $ command = escapeshellarg ( $ command ) ; } list ( $ args , $ files ) = $ this -> sanitizeCommandArguments ( $ arguments ) ; $ cmd = $ this -> createCallCommand ( $ binary , $ command , $ args , $ files ) ; $ call = $ this -> doCreateCall ( $ cmd , $ path ) ; return $ call ; }
Create a call to the VCS binary for later execution

@param   string  $path           The full path to the VCS repository
@param   string  $command        The VCS command, e.g. show, commit or add
@param   array   $arguments      The command arguments
@return  Call
Create a call to the VCS binary for later execution