public StaticAnalysisFileAlerts ScanFile(string filename)
        {
            var code = File.ReadAllText(filename).NormalizeLines();

            var alerts = new StaticAnalysisFileAlerts(filename,
                GetAlerts(code, new PhpLexer(code).GetTokens().ToArray()).ToArray());

            if (FileScanned != null)
                FileScanned(this, new ItemEventArgs<StaticAnalysisFileAlerts>(alerts));

            return alerts;
        }
        public StaticAnalysisFileAlerts ScanFile(string filename)
        {
            var code = File.ReadAllText(filename).NormalizeLines();

            var alerts = new StaticAnalysisFileAlerts(filename,
                                                      GetAlerts(code, new PhpLexer(code).GetTokens().ToArray()).ToArray());

            if (FileScanned != null)
            {
                FileScanned(this, new ItemEventArgs <StaticAnalysisFileAlerts>(alerts));
            }

            return(alerts);
        }