PHPAnalysis.Parsing.FileParser.CreateParseProcess C# (CSharp) Method

CreateParseProcess() private method

private CreateParseProcess ( [ fileToParse ) : Process
fileToParse [
return System.Diagnostics.Process
        private Process CreateParseProcess([NotNull] string fileToParse)
        {
            string arguments = this.ParserPath + " parse ";

            fileToParse = fileToParse.StartsWith("\"") ? fileToParse
                                                       : "\"" + fileToParse + "\"";
            arguments += fileToParse;

            var processStartInfo = new ProcessStartInfo() {
                                                              FileName = "php",
                                                              Arguments = arguments,
                                                              UseShellExecute = false,
                                                              RedirectStandardOutput = true,
                                                              CreateNoWindow = true
                                                          };
            var process = new Process() {
                                            StartInfo = processStartInfo
                                        };
            return process;
        }